* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}


body {
    background-color: #f4f4f4;
    line-height: 1.6;
}

/*///////////////////////NAVBAR STUFF/////////////////////////////*/

.navbar {
    background-color: #0077cc;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between logo and buttons */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo-link, .logo-link:hover, .logo-link:active, .logo-link:visited, .logo-link:link, .logo-link:target, .logo-link:focus {
    text-decoration: none;
    color: white;
}



/* HAMBURGER BUTTON */
.hamburger {
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    line-height: 5px;
}

/* OVERLAY (click outside to close) */
#sideMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999;
}

/* SIDE MENU */
#sideMenu {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    padding: 20px;
    transition: right .3s ease;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* CLOSE BUTTON */
.close-btn {
    color: #0077cc;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    width: 0;
}

.close-btn:hover {
    color: #004e86;
}


.side-menu-links {
    margin-top: 50px;
}


.inactivePage {
    color: #0077cc;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.inactivePage:hover {
    color: #004e86;
    transform: scale(1.1);
    transform: translateX(10px);
}



.activePage {
    color: #0077cc;
    background-color: #008ef352;
    border-radius: 5px;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}



.side-menu-footer {
    margin-top: auto;
}

/* FOOTER LINKS AT BOTTOM */
.side-menu-footer a {
    display: block;
    font-size: 14px;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
}

.side-menu-footer a:hover {
    color: #333;
}

/* WHEN MENU IS ACTIVE */
#sideMenu.active {
    right: 0;
}

#sideMenuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hide menu instantly before JS runs */
#sideMenu,
#sideMenuOverlay {
    transition: right 0.3s ease, opacity 0.3s ease;
}

body.menu-preload #sideMenu {
    right: -50% !important; /* hide instantly */
    transition: none !important; /* disable animation */
}

body.menu-preload #sideMenuOverlay {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Desktop: Fixed-width menu */
@media (min-width: 700px) {
    #sideMenu {
        width: 350px;   /* pick any width you prefer */
        right: -350px;  /* hide completely off-screen */
    }

    #sideMenu.active {
        right: 0;
    }
}


/*///////////////////////NAVBAR STUFF END/////////////////////////////*/