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

body{
    min-height: 100vh;
    background: url('background.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.15em 4em;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo{
    font-size: 1.25em;
    color: #e20000;
    text-decoration: none;
    font-weight: 300;
}

.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a {
    font-size: 1em;
    font-weight: 300;
    color: black;
    text-decoration: none;
    margin-right: 1.5em;
}

.navbar a:hover{
    color: dimgrey;
}

/*Dropdown menu*/

i{
    padding: 0.5em;
}


.dropdown {
    position: relative; /* Posiciona el dropdown relativamente */
}

.dropdown-toggle {
    text-decoration: none; /* Sin subrayado */
    padding: 0px; /* Espaciado alrededor del texto */
}

.dropdown_menu {
    display: none; /* Ocultar el menú por defecto */
    position: absolute; /* Posicionar el menú en relación al contenedor */
    background-color: white; /* Color de fondo */
    list-style: none; /* Quitar puntos de lista */
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra para el efecto de profundidad */
    z-index: 1000; /* Asegura que el menú esté por encima de otros elementos */
}

.dropdown:hover .dropdown_menu {
    display: block; /* Mostrar el menú al pasar el ratón */
}

.dropdown_menu ul {
    padding: 0; /* Sin padding para el ul */
    margin: 0; /* Sin margen para el ul */
}

.dropdown_menu li {
    padding: 10px 20px; /* Espaciado interno para cada opción */
    list-style: none;
}

.dropdown_menu li a {
    text-decoration: none; /* Sin subrayado */
    color: black; /* Color del texto */
}

.dropdown_menu li a:hover {
    color: dimgrey;
}

/*Fin dropdown menu*/



/*Barra de busqueda*/

.containersearch {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search_wrap {
    width: 100%;
    max-width: 31.25em; /* Ajusta el tamaño máximo según tus necesidades */
}

.search_box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc; /* Color del borde */
    border-radius: 25px; /* Bordes redondeados */
    overflow: hidden; /* Oculta el desbordamiento */
}

.input {
    flex: 1; /* Ocupa todo el espacio disponible */
    margin-left: 0.5em;
    padding: 0.3em 0.625em; /* Espaciado interno */
    border: none; /* Sin borde interno */
    outline: none; /* Sin contorno al hacer clic */
    font-size: 16px; /* Tamaño de fuente */
}

.btn {
    background-color: #b6b6b6; /* Color de fondo del botón */
    color: white; /* Color del icono */
    padding: 0.3em 0.625em; /* Espaciado interno del botón */
    cursor: pointer; /* Cambia el cursor al pasar el ratón */
    transition: background-color 0.3s; /* Transición suave al cambiar de color */
}

.btn:hover {
    background-color: #555555; /* Color de fondo al pasar el ratón */
}

.fas.fa-search {
    font-size: 1em; /* Tamaño del icono de búsqueda */
}

/*Fin barra de busqueda*/



.seasons a{
    display: flex;
    flex-direction: column;
    color: #e20000;
    margin: 3em 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 300;
}

.seasons a:hover{
    color: #650000;
}


div.title{
    display: flex;
    justify-content: center;
    align-items: center; 
    margin: 2.8em 5em;
    font-size: 4.5em;
    font-weight: 300;
    color: #e20000;
    height: 346px;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.title.hidden {
    opacity: 0;
}

.bigtitle{
    font-family: "Yuji Syuku", serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    line-height: 1.5em;
    margin-right: 0.5em;
}

.background{
    margin: 10em;
    background-color:white;
    padding: 5em 13em;
    /*border-radius: 1rem;*/
}


p{
    font-size: large;
    padding-bottom: 1em;
}

p.bigsubtitle{
    font-size: 1.875em;
    font-weight: 300;
    color: #e20000;
    padding-bottom: 0.5em;
}

p.subtitle{
    font-weight: 300;
    color: #e20000;
    
}

p.greysubtitle{
    font-weight: 300;
    color: #3f3f3f;
}

.text {
    flex: 1;
    text-align: justify;
    text-justify: inter-word;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    margin-bottom: 1em;
    /*
    max-width: 80%;
    height: auto;
    */
}

div.verticalimage{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    margin-bottom: 1em;
}

figcaption{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    font-family:'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1em;
    color: #4e4d4d;
    width: 80%;
 
}

.default_button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6.25em;
    padding-top: 2em
}

.back_button{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6.25em;
    padding-top: 2em
}


.default{
    width: 12em;
    height: 3em;
    background-color: rgb(133, 133, 133);
    font-weight: 300;
    color: rgb(254, 254, 254);
    cursor: pointer;
    border: 0;
}



.default:hover {
    background-color: rgb(102, 102, 102);
  }

/*
Fade in overlay de cada una de las vistas
*/

.views {
    position: relative;
    display: inline-block; /* Permite que el contenedor ajuste el tamaño de la imagen */
}

.overlay {
    display: block;
    width: 50%;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco con opacidad */
    color: rgb(0, 0, 0); /* Color del texto */
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.5s ease; /* Transición suave para el desvanecimiento */
    display: flex; /* Para centrar el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

.views:hover .overlay {
    opacity: 1; /* Muestra la superposición al pasar el mouse */
}

.textviews {
    text-align: center; /* Centra el texto */
    display:flex ;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

/*
TERMINO Fade in overlay
*/


.japsubtitle {
    font-family: "Yuji Syuku", serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #e20000;
    font-size: 3.125em;
    display: block;
    height: 45%;
    line-height: 1.5em;
    
}

.italicsubtitle {
    font-family:'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1em;
    color: #2b2b2b;
}

footer{
    background-color: white;
    width: 100%;
    height: 6rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content a{
    position: relative;
    cursor: pointer;
    text-decoration: none;
    font-weight: 300;
    color: #000000;
}

.footer-content a::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1px;
    background: dimgrey;
}

.footer-content a:hover{
    color: dimgrey;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Media Queries */

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    .header {
        padding: 1em; /* Reducir el padding en la cabecera */
    }

    .navbar {
        flex-direction: column; /* Cambiar a columna para más espacio */
    }

    .navbar a {
        margin: 0.5em 0; /* Espaciado vertical */
    }

    .title {
        font-size: 2.5em; /* Reducir el tamaño de la fuente del título */
        margin: 1em 1em; /* Ajustar los márgenes */
    }

    .background {
        margin: 15em 1em 5em; /* Reducir margen */
        padding: 2em; /* Ajustar padding */
    }

    .default {
        width: 10em; /* Hacer botones más pequeños */
        height: 2.5em;
    }

    img {
        width: 100%; /* Hacer las imágenes responsivas */
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Ajustar a 2 columnas en pantallas pequeñas */
    }
}

/* Estilos para pantallas medianas (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
    .header {
        padding: 1.5em; /* Ajustar padding */
    }

    .title {
        font-size: 3em; /* Ajustar tamaño de fuente */
    }

    .background {
        margin: 9.5em 5em 4em; /* Ajustar margen */
        padding: 4em; /* Ajustar padding */
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr); /* Ajustar a 3 columnas */
    }

    .default {
        width: 11em; /* Ajustar tamaño de botones */
        height: 2.8em;
    }
}

/* Estilos para pantallas grandes (escritorio) */
@media (min-width: 1025px) {
    .header {
        padding: 1.15em 4em; /* Padding original */
    }

    .title {
        font-size: 4.5em; /* Tamaño de fuente original */
    }

    .background {
        margin: 10em; /* Margen original */
        padding: 5em 13em; /* Padding original */
    }

    .gallery {
        grid-template-columns: repeat(5, 1fr); /* 5 columnas */
    }
}
