* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Page setup */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #c0a7a7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Recipe card */
.recipe-details {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  width: 600px;        
  max-width: 90%;       
  padding: 20px;
  text-align: center;
}

/* Recipe image */
.recipe-image {
  width: 100%;
  height: 300px;        
  object-fit: cover;    
  border-radius: 10px;
  margin: 10px auto;
  display: block;
  transition: transform 0.3s ease;
}

.recipe-image:hover {
  transform: scale(1.05);
}

/* Title */
h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Ingredient + Instruction lists  */
.ingredients-list,
.instructions-list {
  max-height: 0;
  overflow: hidden;
  margin-top: 10px;
  text-align: left;
  transition: max-height 0.5s ease;
}

.show {
  max-height: 500px; 
}

/* List items */
.ingredients-list li,
.instructions-list li {
  margin: 5px 0;
  padding: 8px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.ingredients-list li:hover,
.instructions-list li:hover {
  background-color: #ffe0b2;
  transform: translateX(5px);
}

/* Buttons */
button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

button:focus {
  outline: none;
}

button:active {
  background-color: #3e8e41;
}

/* Restart button */
.restart {
  background-color: #e53935;
}

.restart:hover {
  background-color: #c62828;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 15px;
}

.progress-bar {
  height: 10px;
  width: 0;
  background: #4CAF50;
  border-radius: 5px;
  transition: width 0.5s ease; 
}
