/*Author: All*/

body {
  background-image: url("background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
p {
  color:#e8e1c7;
}
.wrapper {
  flex: 1;
  /* margin-top: 50px; */
}

.top-bar {
  background-color: #9c1e21;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e8e1c7;
  /* margin-bottom: 200px;  */
}

h2 {
  color:#9c1e21
}

h3 {
  color: #e8e1c7;
}

.login {
  color:#e8e1c7
}

.logo a img {
  max-width: 200px;
}

.popular,
.about,
.resources,
.logout {
  padding: 10px;
  font-size: 25px;
}

.content {
  padding: 20px;
  color: #e8e1c7;
  justify-content: center;
}

.row {
  font-size: 25px;
  align-items: center;
  display: flex;
  margin-right: 5px;
  margin-bottom: 20px;
  justify-content: center;
}

.box {
  font-size: 25px;
  align-items: center; /* Center the text vertically */
  border-radius: 10px; /* Add rounded corners to the boxes */
  background-color: #9c1e21;
  width: 220px;
  height: 30px;
  color: #e8e1c7;
  text-align: center;
  display: flex; /* Use flexbox */
  justify-content: center; /* Center the text horizontally */
  padding: 10px;
  margin: 0;
  margin-right: 10px; /* Adjust the margin between the boxes */
  margin-left: 10px; /* Adjust the margin between the boxes */
}

.recommended-box {
  align-items: center; /* Center the text vertically */
  display: flex; /* Use flexbox */
  justify-content: center; /* Center the text horizontally */
  height: 150px;
  border-radius: 10px; /* Add rounded corners to the boxes */
  background-color: #9c1e21;
  padding: 20px;
  color: #e8e1c7;
  text-align: center;
  margin-top: 300px; /* Add space above the recommended recipes box */
}

.greet {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

a {
  color: #e8e1c7;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: black;
}

main {
  padding: 20px 0;
  text-align: center;
  flex: 1;
}

.hero {
  text-align: center;
  color: lightgoldenrodyellow;
  margin-top: 200px;

}

.hero h1 {
  font-size: 42px;
  font-weight: bold;
}

.hero p {
  font-size: 24px;
}

.cta {
  text-align: center;
  margin-top: 20px;
}

.cta button {
  background-color: #e8e1c7;
  color: #9c1e21;
  font-size: 18px;
  padding: 10px 20px;
  border: 0;
  cursor: pointer;
}

footer {
  top: 100%;
  position: sticky;
  background-color: #9c1e21;
  padding: 20px 0;
  text-align: center;
  bottom: 0;
  left: 0;
  right: 0;
}

.copyright {
  font-size: 12px;
}

.greet {
  margin-top: 200px;
  color: #e8e1c7;
}

.ingredient-container {
  display: flex;
  flex-direction: column;
}

.ingredient-checkbox {
  color:#e8e1c7;
  display: block;
  margin-bottom: 5px;
}

.searchForm {
  background-color: #fafad2;
  color: black;
  margin-left: 400px;
  margin-right: 400px;
  border-radius: 5px;
  padding: 5px;
  border: 20px solid #9c1e21;
  align-items: center;
}

#fmSearch {
  background-color: #fafad2;
  color: black;
  text-align: left;
  font-weight: bold;
  padding: 5px;
}

#fmSearch input {
  width: 50%;
  padding: 12px 20px;
  margin: 8px 0px;
  display: inline-block;
  border: 1px solid black;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

#fmSearch select {
  width: 50%;
  padding: 12px 20px;
  margin: 8px 0px;
  display: inline-block;
  border: 1px solid black;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

#fmSearch input[type=number] {
  width: 30%;
}

#fmSearch input[type=submit] {
  text-align: center;
  background-color: #9c1e21;
  color: lightgoldenrodyellow;
  width: 100%;
}

#fmSearch input[type=submit]:hover {
  background-color: #6e1618
}

.idk{
  color:black;
}

/*Table for Search*/
#searchTable {
  border-collapse: collapse;
  width: 100%;
}

#searchTable td, #searchTable th {
  border: 1px solid #ddd;
  padding: 8px;
}

#searchTable tr:nth-child(even){background-color: #fafad2;}
#searchTable tr:nth-child(odd){background-color: #fcfca4;}


#searchTable tr:hover {background-color: #d9d983;}

#searchTable th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #9c1e21;
  color: white;
}

.history {
  margin-left: auto;
  margin-right: auto;
}

.history th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #9c1e21;
  color: white;
}

.history td, tr {
  border-color: #ddd;
  padding: 10px;
}

.history tr:nth-child(even){background-color: #fafad2;}
.history tr:nth-child(odd){background-color: #fcfca4;}
.history tr:hover {background-color: #ce3a00;}

.settings {
  display: table;
  margin: 0 auto;
  text-align: center;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 2%;
  padding-bottom: 2% ;
  background-color: coral;
  border-radius: 25px;
}

.mealPage {
  display: table;
  margin: 0 auto;
  text-align: center;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 2%;
  padding-bottom: 2% ;
  background-color: coral;
  border-radius: 25px;
  overflow: hidden;
  width: 50%;
}

.mealPage img {
  border-color: white;
  border-radius: 5%;
}

.reviews {
  display: table;
  margin:  -25px auto;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 2%;
  padding-bottom: 2% ;
  background-color: white;
  color: black;
  width: 50%;
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
  opacity: .9;
}

.reviews h3, p {
  color: black;
}

.rateMealForm {
  display: table;
  margin: 0 auto;
  text-align: center;
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 2%;
  padding-bottom: 2% ;
  background-color: #9c1e21;
  border-radius: 5%;
  color: #e8e1c7;
}

.rateMealForm p {
  color: #e8e1c7;
}