@keyframes text_in{
  0%{
    opacity: 0;
    transform: scale(.5);
  }
  100%{
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes move_top{
  0%{
    background-position: 0% 0%;
  }
  100%{
    background-position: 944px 0%;
  }
}

*{
  box-sizing: border-box;
}
html{
  width: 100vw;
}
body{
  font-family: "Questrial", "Century Gothic", sans-serif;
  background-image: url(../images/main_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  height: 100vh;
  margin: 0;
  overflow-x: hidden;
}
#wrapper{
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 3px 25px rgba(0,0,0,0.8);
  min-height: 600px;
  position: relative;
  padding-bottom: 7px;
}
header{
  height: 102px;
  position: relative;
}
#logo{
  width: 273px;
  position: absolute;
  top: 9px;
  left: 34px;
  transition: all .3s ease-in-out;
}
#userinfo{
  border: 1px solid rgba(136, 99, 39, 0.4);
  background-color: #ccc;
  padding: 6px;
  border-radius: 5px;
  right: 27px;
  top: 16px;
  position: absolute;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);

}
#menubutton{
  display: none;
}

nav{
  position: absolute; 
  right: 22px;
  top: 59px;
}

nav ul#navlist{
  margin: 0;
  padding: 0;
}
nav ul#navlist li{
  list-style-type: none;
  display: inline-block;
}
nav ul#navlist li a{
  display: block;
  text-decoration: none;
  color: #886327;
  text-shadow: 3px 3px 3px rgba(0,0,0,0.22);
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding: 0px 12px 10px 12px;
}

nav ul#navlist li a:after{
  position: absolute;
  width: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  content: '';
  z-index: 100;
  transition: all .2s ease-in-out;
  background-color: #886327;
  left: 50%;
}

nav ul#navlist li a:hover:after {
  width: 100%;
  left: 0;
}

#content_top{
  margin-left: 7px;
  margin-right: 7px;
  height: 48px;
  width: auto;
  background-image: url(../images/content_top_bg.svg);
  background-position: 0 0;
  animation: move_top 20s linear both infinite;
}

main{
  display: block;
  margin-left: 7px;
  margin-right: 7px;
  background-color: rgba(244,245,226,0.7);
  background-position: 20px 20px;
  padding-top: 1px;
  padding-left: 25px;
  padding-right: 25px;
  line-height: 1.6;
  min-height: 700px;
  padding-bottom: 1px;
}
main h1{
  margin-top: 0;
}
main h1,
main h2,
main h3,
main h4{
  font-family: "desire-pro", "Times New Roman", serif;
  letter-spacing: .08em;
  font-weight: 400;
  border-bottom: 2px solid rgba(136,99,39,0.4);
  line-height: 1.2;
}
main p{
  text-align: justify;
}
main img{
  max-width: 100%;
  height: auto;
}

footer{
  text-align: center;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: center;
  background-color: rgba(244,245,226,0.7);
  margin-left: 7px;
  margin-right: 7px;
}
#d{
  animation: text_in .4s ease-in-out both;
}
#e{
  animation: text_in .4s ease-in-out both .1s;
}
#b{
  animation: text_in .4s ease-in-out both .2s;
}
#o{
  animation: text_in .4s ease-in-out both .3s;
}
#r{
  animation: text_in .4s ease-in-out both .4s;
}
#a{
  animation: text_in .4s ease-in-out both .5s;
}
#h{
  animation: text_in .4s ease-in-out both .6s;
}
#r2{
  animation: text_in .4s ease-in-out both .7s;
}
#o2{
  animation: text_in .4s ease-in-out both .8s;
}
#m{
  animation: text_in .4s ease-in-out both .9s;
}
#e2{
  animation: text_in .4s ease-in-out both 1s;
}
#y{
  animation: text_in .4s ease-in-out both 1.1s;
}
#n{
  animation: text_in .4s ease-in-out both 1.2s;
}


/* Generic Classes */
.img_right{
  float: right;
  margin-left: 11px;
  border: 5px solid #886327;
  border-radius: 7px;
}

.shadow{
  box-shadow: 0 4px 7px rgba(0,0,0,0.7);
}
.album{
  display: flex;
  align-items: flex-start; 
  border-bottom: 1px solid #888;
  padding-bottom: 20px;
}
.col_left{
  flex-grow: 1;

}
.col_right{
  flex-grow: 1;
  text-align: right;
}
.col_right img{
  margin-top: 48px;
}


/*----------- Media Queries ------------*/

@media all and (max-width: 767px){
  #logo{
    left: 6px;
  }
  #menubutton{
    position: absolute;
    display: block;
    top: 8px;
    right: 21px;
    width: 43px;
    height: 38px;
    z-index: 100;
  }
  #menubutton a{
    display: block;
    border-radius: 5px;
    background-color: rgba(244,245,226,0.9);
    border: 2px solid #886327;
    width: 43px;
    height: 38px;
    padding: 6px 5px 3px 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    transition: all .3s ease-in-out;
  }
  #menubutton.active a{
    border-radius: 5px 5px 0 0;
    background-color: #886327;
/*        box-shadow: none;*/
  }
  #menubutton.active a#menu span#topbar{
    transform: rotate(-135deg) translate(-7px,-7px) scale(.8, 1);
    z-index: 103;
  }
  #menubutton a#menu span#middlebar{
/*        width: auto;*/
    height: 0;
/*        position: static;*/
    top: 17px;
    border-radius: 0;
    z-index: 101;
/*        width: auto;*/
  }
  #menubutton a#menu span#bottombar{
    top: 26px;

  }
  #menubutton.active a#menu span#middlebar{
    border-radius: 50%;
    height: 32px;
    width: 32px;
    top: 4px;
    left: 5px;
    background-color: rgba(244,245,226,0.9)
/*        position: absolute;*/
  }
  #menubutton.active a#menu span#bottombar{
    transform: rotate(135deg) translate(-5px,6px) scale(.8, 1);
    z-index: 102;
  }
  #menubutton a#menu span{
    display: block;
    border: 2px solid #886327;
    margin-bottom: 5px;
    width: 29px;
    position: absolute;
    transform: rotate(0deg) translate(0,0) scale(1,1);
    transition: all .3s ease-in-out;
  }
  nav{
    top: 44px;
    right: 21px;
    z-index: 110;
  }
  nav ul#navlist{
    position: static;
    width: 50vw;
    background-color: rgba(244,245,226,0.9);
    border: 2px solid #886327;
    padding: 10px 10px 0 5px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
    box-shadow:  0 3px 6px rgba(0,0,0,0.6);
    transform: scale(.1,.1);
    transform-origin: top right;
    z-index: 110;
  }
  nav ul#navlist.active{
    visibility: visible;
    opacity: 1;
    transform: scale(1,1);
  }
  nav ul#navlist li{
    display: block;
    margin-bottom: .6em;
  }
  nav ul#navlist li:last-child{
    margin-bottom: 0;
  }
  
#userinfo{
  border: 1px solid rgba(136, 99, 39, 0.4);
  background-color: #ccc;
  padding: 6px;
  border-radius: 5px;
  right: 22px;
  top: 61px;
  position: absolute;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);

}  
  
  main,#content_top{
    margin-left: 0;
    margin-right: 0;
  }
  
  main .album{
    flex-direction: column;
  }
  main .album h2{
    margin-top: 0.1em;
  }
  main .col_left{
    order: 2;
  }
  main .col_right{
    order: 1;
    text-align: left;
  }
} /* End mobile media query */

@media all and (max-width: 720px){
  main .img_right,
  main .img_left{
    float: none;
    margin: 0;
  }
}

@media all and (max-width: 370px){
  #logo{
    width: 230px;
    top: 15px;
  }
}

