/* flappy.css (separate file for game styles) */

/* Modal Styles (Hidden by default, centered with animation) */
#gameModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Above everything else */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#gameModal.show {
  display: flex;
  opacity: 1;
}

#gamePanel {
  background: #151b24; /* Match your theme (dark background) */
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); /* Nice shadow for depth */
  position: relative;
  max-width: 400px; /* Limit width for mobile/desktop */
  width: 90%; /* Responsive */
  transform: scale(0.9); /* Start slightly scaled down for animation */
  transition: transform 0.3s ease-in-out;
}

#gameModal.show #gamePanel {
  transform: scale(1); /* Scale up on show */
}

#closeGame {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.2s;
}

#closeGame:hover {
  color: #1fe9c7; /* Accent color on hover */
}

/* Game Container Styles */
#game-container {
  position: relative;
  background-color: black;
  border: 1px solid #223;
  border-radius: 8px;
  overflow: hidden;
}

#message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  color: white;
}

#game-over {
  font-size: 36px;
}

#loading {
  font-size: 24px;
  color: white;
}

/* Button styles (sem display: none geral; controlado por JS/HTML) */
button {
  background-color: #4CAF50; /* green */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
}

/* Media Query for Mobile */
@media (max-width: 600px) {
  #gamePanel {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Fullscreen on small screens */
    padding: 0;
  }
  #game-container {
    border: none;
    border-radius: 0;
  }
  canvas {
    width: 100% !important;
    height: auto !important;
  }
}