:root {
    --white: #fff;
    --black: #1d1d1b;
    --light: var(--white);
    --dark: #012c18;
    font-family: "poppins", sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: max(1vw, 16px);
    overflow: hidden;
}

main {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: var(--white);
    position: relative;
}

main.dark {
    background-color: var(--dark);
    color: var(--white);
}

.intro-content,
.pancarte-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pancarte-content {
    padding-bottom: 6em;
}

.logo {
    height: auto;
    transition: width 0.3s ease;
}

.intro-content .logo {
    width: 40vw;
    min-width: 18em; 
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.2s;
}

.pancarte-content .logo {
    width: 20vw;
    min-width: 12em;
    margin-bottom: 3em;
}

.flex-cols {
    padding-left: 10vw;
    padding-right: 10vw;
    display: flex;
    flex-direction: column;
    gap: 5vw;
    width: 100%;
}

.flex-cols > div {
    width: 100%;
    opacity: 0;
    animation: fadeInDown 0.6s ease-out forwards;
}

.flex-cols img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.flex-cols img:hover {
    transform: scale(1.05);
}

@media(min-width: 999px) {
    .flex-cols {
        flex-direction: row;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-2em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-cols > div:nth-child(1) { animation-delay: 0.2s; }
.flex-cols > div:nth-child(2) { animation-delay: 0.4s; }
.flex-cols > div:nth-child(3) { animation-delay: 0.6s; }
.flex-cols > div:nth-child(4) { animation-delay: 0.8s; }
.flex-cols > div:nth-child(5) { animation-delay: 1s; }

.navigation-container {
    position: absolute;
    bottom: 3em;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.back-button,
.forward-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;  
    height: 2.5em;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0.3em 0.8em rgba(0,0,0,0.2);
}

.back-button svg,
.forward-button svg {
    width: 50%;
    height: 50%;
}

.back-button:hover,
.forward-button:hover {
    transform: scale(1.1);
}

.back-button {
    background-color: var(--dark);
    color: var(--white);
}

.back-button:hover {
    background-color: #333;
}

.forward-button {
    background-color: var(--white);
    color: var(--dark);
}

.forward-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0.3em 0.8em rgba(255,255,255,0.2);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease-out;
    pointer-events: none;
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: all;
}

.video-overlay video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
}

#close-video {
    position: absolute;
    top: 3vw;
    right: 3vw;
    width: 2em;
    height: 2em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

#close-video:hover {
    background: rgba(255, 255, 255, 0.3);
}

.page-transition {
    position: fixed;
    top: 0;
    left: -25vw;
    width: 150vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    transform: skewX(-20deg);
    transition: transform var(--transition-time, 1s) cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.off-left {
    transform: skewX(-20deg) translateX(-120%);
}

.page-transition.off-right {
    transform: skewX(-20deg) translateX(120%);
}

.page-transition.active {
    transform: skewX(-20deg) translateX(0%);
    pointer-events: all;
}

.page-transition.is-white {
    background-color: var(--white);
}

.page-transition.is-dark {
    background-color: var(--dark);
}

/* --- LOOP PAGINA --- */
.loop-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center bottom;
    background-color: #000;
}