/* Import the colors variables */
@import url('colors.css');


:root {
    --navbar-height-phone: calc(1vh * 2 + 5vw + 2.5vh * 2 + 1vh);
    --navbar-height: calc(2vh * 2 + 1.25vw + 2.5vh * 2 + 1vh);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color-dark);
    color: var(--secondary-color-dark);
/*    transition: top 0.5s;*/
    padding: 2vh;
    z-index: 1000;

    min-height: 1vh;

    transition: top 0.5s, min-height 0.5s ease-in-out;
}

.navbar button {
    background-color: transparent;
    color: var(--secondary-color-dark);
    border: none;
    margin: 2.5vh;
    cursor: pointer;
    font-size: 1.25vw;


    font-family: var(--font-montserrat); /* Use Montserrat font */
    font-weight: var(--font-weight-regular); /* Regular weight */
    font-style: normal; /* Normal style */

    transition: border-bottom 0.5s ease, display 0.5s ease;
}

/* Active button style */
.navbar button.active {
/*    font-family: var(--font-montserrat);*/
/*    font-weight: var(--font-weight-bold);*/
/*    font-style: normal;*/

    border-bottom: 0.2vw solid var(--secondary-color-dark);
}










/* Keyframes for fade and slide-up animation */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start 20px below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}


/* Keyframes for fade-in and fade-out effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Slide in from above */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px); /* Slide out above */
    }
}

/* Full-screen menu and hidden buttons */
.navbar .menu-toggle,
.navbar .menu-close {
    background: transparent;
    border: none;
    color: var(--secondary-color-dark);
    font-size: 5vw;
    cursor: pointer;
    display: none;
    animation: fadeIn 0.3s ease-in-out; /* Fade in by default */
}

.navbar .menu-close {
    position: absolute;
    top: 2vh;
    right: 2vh;
}

/* Mobile styles */
@media (max-width: 768px) or (orientation: portrait) {
    /* Full-screen navbar */
    .navbar {
        padding: 1vh;
    }

    .navbar.fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        min-height: 100vh;
        background-color: var(--primary-color-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    /* Hide all buttons initially */
    .navbar button {
        display: none;
    }

    /* Show menu button normally */
    .navbar .menu-toggle {
        display: inline-block;
    }

    /* Show close button and all nav buttons in full-screen */
    .navbar.fullscreen .menu-toggle {
        display: none;
        animation: fadeOut 0.3s ease-in-out forwards;
    }

    .navbar.fullscreen .menu-close {
        display: inline-block;
    }

    .navbar.fullscreen button {
        display: block;
        font-size: 3vh;
        margin: 2.5vh 0;
        opacity: 0; /* Start hidden */
        animation: fadeSlideUp 0.5s ease forwards; /* Apply animation */
    }
    /* Add delay to stagger animations for each button */
    .navbar.fullscreen button:nth-child(2) { animation-delay: 0.1s; }
    .navbar.fullscreen button:nth-child(3) { animation-delay: 0.2s; }
    .navbar.fullscreen button:nth-child(4) { animation-delay: 0.3s; }
    .navbar.fullscreen button:nth-child(5) { animation-delay: 0.4s; }
    /* Add more delays if you have more buttons */
}
