.navbar {
  display: flex;
  width: 100vw;
  height: 70px;
  color: #ffffff;
  background-color: #333;
  justify-content: space-between;
  flex-direction: row;
  margin-bottom: 20px;
  text-align: center;

  .nav-container {
    display: block;
    position: relative;
    height: 60px;
    width: 60px;

    li {
      list-style: none;
    }
    a {
      text-decoration: none;
      color: #0e2431;
      font-weight: 500;
      font-size: 1.2rem;
      &:hover {
        text-decoration: underline;
        font-weight: bolder;
      }
    }
    a:active {
      text-decoration: underline;
      font-weight: bolder;
    }

    .checkbox {
      position: absolute;
      display: block;
      height: 32px;
      width: 32px;
      top: 20px;
      left: 20px;
      z-index: 5;
      opacity: 0;
      cursor: pointer;
    }

    .hamburger-lines {
      display: block;
      height: 18px;
      width: 26px;
      position: absolute;
      bottom: 15px;
      left: 20px;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .line {
        display: block;
        height: 1px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
      }

      .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
      }
      .line2 {
        transition: transform 0.2s ease-in-out;
      }
      .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
      }
    }
  }

  .menu-items {
    display: flex;
    align-items: center;
    width: 100vw;
    z-index: 10;

    padding-top: 120px;
    background: #333;
    height: 100vh;
    transform: translate(-150%);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    text-align: center;

    li {
      margin-bottom: 1.2rem;
      font-size: 1.5rem;
      font-weight: 500;

      a {
        color: #ffffff;
      }
    }
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    padding-top: 5px;
    font-family: "Tagesschrift", sans-serif;
    text-decoration: none;
  }

  .right-container {
    display: flex;
    align-items: center;
    justify-content: center;

    i {
      font-size: 24px;
      color: #ffffff;
      cursor: pointer;
      margin-right: 20px;
    }
  }
}

@media (max-width: 768px) {
  .navbar {
    .right-container {
      width: 10%;
    }
  }
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0%);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}
