/* color themes. */

.color-theme-l5 {color:#000 !important; background-color:#f0f8ec !important}
.color-theme-l4 {color:#000 !important; background-color:#cee9c1 !important}
.color-theme-l3 {color:#000 !important; background-color:#9dd283 !important}
.color-theme-l2 {color:#fff !important; background-color:#6cbc44 !important}
.color-theme-l1 {color:#fff !important; background-color:#487e2d !important}
.color-theme-d1 {color:#fff !important; background-color:#213915 !important}
.color-theme-d2 {color:#fff !important; background-color:#1d3312 !important}
.color-theme-d3 {color:#fff !important; background-color:#1a2d10 !important}
.color-theme-d4 {color:#fff !important; background-color:#16260e !important}
.color-theme-d5 {color:#fbf8ea !important; background-color:#12200b !important}

/* style for all pages */

* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

figcaption {
  font-size: 15px;
}

/*
  the body of all pages is a flex container in the column direction.
*/

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

header {
  margin-bottom: 50px;
}

figcaption {
    text-align:center;
    padding-top:10px;
}

hr {
   width:90%;
   max-width:1200px;
}

/* for screens wider than 800px, we display the wide image
and hide the square image in fig_x_1 containers. */

.x1_img_wide {display:block;}
.x1_img_sq {display:none;}


/* Everthing in the body of pages, besides header and footer, is a row of one or two divs.  */


.header_box, .footer_box {
  display:flex;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 0 auto;
}

.fig_x_1, .fig_x_2, .bike_page_top, .bike_description, .show_and_tell, .tell_and_show,
  .brand_page_top, .bike_showcase, .post_page_top, .post_page_text, .sale_page_top,
  .sale_bike_info, .faq_page_top, .qa_list {

  display:flex;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 20px auto;

}

.bike_page_top, .brand_page_top, .post_page_top, .sale_page_top, .sale_bike_info, .faq_page_top, .qa_list {
  flex-direction: column;
  justify-content: flex-start;
}

.post_page_top > .post_headline {
    font-size: 30px;
}

.post_page_top > .post_summary {
  width: 50%;
  padding-top: 20px;
  padding-bottom: 0px;
}

.post_page_text {
  padding: 0 00px 0 0px;
}

.sale_page_top > .headline {
    font-size: 40px;
}

.sale_page_top > .summary {
  font-size: 18px;
  width: 50%;
  padding-top: 20px;
  padding-bottom: 0px;
}

.sale_bike_info > .bike_title {
  font-size: 18px;
  font-weight: bold;
}

.sale_bike_info > .bike_price, .bike_options {
  font-size: 16px;
  font-weight: bold;
}

.sale_bike_info > .bike_summary {
  line-height: 1.5;
  margin-top: 15px;
}


.bike_page_top > .bike_model {
    font-size: 30px;
}

.bike_page_top > .bike_brand {
    font-size: 20px;
}

.bike_page_top > .bike_summary {
  width: 50%;
  padding-top: 30px;
  padding-bottom: 30px;

}

.bike_description {
  padding: 0 20px 0 20px;
}

.faq_page_top > .headline{
    font-size: 40px;
}

.faq_page_top > .summary {
  font-size: 18px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.qa_list > .question {
  font-weight: bold;
  margin-bottom: 10px;
}

.qa_list > .answer {
}

/* Service Page specifics.  */

.appt_btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  max-width: 200px;
  min-height: 50px;
}


.brand_page_top > .brand_name {
  font-size: 30px;
}

.brand_page_top > .brand_description {

  width: 50%;
  padding-top: 30px;
  padding-bottom: 30px;

}

.bike_showcase {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bike_showcase > .bike {
  width: 100%;
  max-width: 380px;
  flex: 0 0 30%;
  font-size: smaller;
  text-align: center;

}

.header_box {
  padding-top: 10px;
  padding-bottom: 10px;
}

footer {
  border-radius: 3px;
}

.header_box, .footer_box, .fig_x_2 {
  flex-direction: row;
  justify-content: space-between;
}

.footer_box {
  flex-wrap: wrap;
  padding: 30px 0px 30px 0px;
}

.fig_x_1 {
  justify-content: center;
}

.fig_x_1 > figure {
  flex: auto;
    margin: 0px 0px 30px 0px;
}

.fig_x_2 > .fig1 {
  flex: auto;
  margin: 0px 15px 30px 0px;
}

.fig_x_2 > .fig2, .sale_bike_desc {
    flex: auto;
    margin: 0px 0px 30px 15px;
}

.fig_x_2 > .sale_bike_img {
  flex: 0 0 400px;
 }

.fig_x_2 > .sale_bike_desc {

}

.show_and_tell {
  align-items: center;
}

.show_and_tell > .show {
  flex: auto;
  max-width: 50%;
  margin: 20px 15px 30px 0px;
}

.show_and_tell > .tell {
  flex: auto;
  max-width: 50%;
  margin: 20px 0px 30px 15px;
}

#logo, #nav_btn, #search_box {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Amatic SC', cursive;
  font-size: 30px;
  background-color: inherit;
  color: inherit;
}

/* hardcode the bars margin so that it lines up with everything else*/
#nav_btn {
  margin-left: -10px;

}

/* when the screen is less than 800px, use square images, change fig_x_2 from
row to column, shrink font in header, and */

@media only screen and (max-width: 800px) {

  figcaption {
    font-size: 14px;
  }


  .x1_img_wide {display: none;}
  .x1_img_sq {display: block;}

  .header_box, .fig_x_1, .fig_x_2, .footer_box, .bike_page_top, .brand_page_top, .bike_showcase, .post_page_top,
  .sale_page_top, .sale_bike_info, .faq_page_top, .qa_list
   {
    max-width: 800px;
  }

  #nav_btn, #logo, #search_box {
    font-size: 30px;
  }

  .fig_x_2 {
    flex-direction: column;
  }

  .fig_x_2 > .fig1, .fig2, .sale_bike_img, .sale_bike_desc {
    margin: 0px 0px 30px 0px;
  }

  .fig_x_2 > .sale_bike_img {
    flex: auto;
    width:100%;
  }

  .bike_showcase {
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .bike_showcase > .bike {
    width: 100%;
    max-width: 600px;
    flex: auto;

  }

  .post_page_top > .post_summary {
    width: 100%;
  }

  .sale_page_top > .summary {
    width:100%;
  }




}


.footer_box > .visit_info, .contact_info, .social_media {
  padding: 5px;
}

@media only screen and (max-width: 500px) {
  .footer_box {
    flex-direction: column;
  }
}


.overlay {
height: 0;
width: 100%;
position: fixed;
z-index: 1;
top: 0;
left: 0;
color: #f0f8ec;
background-color: #213915;
overflow-x: hidden;
overflow-y: hidden;
display: flex;
flex-direction: column;
transition: 0.5s;
}

.overlay-content {
width: 90%;
max-width: 1200px;
margin: 0px auto 0px auto;
display: flex;
flex-direction: row;
top: 30%;
text-align: left;
}

.overlay a {
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
}
*/
.overlay a:hover, .overlay a:focus {
color: #f0f8ec;
}


.overlay_nav_lev1 {
display: flex;
flex-direction: column;
justify-content: flex-start;

}

.overlay_nav_lev2 {
display: flex;
flex-direction: column;
justify-content: flex-start;
margin: 10px 0px 10px 20px;
}

.overlay_nav_lev1 > button {

margin: 5px 0px 5px 0px;
width: 200px;
border: none;
outline: none;
text-align: left;
text-decoration: none;
font-size: 20px;
color: #f0f8ec;
background-color: #213915;
cursor: pointer;

}

.overlay_nav_lev2 > a {

margin: 5px 0px 5px 0px;
width: 200px;
border: none;
outline: none;
text-align: left;
text-decoration: none;
font-size: 16px;
color: #f0f8ec;
background-color: #213915;
cursor: pointer;

}

.overlay_nav_lev2 > button {
margin: 4px 2px;
width: 200px;
border: none;
outline: none;
text-align: left;
text-decoration: none;
font-size: 16px;
color: #f0f8ec;
background-color: #213915;
cursor: pointer;

}

@media screen and (max-height: 450px) {
.overlay a {font-size: 20px}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
}
