body {
  background: rgb(232, 216, 124);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
  text-align: center;
  font-size: 50px;
  text-shadow: 2px 2px 4px rgb(94, 97, 91);
}

#book-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-content: center;
}

.controls {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
  padding: 10px;
}

.controls select,
.controls input,
#random-book {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

#random-book {
  background-color: #4fa763;
  color: white;
  border: none;
  cursor: pointer;
}

#random-book:hover {
  background-color: #0e451a;
}

.book {
  font-family: 'Courier New', Courier, monospace;
  border: 1px solid green;
  padding: 10px 25px 0 25px;
  margin: 10px;
  border-radius: 10px;
  background-color: #76cd8a;
  box-shadow: 5px 5px 10px rgb(29, 73, 31);
  max-width: 300px;
  text-align: center;
}

.book img {
  width: 150px;
  height: 150px;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 5px 5px 10px rgb(21, 25, 21);
  border: 3px solid black;
}

.random-book-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Padda, 2 kolumner */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  #book-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .book {
    max-width: 350px;
    margin: 20px auto;
  }

  .book img {
    width: 150px;
    height: 150px;
    margin-top: 10px;
    object-fit: cover;
    border-radius: 50%;
  }
}

/* Dator, 4 kolumner*/
@media screen and (min-width: 1025px) {
  #book-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .book {
    max-width: 400px;
    margin: 20px;
    text-align: center;
  }

  .book img {
    width: 150px;
    height: 150px;
    margin-top: 10px;
    object-fit: cover;
    border-radius: 50%;
  }

  .controls {
    display: flex;
    gap: 25px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
  }

  #random-book-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
  }

  #random-book-container .book {
    margin: 0 auto;

  }

}