html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ECDFCC;
  scroll-behavior: auto;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #464E2E;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  z-index: 1000;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.logo a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease-in-out;
  margin-right: 2.5rem;
  color: white;
}

.logo a:hover {
  color: #FFD700;
}


nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #F7DCB9;
  font-size: larger;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transform 0.25s ease;
}

nav ul li a:hover {
  color: #FFD700;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
  -webkit-transform: scale(1.08);
  -moz-transform: scale(1.08);
  -ms-transform: scale(1.08);
  -o-transform: scale(1.08);
}

nav ul li a:active {
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

#nav-menu li a.active {
  color: #FFD700; /* Warna yang berbeda */
  border-bottom: 2px solid white; /* Garis bawah */
}


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.menu-toggle:hover div {
  background-color: #FFD700;
  transform: scaleX(1.2);
}

@media screen and (max-width: 768px) {
  html, body {
    overscroll-behavior: contain;
  }

  .menu-toggle {
      display: flex;
      margin-right: 1.5rem ;
  }

  .logo {
    color: white;
    font-size:x-large;
    font-weight: 900;
  }

  nav ul {
      display: none;
      flex-direction: column;
      background-color: #464E2E;
      position: absolute;
      top: 90px;
      left: 0;
      width: 100%;
  }
  nav ul.active {
      display: flex;
  }
  nav ul li {
      text-align: center;
      padding: 10px;
      margin-right: 2.1rem;
  }
}

@media (max-width: 390px) {
  html, body {
    overscroll-behavior: contain;
  }

  .menu-toggle {
    display: flex;
    margin-right: 5rem; 
  }

  .logo {
    font-size: large; 
    font-weight: 900; 
  }
  
  .product-card {
    margin-bottom: 3rem;
  }

  #sawit-container {
    margin-bottom: 3rem;
  }

  .resep-container {
    margin-bottom: 3rem;
  }
}

@media (max-width: 360px) {
  html, body {
    overscroll-behavior: contain;
  }

  .navbar {
    padding: 0 0.5rem; /* Kurangi padding agar lebih pas */
  }

  .logo {
    font-size: medium; /* Perkecil ukuran logo */
    font-weight: 900; /* Kurangi ketebalan sedikit */
  }

  .menu-toggle {
    margin-left: 4rem; /* Tetap dorong menu ke kanan */
    transform: scale(0.9); /* Perkecil sedikit ikon menu */
  }

  .product-card {
    margin-bottom: 3rem;
  }

  #sawit-container {
    margin-bottom: 3rem;
  }

  .resep-container {
    margin-bottom: 3rem;
  }
}