@font-face {
  font-family: 'Outfit';
  /* Nombre que usarás en el resto de tu CSS */
  src: url('./font/Outfit-Regular.ttf') format('truetype'),
}

body,
html {
  margin: 0;
  padding: 0;

  font-family: "Outfit", sans-serif;
  background-color: rgb(242, 242, 242);
  box-sizing: border-box;
}

#container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 300%;
  /* Ajusta según la cantidad de pantallas */
  transition: transform 0.5s ease-in-out;
  /* Transición suave */
  transform: translateY(0);
  /* Posición inicial */

}


.screen {
  min-height: 96rem;
}


header {
  width: 100%;
  height: 10rem;
  background-color: rgb(63, 63, 63);
  /* Fondo sólido */
  display: flex;
  flex-direction: row;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0 4% 0 6%;
  /* Espaciado dentro del header */
  box-sizing: border-box;
  justify-content: space-between;
  /* Asegura que haya espacio entre los elementos */
  align-items: center;
  /* Centra los elementos en la vertical */
}

header .logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  /* Separación entre las imágenes */
  flex: 1;
}

header .img-fbuesa {
  width: 10rem;
  height: 100%;
}

header .logo a {
  display: block;
  /* Asegura que los enlaces no tengan espacio extra */
}

header .img-memorial {
  width: 8rem;
  height: 70%;
}

header .logo img {
  /* Las imágenes ocuparán toda la altura del contenedor */
  max-width: 160px;
  /* Limitar el ancho para evitar que se estiren demasiado */

  object-fit: contain;
  /* Mantener la relación de aspecto */
}

/* Estilos para el nav */
nav {
  display: flex;
  justify-content: flex-end;
  /* Esto asegura que los items del nav se alineen a la derecha */
  align-items: center;
  width: 65%;

}

nav ul {
  display: flex;
  justify-content: flex-end;
  /* Esto alinea los elementos de la lista (a la derecha) */
  gap: 10%;
  list-style-type: none;
  margin-right: 1%;
}

nav li {
  color: white;
  font-size: 25px;
  white-space: nowrap;
}

nav a {
  text-decoration: none;
  color: white;
}
header nav li:hover{
  font-weight: bold;
}
.separator {
  width: 100%;
  height: 1rem;
  display: flex;
  flex-direction: row;
  margin: 2rem 0;
}

.orange {
  background-color: #dc9c64;
  width: 33.33%;
  height: 1rem;
}

.green {
  background-color: #6eab27;
  width: 33.33%;
  height: 1rem;
}

.black {
  background-color: #1d1d1b;
  width: 33.34%;
  height: 1rem;
}

#persons-container {
  display: flex;
  margin-left: 5%;
  width: 95%;


  flex-wrap: wrap;
}


.hidden {
  display: none;
  /* Oculta completamente la pantalla */
}

.active {
  display: flex;
  /* Muestra la pantalla activa */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



footer {
  background-color: #444444;
  color: white;
  display: flex;
  flex-wrap: wrap;
  /* Permite que los elementos se ajusten si es necesario */
  justify-content: space-between;
  padding: 1rem;
  
}

/* Cada columna ocupará un 23% del ancho, para permitir un pequeño espacio entre ellas */
footer .column {
  flex: 1 1 16%;

}

/* Ajustar imágenes dentro de las columnas */
footer img {
  width: 65%;
  /* Las imágenes se ajustan al ancho de su contenedor */
  height: 60%;
}

/* Estilos de los textos */
footer .column-text {
  flex: 1 1 23%;
  margin-top: 2.7%;
}

footer .img-two {
  margin-top: 1.5rem;
}

footer .img-column p {
  margin: 0;
  border-left: 1px white solid;
  padding-left: 1rem;

}

footer .img-column {
  margin-top: 1rem;
}

footer .last {
  flex: 1 1 23%;
  margin-left: 0%;
}

/* Estilos de los textos secundarios */
footer .footer-text {
  font-size: 0.875rem;
  display: block;
}

footer .column-text p {
  margin-top: 1.3rem;
}

b {
  font-size: 1.1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer .first {
  margin-left: 13%;
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 1800px) {
  header{
    height: 8rem;
  }
  
  header .img-memorial {
    width: 8rem;
  }

  header .img-fbuesa {
    width: 10rem;
  }

  section .button-container {
    width: 30%;
    height: 23rem;
  }

}
@media (max-width:1500px){
  section .button-container {
    width: 30%;
    height: 20rem;
  }

}
@media (max-width:1350px){
  section .button-container {
    width: 46%;
    height: 33vw;
  }

}
@media(max-width:1600px) {
  footer .first{
    margin-left:5%;
  }
  footer .column p, footer .column-text span{
    font-size: 11px !important;
  }
  footer .column-text b{
    font-size: 12px !important;
  }
  footer .column-text p{
    margin-top:1vw
  }
  footer img{
    width: 6.4rem;
  }
  footer .first{
    margin-top:3.2vw;
  }
  footer .img-two{
    margin-top: 4vw;
  }
}
@media (max-height:400px){
  header {
    position: static;
  }
}
/* Media queries para pantallas más pequeñas */
@media (max-width: 1025px) {
  header {
    position: static;
  }
  footer .column p, footer .column-text span{
    font-size: 15px !important;
  }
  footer .column-text b{
    font-size: 16px !important;
  }
  footer {
    gap: 1rem;
    /* Reducir el espacio entre columnas */
    margin: 0;
    font-size: 100%;
  }
  footer img {
    width: 50% !important;
    height: 20% !important;

  }

  footer .column,
  footer .column-text {
    flex: 1 1 44%;
    /* Las columnas ocuparán el 48% del espacio disponible en pantallas más pequeñas */
  }

  footer .img-column p {
    text-align: left;
    padding-left: 0;
    border-left: none;
  }

  footer .img-two {
    margin-top: 6vw;
  }

  footer .first,
  footer .third {
    margin-left: 5%;
    margin-top: 3.5%;
  }

  header .img-memorial {
    width: 8rem;
  }

  section .button-container {
    width: 46%;
    height: 33vw;
  }
  #select-name {
    flex-direction: column !important;
  }

  #select-name h1,
  #select-name p {
    font-size: 15px;
  }
  div #name-container{
    width: 97%;
  }
}

@media (max-width: 768px) {
  header{
    height: 7rem;
  }
  footer {
    gap: 1rem;
    /* Reducir el espacio entre columnas */
    margin: 0;
    font-size: 100%;
  }

  footer .column,
  footer .column-text {
    flex: 1 1 40%;
    /* Las columnas ocuparán el 48% del espacio disponible en pantallas más pequeñas */
  }

  footer .img-column p {
    text-align: left;
    padding-left: 0;
    border-left: none;
  }

  footer img {
    width: 40%;
    height: 10%;
  }

  footer .first {
    margin-left: 5%;
    margin-top: 1%;
  }

  footer .third {
    margin-left: 5%;
  }


  footer span {
    font-size: 12px;
  }

  footer b {
    font-size: 15px;
  }

  footer .column p {
    font-size: 12px;
  }


  footer .column-text {
    margin-left: 5%;
  }

  footer .img-column p {
    text-align: left;
    padding-left: 0;
    border-left: none;
  }


  footer img {
    width: 40% !important;
  }

  footer .img-two {
    margin-top: 4vw;
  }

  footer .footer-text {
    font-size: 0.75rem;
    /* Reducir el tamaño del texto en pantallas más pequeñas */
  }

  footer .column {
    margin-left: 5%;
  }

  footer .first {
    margin-top: 2%;
  }

  header .logo {
    width: 30%;
  }

  nav {
    width: 55%;
  }

  nav li {
    font-size: 15px;
  }



  header .logo img {
    max-width: 90%;
  }

  header .img-fbuesa {
    width: 7rem;
    height: 6rem;
  }

  header .img-memorial {
    width: 6rem;
    height: 4rem;
  }

  header .logo {
    gap: 1vw;
  }

  #name-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .button-container .button-interior {
    font-size: 15px;
  }

  .button-container:hover .button-interior {
    font-size: 1rem;
  }

  section .button-container {
    height: 33vw;
  }

  #select-name h1 {
    display: block;
    margin: 0;
  }
  .button-container:hover .button-interior{
    font-size:1.1rem !important;
  }
}
@media (max-width:570px){
  footer .column p,
  footer .column-text span,
  footer .column-text p {
    font-size: 2vw !important;
  }
  footer .column-text b {
    font-size: 2.5vw !important;
  }

}
@media (max-width: 600px) {
  section .button-container {
    width: 94%;
    height: 70vw;
  }
}

@media (max-width: 470px) {
  header{
    height: 5rem;
  }
  footer .column {
    margin-left: 5%;
  }

  footer .column-text {
    margin-top: 0;
  }

  footer .column p,
  footer .column-text span,
  footer .column-text p {
    font-size: 3vw;
  }

  footer .column-text b {
    font-size: 10px;
  }

  footer .column,
  footer .column-text {
    flex: 1 1 40%;
    /* En pantallas más pequeñas, cada columna ocupa el 100% */
  }

  footer img {
    width:60% !important;
  }

  .logo img {
    width: 100%;
    height: 100%;
    max-width: 100% !important;
  }

  .logo {
    width: 50%;
  }

  .logo .img-memorial {
    max-width: 90%;
    width: 4rem;
  }

  .logo .img-fbuesa {
    max-width: 90%;
    width: 5rem;
  }

  header a {
    font-size: 70%;
  }

  section .button-container {
    height: 70vw;
  }
}
@media(max-width:390px){
  section .button-container {
    height: 70vw;
  }
}

.button-interior {
  color: #444444;
  font-weight: bold;
  position: relative;
  opacity: 100%;
  z-index: 5;
  font-size: 1.3rem;
  text-align: center;
  animation: appear 0.5s ease-out forwards;
  left: 30%;
  top: 65%;
}

.button-container:hover .button-interior {
  opacity: 100%;
  color: white;
  font-size: 1.6rem;
  left: 24%;
  top: 63%;
  transition: color 0.3s ease-in-out;


}

.button-container:hover .buton-selector {
  opacity: 100%;

  transition: opacity 0.3s ease-in-out;

}

.button-container {
  padding-bottom: -50px;
  margin: 1% 1% 1% 1%
}

.buton-selector {
  opacity: 20%;
  position: relative;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  animation: appear 0.5s ease-out forwards;
}

.button-container {
  cursor: pointer;
  border: none;
  width: 22%;
  height: 20rem;
  margin: 1%;

}

@keyframes appear {
  0% {
    transform: scale(0);
    /* Comienza con el tamaño original */

  }

  100% {

    transform: scale(1);
    /* Aumenta la opacidad si deseas que se haga más visible */
  }
}

@keyframes letra {
  0% {
    font-size: 1.2rem;
  }

  100% {
    font-size: 1.4rem;
  }
}

#select-name,
#name-container {
  display: flex;
  flex-direction: row;
}

#select-name {
  margin-left: 6%;
  width: 89.2%;
  gap: 2%;
  border-bottom: 1px solid grey;
  margin-bottom: 2%;
}

#name-container {
  gap: 4%;
  overflow-x: auto;
  overflow-y: auto;
  width: 80%;
  max-width: 100%;
  font-size: 22px;
  max-height: 5rem;
  color: grey;
}

#name-container p {
  white-space: nowrap;
  opacity: 70%;
}

#name-container p:hover {
  cursor: pointer;
  color: black;
}

#select-name h1 {
  margin-right: 1%;
  white-space: nowrap;

}

/* Opción alternativa para personalizar un contenedor específico */
#name-container {
  scrollbar-width: none;
  /* Ajusta el grosor del scrollbar */

}

#name-container.no-select {
  user-select: none;
}