/* === Reset & Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #3f415a;
    color: #222;
    min-height: 100vh;
}

/* === Main Container === */
#mainContainer {
    background-color: #3f415a;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* === Top Bar === */
#topBar {
    background: #2b2d42;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Title + Hamburger Row */
#topRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

#siteTitle {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    gap: 10px;
}

#siteTitle img#siteIcon {
    height: 3.0rem;
    width: auto;
}


#hamburgerToggle {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    color: white;
}

/* === Navigation Buttons === */
.navButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background: #2b2d42;
}

.navButtons button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.navButtons button:hover {
    background: #3f415a;
}

/* === Main Screen Content === */
#screenContainer {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgb(243, 106, 106);
}


.screenPage {
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;  /* adds space between children */
}

html {
  overflow-y: scroll;
}


/* submenu */

.submenu {
  position: sticky;
  top: 50px; /* match your nav height */
  background: #d8ebff;       /* light blue strip */
  padding: 4px 0;            /* much thinner padding */
  border-bottom: 1px solid #bbb;
  display: flex;
  justify-content: center;   /* center the links */
  gap: 20px;                 /* space between links */
  z-index: 10;
}

/* Links look like simple text, no background boxes */
.submenu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 2px 6px;          /* minimal padding for click area */
  border-radius: 4px;
  transition: color 0.2s ease;
}

/* Hover = just change color slightly */
.submenu a:hover {
  color: #005fa3;
}

/* Active link = blue and bold underline */
.submenu a.active {
  color: #0077cc;
  font-weight: bold;
  border-bottom: 2px solid #0077cc;
}

.hidden {
  display: none !important;
}




/* === Mobile Styles === */
@media (max-width: 930px) {


    #topBar {
        flex-direction: column;
    }


    #hamburgerToggle {
        display: block;
    }

    .navButtons {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2b2d42;
        padding: 6px 0;
    }

    .navButtons.show {
        display: flex;
    }

    .navButtons button {
        width: 100%;
        text-align: left;
        padding: 10px 20px;
    }
}