* {
  padding: 0;
  margin: 0;
}

.logo {
  font-size: xx-large;
}

header.navbar-container {
  padding-block: 1rem;
  margin-inline: auto;
 
  display: flex;
  justify-content: space-around;
  align-items: center;
 
  z-index: 9999;
  position: sticky;
  top: 0;
  border: 5px solid #222;
  background-color: white;
  color: #222;
  padding: 15px;
}
 
header.navbar-container .logo img {
  width: 150px;
}
 
header.navbar-container .nav-list ul {
  padding-left: 0;
 
  display: flex;
  justify-content: center;
  gap: 2rem 1rem;
}
 
header.navbar-container .nav-list li {
  list-style-type: none;
}
 
header.navbar-container .nav-list li a {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: black;
  border: 1px solid #222;
  transition: all 0.2s ease-in-out;
}
 
header.navbar-container .nav-list li:hover a {
  background-color: #000000;
  color: rgb(255, 255, 255);
}

#myElement {
  display: none;
  transition: top 0.3s ease-out;
}

#myElement.hide {
  top: -100px;
  transition: top 0.3s ease-out;
}

    .sidebar-nav {
      background-color: white;
      margin: 6px;
      text-align: center;
      /* padding: 10px; */
      width:  200px;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      border: 5px solid #222;
      background-color: white;
      color: #222;
      top: 90px; 
      display: none;
      z-index: 999;
    }

    .sidebar-nav a {
      padding: 0.5rem 1.5rem;
      border-radius: 999px;
      text-decoration: none;
      font-size: 1.05rem;
      font-weight: 500;
      color: black;
      transition: all 0.2s ease-in-out;
      margin-top: 7px;
      margin-bottom: 7px;
    }

    .sidebar-nav a:hover {
      background-color: #000000;
      color: rgb(255, 255, 255);
    }

    /* Style the hamburger menu */
    .hamburger {
      display: none;
      float: right;
      padding: 0.5rem 1.5rem;
      cursor: pointer;
    }

    /* Style the hamburger menu icon */
    .bar1, .bar2, .bar3 {
      width: 35px;
      height: 5px;
      background-color: #222;
      margin: 6px 0;
      transition: 0.4s;
    }

    /* Rotate first bar */
    .change .bar1 {
      -webkit-transform: rotate(-45deg) translate(-9px, 6px);
      transform: rotate(-45deg) translate(-9px, 6px);
    }

    /* Fade out the second bar */
    .change .bar2 {
      opacity: 0;
    }

    /* Rotate last bar */
    .change .bar3 {
      -webkit-transform: rotate(45deg) translate(-8px, -8px);
      transform: rotate(45deg) translate(-8px, -8px);
    }

    /* Media query for smaller screens */
    @media screen and (max-width: 791px) {
      /* Hide the navbar links */
      .nav-list ul a {
        display: none;
      }

      /* Show the hamburger menu */
      .hamburger {
        display: block;
      }

      /* Show the navbar links when the hamburger menu is clicked */
      .show {
        display: block;
      }
    }

.sidebar {
    width: 25%;
    height: 100%;
    /* min-height: 285px; */
    overflow: auto;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }
  .sidebar img{
    height: 50%;
    width:  50%;
    border-radius: 10px;
  }
  .main {
    width: 60%;
    height: auto;
    min-height: 1000px;
    display: flex;
    flex-direction: column;
  }
  .main, .sidebar {
    border: 5px solid #222;
    background-color: white;
    border-radius: 10px;
    color: #222;
    padding: 15px;
  }
  .wrapper {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    row-gap: 10;
  }
  body {
    /* background-color: #daa71d; */
    background-color: #ffc400;
    /* font-size: 20px; */
    box-sizing: border-box;
    /* font-family: Lato, sans-serif; */
    font-family: poppins;
  }
  .grey-card {
    background-color: #ccc;
    padding: 20px;
    border-radius: 5px;
    width: auto;
    font-size: 14px;
    font-family: Lato, sans-serif;
  }
  .grey-card li {
    margin-top:  10px;
    margin-bottom: 10px;
    list-style-type: square;
  }
  .grey-card-number {
    background-color: #ccc;
    padding: 20px;
    border-radius: 5px;
    width: auto;
    font-size: 14px;
    font-family: Lato, sans-serif;
  }
  .grey-card-number li {
    margin-top:  10px;
    margin-bottom: 10px;
    list-style-type: decimal;
  }
  .bottom {
    justify-self: bottom;
  }

  h2 {
    font-size: xx-large;
  }

  #sidebar {
    top: 100px;
  }

  #tentang {
    padding-top: 85px;
    margin-top: -85px;
  }

  #manfaat {
    padding-top: 85px;
    margin-top: -85px;
  }

  #bahan {
    padding-top: 85px;
    margin-top: -85px;
  }

  #cara-buat {
    list-style-type: decimal;
    padding-top: 85px;
    margin-top: -85px;
  }

  #cara-buat li {
    margin-top:  10px;
    margin-bottom: 10px;
  }

  footer {
    margin-top: 20px;
    border: 5px solid #222;
    background-color: white;
    color: #222;
    padding: 15px;
    text-align: center;
    bottom: 0px;
    font-weight: bold;
    position: relative;
  }

  footer a {
    text-decoration: none;
    color: #000000;
  }

/* Perangkat dengan lebar layar 791px dan di bawahnya */
@media screen and (max-width: 791px) {
  .wrapper .sidebar{
    width: 100%;
    margin: 10px;
  }

  .main {
    margin: 10px;
    height: auto;
    width: 100%;
  }

  .sidebar-nav a {
    border: 1px solid #222;
  }

  .sidebar {
    position: static;
  }

  #tentang {
    padding-top: 105px;
    margin-top: -105px;
  }

  #manfaat {
    padding-top: 105px;
    margin-top: -105px;
  }

  #bahan {
    padding-top: 105px;
    margin-top: -105px;
  }

  #cara-buat {
    list-style-type: decimal;
    padding-top: 105px;
    margin-top: -105px;
  }
}