:root {
  --primary-color: #2196F3;
  --secondary-color: #FFC107;
  --accent-color: #4CAF50;
  --background-color: #E3F2FD;
  --bird-color: #FFEB3B;
  --pipe-color: #4CAF50;
  --ground-color: #795548;
  --sky-color: #81D4FA;
}

body {
  font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
  background-color: var(--background-color);
  background-image: 
    radial-gradient(circle, rgba(255,255,255,.3) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.3) 2px, transparent 2px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
}

.game-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #E3F2FD;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score, .high-score {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.high-score {
  color: var(--secondary-color);
}

.game-stage {
  position: relative;
  width: 400px;
  height: 480px;
  margin: 0 auto 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#game-canvas {
  background-color: var(--sky-color);
  display: block;
  width: 400px;
  height: 480px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.overlay h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.overlay p {
  margin: 10px 0;
  font-size: 1.2rem;
}

.hidden {
  display: none;
}

#start-button, #restart-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

#start-button:hover, #restart-button:hover {
  background-color: #1E88E5;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.control-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  background-color: #1E88E5;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.sound-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sound-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.instructions {
  background-color: #E3F2FD;
  padding: 15px;
  border-radius: 15px;
  margin-top: 20px;
  text-align: left;
}

.instructions h3 {
  color: var(--primary-color);
  margin-top: 0;
  text-align: center;
}

.instructions p {
  margin: 8px 0;
}

@media (max-width: 768px) {
  .game-info {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .game-stage {
    width: 320px;
    height: 420px;
  }
  
  #game-canvas {
    width: 320px;
    height: 420px;
  }
} 