
.container {
  z-index: 10;
}

a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
}

a.button.primary {
  background: #36bae6;
  color: #e0e5eb;
}

/* Header */

.flag {
  width: 2rem;
}

header {
  position: sticky;
  top: 0;
  height: 8rem;
  width: 100%;
  z-index: 10;
  background: white;
}

header .container {
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 1050px;
}

.logo {
  height: 3.5rem;
}

header .container > .logo {
  z-index: 1;
  height: 100%;
  padding: 2.5rem 2rem;
}

input.plus-button {
  display: none;
}

input.plus-button ~ label {
  display: block;
  background: none;
  color: var(--off);
  box-shadow: none;
  display: block;
  cursor: pointer;
  position: relative; /* ADDING THIS IS REQUIRED */
}


input.plus-button ~ label:hover {
  color: var(--hover);
}

input.plus-button ~ label,
input.plus-button  ~ label::after {
  content: "\002B";
  font-size: 4rem;
  font-weight: 300;
  position: absolute;
  right: 1rem;
  top: 1rem;
  opacity: 1;
  transition: 0.5s cubic-bezier(.18,-0.01,.24,.95);
}


header .container .plus-button:checked ~ label {
  width: 0;
  background: rgba(18, 18, 18, 0);
}

header .container .plus-button:checked ~ label::after {
  transform: rotateZ(-45deg);
}

header .container .plus-button:checked ~ .menu {
  left: 0;
}

header .container .menu {
  position: absolute;
  z-index: 11;
  top: 8rem;
  left: calc(100vw);
  display: row;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s cubic-bezier(.18,-0.01,.24,.95);
}

header .container .menu::after {
  content: "";
  position: absolute;
  z-index: 12;
  height: 100vh;
  width: 100vw;
  background: rgba(255, 255, 255, 0.9);
}

header .container .menu nav ul {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  padding-right: 1.5rem;
}

header .container .menu nav ul > li > a {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 2rem;
  text-align: right;
  color: var(--off);
  font-size: 1.8rem;
  text-transform: uppercase;
  transition: 0.5s cubic-bezier(.18,-0.01,.24,.95);
}

header .container .menu nav ul > li > a:hover {
  color: var(--hover);
 }

header .container .menu nav ul > li > a.active {
  color: var(--active);
}


/* Media queries */
@media only screen and (min-width: 1000px) {

  header .container {
    left: 50%;
    transform: translate(-50%, 0);
    justify-content: flex-start;
    border: none;
  }

  input.plus-button ~ label {
    display: none;
  }

  header .container .menu {
    z-index: unset;
    top: 2rem;
    left: 0;
    background: none;
    transition: none;
  }

  header .container .menu::after {
    display: none;
  }

  header .container .menu nav ul {
    flex-direction: row;
    justify-content: space-between;
    z-index: 13;
  }

  header .container .menu nav ul > li {
    flex: 1;
  }

  header .container .menu nav ul > li > a {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
  }
}
