.mainDiv {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: rgba(240, 82, 8, 0.35) 0px 5px 15px;
    padding: 30px;
    margin: 60px auto;
    border-radius: 25px;
    max-width: 80%;
    position: relative;
    z-index: 1;
    display: none;
     transition: all 0.3s ease;
}

.mainDiv.active {
  display: block;
}
.Di h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.recipe-image-wrapper {
    flex: 1.5;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    border-radius: 20px;
}

.ingredients-wrapper {
    flex: 1;
    background: linear-gradient(135deg, #fef9f0 0%, #fef5e8 100%);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ea6a14;

}

.ingredients-wrapper h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #ea6a14;
    font-weight: 600;
    padding-bottom: 10px;
    display: inline-block;

}


.ingredients {
    padding: 0;
    margin: 0;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #2a2824;
    font-size: 18px;
    line-height: 30px;
}

.ingredients li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffebc6c1;
    margin-bottom: 4px;
    padding: 6px 4px;
    border-radius: 12px;
    color: #2a2824;
    font-size: 16px;
}
.instructions {
    background: linear-gradient(135deg, #fef9f0 0%, #fef5e8 100%);
    padding: 30px 35px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    border-left: 4px solid #ea6a14;
    margin: 0;
}

.instructions h3 {
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 20px;
    color: #ea6a14;
    font-weight: 600;
}

.instructions p {
    font-size: 16px;
    color: #2a2824;
    margin: 0;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ingredients-wrapper {
    background-color: #f8f5f0;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



/* Responsive design */
@media (max-width: 768px) {
    .Di {
        margin: 20px;
        padding: 20px;
    }

    .recipe-content {
        flex-direction: column;
        gap: 25px;
    }

    .recipe-image-wrapper {
        flex: auto;
    }

    .recipe-image {
        height: 300px;
    }

    .instructions {
        padding: 20px;
    }
}
.close-btn {
  position: absolute;
  top: 30px;
  right: 4rem;

  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;

  color: #710707;
  transition: 0.3s;
}

.close-btn:hover {
  color: #f66505;
  transform: scale(1.3);
}
.img-container {
    position: relative;
}

.fav {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 5;
}

.fav svg {
    width: 38px;
    height: 38px;
    transition: 0.3s;
}

.fav.active path {
    fill: #EF4343;
}