/*
=======
Sidebar
=======
*/

* {
  box-sizing: border-box;
}

body {
  background-color: #e9eef2;
}

#side-bar {
  position: absolute;
  padding: 0;
  margin: 0;
  left: 0;
  width: 30vw;
  border-right: 2px solid #bed1df;
  border-top: 2px solid #bed1df;
  border-bottom: 2px solid #bed1df;
  background-color: #424242;
  transition: left 0.5s;
  height: 100vh;
  z-index: 10000;
  overflow-y: scroll;
}

#side-bar.hidden {
  left: -80vw;
}

.level-one {
  position: relative;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  list-style: none;
  cursor: pointer;
}

.level-one:hover {
  background: #3f8eb9;
  -webkit-box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
  -moz-box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
  box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
}

.level-one a {
  display: block;
  text-decoration: none;
  width: 75%;
  margin: 0 12.5% 0 12.5%;
  border-bottom: 1px solid #bed1df;
}

.level-one a img {
  margin: 10% 12.5% 10% 12.5%;
  width: 66%;
}

.level-one a span {
  color: #bed1df;
  font-size: 0.5em;
  font-weight: bold;
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
}

#side-button {
  position: absolute;
  width: 10vw;
  height: 10vw;
  top: 5vh;
  left: 10vw;
  text-align: center;
  border: 2px solid #424242;
  border-radius: 2vw;
  transition: left 0.5s;
  z-index: 10000;
  cursor: pointer;
}

#side-button.open {
  left: 35vw;
  background-color: #DDD;
}

#side-button .line {
  position: absolute;
  display: block;
  height: 5%;
  background-color: #424242;
  left: 20%;
  right: 20%;
  transition: transform 0.5s,
              opacity 0.5s;
}

.line-one {
  top: 25%;
}

.line-two {
  top: 50%!important;
}

.line-three {
  top: 75%!important;
}

.line-one.open {
  transform: rotate(45deg) translate(27%, 360%);
}

.line-two.open {
  opacity: 0;
}

.line-three.open {
  transform: rotate(-45deg) translate(27%, -360%);
}

#side-bar-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: background-color 0.5s;
  z-index: 9000;
}

#side-bar-overlay.hidden {
  background-color: rgba(0, 0, 0, 0);
}

@media screen and (min-width: 480px) {
  #side-bar {
    width: 20vw;
  }

  #side-button {
    width: 8vw;
    height: 8vw;
    top: 3vh;
    left: 3vw;
  }

  #side-button.open {
    left: 25vw;
  }
}

@media screen and (min-width: 1025px) {
  #side-button {
    display: none;
  }
}


/*
======
letter
======
*/

body {
  min-height: 100vh;
  background-image: url("../img/paper.jpg");
  background-size: 100% 100%;
  background-position: center;
}

.header {
  height: 5vh;
}

.lyra-letter {
  display: block;
  text-align: center;
  position: relative;
  margin-bottom: 20vh;
}

.actor {
  position: relative;
  display: block;
  width: 60%;
  margin: 0 auto;
  font-family: "KaiTi","LiSu","SimHei",cursive;
  font-size: 1.2em;
  font-weight: normal;
  text-align: left;
  line-height: 1.4em;
  color: #424242;
  text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

#letter-title {
  width: 70%;
  font-size: 2em;
}

.spacer {
  height: 1.2em;
}

#feather {
  width: 20%;
  position: absolute;
  bottom: 0;
  right: 10%;
}

@media screen and (max-width: 1023px) {
  .actor {
    font-size: 1em;
  }

  #letter-title {
    font-size: 1.5em;
  }

}

@media screen and (max-width: 510px) {
  .header {
    height: 15vh;
  }

  .actor {
    width: 90%;
    font-size: 0.8em;
  }

  #letter-title {
    font-size: 1.2em;
    width: 90%;
  }

}


/*
====
Dock
====
*/


/* dock - all */
.dock {
	position: relative;
	height: 50px;
	text-align: center;
	z-index: 100;
}
.dock img {
	border: none;
}

/* dock2 - bottom */
#dock2 {
	width: 100%;
	bottom: 0px;
	position: fixed;
	left: 0px;
}
.dock-container2 {
	position: absolute;
	height: 50px;
	width: 240px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	background: url(../img/dock-bg.gif);
	/*padding-left: 20px;*/
}
a.dock-item2 {
	display: block;
	font: bold 12px Arial, Helvetica, sans-serif;
	width: 40px;
	color: #424242;
	position: absolute;
	bottom: 1px;
	margin: 5px 0px 0px;
	text-align: center;
	text-decoration: none;
}
.dock-item2 span {
	display: none;
	font-size: 1.5em;
}
.dock-item2 img {
	display: block;
	border: none;
	width: 100%;
}

@media screen and (max-width: 1024px) {
	.dock {
		display: none;
	}
}
