* {
  box-sizing: border-box;
}

body {
  background: white;
  font-family: 'Caveat', cursive;
}

/* Navigation overlay */
.nav-overlay {
  width: 100%;
  height: 100%;
  opacity: 0;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  overflow-y: hidden;
  transition: .5s ease;
  visibility: hidden;
}

/*Navigation*/
.nav-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

/* Navigation items*/
.list, .ham {
  font-size: 30px;
  line-height: 20px;
  padding: 20px 0;
  display: block;
  vertical-align: middle;
}

.ham a {
  color: white;
  text-align: center;
  text-decoration: none;
font-size: 2em;
line-height: 50px;
  transition-property: color .2s linear 0s;
}
.ham a:focus, li a:hover {
  color: #ef5a59;
  text-decoration: underline;
transition: .5s ease;
}
.ham a:visited {
  background: white;
}

/* Navigation icon */
.nav-icon {
  position: absolute;
  top: 2%;
  left: 0;
  padding: 10px;
  z-index: 2;
  z-index: 2;
  border: 0;
  outline: none;
  background-color: transparent;
  padding: 15px 15px;
  display: inline-block;
}

.nav-icon span,
.nav-icon span:before,
.nav-icon span:after {
  cursor: pointer;
  position: absolute;
  height: 4px;
  width: 30px;
  background: #ef5a59;
  display: block;
  content: '';
  transition: all .25s ease-out;
}

.nav-icon span:before {
  top: -9px;
}

.nav-icon span:after {
  bottom: -9px;
}

nav {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
}

.active.nav-overlay {
  visibility: visible;
  background: #0f1928;
  opacity: .9;
}
.active.nav-icon span {
  background-color: transparent;
}
.active.nav-icon span:before {
  transform: rotate(145deg);
  top: 0;
}
.active.nav-icon span:after {
  transform: rotate(-145deg);
  top: 0;
}
