/* styles.css */

.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
}

.recipe-item {
  border: 1px solid #ccc;
  padding: 10px;
  position: relative; 
}

.recipe-item h2 {
  margin-top: 0;
}

.recipe-item img {
  width: 100%;
  height: auto;
}

/* Style for both buttons */
.button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* Change button color on hover */
.button:hover {
  background-color: #45a049;
}

.delete-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  width: 30px; /* Set equal width and height */
  height: 30px; /* Set equal width and height */
  display: flex;
  justify-content: center;
  align-items: center;
}
