/* css Zen Garden submission 218 - 'Apothecary', by Trent Walton, http: //www.trentwalton.com/ */
/* css released under Creative Commons License - http: //creativecommons.org/licenses/by-nc-sa/1.0/  */

/* TYPEKIT_KIT_ID: xtk3kmd */

html,body,div,p,span,object,h1,h2,h3,h4,h5,h6,a,abbr,acronym,em,img,ol,ul,li {border: 0;
			font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;
			vertical-align: baseline;
			margin: 0;padding: 0;}
		
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  background: #FFFFFF;
  background-size: 22em;
}

body {
  font-size: 1.05em;
  font-family: Segoe UI, Tahoma, Segoe UI Semilight, Calibri Light, sans-serif;
  color: #000000;   
  overflow: hidden;  
}

img {
  width: 100%;
  height: auto;
}


/*  -------------------------------------------------  */


ul {
  text-align: center;
  li {
    display:inline-block;
    margin-right: 15px;
    transition:all 0.3s ease-in-out;
    &:hover {
      .submenu {
        height: 85px;
      }
      a {        
        color: #3C3C3C;
        &::before {
          visibility: visible;
          transform: scale(1, 1);
        }
      }
    }
    .submenu {
      overflow:hidden;
      position:absolute;
      left: 0;
      width: 100%;
      background-color: #DDDDDD;
      height: 0;
      line-height: 40px;
      box-sizing:border-box;
      transition:height 0.3s ease-in-out;
      transition-delay: 0.1s;
      a {
        color: #fff;
        margin-top: 20px;
        font-size: 19px;
        &:hover {
          color: #fff;
          text-decoration:underline;
        }
      }
    }
    a {
      color: #999;
      display: block;
      padding: 0 7px 0 7px;
      margin: 0 0 10px;
      text-decoration: none;
      position: relative;
      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: -10px;
        left: 0px;
        background-color: #3C3C3C;
        transition: all 0.2s ease-in-out;
        transform: scale(0, 0);
        visibility: hidden;
      }
    }
  }
}



/*  -------------------------------------------------  */

h1, h2, h3, h4, h5 {
  text-align: center;
  font-weight: bold; 
}


a {
  color: #99CC00;
}

a:hover, a:focus {
  color: #3f3d3a;
}

p {
  margin-bottom: 0.12em;
}

.preamble {
  margin: 0 auto 0.8em;
}

.preamble p {
  margin-bottom: 0.0em;
  padding: 1em;
}

   .preamble h2 {
    font-size: 1.2em;
	 padding: 0.4em;
  }

.preamble h3 {
  margin:  0.5em auto 0.55em;
  padding: 0.5em 0 0.55em;
  font-family: "Calibri Light"sans-serif;
  font-size: 1.5em;
  line-height: 1;
  background: 
    url('img-lg-horiz-border1.png') repeat-x top right,
    url('img-lg-horiz-border1.png') repeat-x bottom left;
  background-size: 13em;
}
/* 
.preamble p:first-line {
  text-transform: uppercase;
}  */

.preamble p:nth-child(1n+3) {
  text-indent: 0em;
}

.preamble p:nth-child(1n+3):first-line {
  text-transform: none;
}



footer:after {
  content: '';
  display: block;
  width: 100%;
  height: 13em; 
  margin: 0 auto -13.5em;
 
}


footer {
  margin: 1.0em 1px -1px;
  text-align: center;
  font-family: "refrigerator-deluxe",sans-serif;
  font-size: 1.05em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 0.5em;
}

footer a {
  text-decoration: none;
  background: #272625;
  padding: 0.1rem 0.5rem;
  color: #faf3e6;
  margin: 0 0.15em;
  letter-spacing: 0.05em;
  white-space: pre;
  line-height: 1.6em;
}

footer a:hover, footer a:focus {
  background-color: #99CC00;
}

/* -----------------------------------------  600 pixel ---------------------------- */
@media (min-width:600px) {
  body {
    font-size: 1.1em;
    line-height: 1.4;
  background-image: url("img-bgnd.jpg");
  background-position: center;
  background-repeat: repeat-y;
  }
  
    img {
    width: 100%;
  }
  
  .intro p,
  .preamble,
  .design-selection,
  .design-selection ul,
  .design-archives,
  .zen-resources ul,
  .participation p,
  .benefits h3,
  .benefits p {
    max-width: 30rem;
  }
  
  
  .explanation,
  .requirements {
    max-width: 30rem;
  }

  body:before {
    border-left: 89px solid #faf3e6;
    border-right: 89px solid #faf3e6;
    border-top: 89px solid transparent;
    margin: 0 auto -5em;
  }
  
  body:after {
    border-left: 11em solid #faf3e6;
    border-right: 11em solid #faf3e6;
    border-bottom: 14.5em solid transparent;
    margin: -14.5em auto 0;
    position:relative;
    z-index:-2;
  }
  
  .page-wrapper {
    width: 99%;
    background: 
      url('img-lg-vert-border.png') repeat-y top left,
      url('img-lg-vert-border.png') repeat-y right 100px;
    background-size: 0.75em;
    margin: 0.5em auto;
    padding: 0 2px;
  }
  
  .page-wrapper:before {
  background-size: 50em;
}
 
   .preamble h2 {
    font-size: 1.2em;
  }
 
  .preamble h3 {
    font-size: 1.3em;
  }

  .preamble h3:first-line {
    font-family: "Calibri Light"sans-serif;
    font-size: 1.0em;
    display: inline-block;
    margin: 0 auto;
    line-height: 1.25;
    letter-spacing: 0.025em;
  }
  
  footer {
    padding-bottom: 0.5em;
  }
  
  footer:after {

  }
  

}


/* -----------------------------------------  800 pixel ---------------------------- */
@media (min-width:800px) {
  body {
    font-size: 1.2em;
  background-image: url("img-bgnd.jpg");
  background-position: center;
  background-repeat: repeat-y;
  }
  
  .intro {
    padding-top: 8em;
  }

   .preamble h2 {
    font-size: 1.1em;
  }
  
    img {
    width: 100%;
  }
  
  .intro p,
  .preamble,
  .design-selection,
  .design-selection ul,
  .design-archives,
  .zen-resources ul,
  .participation p,
  .benefits h3,
  .benefits p {
    max-width: 36rem;
  }
  
  
  .explanation,
  .requirements {
    max-width: 36rem;
  }
  
  body:before {
    border-left: 115px solid #faf3e6;
    border-right: 115px solid #faf3e6;
    border-top: 115px solid transparent;
    margin: 0 auto -6em;
  }
  
}

/* -----------------------------------------  1050 pixel ---------------------------- */
@media (min-width:1050px) {
  body {
    font-size: 1.3em;
  background-image: url("img-bgnd.jpg");
  background-position: center;
  background-repeat: repeat-y;
  }
  
  .intro {
    padding-top: 9em;
  }  
    img {
    width: 100%;
  }
  
  .intro p,
  .preamble,
  .design-selection,
  .design-selection ul,
  .design-archives,
  .zen-resources ul,
  .participation p,
  .benefits h3,
  .benefits p {
    max-width: 40rem;
  }
  
  body:before {
    border-left: 140px solid #faf3e6;
    border-right: 140px solid #faf3e6;
    border-top: 140px solid transparent;
    margin: 0 auto -7em;
  }
  
  .intro h1 {
    font-size: 6em;
  }
  
     .preamble h2 {
    font-size: 1.1em;
  }
  
  .preamble h3:first-child {
    font-size: 1.3em;
  }


  footer {
    margin-top: 0;
  }
}


/* -----------------------------------------  1200 pixel ---------------------------- */
@media (min-width:1200px) {
  body {
    font-size: 1.3em;
  background-image: url("img-bgnd.jpg");
  background-position: center;
  background-repeat: repeat-y;
  }
  
  .intro {
    padding-top: 10.5em;
  }
    
    img {
    width: 100%;
  }
  
  body:before {
    border-left: 168px solid #faf3e6;
    border-right: 168px solid #faf3e6;
    border-top: 168px solid transparent;
    margin: 0 auto -8em;
  }
 
}

/* -----------------------------------------  1300 pixel ---------------------------- */
@media (min-width:1300px) {
  body {
    font-size: 1.3em;
  background-image: url("img-bgnd.jpg");
  background-position: center;
  background-repeat: repeat-y;
  }
  
  .intro {
    padding-top: 13.5em;
  }
    
    img {
    width: 100%;
  }
  
   body:before {
    border-left: 198px solid #faf3e6;
    border-right: 198px solid #faf3e6;
    border-top: 198px solid transparent;
    margin: 0 auto -9em;
  }
  
}


/* ------- OMG FLEXBOX ------ */
.page-wrapper {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  -ms-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.intro {
  -webkit-box-ordinal-group: 1;  
  -moz-box-ordinal-group: 1;     
  -ms-flex-order: 1;     
  -webkit-order: 1;  
  order: 1;
  align-self: flex-start;
  width: 100%;
}

.main {
  -webkit-box-ordinal-group: 3;  
  -moz-box-ordinal-group: 3;     
  -ms-flex-order: 3;     
  -webkit-order: 3;  
  order: 3;
  align-self: flex-start;
  width: 100%;
}

.sidebar {
  -webkit-box-ordinal-group: 2;  
  -moz-box-ordinal-group: 2;     
  -ms-flex-order: 2;     
  -webkit-order: 2;  
  order: 2;
}
