/* TappyBird Game Styles - Compiled from SCSS */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #90EE90 70%, #90EE90 100%);
  font-family: "Arial", sans-serif;
}

#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #90EE90 70%, #90EE90 100%);
}

#gameCanvas {
  display: block;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  position: relative;
}

.game-ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}
.game-ui .score {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.game-ui .high-score {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFD700;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.game-ui .countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFD700;
  font-size: 8rem;
  font-weight: bold;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: countdownPulse 1s ease-in-out;
}

.start-screen,
.game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  pointer-events: all;
  z-index: 100;
}

.start-screen {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.start-screen .game-title {
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.start-screen .game-subtitle {
  margin-bottom: 1.5rem;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.start-screen .game-description {
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.start-screen .btn-game {
  margin: 1.5rem 0;
  padding: 1rem 2rem;
}

.start-screen .instructions {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.start-screen .instructions p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.start-screen .instructions p:last-child {
  margin-bottom: 0;
}

/* Responsive margins for mobile */
@media (max-width: 768px) {
  .start-screen {
    padding: 1rem 0.5rem;
  }
  
  .start-screen .game-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .start-screen .game-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  
  .start-screen .game-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .start-screen .instructions {
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
  }
}

.game-title {
  font-size: 4rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
}

.game-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.btn-game {
  font-size: 1.5rem;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.btn-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.instructions {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.final-score {
  font-size: 2rem;
  margin: 1rem 0;
  color: #FFD700;
}

.score-history {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  max-width: 400px;
}
.score-history h4 {
  color: #FFD700;
  margin-bottom: 15px;
  text-align: center;
}

.score-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1.1rem;
}
.score-item.best-score {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid #FFD700;
}
.score-item .score-rank {
  color: #87CEEB;
  font-weight: bold;
}
.score-item .score-value {
  color: white;
  font-weight: bold;
}

.new-record {
  color: #00FF00;
  font-size: 1.2rem;
  margin: 10px 0;
  animation: recordBlink 1s ease-in-out infinite alternate;
}

.clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.clouds .cloud {
  position: absolute;
  color: white;
  opacity: 0.9;
  animation: float 20s linear infinite;
  /* 3D Cloud Effects */
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    4px 4px 8px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  z-index: 2;
}

.bird-icon {
  position: absolute;
  font-size: 2rem;
  color: #FFD700;
  animation: flap 0.5s ease-in-out infinite alternate;
}

@keyframes countdownPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes recordBlink {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
@keyframes float {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(calc(100vw + 100px));
  }
}
@keyframes flap {
  0% {
    transform: rotate(-10deg) scale(1);
  }
  100% {
    transform: rotate(10deg) scale(1.1);
  }
}
@media (max-width: 768px) {
  .game-title {
    font-size: 2.5rem;
  }
  .game-subtitle {
    font-size: 1.2rem;
  }
  .btn-game {
    font-size: 1.2rem;
    padding: 12px 24px;
  }
  .score {
    font-size: 2rem;
  }
}
