@import url(https://fonts.googleapis.com/css?family=Lato);

.nav-box {
  position: relative;
  width: auto;
  display: inline-block;
  border: none;
}

.btn-nav {
  position: fixed;
  top: 0.25rem;
  right: 25px;
  background: transparent;
  border: none;
  padding: 10px;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
  cursor: pointer;
  z-index: 99999;

}

.btn-nav:focus {
  outline: 0;
}

.icon-bar {
  display: block;
  margin: 6px 0;
  width: 0.5rem;
  height: 0.04rem;
  background-color: #d7000f;

}

.btn-nav:hover .icon-bar {
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
  background-color: #d7000f;
}

.nav-content {
  position: fixed;
  top: -100%;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: block;
  height: 100%;
  z-index: 99;
}

.nav-list {
  list-style: none;
  padding: 0;
  position: relative;
  top: 20%;
  text-align: center;
}



.item-anchor:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  left: 0;
  bottom: 0;
  z-index: 9;
  background: transparent;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.item-anchor {
  color: #111;
  font-size: 0.22rem;
  text-transform: uppercase;
  position: relative;
  text-decoration: none;
  padding: 10px;
  margin-bottom: 0.1rem;
  display: inline-block;
  font-weight: bold;
}

.item-anchor:hover,
.item-anchor:focus {
  color: #d7000f;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.item-anchor:hover:after,
.item-anchor:focus:after {
  width: 100%;
  background: #d7000f;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.nav-item {
  width: 14.285%;
  text-align: center;
  float: left;
}

.nav-item span {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 0.48rem;
  font-size: 0.18rem;
}

.nav-item span:hover {
  color: #d7000f;
  cursor: pointer;
}

.navanimated {
  display: block;
  margin: 0 auto;
}

.navanimated:hover .icon-bar,
.navanimated:focus .icon-bar {
  background-color: #d7000f;
}

.navanimated:focus {
  cursor: pointer;
  z-index: 9999;
}

.middle {
  margin: 0 auto;
}

.icon-bar {
  -webkit-transition: all .7s ease;
  -moz-transition: all .7s ease;
  -ms-transition: all .7s ease;
  -o-transition: all .7s ease;
  transition: all .7s ease;
  z-index: 999999;
}

.navanimated .icon-bar {
  z-index: 999999;
  background-color: #d7000f;
}

.navanimated .top {
  -webkit-transform: translateY(0.1rem) rotateZ(45deg);
  -moz-transform: translateY(0.1rem) rotateZ(45deg);
  -ms-transform: translateY(0.1rem) rotateZ(45deg);
  -o-transform: translateY(0.1rem) rotateZ(45deg);
  transform: translateY(0.1rem) rotateZ(45deg);
}

.navanimated .bottom {
  -webkit-transform: translateY(-0.11rem) rotateZ(-45deg);
  -moz-transform: translateY(-0.11rem) rotateZ(-45deg);
  -ms-transform: translateY(-0.11rem) rotateZ(-45deg);
  -o-transform: translateY(-0.11rem) rotateZ(-45deg);
  transform: translateY(-0.11rem) rotateZ(-45deg);
}

.navanimated .middle {
  width: 0;
}

@keyframes showNav {
  from {
    top: -100%;
  }

  to {
    top: 0;
  }
}

@-webkit-keyframes showNav {
  from {
    top: -100%;
  }

  to {
    top: 0;
  }
}

@-moz-keyframes showNav {
  from {
    top: -100%;
  }

  to {
    top: 0;
  }
}

@-o-keyframes showNav {
  from {
    top: -100%;
  }

  to {
    top: 0;
  }
}

.showNav {
  -webkit-animation: showNav 1s ease forwards;
  -moz-animation: showNav 1s ease forwards;
  -o-animation: showNav 1s ease forwards;
  animation: showNav 1s ease forwards;
}

@keyframes hideNav {
  from {
    top: 0;
  }

  to {
    top: -100%;
  }
}

@-webkit-keyframes hideNav {
  from {
    top: 0;
  }

  to {
    top: -100%;
  }
}

@-moz-keyframes hideNav {
  from {
    top: 0;
  }

  to {
    top: -100%;
  }
}

@-o-keyframes hideNav {
  from {
    top: 0;
  }

  to {
    top: -100%;
  }
}

.hideNav {
  -webkit-animation: hideNav 1s ease forwards;
  -moz-animation: hideNav 1s ease forwards;
  -o-animation: hideNav 1s ease forwards;
  animation: hideNav 1s ease forwards;
}

.hidden {
  display: none;
}

@media screen and (max-width: 1440px) {
  .btn-nav {
    top: 0.15rem;
    right: 20px;
  }

  .navanimated .top {
    -webkit-transform: translateY(0.14rem) rotateZ(45deg);
    -moz-transform: translateY(0.14rem) rotateZ(45deg);
    -ms-transform: translateY(0.14rem) rotateZ(45deg);
    -o-transform: translateY(0.14rem) rotateZ(45deg);
    transform: translateY(0.14rem) rotateZ(45deg);
  }

  .navanimated .bottom {
    -webkit-transform: translateY(-0.13rem) rotateZ(-45deg);
    -moz-transform: translateY(-0.13rem) rotateZ(-45deg);
    -ms-transform: translateY(-0.13rem) rotateZ(-45deg);
    -o-transform: translateY(-0.13rem) rotateZ(-45deg);
    transform: translateY(-0.13rem) rotateZ(-45deg);
  }

}