#page-head{
    border-bottom-style: solid;
    border-bottom-width: 3px;
    border-bottom-color: var(--secondary-color);
}

#page-navigation{
    height: 100%;
}

#app-container{
    min-height: calc(100vh - var(--header-height));
    height: calc(100vh - var(--header-height));

    display: flex;
    flex-direction: row;
    align-items: flex-start; /* important */
}

#app-nav{
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

#page-body{
    padding: var(--standard-pad);
    width: 100%;
    overflow-y: auto;
    height: 100%;
}

/* Container for vertical nav */
#vertical-nav {
background-color: #151515;
padding-top: 2rem;   /* 2em → rem */
padding-left: 1rem;  /* 1em → rem */
padding-right: 1rem; /* 1em → rem */
height: 100%;
width: 6rem;         /* 4em → rem */
display: flex;
flex-direction: column;
align-items: center;
row-gap: 2rem;       /* 2em → rem */
user-select: none;
}

/* Each nav item */
#vertical-nav a {
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
cursor: pointer;
transition: background-color 0.3s;
user-select: none;
}

/* Icon style */
#vertical-nav a i {
font-size: 1.5rem;       /* 1.5em → rem */
color: #444;
padding-bottom: 0.5rem;  /* 0.5em → rem */
}

#vertical-nav span {
text-transform: uppercase;
font-size: 0.7rem;       /* 0.7em → rem */
text-align: center;
user-select: none;
}

/* Hover effect */
#vertical-nav a:hover i:hover,
#vertical-nav a.active i {
color: var(--secondary-color) !important;
}

.nav-option-selected .nav-icon {
    color: var(--secondary-color) !important;
}

/* Overlay background */
.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.95);
    z-index: 1000;
    overflow-y: auto;
}

/* Overlay content (desktop defaults) */
.overlay-contents {
    position: relative; /* ✅ always anchor close button */
    background-color: #000;
    padding: 1.5em;
    border-radius: 0.5em;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 1000px) {
    .overlay-contents {
        width: 100%;
        height: 100%;
        border: none;           /* ✅ remove border */
        border-radius: 0;       /* ✅ remove rounding */
        max-width: none;
        max-height: none;
        padding: 1em;           /* smaller padding for mobile */
    }
}



/* Wider scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #121212; /* dark muted track */
}

/* Scrollbar thumb (draggable) */
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 221, 0, 0.3); /* subtle yellow */
    border-radius: 8px;
    border: 3px solid #121212; /* spacing from track */
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 221, 0, 0.5); /* slightly more visible on hover */
}

/* --- Mobile Responsive --- */
@media (max-width: 1000px) {

    #page-head{
        height: 5rem;
    }

    .site-logo img{
        height: 100%;
    }

    .title h1{
        font-size: 1.5rem !important;
    }

    .title h2{
        font-size: 0.82rem !important
    }


    #page-navigation{
        height: auto !important; /* height adapts to content */
        width: 100%;
    }

    #app-container {
    flex-direction: column;
    }

    #app-nav {
    width: 100%;
    height: auto;
    position: relative;
    }

    #vertical-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: space-around;
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    }

    #vertical-nav a {
    flex-direction: column;
    font-size: 1.8rem;
    }

    #vertical-nav a i {
    font-size: 1.8rem;
    padding-bottom: 0.25rem;
    }

    #vertical-nav span {
    font-size: 0.8rem;
    }

    #page-body {
    padding: 1rem;
    }
}

