* {
  margin: 0;
  padding: 0;
}

body {
  background: var(--grad-emerald);
  width: 100%;
  height: 100vh;
  max-width: 100%;
}

nav {
  position: fixed;
  height: 100%;
  width: 65%;
}
nav::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}

nav > .navcontent {
  width: 80%;
  display: inline-grid;
  vertical-align: middle;
  padding-left: 2em;
}

.navcontent img {
  border-radius: 10px;
  height: 120px;
  margin-left: 1rem;
  padding: 1rem;
  background: var(--slate-100);
  border-radius: 5px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navcontent ul {
  margin-left: 1em;
  list-style: none;
}

.hamburger {
  left: 1rem;
  top: 1rem;
  width: 40px;
  height: 40px;
  position: fixed;
  z-index: 2;
  cursor: pointer;
  background: #D8E0E1;
  border-radius: 100px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  transition: transform .6s ease-in-out;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger i {
  font-size: 3rem;
}

.hamburger img {
  transition: opacity .6s ease-in-out;
  position: absolute;
  width: 20px;
  left: 1rem;
  top: 1rem;
}

.hamburger img.m1 {
  opacity: 1;
  top: 12px;
  left: 8px;
  width: 24px;
}

.hamburger img.m2 {
  opacity: 0;
}

.hamburger.active img.m1 {
  opacity: 0;
}

.hamburger.active img.m2 {
  opacity: 1;
}


.hamburger.active img {
  transition: opacity .6s ease-in-out;
}

.navlogo {
  margin-bottom: 1rem;
}

.bodyContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  color: white;
  padding: 0;
  overflow-y: auto;
  transition: 0.2s ease;
}
@media screen and (orientation: portrait) {
 
 nav > .navcontent {
  width: 80%;
  padding-left: 1rem;
  }

  .navcontent img {
  height: 80px;
}

}

@media screen and (orientation: portrait) {
  nav.active + .bodyContainer {
    transform: translateX(55%) scale(0.8);
    box-shadow: 0 0 30px 5px rgba(38, 38, 38, .3);
 }
}
@media screen and (orientation: landscape) {
  nav.active + .bodyContainer {
    transform: translateX(35%) scale(0.8);
    box-shadow: 0 0 30px 5px rgba(38, 38, 38, .3);
 }

}
