* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #032d80, #fdbb2d);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

center {
  width: 100%;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.8rem;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 30px;
  border-radius: 15px;
  display: inline-block;
  animation: pulse 2s infinite;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.game {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 900px;
}

.game button {
  position: relative;
  padding: 20px 40px;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.game button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.game button:hover::before {
  transform: translateX(0);
}

.game button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.game button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game button:nth-child(1) {
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: #ffd700;
}

.game button:nth-child(2) {
  background: linear-gradient(135deg, #4169e1, #6495ed);
  color: #fff;
}

.game button:nth-child(3) {
  background: linear-gradient(135deg, #dc143c, #ff6347);
  color: #fff;
}

.game b {
  flex-basis: 100%;
  height: 0;
}

#result {
  font-size: 2rem;
  margin: 30px 0;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  max-width: 800px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-animate {
  animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    padding: 10px 20px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .game {
    gap: 15px;
  }

  .game button {
    padding: 15px 25px;
    font-size: 1.2rem;
    min-width: 140px;
  }

  #result {
    font-size: 1.5rem;
    padding: 15px 25px;
  }
}

@media (max-width: 480px) {
  .game {
    flex-direction: column;
    align-items: center;
  }

  .game button {
    width: 80%;
    max-width: 250px;
  }
}
#reset-button {
  background-color: red;
}
#score {
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;

  background: rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

  max-width: 800px;
  margin: 30px auto 0 auto;
}
