/*
==================================================================
Optimized CSS for NVV Website
Features: Modern Flexibility, Mobile Responsiveness, Enhanced Contrast
==================================================================
*/

body {
  font-family: Verdana, Helvetica, Arial, sans-serif;
  background-color: #dcdcdc;
  line-height: 1.5; /* Smoother readability */
  padding: 0;
  margin: 0;
  color: #2b2b2b; /* Softer text color than harsh pure black */
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 1.8em;
  color: white;
  padding: 1.5em 0.5em 0.5em 0.5em;
  margin: 0;
  background: LightSkyBlue url(backgrounds/header-bg.jpg) repeat-y right bottom;
}

h2 {
  color: #0d47a1; /* High-contrast navy */
  font-size: 1.4em;
  font-weight: bold;
  padding-top: 15px;
}

h3 {
  color: #0d47a1;
  font-size: 1.25em;
  font-weight: bold;
  padding-top: 15px;
}

h4 {
  color: #b71c1c; /* Optimized high-visibility red */
  font-size: 1.1em;
  font-weight: normal;
  padding-top: 15px;
}

p {
  font-size: 0.95em;
  color: #1a237e; /* Readable darker blue for modern monitors */
}

/* Base Link Formatting */
a {
  font-weight: bold;
  text-decoration: underline;
  transition: all 0.2s ease-in-out;
}

a:link {
  color: #0d47a1;
}

a:visited {
  color: #1b5e20; /* High-contrast green */
}

a:hover {
  text-decoration: none;
  color: white;
  background-color: #0d47a1;
}

a:active {
  color: #00e5ff;
  background-color: #0d47a1;
}

#header {
  border-top: 3px solid #7da5d8;
  width: 100%;
}

#tagline p {
  font-style: italic;
  font-family: Georgia, Times, serif;
  border-top: 3px solid #7da5d8;
  border-bottom: 3px solid #7da5d8;
  padding: 0.4em 0.8em;
  margin: 0;
  background: #bed8f3 url(backgrounds/tagline-fade.jpg) repeat-y right;
  color: #1a237e;
}

/* Modern Layout Core Structures (Replaces Rigid Absolute Positions) */
#bodycontent {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

#navigation {
  background: #7da5d8 url(backgrounds/nav-bg.jpg) no-repeat top left;
  padding: 15px 0;
}

#navigation ul li a {

    color: yellow;
    font-weight: bold;

}

#navigation ul {
  color: yellow;
  font-weight: bold;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#navigation li a {
    color: yellow;
    font-weight: bold;

  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #0d47a1;
  border-radius: 4px;
  text-decoration: none;
}

#navigation li a:hover {
  background: #0d47a1;
  color: blue;
}

/* Feature Images */
img.feature {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

/* Tables Custom Classes */
table.monthlycost, table.events, table.contacts {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow-x: auto;
  display: block;
}

table.monthlycost th, table.monthlycost td,
table.events th, table.events td,
table.contacts th, table.contacts td {
  padding: 10px;
  border: 1px solid #000066;
  text-align: left;
}

table.monthlycost th, table.contacts th {
  background: #1b5e20;
  color: white;
  font-size: 0.9em;
}

table.events th {
  background: #241374 url(backgrounds/header-bg.jpg);
  color: white;
  font-size: 0.9em;
}

table.monthlycost td, table.events td, table.contacts td {
  background: #e2edff;
  color: #000066;
  font-size: 0.95em;
}

/* Legacy Styling Overrides */
em { text-transform: uppercase; }
.fun { color: #006600; font-family: Georgia, Times, serif; letter-spacing: 0.05em; }
blockquote.fun { font-style: italic; }

/* Clean Form Handling */
form.contact fieldset { border: 2px solid #0d47a1; padding: 15px; margin-bottom: 15px; }  
form.contact legend { font-weight: bold; color: #0d47a1; padding: 0 10px; }
form.contact label { font-weight: bold; color: #1a237e; display: block; margin-top: 10px; }
form.contact label.fixedwidth { float: none; width: auto; display: block; }
form.contact .buttonarea { padding: 10px; background-color: #0066FF; text-align: center; }
form.contact .buttonarea input { background: #0d47a1; color: white; font-weight: bold; padding: 8px 16px; border: none; cursor: pointer; }

/* Responsive Footer */
#footer {
  text-align: center;
  padding: 20px;
  border-top: 1px dotted #AAAAAA;
  background-color: #dcdcdc;
  color: #626262;
  font-size: 0.8em;
  margin-top: 40px;
}

/* ==================================================================
   RESPONSIVE DESIGN MEDIA QUERIES (DESKTOP LAYOUT SHIFTS)
   ================================================================== */
@media screen and (min-width: 768px) {
  /* Wraps navigation and body side-by-side on wide desktop screens */
  #navigation {
    width: 200px;
    float: left;
    min-height: 100vh;
    padding-top: 40px;
  }
  
  #navigation ul {
    flex-direction: column;
    justify-content: start;
    gap: 0;
  }
  
  #navigation li a {
    display: block;
    background: transparent;
    border-radius: 0;
    padding: 10px 20px;
    color: #2b2b2b;
  }
  
  #navigation li a:hover {
    background: #0d47a1;
    color: white;
  }

  #bodycontent {
    margin-left: 220px;
    padding: 30px;
  }

  img.feature {
    float: right;
    margin: 10px 0 20px 20px;
  }
  
  table.monthlycost, table.events, table.contacts {
    display: table; /* Turns standard table formatting back on when wide enough */
  }
}