@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Courgette', cursive;
}

.container{
  width: 95%;
  margin: auto;
}

.current{
  background-color: lightseagreen;
}

header{
  color: white;
  background-color: #1a1a1a;
}

.nav{
  padding: 10px 0;
  font-size: 1.5rem;
}

.wrapper{
  display: grid;
  grid-template-columns: 20% 80%;
}

.menu, .responsive-menu{
  min-height: 100vh;
  background-color: #1a1a1a;
}

.menu a , .responsive-menu a{
  color: white;
  text-decoration: none;
}

.menu li, .responsive-menu li{
  cursor: pointer;
  list-style-type: none;
  transition: 1s ease;
  padding: 10px 25px;
}

.menu li:hover, .responsive-menu li:hover{
  background-color: rgba(255, 255, 255, 0.493);
}

.responsive-menu i{
  font-size: 1.5rem;
}

.responsive-menu{
  display: none;
}

.cheff{
  padding: 20px 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: black;
}

.cheff i{
  font-size: 3.5rem;
  color: white;
}

.cheff p{
  text-align: center;
  color: lightseagreen;
}

.display{
  background-color: black;
}

.display i{
  color: white;
  margin-top: 20px;
  font-size: 2.5rem;
  transition: 1s;
}

.display i:hover{
  color: lightseagreen;
}

/* index.html */
.search{
  color: white;
  width: 93%;
  margin: auto;
  margin-top: 20px;
}

.search h2{
  font-size: 1.5rem;
  padding: 10px 0;
}

.search input{
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  background-color: #1a1a1a;
}

.my-recipe-cards, .saved-recipe-cards, .search-recipe-cards, .view-recipe-card{
  overflow: hidden;
  position: relative;
  width: 95%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card, .big-card{
  width: 300px;
  height: auto;
  margin: 10px 0;
  transition: 1s ease;
  background-color: #1a1a1a;
  padding-bottom: 10px;
}

.big-card{
  width: 700px;
}

.card h1,.card h4, .big-card h1{
  color: lightseagreen;
}

.card p, .big-card p{
  color:white;
}

.images, .big-image{
  width: 100%;
  height: 200px;
  background-position: center;
  background-size: cover;
}

.big-image{
  height: 400px;
}

.name{
  padding: 10px 10px 10px 18px;
}

.name h1{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.other, .view-other{
  padding: 0 20px;
}

.other p{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 5px 0;
}

.view-other p{
  padding: 5px 0;
}

.other span, .view-other span{
  color: lightseagreen;
}

.other a{
  color: blue;
  text-decoration: none;
  transition: 1.5s ease;
}

.save-btn, .del-btn{
  text-align: right;
  margin: 0 10px 10px 0;
}

.save-btn button, .del-btn button{
  padding: 8px;
  color: white;
  border: none;
  border-radius: 2px;
  transition: 1s ease;
  background-color: lightseagreen;
}

.save-btn button:hover, .del-btn button:hover{
  background-color: rgba(255, 255, 255, 0.493);
}

.save-btn i, .del-btn i{
  color: white;
  cursor: pointer;
  font-size: 2rem;
  transition: 1s ease;
}

.save-btn i:active, .del-btn i:active{
  transform: translateY(4px);
}

.save-btn i:hover, .del-btn i:hover{
  color: lightseagreen;
}

.save-btn a{
  color: white;
  text-decoration: none;
}

/* End index.html */

/* add-recipe.html */
.add-recipe{
  width: 95%;
  margin: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.box{
  margin: 0 20px;
}

.box textarea{
  resize: none;
  color: white;
  margin: 5px 0;
  padding: 8px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  background-color: #1a1a1a;
}

.box button{
  margin: 5px 0;
  padding: 10px;
  border: none;
  color: white;
  width: 100%;
  cursor: pointer;
  border-radius: 2px;
  transition: 1s;
  background-color: lightseagreen;
}

.box button:active{
  transform: translateY(4px);
}

#recipe-img{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: darkgray;
  width: 335px;
  height: 216px;
  margin: 5px 0 10px 0;
  border-radius: 2px;
  border: 2px dotted lightgray;
  background-color: #1a1a1a;
}

#recipe-img i{
  padding: 10px 0;
  font-size: 2.5rem;
}

#recipe-img input{
  cursor: pointer;
  text-align: center;
  border: 1px solid white;
}

/* search-recipes.html */
.search input{
  margin-bottom: 10px;
  color: white;
}

@media(max-width:768px){
  .wrapper{
    grid-template-columns: 10% 90%;
  }

  .menu{
    display: none;
  }

  .responsive-menu{
    display: block;
  }

  .responsive-menu li{
    padding: 10px 0;
    text-align: center;
  }

  .cheff i{
    font-size: 1.5rem;
    color: white;
  }

  .display i{
    font-size: 1.5rem;
  }

  .card{
    width: 100%;
  }

  .box{
    width: 100%;
  }

  #recipe-img{
    width: 100%;
  }

  .box textarea{
    width: 100%;
  }
}

@media(max-width:480px){
  .big-image{
    height: 200px;
  }

  .save-btn i, .del-btn i{
    font-size: 1.5rem;
  }

  .nav, .search h2, .other p, h1{
    font-size: 1rem;
  }

}
