@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.8;
  background: radial-gradient(circle at top, #4e342e 0%, #3e2723 100%);
  color: #fcebd5;
}

/* --- Header --- */

header {
  background: linear-gradient(135deg, #3e2723, #5d4037);
  text-align: center;
  padding: 80px 20px;
  border-bottom: 6px solid #8d6e63;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

header h1 {
  font-size: 4em;
  margin: 0;
  color: #fff8e1;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  animation: drop 1.2s ease-out;
}

header p {
  font-size: 1.5em;
  margin-top: 20px;
  color: #ffe0b2;
  font-style: italic;
  animation: fade 2s ease-out;
}

@keyframes drop {
  from { transform: translateY(-80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Main Layout --- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* --- Recipe Section --- */

.recipe h2 {
  font-size: 2.8em;
  color: #ffecb3;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 1px 1px 3px #5d4037;
  border-bottom: 3px dashed #ffcc80;
  padding-bottom: 10px;
  animation: fade 1.5s ease;
}

.recipe ul {
  padding-left: 40px;
  margin-bottom: 40px;
  font-size: 1.2em;
  line-height: 1.8;
}

.recipe li {
    margin-bottom: 12px;
    background-color: #fcebd5;
    padding: 10px 15px;
    border-left: 6px solid #6d4c41;
    border-radius: 8px;
    box-shadow: 2px 2px 0 #8d6e63;
    color: #4e342e;
  }

.ingredients-box {
  margin-bottom: 50px;
}

/* --- Step-by-Step --- */

.steps {
  margin-top: 60px;
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(to right, #5d4037, #4e342e);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border: 2px solid #ffb74d;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-bottom: 40px;
}

.step-row:hover {
  transform: scale(1.02);
  background: linear-gradient(to right, #6d4c41, #3e2723);
}

.step-image img {
  max-width: 550px;
  width: 100%;
  border-radius: 16px;
  border: 4px solid #ffe082;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.step-text {
  font-size: 1.4em;
  color: #fff8e1;
  font-weight: 500;
  text-shadow: 1px 1px 2px #6d4c41;
  max-width: 500px;
  text-align: left;
}

@media (min-width: 768px) {
  .step-row {
    flex-direction: row;
    gap: 30px;
  }

  .step-row img {
    flex: 1;
  }

  .step-row p {
    flex: 2;
  }
}

/* --- Footer --- */

footer {
  background-color: #3e2723;
  text-align: center;
  padding: 25px;
  font-size: 1em;
  color: #fff8e1;
  margin-top: 60px;
  font-family: 'Fredoka', sans-serif;
  border-top: 4px solid #ffcc80;
}

.custom-btn {
  background-color: #5c352f;
  color: #fce8c9;
  border: none;
  padding: 10px 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-btn:hover {
  background-color: #44291f;
}
