/* ===== BASE SITE CSS START ===== */
*, *::before, *::after{
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* ===== BASE SITE CSS END ===== */

.hover-button {
  background-color: steelblue;
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}


.hover-button:hover {
  background-color: maroon;
  transform: scale(1.1);
}

/* Sektion til brugerens egne opskrifter */
.recipe-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  font-family: sans-serif;
}

.recipe-section h2 {
  margin-left: 0;
  color: maroon;
}

#recipeForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#recipeForm label {
  font-weight: bold;
}

#recipeForm input,
#recipeForm textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font: inherit;
}

#recipeForm textarea {
  resize: vertical;
}

.add-recipe-button {
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  background-color: maroon;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.add-recipe-button:hover {
  background-color: #650000;
}

.recipe-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.recipe-card {
  padding: 15px;
  border: 1px solid #ccc;
  border-left: 5px solid maroon;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.recipe-card h3 {
  margin-top: 0;
  color: maroon;
}

.recipe-card p {
  margin-left: 0;
  white-space: pre-wrap;
}

body.dark-mode .recipe-card {
  background-color: #333;
  color: white;
  border-color: #666;
}

body.dark-mode .recipe-card h3 {
  color: #ffaaaa;
}

body.dark-mode #recipeForm input,
body.dark-mode #recipeForm textarea {
  background-color: #333;
  color: white;
  border-color: #777;
}
   
  .dark-theme {
    background-color: rgb(19, 15, 19);
    color: white;
  }
  .dark-theme .theme-button {
    background-color: rgb(223, 223, 223);
    color: black;
  }
   
  .dark-button {
    background-color: rgb(41, 41, 41);
    color: rgb(8, 8, 8);
  }
   
  .themeToggle {
    border-radius: 10px;
    color: white;
    background-color: rgb(49, 49, 49);
    margin-top: 10px;
    height: 56px;
    margin: 20px;
    padding: 20px;
  }

