/* google-fonts */
@import url("https://fonts.googleapis.com/css2?family=Arima:wght@100..700&family=Atma:wght@300;400;500;600;700&family=Playwrite+DE+Grund:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Teachers:ital,wght@0,400..800;1,400..800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: linear-gradient(
      109.6deg,
      rgb(17, 151, 147) 11.2%,
      rgb(154, 214, 212) 55.4%,
      rgb(255, 233, 171) 100.2%
    )
    center/cover no-repeat fixed;
  color: #333;
  font-family: "Atma";
}

.game-container {
  margin: 50px auto;
  padding: 20px;
  max-width: 500px;
  background: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #555;
}

.choices {
  margin-bottom: 20px;
}
/* turns */
.choice {
  padding: 10px 20px;
  margin: 10px;
  font-size: 1rem;
  color: #fff;
  background: #007bff;
  border: 1px solid black;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  animation: fadeIn 0.5s ease-in-out;
}

.choice:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.cheat {
  background: #28a745;
}

.cheat:hover {
  background: #1c7430;
}

.results {
  animation: slideIn 0.5s ease-in-out;
}

.results p {
  font-size: 1.2rem;
  margin: 10px 0;
}

.results span {
  font-weight: bold;
  animation: highlight 0.5s ease-in-out;
}

.random-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 20px 0;
}

.dice {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    44.8deg,
    rgba(255, 136, 102, 0.67) -53.1%,
    rgba(255, 221, 136, 0.28) 49%
  );
  border: 2px solid #3f3a3a;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: #555;
  animation: shake 0.8s infinite ease-in-out;
}
a {
  text-decoration: none;
  color: darkred;
}
@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
}

/* Keyframes for button fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframes for results slide-in */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keyframes for text highlight */
@keyframes highlight {
  from {
    color: #555;
  }
  to {
    color: #ff5722;
  }
}
