* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

body {
  background-color: rgb(41, 42, 42);
  background-image: url(../images/restaurant.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
h1 {
  color: #9c0028;
  font-size: 4rem;
  text-align: center;
  font-weight: bold;
  text-shadow: 3px 4px 5px rgb(43, 42, 42);
  margin-top: 40px;
  margin-bottom: 30px;
}

/*   ********  SEARCH BAR   ********  */
.searchBar {
  border-bottom: 3px solid #9c0028;
  border-top: 3px solid #9c0028;
  background-color: rgba(255, 255, 255, 0.6);
  width: 50%;
  height: auto;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
/*   ********  SELECT OPTION   ********  */
.select {
  width: 60%;
  padding: 10px 20px;
}

/*   ******** SEARCH BUTTON   ********  */
.button {
  width: 20%;
  height: 30px;
  align-items: center;
  background-color: darkgray;
  border-radius: 3px;
  box-shadow: 2px 2px 5px black;
  padding: 5px 5px;
  margin: auto;
  font-size: 18px;
  font-weight: bold;
}

.button:hover {
  background-color: #9c0028;

  font-weight: bold;
  box-shadow: 2px 2px 5px rgb(69, 69, 69);
  transition: 300ms;
}

/*   ******** MAIN SECTION    ********  */

main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* SECTION1 */
.section1 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
/*  ******** FAVORITES SECTION  ********  */
.favorites {
  width: 40%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.8);
  margin-right: 15px;
  box-shadow: 3px 4px 30px gray;

  border-bottom: 3px solid #9c0028;
  border-top: 3px solid #9c0028;
  overflow: auto;
  overflow-y: auto;
  max-height: 300px;
}

/* Save Favorite Button */
#favorites-btn {
  position: absolute;
  bottom: 0;
  right: 10px;
  width: auto;
  font-weight: bold;
  cursor: pointer;
}

#favorites-btn:hover {
  text-shadow: 3px 3px 5px rgb(71, 71, 71);
}

#favoriteslist {
  color: #9c0028;
  border-bottom: 1px solid #9c0028;
}

h2 {
  text-align: center;
  color: white;
  font-weight: bold;
}

/* Go back button styling */
.go-bck {
  bottom: 0;
  right: 10px;
  width: auto;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  font-size: 1.3em;
}

.go-bck:hover {
  text-shadow: 3px 3px 5px rgb(71, 71, 71);
  color: black;
}
.go-bck:visited {
  color: black;
}

/*  ********  RECIPES SECTION  ********  */

.recipes {
  width: 40%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 3px 4px 30px gray;
  border-bottom: 3px solid #9c0028;
  border-top: 3px solid #9c0028;
  overflow: auto;
  overflow-y: auto;
  max-height: 300px;
}

#recipes {
  color: #9c0028;
  border-bottom: 1px solid #9c0028;
}
.recipeslist li {
  margin-left: 10px;
}

.current-recipe {
  border-bottom: 3px solid #9c0028;
  border-top: 3px solid #9c0028;
  background-color: rgba(255, 255, 255, 0.6);
  width: 85%;
  height: auto;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*  COCKTAIL SUGGESTION */

.cocktaildiv {
  background-color: #9c0028;
  width: 50%;
  color: aqua;
  text-shadow: 3px 3px 5px rgb(66, 65, 65);
  width: 60%;
  margin-top: 30px;
  align-items: center;
}

.suggestion {
  border-bottom: 3px solid #dfc9cf;
  border-top: 3px solid #dfc9cf;
  background-color: rgba(156, 0, 40, 0.8);
  width: 60%;
  height: auto;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.drinkimg {
  width: 200px;
  height: auto;
  margin: auto;
  opacity: 100%;
}
.randomCocktail {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: center;
}
.randomCocktail p {
  color: white;
  font-weight: bold;
  text-align: center;
}
.cocktailname {
  font-size: 2em;
  margin-left: 20px;
  color: white;
  order: 2;
  width: 100%;
}
.drinkimg {
  order: 1;
}
.cocktailingredients {
  order: 3;
  color: white;
  width: 100%;
  margin: 20px;
  font-size: 1em;
  text-align: center;
}
.newins {
  color: white;
  order: 4;
  font-size: 1em;
  margin: 20px;
  text-align: center;
}

.cocktailingredients span {
  font-weight: bold;
  margin: 0;
}

.ingredientsUl {
}

.ingredientsUl li {
  text-align: start;
  font-size: 1.3em;
}
.newins {
  font-size: 1.3em;
}

/* *************************************** */
/* *********** MEAL PAGE STYLING ********* */

.current-recipe {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

#meal-title {
  color: #9c0028;
  font-weight: bold;
  /* text-decoration: underline; */
}

.mealp {
  color: #9c0028;
  font-size: 2em;
  font-weight: bold;
}

.mealimg {
  width: 200px;
  height: auto;
  margin: auto;
}

.mealimg1 {
  text-align: center;
}

.mealingredientsUl li {
  text-align: center;
  margin-left: 30px;
  font-size: 1.3em;
  list-style: none;
}
.mealinstructions {
  font-size: 1.3em;
  text-align: justify;
  margin: 2px 30px;
}
.footer {
  color: white;
  text-align: center;
  margin: 30px 20px;
  background-color: rgba(211, 211, 211, 0.6);
  height: 50px;
  align-items: center;
  padding-top: 15px;
  width: 60%;
  margin: auto;

  font-size: 1em;
}

/* ***********  MEDIA QUERY STYLES ******************* */
@media screen and (max-width: 675px) {
  h1 {
    font-size: 2em;
  }

  .searchBar {
    width: 100%;
  }

  main {
    width: 100%;
  }

  .recipes {
    width: 50%;
    font-size: 0.8em;
  }

  .favorites {
    width: 40%;
    font-size: 0.8em;
  }

  .suggestion {
    width: 100%;
  }

  .drinkimg {
    width: 150px;
  }
  .cocktailname {
    font-size: 1em;
  }
  .ingredientsUl {
    margin-bottom: 10px;
    margin-top: 5px;
  }
  .ingredientsUl li {
    font-size: 1em;
  }
  .newins {
    font-size: 1em;
  }

  .footer {
    width: 100%;
    font-size: 0.8em;
  }

  /* MEAL PAGE */
  .current-recipe {
    width: 100%;
  }
  #meal-title {
    font-size: 1.5em;
  }
  .mealingredientsUl {
    font-size: 1em;
  }
  .mealinstructions {
    font-size: 1em;
  }
  .bck-fav-btns {
    display: flex;
  }
  .go-bck {
    margin-left: 20px;
  }
}
