/* Global Styles */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom right, #f3f1eb, #d9d2c9);
  color: #cf0707;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-color 1s ease, color 1s ease;
}

/* Welcome Screen */
#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#welcome-screen h2 {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 20px;
}

#welcome-screen p {
  font-size: 1.2em;
  color: #fff;
  margin: 10px 0;
}

#start-game {
  padding: 15px 30px;
  font-size: 1.2em;
  background-color: #30837f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#start-game:hover {
  background-color: #a00505;
}

/* Game Container */
.game-container {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-family: 'Georgia', serif;
  color: #333;
}

.instructions {
  font-size: 1.2em;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.choice {
  font-size: 1.5em;
  padding: 15px 30px;
  background-color: #30837f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.choice:hover {
  background-color: #a00505;
  transform: scale(1.1);
}

.choice i {
  margin-right: 10px;
}

.result {
  margin: 20px 0;
}

#result-message {
  font-size: 1.5em;
  font-weight: bold;
}

#round-wins {
  font-size: 1.2em;
}

#restart {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #30837f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#restart:hover {
  background-color: #a00505;
}

/* Effects */
.gloomy-background {
  background-color: #2c3e50;
  color: #fff;
  transition: background-color 1s ease, color 1s ease;
}

.gloomy-message {
  color: #e74c3c;
  font-weight: bold;
}

#fireworksCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: none;
}
