/* All General Styles */
body{
    font-family: Tahoma, Geneva, sans-serif;
    line-height: 1.6em;
    font-size: 0.9em;
    color: #494949;
}

#header_container {
    border-bottom: 20px solid #B48941;
    position: fixed;
    width: 96%;
    top: 0px;
}

#header_container, #main_container, #footer_container {
    padding: 2%;
    padding-bottom: 3%;
}

#header_container img {
  margin-top: 0.25em;
}


#footer_container {
    width: 96%;
    color: white;
}

#footer_container,
.main aside {
    border-top: 20px solid #942D2D;
}

#header_container,
.main aside {
    background: #942D2D;
}

#header_container {
    background: #942D2D url('../img/faded_crest.png') no-repeat 10% 40%;
}

#footer_container{
  background: #B48941;
}

.title {
    color: white;
    font-weight: bold;
    float: left;
}

#navigation {
  clear: left;
  float: left;
}

h1{

}
h2{

}
h3{
  margin: 0.25em;
}

a, a:visited {
    color: #4b4b4b;
    padding: 0.3em 0.5em;
    text-decoration: underline;
    background: #e6e6e6; 
    line-height: 1.6em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

a:hover, a:visited:hover {
    color: #3d3d3d;
    font-weight: bold;
}

#main_container{
    margin-top: 6.5em;
}

.page-section a, .page-section a:visited {
  color: #494949;
  background: #e4ded4;
}
.page-section h3 a, .page-section h3 a:visited {
  text-decoration: none;
}

textarea{
  width: 100%;
  height: 6em;
}

section p{
    line-height: 1.6em;
}

#info{
    border: #e4cba1 1px solid;
    background: #d4b174;
    padding: 1em;
    margin-top: 1em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#info a{
    display: block;
    padding: 0.5em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#addToHomeScreen{
  display: none;
}

#instructions{
  text-align: center;
  background-color: #f2f4f4;
  position: fixed;
  bottom: 0px;
  right: 20px;
  left: 20px;
  width: calc(100%-40px);
  padding: 0px 10px 10px 10px;
  display: none;
}

#instructions img{
  max-width: 64px;
  
}

#instructions button{
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #264de4;
  color: white;
  border: 1px #2965f1 solid;
}

.page-section{
  background: #f8f2ea;
  border: #e4cba1 1px solid;
  padding: 0.25em 0.5em;
  margin-bottom: 0.5em;
}

.page-section a span{
  display: block;
  width: 1em;
}

.page-section, section img{
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.page-section h3 span{
  display: inline;
}

.page-section h3.right span:before{
  /*background: url('../img/arrow-right.gif') no-repeat 0 0.25em;*/
  content: "[+] ";
}

.page-section h3.down span:before{
  /*background: url('../img/arrow-down.gif') no-repeat 0 0.25em;*/
  content: "[-] ";
}




.page-panel{
  padding: 1.5em;
}


/* Pure CSS Hamburger Menu */

#menuToggle
{
  display: block;
  position: relative;
  top: 0.5em;
  left: 0.5em;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * The last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 12em;
  margin: -100px 0 0 -50px;
  padding: 5em;
  padding-top: 8em;
  border-radius: 1em;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 0.5em 0;
  font-size: 1em;
}

/*
 * Slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}

/* Media Queries  - desktop */

@media only screen and (min-width: 800px) {

  #header_container, #main_container, #footer_container {
      max-width: 960px;
  }

  #main_container{
    margin-top: 7.5em;
  }

}


/* Media Queries  - mobile */

@media only screen and (max-width: 480px) {

    #header_container, #main_container, #footer_container {
        
    }

    #main_container{
      margin-top: 5.5em;
    }

}


/* Generic helper styles */

.dropRight{
    float: right;
}

.dropLeft{
    float: left;
}

.buffer{
  padding: 1em;
}

.bufferTop{
  padding-top: 1em;
}

#addToHomeScreen{
  -webkit-border-bottom-right-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -moz-border-radius-bottomright: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.alertBox{
  background: #f8f2ea;
  border: #e4cba1 1px solid;
  border-top: none;
  padding: 0.5em;
  margin: 0;
}

.alertBox a{
  background: transparent;
  color: black;
}

.alert_red{
  color: red;
}

.alert_green{
  color: green;
}
