/* ###### Browser-specific Styles ###### */

/* For IE & Mozilla-based browsers: */

.LHS {
  margin-left: 1.5mm;
  margin-right: 1.5mm;
  float: left;
  clear: left;
}

.RHS {
  margin-right: 1.5mm;
  margin-left: 1.5mm;
  float: right;
  clear: right;
}

/* For Mozilla-based (CSS2-fully complaint) browsers only: */

[class~="LHS"] {
  margin-left: 4mm;
  margin-right: 4mm;
}

[class~="RHS"] {
  margin-right: 4mm;
  margin-left: 4mm;
}


/* ###### Body Text ###### */

body {
  background-color: white;
  color: black;
  font-family: verdana, tahoma, helvetica, arial, sans-serif;
  font-size: 90%;
  margin: 0;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

h1, h2, h3, h4 {
  font-family: "trebuchet ms", tahoma, sans-serif;
}

h1 {
  font-weight: bold;
  font-size: 150%;
  padding-bottom: 0.5ex;
	text-align: center;
	line-height: 120%;
}

img {
  border: none;
}

q {
  font-family: tahoma, verdana, helvetica, arial, sans-serif;
  font-weight: bold;
  border-style: dotted;
  border-width: 2px;
  margin: 0 1em 1ex 1em;
  padding: 0.5ex 0.5ex 0.5ex 1ex;
  width: 9em;
  float: left;
}

acronym {
  border-bottom-style: dotted;
  border-bottom-width: 1px;
  cursor: help;
}

code {
  font-family: "lucida console", monospace;
  font-size: 90%;
}

dt {
  font-weight: bold;
}

dd {
  padding-bottom: 1.5em;
}

#bodyText {
  text-align: justify;
  line-height: 1.5em;
/*  margin: 10mm 5mm 0 14.5em; */
  margin: 10mm 5mm 0 19.5em;
  padding: 0 1em 1ex .5em;
}

#bodyText p {
  padding-bottom: .02ex;
}

#bodyText a {
  text-decoration: none;
  border-bottom: none;
}

#bodyText a:hover {
  text-decoration: underline;
  /* border-bottom-style: solid;
  border-bottom-width: 1px; */
}

#bodyText .topOfPage {
  font-size: 90%;
  font-weight: bold;
  font-variant: small-caps;
  text-decoration: none;
  border: none;
  padding-left: 1ex;
  padding-right: 1ex;
  float: right;
}

.smallCaps {
  font-variant: small-caps;
}


/* ###### Header ###### */

#header {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  margin-bottom: 5mm;
 /* padding: 0 2.5mm 0 5mm; */
  padding: .1mm 2.5mm 0 5mm;
  background-repeat: no-repeat;
	text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-logo-left,
.header-logo-right {
  height: 150px !important;
  width: auto;
  flex-shrink: 0;
}

.headerTitle * {
  font-size: 150%;
  font-weight: bold;
  text-decoration: none;
}

.menuBar {
  float: left;
  font-weight: bold;
}

.locBar {
  float: right;
}

.menuBar *, .locBar * {
  text-decoration: none;
  font-weight: bold;
  padding-right: 1ex;
}

.menuBar a:hover, .locBar a:hover {
  text-decoration: underline;
}


/* ###### Side Box ###### */

.sideBox {
  border-style: solid none none none;
  border-width: 2px 0 2px 0;
  /* width: 16em; */
  width: 20em; 
  margin-top: 5mm;
	font-size: 80%;
}

.sideBox div {
  font-weight: bold;
  border-bottom-style: dashed;
  border-bottom-width: 1px;
  padding: 0.5ex 0.5em 0.5ex 0.75em;
}

.sideBox a, .sideBox span {
  color: black;
  text-decoration: none;
  display: block;
  padding: .2ex 0.5em .2ex 0.75em;
}

.sideBox a:hover {
  text-decoration: underline;
}

.sideBox .thisPage {
  font-weight: bold;
}


/* ###### Footer ###### */

#footer {
  padding-top: 0.75ex;
  padding-bottom: 0.75ex;
  clear: left;
}

#footer div {
  font-size: 85%;
  line-height: 1.25em;
  text-align: right;
  padding-right: 3mm;
}

#footer a:hover {
  text-decoration: none;
}

.footerLHS {
  float: left;
  clear: left;
  padding-left: 3mm;
}


/* ###### General Color Scheme ###### */

h1, h2, h3, h4, q, #header *, #footer *, .headerTitle, .sideBox div, .topOfPage
{ 
    /* Text Color: */
    /* color: green; */
		       
    color: DodgerBlue; 
}

#bodyText a {
  color: red;
  border-bottom-color: red;
}

#bodyText a:visited {
  /* color: green; */
    color: DodgerBlue; 
}

h1, q,  #header, .sideBox, .sideBox div {
    /* Border Color: */
    /* border-color: green; */
    border-color: DodgerBlue;
}

#header, .sideBox div, .sideBox .thisPage {
    /* Background Color (darker): */
    /* background-color: #f0fff0; */
    background-color: #ECF6F7;
}

q, .sideBox a, .sideBox span {
    /* Background Color (lighter): */
    /* background-color: #fafcff; */
    background-color: #ECF6F7;
}


/* ###### Special Colors ###### */

acronym {
  color: blue;
  border-bottom-color: blue;
}

#footer {
  background-color: white;
}

/* ###### Responsive Design ###### */

/* Box-sizing for better layout control */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Sidebar base styles */
#sidebar {
  position: relative;
}

/* Mobile menu button - hidden by default, shown on mobile */
#mobile-menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: DodgerBlue;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Backdrop overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open::before {
  opacity: 1;
  visibility: visible;
}

/* Desktop styles - keep original layout */
@media (min-width: 769px) {
  #mobile-menu-btn {
    display: none !important;
  }
  
  #sidebar {
    display: block;
  }
  
  #bodyText {
    margin: 10mm 5mm 0 19.5em;
  }
}

/* Tablet and mobile styles */
@media (max-width: 768px) {
  /* Show mobile menu button */
  #mobile-menu-btn {
    display: flex !important;
  }
  
  /* Hide sidebar by default, slide in from left when shown */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    background: #ECF6F7;
    z-index: 1000;
    padding: 70px 0 20px 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }
  
  #sidebar.show {
    transform: translateX(0);
  }
  
  /* Adjust sidebar boxes for mobile */
  #sidebar .sideBox {
    width: 100%;
    margin: 8px 0;
    float: none !important;
    clear: both;
  }
  
  #sidebar .sideBox.LHS {
    margin-left: 10px;
    margin-right: 10px;
    float: none !important;
  }
  
  /* Adjust body text for mobile */
  #bodyText {
    margin: 10mm 15px 0 15px;
    padding: 0 10px 1ex 10px;
    text-align: left;
  }
  
  /* Adjust header for mobile */
  #header {
    padding: 5px 15px 5px 65px;
    margin-bottom: 5mm;
    gap: 10px;
  }
  
  /* Hide left logo on mobile to save space */
  .header-logo-left {
    display: none !important;
  }
  
  .header-logo-right {
    height: 80px !important;
    width: auto;
    flex-shrink: 0;
  }
  
  .headerTitle p {
    font-size: 120%;
    line-height: 110%;
  }
  
  /* Make headings more compact on mobile */
  h1 {
    font-size: 120%;
    line-height: 110%;
  }
  
  h3 {
    font-size: 105%;
  }
  
  /* Adjust footer for mobile */
  #footer div {
    text-align: center;
    padding: 0 15px;
  }
  
  /* Make images responsive */
  img:not(.header-logo-left):not(.header-logo-right) {
    max-width: 100%;
    height: auto;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  #sidebar {
    width: 260px;
    max-width: 85%;
  }
  
  #bodyText {
    margin: 8mm 10px 0 10px;
    font-size: 95%;
  }
  
  .headerTitle p {
    font-size: 110%;
  }
}
