/*CSS Foundation by Jayden Seric
http://jaydenseric.com/blog/forget-normalize-or-resets-lay-your-own-css-foundation
*/

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    margin: 0;
    font-size: 18px; 
/*this means utilizing pixel based media queries since the font px have been set*/
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure,
ol,
ul {
    margin: 0;
    padding: 0;
}
li {
    display: block;
}
h1,
h2,
h3,
h4 {
    font-size: inherit;
}
a {
    color: inherit;/*
    -webkit-transition: .3s;
    -moz-transition: .3s;
    transition: .3s;*/
}
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/*end css foundation*/


/*fontello styles*/
@font-face {
  font-family: 'workoutbuddy';
  src: url('../fonts/workoutbuddy.eot?12453430');
  src: url('../fonts/workoutbuddy.eot?12453430#iefix') format('embedded-opentype'),
       url('../fonts/workoutbuddy.woff?12453430') format('woff'),
       url('../fonts/workoutbuddy.ttf?12453430') format('truetype'),
       url('../fonts/workoutbuddy.svg?12453430#workoutbuddy') format('svg');
  font-weight: normal;
  font-style: normal;
}
 

[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "workoutbuddy";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
     
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon-menu:before { content: '\e800'; } /* '' */
.icon-floppy:before { content: '\e801'; } /* '' */
.icon-ok:before { content: '\e802'; } /* '' */
.icon-edit:before { content: '\e803'; } /* '' */
.icon-doc-new:before { content: '\e804'; } /* '' */


/* end fontello*/


/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/**
 * For modern browsers
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/** 
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}

html{
 background-color: #3d4f94;
}


body{
    font-family: "Trebuchet MS", sans-serif;
    min-width: 320px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
/*    background-color: white;*/
    letter-spacing: .05em;
}
/*body.location{
  position: relative;
}*/

header{
  background-color: #3d4f94;
}

h2{
    font-family: Verdana, Arial , sans-serif;
    font-size: 2em;
    color: #DF3528;
    text-align: center;
}

header section{
    width: 100%;
    padding:.5em;
    text-align: right
}

header section a{
    color:white;
}

header section a:hover{
color: #b61d1a;
}


#logo{
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
}

#logo h1{
    font-size: 1.5em;
    padding: .7em;
    color:#ECB213;
}


/*navigation styling*/

.no-js a.menu-link{
    display: none;
}

.js a.menu-link {
     float: left;
     display: block;
     padding: 1em;
     background-color:#3d94d7;
     color:white;
     width:100%;
     border-top:#3D4F94 1px solid;
     text-decoration:none;
}

nav[role="navigation"]{
    clear: both;
    -moz-transition:all 0.5s ease-out;
    -webkit-transition:all 0.5s ease-out;
    transition:all 0.5s ease-out;
}

/* basic nav Styles*/
nav ul {
  list-style: none;
  padding-left:0;
}

#menu a {
  text-transform: uppercase;
  text-decoration:none;
  display: block;
  color: white;
  border: none;
  font-size: 1.2em;
  text-align: left;
  color: white; 
  display: block;
  margin-bottom: 1px;
  padding-left: 1em;
  line-height: 2em;
  text-transform: uppercase;
  cursor: pointer;
  background-color:#3D4F94;
  padding-bottom:0.02em;  
}

#menu a:hover{
    background-color:#3d94d7;
}

/* .js class added dynamically by JS. 
.active class is toggled by JS  */

.js nav[role="navigation"]{
    overflow: hidden;
    max-height: 0;
    background-color: #3d94d7;
    }

nav[role="navigation"].active{
    max-height: 30em;
    margin: 0;
    padding: 0;
    border-top: 1px solid #3D4F94;
    background-color: #3d94d7;
}

.home main p, .register main p {
    padding: .5em;
    color:#EAD60C
}


main section{
    margin:0; 
    font-size: 1.3em;
    padding: .4em;
}

main section.aftersignin{
    font-size: .8125em;

}
 
.home main, .register main {
  background: url(../images/fit-man-and-woman6.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
 width: 100%;
display: block;

}

main section a{
    min-height: 45px;
}

main a{
    color: #fff;
    font-weight: bold;
}

main section>div{
text-align: center;
}


form fieldset{
  border: none;
}

form label, 
form input, 
form textarea, 
form select{
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1em;
  line-height: 1.5em;
}

input[type="checkbox"]{
display: inline;
width: auto;
}

form label, legend{
margin: .5em auto;
color: #ff7724;
font-weight: bold;
}

form fieldset{

}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
color: #888;
font-family: "Trebuchet MS", sans-serif
font-style: italic;
font-size: .8em;
border: 2px solid #ff7724;
background: #FBFBFB;
padding-left: 2px;
padding-top: 10px;
}

textarea, select{
  padding-top: 2px;
}

form{
  text-align: center;
  background-color: rgba(255, 255,255,.7);
  border: 2px solid #d43528;
  padding: .5em 1em;
}

form label{
display: block;
}

form input[type="submit"]{
background-color: #EC8214;
text-align: center;
color: #b61d1a;
font-weight: bold;
border-top: solid 2px #F2B87C; 
border-left: solid 2px #F2B87C; 
border-bottom: solid 2px #CE7213;
border-right: solid 2px #CE7213;
margin: 1em auto;
border-radius: 10px;
line-height: 3em;
display: block;
width: 80%;
font-family: Verdana, Arial, sans-serif;
font-size: 1em;
cursor: pointer;
}

section.images{
  text-align: center;
}
.images figure{
  width: 80%;
  margin: 1em auto;
  padding: 1em;
  background-color: #fff;
  border: solid 1px maroon;
}

figcaption a{
  font-size: .75em;
  border-bottom: dotted 1px maroon;
}


.video-container{
  width: 90%;
  text-align: center;
  margin: 0 auto;
  max-width: 600px
}

    .video{
    position: relative;
    padding-bottom:56.25%;
    padding-top: 25px;
    height: 0;
    margin-bottom: 1em;
    width: 100%;

    }
/*the absolute positioning is relative to the video container*/ 
  .video iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }


aside h3{
  text-align: center;
  font-size: 1.5em;
  background-color: #C0190C;
  color: lightyellow;
  padding: .3em;
}


footer{
  background-color: lightyellow;
}

footer section{
  text-align: center;
  padding: 0; 
}

footer section h4{
  padding: .5em;
  background-color: #d43528;
  font-weight: bolder;
  color: #fff;
}

footer section:last-child{
  width: 100%;
  background-color: #e1ca9e;
  color: white;
  text-align: center;
  border-bottom: none;
  padding: 1em;
}


footer section p{
  padding: .5em;
  /*background-color: lightyellow;*/
  line-height: 1.3em;
}

label.error{
  color: #b61d1a;
  font-size: .7em;
  font-style: italic;
}

.success{
  background-color: #dceda1;
  width: 90%;
  margin: 0 auto 1em;
}
.success h1{
  color: #305A04;
  width: 100%;
  text-align: center;
  font-size: 1.7em;
}

section.error{
  background-color: #eda1a1;
  width: 90%;
  margin: 0 auto 1em;
}
section.error h1{
  color: #b22222;
  width: 100%;
  text-align: center;
  font-size: 1.7em;
}

footer section div#open-close{
  font-size:  .8em;
  margin-bottom: 1em;
  padding: 0.5em;
}

footer section div.closed{
  color: #888;
  font-style: italic;
}

footer section div.fbopen{
  color: #EC8214;
  font-weight: bold;
}

footer section div.comopen{
  color: #ecb213;
  font-weight: bold;
}

@media only screen and (min-width:575px){
  #logo{
    background-position: top left;
    height: 5em;
  }
  #logo h1{
    text-align: left;
    padding-top:10px;
    font-size: 2.5em;
  }

  h1{
  text-align: left;
  } 

  /*nav styles*/
  .js a.menu-link{
  display:none;
  }

  .js nav[role=navigation] {
     overflow:auto;
     max-height: 5em;
  }
  
  nav#menu {
  width:100%;
  background-color:#3d94d7;
  overflow: hidden;
  border-top: none;
  }

  nav#menu li {
  float: left;
  }

  nav#menu a {
  display:inline;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    padding:.5em 1em;   
    background-color:#3d94d7;
    color:white;  
    min-height: 55px;
  }

  #menu a:hover{
    background-color:rgba(255, 255, 255, .3);
  }
/*content styles*/
  main section [class^="icon-"]{
  float: left;
  font-size: 5em;
  }

  .images figure{
  width: 44%;
  margin: 1em .5em;
  padding: .8em;
  background-color: #fff;
  border: solid 1px maroon;
  display: inline-block;
  }

  fieldset textarea{
  min-height: 200px;
  }

  footer section{
  width: 33.3333%;
  float: left;
  border: solid 1px lightyellow;
  }

  footer section:first-of-type{
  width: 100%;
  }

  section.success, section.error{
  width: 70%;
}


}

/*
@media only screen and (min-width: 670px){


}
*/


/*end tablet size*/

/*basic desktop size*/
@media only screen and (min-width: 599px){

fieldset{
  display: inline-block;
  width: 49%;
  margin: 0;
  vertical-align: top;
}


footer.cf section{
  width: 25%;
}

footer.cf section:last-of-type{
  width: 100%;
}

footer section .location{
  background-color: transparent;
  color: initial;
  border-radius:0;
  border: none;
  line-height: 1.5em;
  font-weight: normal;
  margin:0 auto;
  cursor: default;
  }
  footer section h4{
    min-height: 60px;
  }

}

@media only screen and (min-width: 794px){
    .location main{
    display: inline-block;
    vertical-align: top;
    width: 50%;
  }

  .location aside{
    display: inline-block;
    width: 45%;
  }



  footer section h4{
    min-height: initial;
  }


}

@media only screen and (min-width: 865px){
.about main ul.boxes{
  width: 97%;
  margin: 0 auto;
}

.about main .boxes li{
  border-top: 1px solid #305A04;
}

.about main .boxes span{
  display: inline-block;
  margin-right:.5em;
  border-top: none;
}


}



@media only screen and (min-width:886px){


}

@media only screen and (min-width: 1000px){

    
    
}





