body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #fff8f0, #ffe5d9);
    margin: 0;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #d35400;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

button {
    background: linear-gradient(45deg, #ff7f50, #ffb347);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

#containerDiv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* כרטיס מתכון */
#containerDiv > div {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

#containerDiv > div:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* שם המתכון */
#containerDiv strong {
    font-size: 18px;
    color: #e74c3c;
    display: block;
    margin-bottom: 10px;
}

/* פרטי מתכון */
#containerDiv p {
    font-size: 14px;
    color: #444;
    margin: 6px 0;
}

/* תמונה */
#containerDiv img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

#containerDiv img:hover {
    transform: scale(1.05);
}

h5{
    color: #e73ccb;
}


/* כרטיס רגיל */
.recipe-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* כשהוא מורחב */
.recipe-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: 200%;
    height: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 999px;
    background: hwb(204 54% 8%);
    padding: 30px;
    font-size: 18px;
}

/* התמונה בכרטיס */
.recipe-card img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    transition: transform 0.6s ease;
}

.recipe-card.expanded img {
    height: 250px;
    transform: scale(1.05);
}
/* רקע שקוף */
.modal {
  display: none; /* מוסתר בהתחלה */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

/* תוכן כרטיס מוגדל */
.modal-content {
  background: #fffaf2;
  border-radius: 15px;
  margin: 5% auto;
  padding: 20px;
  width: 70%;
  max-width: 800px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: zoomIn 0.4s ease;
  text-align: left;
  position: relative;
}

/* כפתור X לסגירה */
.closeBtn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  cursor: pointer;
}

/* אנימציות */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
