/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
*{
  box-sizing: border-box;
}

/******************************************
/* LAYOUT
/*******************************************/
body {
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#main {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

article {
  height: 80%;
  display: flex;
  gap: 1rem;
  justify-content: space-evenly;
}

.image {
  width: 25%;
}

section {
  width: 70%;
  overflow: scroll;
  padding: 0 1rem;
}

img{
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

nav {
  display: flex;
  justify-content: space-evenly;
  gap: 5rem;
  margin-top: 1rem;
}

button {
  display: block;
}

#main, nav{
  width: 75%;
}

* {
  transition: all 0.7s ease;
}


@media screen and (orientation: portrait) {

  * {
    transition: all 0.7s ease;
  }

  #main, article {
    height: auto;
  }

  .body {
    height: auto;
  }

  #main {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
  }

}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/

body{
  background-color: #292f36ff;
  color: #f7fff7ff;
  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 200;
}

input {
  padding:10px;
  border:0;
  box-shadow:0 0 3px 3px #f7fff7ff;
  margin: 0.5rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  width: 60%;
  height: 2rem;
}

button {
  align-items: center;
  appearance: none;
  background-color: #fff;
  border-radius: 24px;
  border-style: none;
  font-size: 1.2rem;
  box-shadow:0 0 3px 3px #f7fff7ff;
  box-sizing: border-box;
  color: #3c4043;
  padding: 0px 24px;
  height: 2rem;
}

nav button {
  font-size: 1rem;
  height: 1rem;
}

h1 {
  font-size: 4rem;
  font-weight: 400;
}

h2{
  margin-top: 1.5rem;
  font-weight: 300;
  font-size: 3rem;
  text-align: center;
}

h3{
  margin: 1.5rem 0;
  color: #ffe66dff;
  font-size: 1.5rem;
  text-decoration: underline;
}
#ingredients-heading {
  margin-top: 0;
}

.info::-webkit-scrollbar {
  width: 5px;
}

.info::-webkit-scrollbar-thumb {
background-color: #f7fff7ff;
border-radius: 30px;
}

.info::-webkit-scrollbar-corner {
  background: rgba(0,0,0,0);
}

ol {
  list-style-position: outside;
  list-style-type: decimal;
  padding-left: 2rem;
  line-height: 1.3;
}

#description {
  margin: 1rem;
}


@media screen and (orientation: portrait) {
  h1 {
    font-size: 2.5rem;
  }
}


.hidden,
#main.hidden,
nav.hidden {
  height: 0;
  opacity: 0;
}


/*  ------- Colors -------
--gunmetal: #292f36ff;
--robin-egg-blue: #4ecdc4ff;
--mint-cream: #f7fff7ff;
--light-red: #ff6b6bff;
--naples-yellow: #ffe66dff; 
*/

h2 {
    background: linear-gradient(271.72deg, #a2facf 7.09%, #64acff 96.61%);
}
h1 {
  background: linear-gradient(271.72deg, rgb(255, 107, 233) 7.09%, #ff6b6bff 96.61%);
}

h1, h2 {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
