body {
  background-color: #111;
  color: #f0f0f0;
  font-family: "Georgia", serif;
  padding: 2rem clamp(1rem, 5vw, 10%);
  text-align: center;
}

#Random {
  color: white;
  background-color: #333;
  font-size: clamp(1rem, 4vw, 1.25rem);
  margin: 1rem auto;
  display: block;
  border-radius: 6px;
  transition: background-color 1s;
  border: none;
  padding: 0.5rem 1.25rem;
}

#Random:hover {
  background-color: #696969;
}

header h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #ff9de5;
  margin-bottom: 0.5rem;
}

header p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: #aaa;
}

hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

#bookshelf {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.book {
  padding: 1rem 2rem;
  border: 2px outset #ff66c4;
  background-color: #111;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
  transition:
    background-color 1.5s,
    color 1.5s;
}

.book:hover {
  background-color: #ff66c4;
  color: #000;
}

footer {
  text-align: left;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #666;
}

footer div {
  display: flex;
  justify-content: space-between;
}

.link {
  padding: 5px;
  text-decoration: none;
  color: #333;
}

.link:hover {
  color: #696969;
}

@media (max-width: 600px) {
  #bookshelf {
    flex-direction: column;
    align-items: stretch;
  }

  footer div {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    text-align: center;
  }
}
