@font-face {
    font-family: 'TWKLausanne';
    src: url('/static/font/TWKLausanne-400.otf') format('opentype');
}

body {
    font-family: 'TWKLausanne', sans-serif;
    margin: 0px;
    padding: 0;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: #f8f8f8;
    scrollbar-width: thin; /* Ancho pequeño */
    scrollbar-color: black transparent; /* Colores personalizados */
    overflow-x: hidden;
}

.container {
    display: flex;
    margin: 8px;
    height: 50%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    flex: 1;
}

.column {
    flex: 1;
    max-width: 10%;
}

.column h2 {
    font-size: 10px!important;
    margin: 0;
    text-transform: uppercase;
    color: #6d6d6daa;
}

.column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column ul li {
    font-size: clamp(12px, 2vw, 11px);
}

.description {
    flex: 1;
    max-height: 40vh;
    overflow-y: hidden;
}

.description h2 {
    font-size: 10px!important;
    margin: 0;
    text-transform: uppercase;
    color: #6d6d6daa;
}

.description p {
    margin: 0;
    font-size: clamp(12px, 2vw, 11px);
    white-space: pre-wrap; /* Preserva saltos de línea y ajusta el texto */
    word-wrap: break-word; /* Evita desbordamientos del texto */
}

.second-place {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 8px 8px 60px;
    align-items: center;
    justify-content: space-between;
}

.image-section {
    height: 40vh;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 10px; /* Espacio entre imágenes */
    margin: 0; /* Centra la sección en la página */
    flex-wrap: wrap;
}

.image-section img {
    height: 100%;
    width: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin: 0;
    flex: 1; /* Se distribuyen equitativamente */
}

.project-navigation {
    position: fixed; /* Hace que el menú esté fijo en la página */
    bottom: 5px;
    justify-content: center;
    left: 5px;
    z-index: 100; /* Asegura que esté por encima de otros elementos */
}

.project-navigation a {
    text-decoration: none;
    color: #000000;
    padding: 3px 3px;
}

.project-navigation a:hover {
    background-color: #000000;
    color: #f8f8f8;
}

.mobile_home{
    display: none;
}

/* Estilo del contenedor de navegación */
.fixed-nav {
    position: fixed; /* Hace que el menú esté fijo en la página */
    bottom: 5px;
    justify-content: center;
    right: 5px;
    width: 20%; /* Puede ser un ancho completo o fijo */
    z-index: 100; /* Asegura que esté por encima de otros elementos */
}

/* Estilo de la lista */
.fixed-nav ul {
    display: flex;
    justify-content: space-between; /* Espacia los elementos del menú */
    list-style: none;
    margin: 0 ;
}

/* Estilo de los enlaces */
.fixed-nav ul li a {
    text-decoration: none;
    mix-blend-mode: difference; /* Cambia el color en función del fondo */
    color: black;
    padding: 3px 3px;
    font-size: clamp(0.8rem, 0.8rem + 1vw, 1rem); /* Tamaño mínimo, ideal y máximo */
    transition: color 0.3s ease;
}


.fixed-nav ul li a:hover {
    background-color: #000000; /* Fondo negro */
    color: #f8f8f8; /* Texto blanco */
}


/* Scrollbar en navegadores basados en Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Ancho de la barra */
    height: 12px; /* Altura de la barra */
}

::-webkit-scrollbar-thumb {
    background: black; /* Color del control deslizante */
}

::-webkit-scrollbar-track {
    background: transparent; /* Fondo del track */
}

/* Oculta las flechas de desplazamiento */
::-webkit-scrollbar-button {
    display: none; /* Oculta los botones de las flechitas */
}


/* Animación de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animación de fade-out */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Ocultar el contenido inicialmente */
body.loading {
    opacity: 0;
    animation: none; /* Desactiva la animación mientras carga */
}

/* Aplicar fade-in cuando las imágenes estén listas */
body.loaded {
    animation: fadeIn 2s ease-in-out;
}

/* Aplica la animación de fade-out al navegar */
body.fade-out {
    animation: fadeOut 2s ease-in-out;
}

.description p a {
    display: inline-block; /* Asegura que el enlace se comporte como un bloque en línea */
    margin-top: 2px; /* Espaciado superior */
}

.video_url{
    text-decoration: none;
    color: #00000086;
    font-size: clamp(12px, 2vw, 11px);
    padding: 1px;
    background-color: transparent;
    margin: 10px 0px;
}
.video_url:hover{
    background-color: #000000;
    color: #f8f8f8
}
/* Modal container */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
}

/* Modal content */
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Close button */
.modal .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Video iframe */
#videoPlayer {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

/* Muestra el menú cuando tiene la clase 'show' */
.dropdown-menu.show {
    display: flex;
}

/* Estilos de los enlaces */
.dropdown-menu a {
    text-decoration: none;
    color: black;
    padding: 5px 10px;
    display: block;
}

.dropdown-menu a:hover {
    background: black;
    color: white;
}

@media (max-width: 1024px) {
    body{
        background-color: #000000;
        margin: 0;
        padding: 0;
    }
    .image-section {
        height: 30vh;
    }
    .container {
        color: #f8f8f8;
    }
    .fixed-nav {
        all: unset; /* Resetea todos los estilos (márgenes, paddings, etc.) */
        display: none !important;
    }
    

    .fixed-nav ul {
        all: unset; /* Reinicia los estilos predeterminados del navegador */
        list-style: none; /* Elimina los puntos de lista */
        display: flex; /* Los elementos están en línea */
        justify-content: space-between; /* Distribuye los enlaces uniformemente */
        width: 100%; /* Asegura que ocupe el ancho completo */
        padding: 0; /* Sin espaciado interno */
        margin: 0; /* Sin márgenes */
    }
    
    .fixed-nav ul li {
        flex: 1; /* Cada elemento ocupa el mismo espacio */
        text-align: center; /* Centra el contenido dentro de cada li */
    }
    
    .fixed-nav ul li a {
        all: unset; /* Reinicia estilos predeterminados del navegador */
        display: block; /* Hace que el enlace sea un bloque clicable */
        text-decoration: none; /* Elimina subrayado */
        color: white; /* Color de texto */
        margin: 0; /* Espaciado interno */
        font-size: clamp(0.8rem, 0.8rem + 1vw, 1rem); /* Tamaño de fuente responsivo */
        background-color: transparent; /* Sin fondo por defecto */
        text-align: center; /* Centra el texto */
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    
    .fixed-nav ul li a:hover {
        background-color: black; /* Fondo negro al pasar el ratón */
        color: white; /* Texto blanco */
        cursor: pointer;
    }
    .mobile_home{
        display: flex;
    }
    .project-navigation {
        all: unset; /* Resetea todos los estilos */
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        z-index: 100;
        display: flex;
        justify-content: space-around; /* Distribuye los enlaces de manera uniforme */
        box-sizing: border-box;
    }
    
    .project-navigation a {
        all: unset;
        display: flex; /* Hace que los enlaces sean flexibles y llenen el espacio */
        flex: 1; /* Ocupa el mismo ancho para cada enlace */
        justify-content: center; /* Centra el contenido dentro del enlace */
        align-items: center; /* Asegura que el texto esté centrado verticalmente */
        text-decoration: none;
        color: white;
        font-size: clamp(0.8rem, 0.8rem + 1vw, 1rem);
        background-color: transparent;
        text-align: center;
        transition: color 0.3s ease, background-color 0.3s ease;
        cursor: pointer;
        height: auto; /* Ajusta la altura para que sean clicables en toda su área */
    }
    
    .project-navigation a:hover {
        background-color: black; /* Fondo negro al pasar el ratón */
        color: white; /* Texto blanco */
        cursor: pointer;
    }
    
    .description{
        flex: auto;
        max-height: none;
    }
    .second-place {
        position: relative;
        display: flex;
        flex:1;
        padding: 8px;
    }
    .modal-content {
        position: relative;
        margin: 30% auto;
        padding: 0;
        width: 80%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }
    .modal .close {
        color: rgba(255, 255, 255, 0);
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }

    .image-section {
        position: relative;
        height: 30vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-section img {
        position: absolute;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-section img.active {
        opacity: 1;
        animation: fadeImage 1.5s ease-in-out;
    }
    .video_url {
        color: #757575;
    }
    
}


/* Estilo base del menú desplegable */
.dropdown-menu {
    position: absolute;
    bottom: 30px; /* Posiciona arriba de "CONTACT" */
    justify-content: right;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    text-align: right;
    right: 3px;
}

