.container {
  width: 70%;
  margin: auto;
  text-align: center;
}

.dice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.dice {
  text-align: center;
  display: inline-block;
  margin: 10px;
}

body {
  min-height: 100vh;
  background-color: #FFEFC8;
}

h1 {
  margin: 30px;
  font-family: 'Lobster', cursive;
  text-shadow: 2px 0 #B8D576;
  color: #FFD95F;
  text-align: center;
  font-size: clamp(4rem, 8vw, 10rem);
  word-break: break-word;
}

p {
  font-size: 2rem;
  color: #B8D576;
  font-family: 'Indie Flower', cursive;
}

img {
  width: 80%;
  max-width: 256px;
  height: auto;
}

footer {
  margin-top: 5%;
  padding-bottom: 1.5rem;
  color: #D70654;
  text-align: center;
  font-family: 'Indie Flower', cursive;
}

a {
  color: #D70654;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: #a90442;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#rollButton {
  background-color: #D70654;
  color: #FFEFC8;
  font-size: 2rem;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 150ms ease, transform 150ms ease;
}

#rollButton:hover {
  background-color: #b50549;
  transform: translateY(-2px);
}

#rollButton:active {
  transform: translateY(0);
}

#rollButton:focus-visible,
footer a:focus-visible {
  outline: 3px solid #B8D576;
  outline-offset: 4px;
}

.input-group input {
  font-family: 'Indie Flower', cursive;
  font-size: 1.5rem;
  color: #D70654;
  background-color: #FFEFC8;
  border: 2px solid #B8D576;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

.input-group input:focus {
  color: #D70654;
  background-color: #FFF8E8;
  border-color: #D70654;
  box-shadow: 0 0 0 0.2rem rgb(215 6 84 / 18%);
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  h1 {
    font-size: 3rem;
  }

  img {
    width: 50%;
  }
}
