.navigation {
  position: relative;
  height: 8.7rem;
  padding: 0;
  background-color: #fffffa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation__logo a {
  text-decoration: none;
}

.navigation__logo p {
  color: #ffffff;
  font-weight: bolder;
  text-transform: uppercase;
  text-decoration: none;
}

/*
.navigation__links {
    position: absolute;
    width: 100%;
    height: 60vh;
    right: -100rem;
    top: 0;
    z-index: 2;
    transition: right 0.5s ease-in;
    background: #01274a;
    color: #ffffff;
    list-style: none;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.50);
    padding-top: 7rem;
     background-image: url(../img/img08.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 20% 50%;
}
*/

.navigation__links {
  position: absolute;
  width: 100%;
  height:54vh;
  top: -40rem;
  /* top: 0; */
  z-index: 2;
  transition: top 0.5s ease-in;
  background: #fffffa;
  color: #ffffff;
  list-style: none;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.50);
  padding-top: 7rem;
  /* border-top-left-radius: 1.5rem; */
  /* border-bottom-left-radius: 1.5rem;
    background-image: url(../img/img08.png); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 20% 50%;
}









.navigation__links li {
  padding: 5px 10px;
}

.navigation__links a {
  text-transform: uppercase;
  color: #0d2748;
  text-decoration: none;
  font-family: 'head0', sans-serif;
  font-size: 2.2rem;
  line-height: 2.2rem;
}

.navigation__links a:hover {
  color: #a8894f;
  text-decoration: none;
}

#hamburger {
  visibility: hidden;
}

.navigation__button span {
  position: absolute;
  left: 0px;
  display: inline-block;
  width: 2rem;
  height: 0.1rem;
  background-color: #241f20;
  transform-origin: center;
  transition: opacity 0.2s linear, all 0.3s linear;
}

.navigation__button span:nth-of-type(1) {
  top: 8px;
}

.navigation__button span:nth-of-type(2) {
  top: 14px;
}

.navigation__button span:nth-of-type(3) {
  top: 20px;
}

/* Here comes the magic */
.navigation__wrapper input[type="checkbox"] {
  visibility: hidden;
}

.navigation__wrapper input[type="checkbox"]:checked~.navigation__links {
  top: 0;
}

.navigation__wrapper input[type="checkbox"]:checked~.navigation__button span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 15px;
  background-color: #231f20;
}

.navigation__wrapper input[type="checkbox"]:checked~.navigation__button span:nth-of-type(2) {
  opacity: 0;
}

.navigation__wrapper input[type="checkbox"]:checked~.navigation__button span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 15px;
  background-color: #231f20;
}

/* Styles for our "close" button */
#hamburger:checked~.navigation__button span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 15px;
  background-color: #231f20;
}

#hamburger:checked~.navigation__button span:nth-of-type(2) {
  opacity: 0;
}

#hamburger:checked~.navigation__button span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 15px;
  background-color: #231f20;
}

.navigation .mdlogo {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 6.5%;
  text-align: center;
  z-index: +99;
}

.navigation__button {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 6%;
  z-index: +991;
}

@media (max-width: 767px) {
  .navigation .mdlogo {
    position: absolute;
    left: 7%;
    right: auto;
    margin: auto;
    width: 18%;
    text-align: center;
  }
}

/* Sticky nav base */
.navigation--sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  transform: translateY(-110%);
  transition: transform 0.35s ease;

  background: #fffffa;
  /* change if your menu is dark */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* When sticky should be visible */
.navigation--sticky.show {
  transform: translateY(0);
}