:root {
  --color-primary: #edb9bc;
  --color-secondary: #fdf2f2;
  --color-gold: #bc9c22;
  --color-text: #3d3c3b;
  --font-headlines: "Poppins", sans-serif;
  --font-text-logo: "Amatic", sans-serif;
  --font-text: "Open Sans", sans-serif;
  --animation-duration: 2s;
}

.icon-wrapper {
  position: absolute;
  top: 1em;
  right: 1em;
  background-color: white;
  z-index: 2;
  height: 60px;
  width: 60px;
}

.icon-wrapper .nav-icon {
  margin: 10px;
}

.icon-wrapper.fixed {
  position: fixed;
}

.icon-wrapper.black {
  background-color: var(--color-text);
}

/* nav-icon */
.nav-icon {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.nav-icon span {
  background-color: var(--color-text);
  position: absolute;
  border-radius: 3px;
  transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  width: 100%;
  height: 2px;
  transition-duration: 500ms;
}

.nav-icon span:nth-child(1) {
  top: 10px;
  left: 0px;
}

.nav-icon span:nth-child(2) {
  top: 20px;
  left: 0px;
  opacity: 1;
}

.nav-icon span:nth-child(3) {
  top: 30px;
  left: 0px;
}

.nav-icon:not(.open):hover span:nth-child(1) {
  transform: translateY(-4px);
}

.nav-icon:not(.open):hover span:nth-child(3) {
  transform: translateY(4px);
}

.nav-icon.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 20px;
}

.nav-icon.open span:nth-child(2) {
  opacity: 0;
}

.nav-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 20px;
}

/*** MENU ***/
#hamburger {
  z-index: 5;
  position: absolute;
  top: 0;
  right: 0;
}

#hamburger nav .open {
  top: 50px;
  left: 0;
  background-color: white;
}

.blocker {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  content: " ";
  background: rgba(0, 0, 0, 0.5);
}

.blocker.open {
  display: block;
}

#toggle-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-secondary);
  min-height: 30vh;
  overflow-y: auto;
  text-transform: uppercase;
  transform: translate(100vw);
}

#toggle-menu ul {
  list-style: none;
}

#toggle-menu > ul:first-of-type {
  padding: 8em 3em 2em 3em;
}

#toggle-menu > ul:last-of-type {
  padding: 0 3em;
  position: absolute;
  bottom: 3em;
  right: 0;
}

#toggle-menu ul li {
  padding: 0.3em 0.5em;
}

#toggle-menu > ul:first-of-type > li {
  padding: 0.5em 0.5em;
  font-size: 1.2em;
}

#toggle-menu > ul > li > a,
#toggle-menu > ul > li > span {
  background-image: url("images/headline-background.png");
  background-size: 100% 100%;
}

#toggle-menu > ul > li > ul {
  padding: 1em 1em;
}

#toggle-menu a:hover {
  color: var(--color-primary);
}

#toggle-menu.open {
  transform: translate(0);
  transition: 0.3s ease-in;
}

body.block {
  height: 100%;
  overflow: hidden;
}

/* Mobile Landscape */
@media screen and (min-width: 320px) and (max-height: 600px) {
  #toggle-menu > ul {
    padding: 8em 3em 2em 7em;
  }

  #toggle-menu > ul:first-of-type {
    padding: 8em 3em 2em 7em;
  }

  #toggle-menu > ul:last-of-type {
    padding: 0 3em;
    position: relative;
    text-align: end;
  }
}
