@media (prefers-color-scheme: light) {
  :root {
    --text-color: black;
  }
  body {
    background-color: white;
    color: black;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color:white;
  }
  body {
    background-color:#000;
    color:white;
  }
}

body {
  margin: 0;
}

h1 {
  font-size: xx-large;
  font-weight: bold;
  color: #000;
}

h2 {
  font-size: large;
  font-weight: bold;
  color: #000;
}

.recipeName {
  font-size: x-large;
  font-weight: bold;
  color: #4b6c9e;
}

#recipeDetails {
  display: grid;
  grid-template-columns: 230px auto;
  padding: 5px;
  gap: 10px;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.checkbox-group span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#recipeImg img {
  width: 200px;
  height: 200px;
  object-fit: scale-down;
}

.editForm {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 5px;
  gap: 10px;
}

.smallForm {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 5px;
  gap: 10px;
  max-width: 600px;
}

header {
  font-size: xx-large;
  font-weight: bold;
  color: white;
	background: #3a4f63;
  padding: 10px;
  height: 50px;
  margin: 0;
  position: fixed;
  width: 100vw;
  top:0px;
  align-content: center;
}

main {
  margin-left:100px;
  margin-top:70px;
  padding:1px 16px 10px;
} 

a {
  text-decoration: none;
  color: #4b6c9e;
}

a:hover {
  color: red;
}

ul.nav {
  list-style-type: none;
  border-right: 1px solid #555;
  margin: 0;
  padding: 0;
  width: 100px;
  background-color: #4b6c9e;
  position: fixed;
  height: calc(100vh - 70px);
  overflow: auto;
  top: 70px;
}

ul.nav li {
  text-align: center;
  border-bottom: 1px solid #555;
}

ul.nav li:last-child {
  border-bottom: none;
}

ul.nav li * {
  padding: 8px 16px;
  display: block;
}

ul.nav li a {
  color: white;
}

ul.nav li a:hover {
  background-color: #ddd;
}

ul.nav li a.active {
  background-color: #04AA6D;
  color: white;
  pointer-events: none;
}

ul.nav li a:hover:not(.active) {
  background-color: rgb(74, 91, 111);
  color: white;
}

a.disabled {
  pointer-events: none;
  background-color: #555;
}

hr.solid {
  border-top: 1px solid #555;
  margin: 10px 0px 10px 0px;
}

.right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex .right {
  margin-left: auto;
  margin-right: 0;
}

.deleteButton {
  background-color: red;
  border: 1px solid red;
}

.deleteButton:hover {
  border: 1px solid red;;
}

.mainButton {
  background-color: #04AA6D;
  border: 1px solid #04AA6D;
}

.mainButton:hover {
  border: 1px solid #04AA6D;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #4b6c9e;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

select:hover {
  background-color: #555;
}

#recipeSelect {
  width: 215px;
}

#recipeSearch {
  width: 200px;
}

button {
  background-color: #4b6c9e;
  color: white;
  padding: 10px 20px;
  border: 1px solid #4b6c9e;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #555;
  border: 1px solid #555;
}

table, th, td {
  border: 1px solid #555;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
}

th {
  background-color: #4b6c9e;
  color: white;
}

.form-actions {
  display: flex;
  padding: 0px;
  gap: 10px;
  flex-direction: row-reverse; /* Reverse the elements inside */
}

.errMsg {
  color: red;
  font-size: large;
  font-weight: bold;
}

.userButton {
  width: 100%;
}