.pic {
  width: 88%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  background-size: cover;
  background-position: center;
}

header {
  z-index: 50;
  height: 100%;
  width: 200px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #2d2d2d;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
  padding: 0 25px;
  -moz-transition: all 800ms ease-in-out;
  -o-transition: all 800ms ease-in-out;
  -webkit-transition: all 800ms ease-in-out;
  transition: all 800ms ease-in-out;
}

.back {
  width: 30px;
  position: absolute;
  top: 25px;
}
.back img {
  width: 100%;
}

#nav-container {
  position: fixed;
  top: 25px;
}

.berger {
  position: relative;
  display: none;
  cursor: pointer;
}
.berger .line {
  width: 30px;
  height: 1px;
  background-color: #fff;
  -moz-transition: all 500ms;
  -o-transition: all 500ms;
  -webkit-transition: all 500ms;
  transition: all 500ms;
}
.berger .line:nth-child(1) {
  margin: 7px 0;
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}
.berger .line:nth-child(2) {
  margin: 7px 0;
  opacity: 1;
}
.berger .line:nth-child(3) {
  margin: 7px 0;
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.closebt .line:nth-child(1) {
  margin-top: 15px;
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.closebt .line:nth-child(2) {
  opacity: 0;
}
.closebt .line:nth-child(3) {
  margin-top: -16px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

nav {
  position: relative;
  top: 30%;
}
nav li {
  margin: 30px 0;
}
nav li a {
  color: #999;
  font-size: 0.5em;
  letter-spacing: 0.1em;
}
nav li a:hover .en {
  opacity: 1;
}
nav li a:hover .tw {
  opacity: 0;
}

.on a {
  color: #fff;
}

.slogn {
  z-index: 40;
  position: absolute;
  right: 10%;
  top: 85%;
  font-size: 1.2em;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0px 0px 8px #000;
}
.slogn .slogn-tw {
  display: block;
  font-size: 0.8em;
  text-align: right;
  margin-top: 10px;
}
.slogn .line {
  position: relative;
  top: -15px;
  left: 600px;
  padding-top: 32px;
  padding-right: 2px;
  display: inline;
  height: 30px;
  width: 2px;
  box-shadow: 0px 0px 8px #000;
  background-color: rgba(255, 255, 255, 0.5);
}

.en {
  position: absolute;
  left: 0;
  opacity: 0;
  font-size: 1em;
}

.footer {
  position: absolute;
  bottom: 10px;
}
.footer span {
  font-size: 0.5em;
  color: #999;
}
.footer a {
  color: #999;
}

.logo {
  position: absolute;
  top: 30px;
  width: 200px;
  overflow: hidden;
}
.logo img {
  width: 100%;
}

@media screen and (max-width: 1600px) {
  .pic {
    width: 85%;
  }
}
@media screen and (max-width: 1100px) {
  .pic {
    width: 100%;
  }

  header {
    width: 100%;
    height: 70px;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    -moz-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    -webkit-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
    background-color: #2d2d2d;
  }

  .berger {
    display: block;
  }

  .opennav {
    height: 100%;
  }

  #nav-container {
    top: 20px;
    right: 25px;
  }

  .displaymenu {
    display: none;
  }

  .logo {
    position: absolute;
    top: 8px;
    left: 15px;
    margin: auto;
    width: 230px;
    -moz-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
    transition: all 500ms;
  }
  .logo img {
    width: 100%;
  }

  nav {
    display: none;
    -moz-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
    transition: all 500ms;
    position: relative;
    top: 35%;
  }
  nav ul {
    text-align: center;
  }
  nav ul li {
    margin: 50px 0;
    position: relative;
  }
  nav ul li a {
    font-size: 1em;
  }

  .en {
    position: absolute;
    left: 50%;
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .navhidden {
    display: block;
    position: relative;
    top: 50%;
    -moz-transform: translateY(-65%);
    -ms-transform: translateY(-65%);
    -webkit-transform: translateY(-65%);
    transform: translateY(-65%);
    -moz-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
    transition: all 500ms;
  }

  .slogn {
    right: 50%;
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    -webkit-transform: translateX(50%);
    transform: translateX(50%);
    top: 50%;
    text-align: center;
  }
  .slogn .slogn-tw {
    display: block;
    text-align: center;
  }
  .slogn .line {
    display: none;
  }

  .footer {
    display: none;
  }

  .footerhidden {
    display: block;
    width: 100%;
    text-align: center;
  }
}
@media screen and (max-width: 640px) {
  header {
    height: 60px;
  }

  .berger .line {
    width: 21px;
  }

  #nav-container {
    top: 15px;
    right: 15px;
  }

  .logo {
    top: 4px;
    width: 220px;
  }
}
@media screen and (max-height: 640px) {
  nav ul li {
    margin: 30px 0;
  }
}
@media screen and (max-height: 450px) {
  nav ul {
    margin-top: 30px;
  }
  nav ul li {
    margin: 10px 0;
    width: 49%;
    display: inline-block;
  }
}
