* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Indivisa Text Sans";
}

.fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.8);
  z-index: -1;
}

main {
  width: auto;
  height: auto;
  position: relative;

  & picture {
    width: 100%;
    height: 100%;

    & img {
      min-width: 100%;
      min-height: 100%;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;

      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      user-select: none;
      pointer-events: none;
      transition: width 0.3s ease, height 0.3s ease;
    }
  }
}

.login .fondo {
  background-image: url("../img/desktop/login/fondo.webp");
}

.aviso .fondo {
  background-image: url("../img/desktop/aviso/fondo.webp");
}

@media (orientation: portrait) {
  .login .fondo {
    background-image: url("../img/mobile/login/fondo.webp");
  }

  .aviso .fondo {
    background-image: url("../img/mobile/aviso/fondo.webp");
  }
}

#alert {
  position: fixed;
  inset: 0%;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  background: rgba(0, 0, 0, 0.37);
  transition: all 10s ease-in-out;
  overflow: hidden;

  & #alert-content {
    display: flex;
    background: #ebebeb;
    border-radius: 0.4rem;
    max-width: 45%;
    padding: 0rem 1rem;
    user-select: none;
    align-items: center;
    & img {
      width: 12dvw;
    }

    & p {
      color: #1266f1;
      font-weight: 800;
      font-size: 2dvw;
      display: flex;
      justify-content: center;
      align-items: center;
      text-transform: uppercase;
      text-align: center;
      flex-wrap: wrap;
      column-gap: 1dvw;
      height: fit-content;
    }
  }
}

@media (orientation: portrait) {
  #alert {
    & #alert-content {
      width: 90%;
      height: 90%;
      max-width: none;
      padding: 0;
      flex-direction: column;

      & img {
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
      }

      & p {
        margin: 0 auto;
        width: 90%;
        /* font-size: 9dvw; */
        /* height: 1px; */
        /* line-height: 10.5dvw; */

        & .line {
          white-space: nowrap;
          line-height: 1.1;
          font-weight: bold;
        }
      }
    }
  }
}
