@import url('https://fonts.googleapis.com/css?family=Nanum+Brush+Script|Roboto:100,300,400&display=swap');

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

body {
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #E1DBC8;
}

#aside {
  padding-top: 30px;
  padding-bottom: 40px;
  width: 20vw;
  position: fixed;
  bottom: 0;
  top: 0;
  left: 0;
  overflow-y: scroll;
  z-index: 1001;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

#aside a {
  text-decoration: inherit;
  color: inherit;
}

#aside #logo {
  text-align: center;
  font-family: 'Nanum Brush Script', "Roboto", Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 35px;
  font-size: 3.2em;
}

#aside a.button{
  display: block;
  width: 175px;
  padding: 0.7em 1.7em;
  margin: auto;
  margin-bottom: 25px;
  border-radius: 0.2em;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 300;
  color: inherit;
  color: #FFFFFF;
  background-color: #3369ff;
  box-shadow: inset 0 -0.6em 1em -0.35em rgba(0,0,0,0.17),inset 0 0.6em 2em -0.3em rgba(255,255,255,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
  text-align: center;
  position: relative;
}
#aside a.button:active{
  box-shadow:inset 0 0.6em 2em -0.3em rgba(0,0,0,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
}

#aside #menu_btn {
  display: none;
  text-align: center;
}

#aside #main-menu ul {
  list-style-type: none;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 38px;
}

#aside #main-menu ul li a {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 300;
  position: relative;
  padding: 12px 12px;
  letter-spacing: .1em;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

#aside #main-menu ul li.active a {
  color: #605854;
}

#aside #main-menu ul li a:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 7px;
  left: 10px;
  right: 10px;
  background-color: #866F61;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#aside #main-menu ul li.active a:after {
  background-color: #605854;
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

#aside #main-menu ul li a:hover:after {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

#aside footer {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 80vw;
  padding-bottom: 30px;
  text-align: center;
  color: #333;
}

#main {
  background-color: white;
  position: fixed;
  width: 80vw;
  bottom: 0;
  top: 0;
  right: 0;
  overflow-y: scroll;
}

#content {
  position: relative;
  width: 80%;
  margin: auto;
}

#content h1, #content h2 {
  font-size: 4em;
}

#content p {
  font-size: 16px;
  text-align: justify;
  line-height: 1.6em;
  font-weight: 300;
}

#content img {
  display: block;
  max-width: 80%;
  margin: 30px auto;
  max-height: 65vh;
}

#content table {
  width: 80%;
  margin: auto;
}

#content table, #content th, #content td {
  border: solid 1px #CCC;
  border-collapse: collapse;
  padding: 5px;
}


@media screen and (max-width: 1024px) {
  body {
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #E1DBC8;
  }
  
  #aside {
    padding-top: 0px;
    padding-bottom: 0px;
    width: inherit;
    position: relative;
    bottom: 0;
    top: 0;
    left: 0;
    overflow-y: hidden;
    z-index: 1001;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    margin: 0;
  }
  
  #aside a {
    text-decoration: inherit;
    color: inherit;
  }
  
  #aside #logo {
    text-align: center;
    font-family: 'Nanum Brush Script', "Roboto", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.5em;
    font-size: 3.2em;
  }
  
  #aside #menu_btn {
    display: block;
  }

  #aside #main-menu.hidden {
    max-height: 0vh;
    opacity: 0;
    pointer-events: none;
  }

  #aside #main-menu {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    transition: all ease-in-out 300ms;
  }

  #aside #main-menu ul {
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 38px;
  }
  
  #aside #main-menu ul li a {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 300;
    position: relative;
    padding: 12px 12px;
    letter-spacing: .1em;
    font-family: "Roboto", Arial, sans-serif;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
  }
  
  #aside #main-menu ul li.active a {
    color: #605854;
  }
  
  #aside #main-menu ul li a:after {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 7px;
    left: 10px;
    right: 10px;
    background-color: #866F61;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -o-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  #aside #main-menu ul li.active a:after {
    background-color: #605854;
    visibility: visible;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
  }
  
  #aside #main-menu ul li a:hover:after {
    visibility: visible;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
  }
  
  #aside footer {
    position: relative;
    bottom: 0px;
    left: 0;
    right: 0vw;
    padding-bottom: 30px;
    text-align: center;
    color: #AAA;
  }
  
  #main {
    background-color: white;
    position: relative;
    width: inherit;
    margin: 0;
    bottom: 0;
    top: 0;
    right: 0;
    overflow-y: scroll;
  }
  
  #content {
    position: relative;
    width: 95%;
    margin: auto;
  }
  
  #content h1, #content h2 {
    font-size: 2em;
  }
  
  #content p {
    font-size: 16px;
    text-align: justify;
    line-height: 1.6em;
    font-weight: 300;
  }
  
  #content img {
    display: block;
    max-width: 80%;
    margin: 30px auto;
    max-height: 65vh;
  }
  
  #content table {
    width: 80%;
    margin: auto;
  }
  
  #content table, #content th, #content td {
    border: solid 1px #CCC;
    border-collapse: collapse;
    padding: 5px;
  }
}