

/* === Essential Base Styles === */
:root {
    --primary-color: #31412b;
    --secondary-color: #56784a;
    --tertiary-color: #abc49e;
    --text-color: #455e3c;
    --light-gray: #f5f5f5;
    --lighter-gray: #f5f5f5;
    --white: #ffffff;
    --spacing: 1.5rem;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    padding-top: 2vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

.container {
    width: 80vw;
    margin: 0 auto;
    padding: 0 0;
}

@media (max-width: 768px) {
    .container {
        width: 90vw;
        max-width: 90vw;
    }
}

/* === Navbar Styles === */
.main-header {
    background-color: var(--primary-color);
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80vw;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-image {
    height: 5vh;
    width: 5vh;
    object-fit: contain;
}

.logo-text {
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#profile-name{
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        padding: 0;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.35s ease-in-out, max-height 0.35s ease-in-out, visibility 0s linear 0.35s, padding 0.35s ease-in-out;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 1rem 0;
        transition: opacity 0.35s ease-in-out, max-height 0.35s ease-in-out, visibility 0s linear 0s, padding 0.35s ease-in-out;
    }
    
    .nav-links li {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: left;
        gap: .5rem;
        width: 100%;
        text-align: left;
        margin-left: 10vw;
    }

    .nav-links li:hover{
        cursor: pointer;
    }

    #profile-name{
        display: block;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

