body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f3f4f6;
}

header {
  background: #3498db;
  color: white;
  padding: 1rem 0;
}

#game {
  margin: 20px auto;
  width: 90%;
  max-width: 600px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  position: relative;
  padding: 20px;
}

#scores, #dice-display, #controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

img {
  width: 50px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #2ecc71;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #25a25a;
}

#winner-congratulations {
  text-align: center;
  z-index: 1000;
  animation: fadeIn 1s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #3498db;
  color: #fff;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 300px;
  width: 20%;
}

#winner-congratulations img {
  max-width: 80px;
  height: auto;
  margin: 15px auto 0;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}