/* Stylesheet for River City Fencing */

*{
  box-sizing: border-box;
}

body{
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-weight: 400;

  background-repeat: no-repeat;
  background-position: 0 149px;
  background-attachment: fixed;
  background-size: contain;
  margin: 0;
}
body#home{
  background-image: url(../images/homepage_bg.jpg);
}
body#about{
  background-image: url(../images/about_bg.jpg);
}
body#post_setting{
  background-image: url(../images/post_setting_bg.jpg);
}
body#gallery{
  background-image: url(../images/gallery_bg.jpg);
}
body#contact{
  background-image: url(../images/contact_bg.jpg);
}

#wrapper{
  width: 100%;
  position: relative;
}

header{
  height: 149px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  z-index: 10;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 51;
  background-color: #fff;
}
#inner_header{
  max-width: 960px;
  position: relative;
  margin: 0 auto;
}

#logo{
  width: 135px;
  height: 107px;
  position: absolute;
  left: 0;
  top: 23px;
}

#tagline{
  top: 10px;
  right: 0;
  position: absolute;
  font-family: "Satisfy", sans-serif;
  font-weight: 400;
  font-size: 42px;
  text-align: right;
}
#cta{
  position: absolute;
  top: 105px;
  right: 0;
  text-align: right;
  font-weight: bold;
  color: #6568b0;
  font-size: 22px; 
}
nav{
  background-color:rgba(255,255,255,0.75);
  height: 45px;
  z-index: 9;
  position: fixed;
  width: 100vw;
  top: 149px;
  z-index: 50;
}

#tagline2{

  position: relative;
  margin-top: 195px;
  height: 359px;
  padding-top: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}
#tagline2 h1{
  font-size: 36px;
  text-shadow: 0 8px 4px rgba(0,0,0,.88);
  text-align: center;
  color: #fff;
  font-weight: 500;
}

main{
  background-color: #fff;
  z-index: 40;
  min-height: 600px;
/*  padding-top: 30px;*/
}

main img{
  border-radius: 5px;
  border: 5px solid #6568b0;
  border: 5px solid #6568b0;
  box-shadow: 0 15px 29px rgba(0,0,0,0.75);
  max-width: 100%;
  height: auto;
}

main .inner_main{
  max-width: 960px;
  margin: 0 auto;
  padding-top: 30px;
}

main .inner_main p{
  line-height: 1.6;
  text-align: justify;
}

main .inner_main h3{
  border-bottom: 2px solid #6568b0;
  border-left: 4px solid #6568b0;
  padding-left: 6px;
}
main .inner_main h2{
  font-style: italic;
}

main .inner_main blockquote{
  font-style: italic;
  margin-left: 1.5em;
}

main div#instructions p img{
  border: none;
  box-shadow: none;
}

#post_setting main .inner_main table{
  background-color: #eef;
  border: 2px solid #6568b0;
    border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#post_setting main .inner_main table td,
#post_setting main .inner_main table th{
  padding: 6px 16px;
  border: 1px solid #6568b0;
}

#post_setting main .inner_main table th{
  text-align: left;
}

footer{
  background-color: #6568b0;
  color: #fff;
  clear: both;
}

/* Gallery Styles */

div#picbox{
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
div#picbox a{
  display: flex;
  width: 125px;
  height:125px;
  border: 2px solid #aaa;
  margin:6px;
  align-items: center;
  justify-content: center;
  background-color:#eee;
  border-radius: 8px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
  transition: all .2s ease-in-out;
}
div#picbox a img{
  box-shadow: 0 7px 10px rgba(0,0,0,0.4);
  border-width: 3px;
  transition: all .2s ease-in-out;
}
div#picbox a:hover{
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  background-color: #eff;
  border-color: #000;
  background: linear-gradient(#eff, #cdd);
}
div#picbox a:hover img{
/*  box-shadow: none;*/
  border-color: #fff;
}

/* Media Queries */

/* change background image */
@media all and (max-width: 1425px){
  body{
    background-size: auto 405px;
  }
}

/* Layout change under 960px */
@media all and (max-width: 960px){
  #logo{
    left: 12px;
  }
  #tagline{
    right: 12px;
  }
  #cta{
    right: 12px;
  }
  #tagline2 h1{
    font-size: 4vw;
    white-space: nowrap;
  }
  main{
    padding-left: 12px;
    padding-right: 12px;
    
  }
  footer .inner_footer{
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* "desktop" (and legacy ipad) */
@media all and (min-width: 768px){
  #menubutton{
    display: none;
  }
  #cta a[href^=tel]{
    pointer-events: none;
    color: inherit;
    cursor: default;
    text-decoration: none;
  }
  nav ul{
    max-width: 960px;
    margin:0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    flex-flow: row wrap;
/*    background-color: rgba(151,144,157,.34);*/
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 100%;
/*    margin-right: 14px;*/
  }
  nav ul li{
    list-style-type: none;
    display: inline-block;
    justify-content: space-evenly;
    flex-grow: 1;
  }
  nav ul li a{
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    transition: all .2s ease-in-out;
    font-family: Poppins, Arial, sans-serif;
  }
  nav ul li a:hover{
    color: #6568b0;
    text-shadow: 0 4px 6px rgba(0,0,0,0.8);
    transform: scale(1.2);
  }
  
    /* CSS for active buttons on pages */
  body#home nav ul#navlist li a.nav_one,
  body#about nav ul#navlist li a.nav_two,
  body#post_setting nav ul#navlist li a.nav_three,
  body#gallery nav ul#navlist li a.nav_four,
  body#contact nav ul#navlist li a.nav_five{
/*     border-bottom: 2px solid #6568b0;*/
    font-weight: 700;
  }
  
#userinfo{
/*  border: 1px solid rgba(136, 99, 39, 0.4);*/
  background-color: #ccc;
  padding: 6px;
  border-radius: 5px;
  right: 14px;
  top: 65px;
  position: absolute;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  color: #000;
}
.float_left{
    float: left;
    margin-right: 44px;
    margin-bottom: 25px;
  }
  
.float_right{
    float: right;
    margin-left: 44px;
    margin-bottom: 25px;
  }
  footer{
/*    height: 116px;*/
    padding-bottom: 15px;
  }
  footer .inner_footer{
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    height: 116px;
    padding-top:15px;
    
  }
  footer .inner_footer .col1,
  footer .inner_footer .col2,
  footer .inner_footer .col3{
    flex-grow: 1;
    flex-basis: 0;
/*    padding-bottom: 15px;*/
  }
  footer .inner_footer .col1 p{
    margin-top: 0;
  }
  footer .inner_footer .col2{
    font-size: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  footer .inner_footer .col3{
    text-align: right;
  }
  footer .inner_footer .col3 img{
    margin-right: 10px;
  }
}

/* Mobile devices under 768px */
@media all and (max-width: 767px){
  body{
    background-position: 0 79px;
    background-size: 864px 250px;
  }
  header{
    height: 78px;
    width: 100%;
  }
  #inner_header{
    height: 78px;
  }
  #logo{
    width: 85px;
    height: 67px;
    top: 6px;
    left: 4px;
  }
  #tagline{
    font-size: 4.5vw;
    top: 2px;
  }
  #tagline2{
    margin-top: 58px;
    height: 250px;
  }
  #cta{
    font-size: 2.5vw;
    top: initial;
    bottom: 1px;
  }
  #cta a[href^=tel]{
    text-decoration: none;
    color: inherit;
    cursor: default;
    pointer-events: auto;
  }
  #userinfo{
/*  border: 1px solid rgba(136, 99, 39, 0.4);*/
        background-color: #ccc;
        padding: 3px;
        font-size: 12px;
        border-radius: 5px;
        right: 14px;
        top: 28px;
        position: absolute;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
        color: #000;
}
  #menubutton{
    width: 45px;
    height: 35px;
    position: fixed;
    top: 90px;
    left: 10px;
    z-index: 100;

    box-sizing: content-box;
  }
  #menubutton a{
    
    display: block;
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 7px;
    background-color: #6568b0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.8);
    transition: all .3s ease-in-out;
/*    background-color:rgba(125,125,125,0.7);*/
  }
  #menubutton.active a{
    border-radius: 50%;
  }
  #menubutton span{
    background-color: #fff;
    height: 4px;
    margin-bottom: 7px;
    width: 100%;
    display: block;
    box-shadow: 0 3px 4px #000;
/*    position: absolute;*/
    transform: rotate(0deg) translate(0,0) scale(1,1);
    transition: all .3s ease-in-out;
  }
  #menubutton span#bottombar{
    margin-bottom: 0;
  }
  #menubutton.active span#topbar{
    transform: rotate(-135deg) translate(-7.5px, -8px);
    box-shadow: none;
  }
  #menubutton.active span#middlebar{
    transform: translate(400px,0);
    opacity: 0;
  }
  #menubutton.active span#bottombar{
    transform: rotate(135deg) translate(-7.5px,8.5px);
    box-shadow: none;
  }
  nav{
    top: 78px;
    position: fixed;
    background: rgba(0,0,0,0);
    transition: all .3s ease-in-out;
  }
  nav.active{
    background-color: rgba(0,0,0,1);
  }
  nav ul#navlist{
    background-color: #000;
    margin: 0;
    padding: 0;
    transform: scale(1,0);
    transition: all .3s ease-in-out;
    transform-origin: top;
  }
  nav ul#navlist.active{
    transform: scale(1,1);
  }
  nav ul#navlist li{
    
  }
  nav ul#navlist li a{
    text-decoration: none;
    color: #fff;
    text-align: center;
    display: block;
    font-size: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  main .inner_main{
    padding-top: 1px;
  }
  footer .inner_footer .col1{
    margin-bottom: 20px;
    margin-top: 10px;
    padding-top: 1px;
  }
  footer .inner_footer .col1 p{
    margin-top: .6em;
    margin-bottom: .6em;
    font-size: 12px;
  }
  footer .inner_footer .col2{
    font-size: 12px;
    margin-bottom: 20px;
  }
  footer .inner_footer .col3{
    padding-bottom: 12px;
  }
}
@media all and (max-width: 650px){
  #cta{
    font-size: 3vw;
  }
}

@media all and (max-width: 440px){
  #tagline{
    font-size: 6vw;
  }
  #cta{
    font-size: 4vw;
  }
}

/* Generic classes */
.clear_float{
  clear: both;
}