*{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    margin: 15px;
}


header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-wrap: wrap;
    
}


header h1{
    color: purple;
    font-size: 25px;
}


.nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; 
    flex-wrap: wrap;
}

.nav ul li a{
    text-decoration: none;
    color: purple;
}

.dropdown-menu-item {
    position: relative; 
    margin: 0;
    padding: 0; /* Hapus padding LI utama, karena LI utama sudah diatur di atas */
}

.dropdown-menu-item a {
    /* Menambahkan sedikit jarak antara teks dan panah (jika menggunakan ikon/simbol) */
    padding-right: 15px; 
    /* Gunakan CSS content untuk menambahkan panah ke bawah (v) */
    position: relative;
}

.dropdown-menu-item a:after {
    content: none !important;
}


/* Isi Dropdown (Sembunyikan secara default) */
.dropdown-content {
    display: none !important; /* Gunakan !important sementara untuk menguji * */
    
    position: absolute; 
    top: 100%; 
    left: -10px; 
    
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15); 
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
}

.dropdown-content li {
    display: block; 
    /* Hapus margin/padding berlebihan di sini */
    margin: 0; 
}

.dropdown-content li a {
    color: purple; 
    /* Kunci: Kurangi padding agar kotak lebih rapat */
    padding: 8px 16px; 
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap; /* Mencegah teks melompat ke bawah */
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: rgb(176, 122, 226);
}

.dropdown-menu-item:hover .dropdown-content {
    display: block !important; 
}

.nav ul li a:hover{
    color: rgb(176, 122, 226);
}

.nav ul li {
    list-style: none;
    display: flex; 
    align-items: center;
    padding: 0 10px; 
}

.home{
    height: 600px;
    margin: 0;
    padding: 0;
    display: contents;
}

.home h2{
    font-size: 40px;
    padding: 0 25px;
    padding-top: 70px;
    line-height: 45px;
}

h2 .note {
    color: purple;
}

.home p{
    width: auto;
    max-width: 430px;
    padding: 0 25px;
    line-height: 1.5;
    text-align: justify;
    font-size: small;
    color: rgb(126, 123, 123);
}

.home a{
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(252, 250, 250);
    background-color: purple;
    line-height: 50px;
    margin-left: 40px;
    border-radius: 20px;
}

.home a:hover{
    background-color: rgb(171, 150, 190);
}

.home img{
    /* border: 1px solid; */
    width: 100%;
    height: auto;
    max-width: 450px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    right: 1000px;
    margin-left: 700px;
    margin-top: -330px;
}

.about{
    border-style: dashed;
    margin-top: 200px;
    background-color: rgb(230, 203, 230);
    padding: 0;
    
}
.about h2{
    padding-top: 225px;
    font-size: 30px;
    text-align: center;
    background-color: rgb(230, 203, 230);
}

.about p{
    width: auto;
    margin: 0 150px;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    background-color: rgb(230, 203, 230);
    margin-bottom: 200px;
}

footer p{
    padding: 10px 0;
    background-color: rgb(230, 203, 230);
    width: content;
    text-align: center;
    margin: 0;
    font-size: 15px;
}

.favorite{
    padding: 8px 0;
    font-size: 20px;
}

.favorite h2{
    text-align: center;
}

.recipe-cards {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: flex-start; 
  gap: 20px; 
}

.recipe-item {
  width: 200px; 
  text-align: center; 
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.recipe-item img {
  width: 80%; 
  height: auto;
  border-radius: 8px;
}

.recipe-item h3 {
  font-size: 0.9em;
  color: #333;
  margin-top: 10px;
}

.recipe-item a {
  display: inline-block; 
  text-decoration: none;
  color: white;
  background-color: #9b59b6; 
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 15px;
}

.recipe-item a:hover{
    background-color: rgb(171, 150, 190);
    transform: scale(1.05);
    transition: all 0.3s;
}

/* .recipe-cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.recipe-overlay{
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-overlay img{
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.overlay-content{
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(10, 10, 10);
    text-align: center;
    box-sizing: border-box;
}

.overlay-content .h3{
    font-size: 1.4em;
}

.overlay-content a{
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: purple;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.7em;
    transition: background-color 0.3s ease;
}

.overlay-content a:hover {
  background-color: rgb(176, 122, 226); 
}

.dessert h3, .non-dessert h3 {
    margin-top: 40px; 
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
} */
