/**
 * FIRESIDE AVIATORS ASSOCIATION - MAIN STYLESHEET
 * 
 * DESIGN GUIDE FOR THE NEXT MAINTAINER:
 * -------------------------------------
 * This file controls the visual look of the website. 
 * - Global colors and layout wrappers are at the top.
 * - The Masthead (header banner) and Content columns follow.
 * - Navigation button styles are near the bottom.
 * - Lightbox photo overlay styles are provided.
 * - Mobile responsiveness rules are at the very bottom.
 */

/* ==========================================================
   1. GLOBAL STYLES
   ========================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: orange;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

h1 {
  margin-top: 0px;
  padding-top: 0px;
}

#wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto; 
  overflow-x: hidden;
}


/* ==========================================================
   2. MASTHEAD / HEADER AREA
   ========================================================== */
#masthead {
  display: table;
  margin: 0px;
  padding: 0px;
  height: 140px;
  width: 100%;
  background-color: brown;
  text-align: center;
}

#masthead-left {
  display: table-cell;
  margin: 6px;
  padding-left: 20px;
  margin-top: 11px;
  width: 200px;
  height: 100px;
  position: relative; 
  vertical-align: middle;
}

#masthead-left img {
  max-width: 100%;
  height: auto;
}

#masthead-center {
  display: table-cell;
  margin: 0px;
  padding: 0 20px;
  height: 100px;
  vertical-align: middle;
  text-align: center;
  color: white;
}

#masthead-right {
  display: table-cell;
  margin: 6px;
  margin-top: 11px;
  padding-right: 20px;
  width: 200px;
  height: 100px;
  position: relative;
}

#masthead-right img {
  max-width: 100%;
  height: auto;
}


/* ==========================================================
   3. MAIN CONTENT AREA & SIDEBAR COLUMNS
   ========================================================== */
.content {
  display: table;
  margin: 0px;
  padding: 0px;
  width: 100%;
}

.content-row {
  display: table-row;
}

.content-navbar {
  display: table-cell;
  background-color: brown;  
  margin: 0px; 
  padding: 0px;
  width: 210px;
  vertical-align: top;
}

.content-data {
  display: table-cell;
  margin: 0px;
  padding: 20px;
  padding-top: 10px;
  text-align: justify;
  background-color: orange; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content a {
  text-decoration: none;
}


/* ==========================================================
   4. TABLES & IMAGES (FOR CONTENT PAGES)
   ========================================================== */
.equipment-table {
  display: table;
  width: 100%;
}
.equipment-row {
  display: table-row;
}
.equipment-cell {
  display: table-cell;
  width: 50%;
  padding-right: 20px;
}

.contact {
  display: table;
}
.contact-row {
  display: table-row;
}
.contact-cell-label {
  display: table-cell;
  text-align: right; 
  padding-right: 10px;
}
.contact-cell-label p {
  margin: 5px;
}
.contact-cell-input {
  display: table-cell;
}
.contact-error {
  font-weight: bold; 
  color: red; 
  background-color: yellow; 
  margin: 5px 0;
}

div.clearboth { clear: both; }

div.picture-container {
  clear: both;
  margin: 1em auto;
  margin-bottom: 20px;
  width: 100%;
  text-align: justify;
}

div.picture-center {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center; 
}

div.picture-left {
  float: left;
  max-width: 304px;
  margin-right: 15px;
  margin-bottom: 10px;
}

div.picture-right {
  float: right;
  max-width: 304px;
  margin-left: 15px;
  margin-bottom: 10px;
}

.picture-center img, .picture-left img, .picture-right img {
  max-width: 100%;
  height: auto;
}

.picture-center p, .picture-left p, .picture-right p {
  margin-top: 0px; 
}


/* ==========================================================
   5. FOOTER AREA
   ========================================================== */
#footer {
  display: table;
  width: 100%;
  height: 40px;
  background-color: brown;
  color: white;
  margin-top: 0px;
}

#footer-left {
  display: table-cell;
  width: 50%;
  vertical-align: middle;
  padding-left: 20px;
}

#footer-middle {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding-right: 20px;
}


/* ==========================================================
   6. NAVIGATION BUTTON STYLING
   ========================================================== */
.clear {
  overflow: hidden;
  width: 100%;
}

a.button {
  background: transparent url('images/bg_button_a-transparent.gif') no-repeat scroll top right;
  color: #444;
  display: block;
  font: normal 16px arial, sans-serif;
  height: 24px;
  width: 210px;
  text-align: center;
  margin-right: 0px;
  padding-right: 11px;
  text-decoration: none;
}

a.button span {
  background: transparent url('images/bg_button_span-transparent.gif') no-repeat;
  display: block;
  line-height: 14px;
  padding: 5px 0 5px 18px;
}

a.button:active {
  background-position: bottom right;
  color: #000;
  outline: none;
}

a.button:active span {
  background-position: bottom left;
  padding: 6px 0 4px 18px;
} 

.centered-table {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================
   8. LIGHTBOX OVERLAY (Photo Gallery Popup)
   ========================================================== */
#lightbox {
  display: none; /* Hidden by default until JavaScript shows it */
  position: fixed; /* Floats over the rest of the page */
  z-index: 9999; /* Ensures it is always on top */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* 85% opaque black background */
  align-items: center; /* Centers the image vertically */
  justify-content: center; /* Centers the image horizontally */
  cursor: pointer; /* Turns the mouse into a pointer to indicate click-to-close */
}

#lightbox img {
  max-width: 90%; /* Leaves a small margin on the sides */
  max-height: 90vh; /* Leaves a small margin on top/bottom so it fits on screen */
  border: 4px solid white; /* Adds a nice polaroid-style white frame */
  box-shadow: 0px 0px 20px black; /* Soft drop shadow */
  border-radius: 4px;
}


/* ==========================================================
   7. MOBILE RESPONSIVE RULES (Screens under 768px wide)
   ========================================================== */
@media screen and (max-width: 768px) {
  body, html {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  #wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  #masthead {
    display: block;
    height: auto;
    width: 100%;
  }
  
  #masthead-left, #masthead-center, #masthead-right {
    display: block;
    width: 100% !important;
    height: auto;
    padding: 10px 0;
    text-align: center;
  }
  
  .content, .content-row, .content-navbar, .content-data {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .content-navbar {
    padding: 15px 0;
    text-align: center;
  }

  a.button {
    width: 90% !important;
    max-width: 240px;
    margin: 6px auto; 
  }

  .content-data {
    padding: 15px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  div.picture-left, div.picture-right {
    float: none;
    max-width: 100%;
    margin: 10px auto;
  }

  #footer {
    display: block;
    height: auto;
    width: 100% !important;
  }
  
  #footer-left, #footer-middle {
    display: block;
    width: 100% !important;
    text-align: center;
    padding: 10px 0;
  }
}