@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;600;700&display=swap");
:root {
  --colorBlack: #070708;
  --colorWhite: hsl(0deg, 0%, 92%);
  --colorGreyishWhite: #cccccc;
  --colorGrey: #333333;
  --colorBgDarker: var(--colorBlack);
  --colorBgLighter: hsl(240deg 10% 9%);
  --colorText: var(--colorGreyishWhite);
  --colorHeadings: var(--colorWhite);
  --colorAccent: hsl(21 21% 48% / 1); }

h1 {
  font-size: 3.2rem;
  user-select: none; }

h2 {
  font-size: 2.4rem; }
  @media (max-width: 768px) {
    h2 {
      font-size: 2.3rem; } }

a {
  color: inherit;
  text-decoration: none; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth; }

body {
  font-size: 1.6rem;
  background-color: #261f3d;
  color: #f7f7f7; }

.u-hidden {
  display: none !important; }

.btn {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; }

.btn-solid,
.btn-secondary {
  background-image: linear-gradient(to right bottom, #9894e5, #654fb3);
  padding: 0.6rem 1.8rem;
  border-radius: 0.6rem;
  font-weight: 500; }

.btn-secondary {
  background-image: none;
  background-color: inherit; }

.btn-outline {
  border: 2px solid #9894e5;
  padding: 0.6rem 1.8rem;
  border-radius: 0.6rem;
  font-weight: 500; }

.btn-text {
  background-color: transparent;
  color: inherit;
  border: 0;
  color: #bebbbe; }

.btn-text:hover,
.btn-text:active {
  text-decoration: underline; }

.btn-text:hover, .btn-text:active {
  text-decoration: underline; }

.btn-icon {
  height: 3.6rem;
  width: 3.6rem;
  font-size: 1.8rem;
  border-radius: 50%;
  color: #bfb0d6;
  padding: 0;
  border: 0; }
  .btn-icon .icon {
    font-size: 1.6rem;
    margin-right: 0.8rem;
    margin-left: 0.6rem; }

.btn-icon-text {
  display: inline-block;
  font-size: 1.6rem; }

.btn-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 5rem;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #453b74;
  border-radius: 0.8rem; }
  .btn-toggle .bar {
    height: 0.32rem;
    border-radius: 100vw;
    background-color: #f7f7f7; }
    @media (max-width: 768px) {
      .btn-toggle .bar {
        background-color: #bfb0d6; } }

.short-url-bar {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: #2e274c;
  border: 1px solid #453b74;
  border-radius: 1rem; }
  .short-url-bar .container-content {
    width: 100%;
    overflow: hidden; }
    .short-url-bar .container-content .short-url {
      font-weight: 500;
      font-size: 1.8rem; }
      .short-url-bar .container-content .short-url:hover, .short-url-bar .container-content .short-url:active {
        text-decoration: underline; }
    .short-url-bar .container-content .full-url {
      display: block;
      font-weight: 300;
      font-size: 1.5rem;
      color: #9fd6cf;
      margin-top: 0.6rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis; }
  .short-url-bar .btn-container {
    display: flex;
    margin-right: -0.6rem; }
    @media (max-width: 480px) {
      .short-url-bar .btn-container {
        margin-right: -0.8rem; } }
    .short-url-bar .btn-container .btn-url-bar-action {
      flex-shrink: 0;
      font-size: 2rem;
      display: grid;
      place-items: center;
      width: 3.6rem;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      color: #9e90ad; }
      @media (max-width: 480px) {
        .short-url-bar .btn-container .btn-url-bar-action {
          width: 3.2rem; } }
    .short-url-bar .btn-container .btn-copy-link:hover, .short-url-bar .btn-container .btn-copy-link:active {
      color: #f7f7f7; }
    .short-url-bar .btn-container .btn-delete-link {
      display: none; }
      .short-url-bar .btn-container .btn-delete-link:hover, .short-url-bar .btn-container .btn-delete-link:active {
        color: #f07a7a; }

.modal-alert {
  position: fixed;
  height: 100vh;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center; }
  .modal-alert .modal-content {
    width: 40rem;
    background-color: #231d39;
    border-radius: 1rem;
    padding: 2rem; }
    .modal-alert .modal-content h1 {
      font-size: 1.9rem; }
    .modal-alert .modal-content p {
      margin-top: 1rem; }
    .modal-alert .modal-content .btn-container {
      display: flex;
      margin-top: 2.4rem;
      gap: 0.8rem; }
      .modal-alert .modal-content .btn-container .btn {
        width: 100%; }
      .modal-alert .modal-content .btn-container .btn-secondary {
        background-color: #342b54; }

nav {
  display: flex;
  align-items: center;
  padding: 1.1rem 5.4rem;
  background-color: #191529;
  border-bottom: 1px solid #453b74; }
  @media (max-width: 768px) {
    nav {
      padding: 1.1rem 5%; } }
  @media (max-width: 480px) {
    nav {
      padding: 1.1rem 4.6%; } }
  nav .brand-logo {
    margin-right: auto; }
    nav .brand-logo a {
      color: inherit;
      text-decoration: none;
      font-size: 2.4rem;
      font-weight: 600;
      display: flex;
      gap: 1.6rem; }
      @media (max-width: 480px) {
        nav .brand-logo a {
          gap: 1.4rem; } }
    nav .brand-logo img {
      height: 4.2rem;
      width: fit-content; }
      @media (max-width: 768px) {
        nav .brand-logo img {
          height: 4rem; } }
    nav .brand-logo .brand-name {
      text-transform: uppercase;
      width: 12rem;
      font-size: 1.8rem;
      font-weight: 400;
      line-height: 1.2;
      color: #bfb0d6; }
      @media (max-width: 480px) {
        nav .brand-logo .brand-name {
          font-size: 1.6rem; } }
  nav .nav-items {
    display: flex; }
    nav .nav-items .btn-toggle {
      display: none;
      display: flex;
      position: relative; }
    nav .nav-items .toggle-options {
      display: flex;
      align-items: center;
      flex-direction: column;
      gap: 0.2rem;
      position: absolute;
      top: 6.9rem;
      right: 0;
      height: fit-content;
      width: 16rem;
      padding: 0.2rem;
      background-color: #191529;
      border-radius: 0.8rem;
      border: 1px solid #453b74; }
      nav .nav-items .toggle-options .option {
        width: 100%;
        height: fit-content;
        display: flex;
        align-items: center;
        padding: 0.2rem 0;
        border-radius: 0.6rem;
        height: 3.5rem;
        border: 1px solid transparent;
        user-select: none; }
        nav .nav-items .toggle-options .option:hover {
          background-color: #2e274c;
          border: 1px solid #453b74; }
        nav .nav-items .toggle-options .option.btn-solid {
          padding: 0;
          border: 0;
          height: 3.4rem;
          text-align: center;
          width: 100%; }
          nav .nav-items .toggle-options .option.btn-solid a {
            width: 100%; }
        nav .nav-items .toggle-options .option:has(.u-hidden) {
          padding: 0;
          height: 0; }
        nav .nav-items .toggle-options .option.btn-logout {
          color: #f07a7a; }
          nav .nav-items .toggle-options .option.btn-logout:hover, nav .nav-items .toggle-options .option.btn-logout:active {
            background-color: rgba(255, 0, 0, 0.1);
            border: 1px solid #f07a7a; }
  nav .btn-switch-theme {
    font-size: 2.2rem; }

main {
  width: 100%;
  padding: 5.4rem 15% 0; }
  @media (min-width: 768px) and (max-width: 1100px) {
    main {
      padding: 5.4rem 8% 0; } }
  @media (max-width: 768px) {
    main {
      padding: 5.4rem 5% 0; } }
  @media (max-width: 480px) {
    main {
      padding: 5.4rem 4% 0; } }
  main .wrapper-url-shortener h1 {
    text-align: center;
    text-wrap: pretty; }
  main .wrapper-url-shortener h2 {
    color: #bfb0d6;
    text-align: center;
    text-wrap: pretty;
    margin-top: 1rem;
    margin-bottom: 2.6rem;
    font-weight: 400; }
  main .wrapper-url-shortener .input-bar {
    display: flex;
    margin-bottom: 1rem; }
    @media (max-width: 768px) {
      main .wrapper-url-shortener .input-bar {
        flex-direction: column;
        gap: 0.8rem; } }
    main .wrapper-url-shortener .input-bar input {
      width: 100%;
      padding: 1.3rem 1rem;
      font-size: 1.6rem;
      border-radius: 0.6rem 0 0 0.6rem;
      border: 0;
      /* outline: 0; */ }
      @media (max-width: 768px) {
        main .wrapper-url-shortener .input-bar input {
          border-radius: 0.6rem; } }
    main .wrapper-url-shortener .input-bar .btn-short-url {
      background-image: linear-gradient(to right bottom, #745fcc, #654fb3);
      border-radius: 0 0.6rem 0.6rem 0;
      padding: 1.3rem 0rem;
      width: 14rem;
      text-align: center;
      flex-shrink: 0; }
      @media (max-width: 768px) {
        main .wrapper-url-shortener .input-bar .btn-short-url {
          border-radius: 0.6rem;
          width: 100%; } }
  main .wrapper-url-shortener .response-message {
    color: #f07a7a;
    display: none;
    transition: all 0.3s ease; }
  main .wrapper-url-history {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem; }

@media (max-width: 768px) {
  .section-forms {
    padding: 0 11.5%; } }

@media (max-width: 480px) {
  .section-forms {
    padding: 0 5%; } }

.section-forms .form {
  background-color: #1d182f;
  margin: 4rem auto 0;
  width: 48rem;
  border: 2px solid #453b74;
  padding: 2.4rem 2rem;
  border-radius: 1rem; }
  @media (max-width: 768px) {
    .section-forms .form {
      width: 100%;
      margin: 4rem auto; } }
  .section-forms .form.form-sign-up {
    display: none; }
  .section-forms .form h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.4rem; }
  .section-forms .form label {
    color: #bebbbe; }
  .section-forms .form input {
    width: 100%;
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: 0.8rem;
    margin-bottom: 1.6rem;
    /* border: 0; */ }
  .section-forms .form .remember-me {
    width: initial;
    margin-right: 0.4rem;
    accent-color: #7465c3; }
  .section-forms .form .error-message {
    display: none;
    color: #f07a7a;
    margin-bottom: 1rem; }
  .section-forms .form .btn-solid {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border: 0; }
  .section-forms .form .btn-tertiary {
    margin-bottom: 0;
    border: 0; }
