html {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  font-family: "Caveat Brush", cursive;
  height: 100vh;
  min-height: 600px;
  min-width: 400px;
  width: 100vw;
  margin: 0px;
  background-image: url("Images/Partyps background darker.png");
  background-size: cover;
  grid-row-gap: 10px;
}

a {
  text-decoration: none;
  color: black;
  transition: color 0.4s;
}

a:hover {
  color: #fd5177;
}

/* Title */

header {
  color: #f5f2d0;
  font-size: 1.8rem;
  grid-column: 1/7;
  grid-row: 1/2;
  margin: auto;
  text-align: center;
}

h3 {
  font-size: 100%;
}

/* Search bar */

.search {
  grid-column: 1/7;
  grid-row: 2/3;
  display: flex;
  justify-content: center;
  align-items: center;
}

#search-query {
  flex-grow: 0.3;
  -webkit-appearance: none;
  height: 50px;
  border-radius: 10px;
  border-style: none;
  background-color: #f5f2d0;
  font-family: "Caveat Brush", cursive;
  font-size: 1.2em;
  text-align: center;
  color: #fd5177;
}

#button-clear,
#button-submit {
  width: 70px;
  height: 50px;
  border-radius: 10px;
  border-style: none;
  background-color: #f5f2d0;
  font-weight: bold;
  margin-left: 5px;
  font-family: "Caveat Brush", cursive;
  font-size: 1.2em;
  transition: background-color 0.4s;
  cursor: pointer;
}

#button-clear:hover {
  background-color: #44b790;
}

#button-submit:hover {
  background-color: #fd5177;
}

#button-submit {
  width: 100px;
  background-color: #44b790;
}

#button-clear {
  background-color: #fd5177;
}

#dropdown {
  background-color: #FD5177;
  cursor: pointer;
  font-size: 1.3em;
  border-radius: 10px;
  border: 4px #FD5177 solid;
}

#dropdown:hover {
  background-color: #44B790;
  border: 4px #44B790 solid;
}

/* Playlist area */

.playlist {
  grid-column: 1/7;
  grid-row: 4/6;
  background-color: #f5f2d0;
  margin: 0px 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}


.recipe {
  grid-column: 1/7;
  grid-row: 6/8;
  background-color: #f5f2d0;
  margin: 0px 15px;
  /* Pulled from desktop: to be modified? */
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;

  overflow-y: auto;
}


#playlist-img, #recipe-img {
  max-height:90%;

  padding: 0;
  margin: 0;
  border-radius: 50%;
}


/* Footer */

footer {
  grid-column: 1/7;
  grid-row: 8/9;
  text-align: center;
  color: #f5f2d0;
}

/* Desktop */

@media (min-width: 600px) {
  body {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 10%;
  }

  header {
    grid-column: 2/8;
    grid-row: 1/2;
  }
  .search {
    grid-column: 2/8;
    grid-row: 2/3;
  }

  .playlist, .recipe {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* flex-wrap: wrap; */
    align-items: center;
    border-radius: 6%;
  }



  .playlist {
    grid-column: 2/5;
    grid-row: 3/6;
  }

  .recipe {
    grid-column: 5/8;
    grid-row: 3/6;
  }

  #recipe-img,
  #playlist-img {
    max-width: 40%;
    padding: 0;
    margin: 0;
    border-radius: 50%;
  }

  footer {
    grid-column: 2/8;
    grid-row: 6/7;
  }
}
