/* /wp-content/themes/promptifi-core/assets/css/flappybara.css */

/* Prevent Safari from auto‐resizing text and disable selection/tap highlight */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

/* Disable text selection and tap highlight on game elements */
html,
body,
.game-container,
canvas#gameCanvas {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #70c5ce;
  font-family: 'Press Start 2P', monospace;
}

/* Header – full width, no clipping */
header.widgetwheel-header {
  width: 100%;
  padding: 2rem;
  background-color: rgba(17,17,17,0.85);
  border: 4px double #9b59b6;
  text-align: center;
  box-shadow: 0 0 20px #9b59b6;
  position: relative;
  z-index: 10;
  overflow: visible;
  animation: strobeHeader 2s infinite;
}
@keyframes strobeHeader {
  0%,17%,19%,21%,23%,25%,100% { opacity: 1; }
  18%,20%,22%,24%            { opacity: 0.2; }
}

.widgetwheel-title {
  font-size: 2.5rem;
  color: #9b59b6;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px #9b59b6;
}

.prompt-ninja-text {
  font-size: 1.2rem;
  color: #ffd700;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 0 8px #ffd700, 0 0 16px #ffd700;
  position: absolute;
  left: -100%;
  top: 75%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: swipeIn 2s forwards 1.5s;
}
@keyframes swipeIn {
  0%   { left: -100%; }
  100% { left: 50%; transform: translateX(-50%) translateY(-50%); }
}

/* Game container – responsive 4:3 */
.game-container {
  position: relative;
  width: 95%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  margin: 1rem auto;
  border: 4px solid #000;
  background: #70c5ce;
  touch-action: none;
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* Description – match the game’s width */
.description {
  width: 95%;
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(17,17,17,0.85);
  color: #ffd700;
  border: 2px solid #9b59b6;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 8px;
  animation: slideInRight 1.2s ease-out forwards;
}
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}
.description h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: #9b59b6;
  margin-bottom: 0.8rem;
}

/* Distance tracker */
.distance-tracker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Arial Black', sans-serif;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

/* Home button (in button-group under description) */
.button-group {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.button-group .home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 10px;
  border: 3px solid #ffff00;    /* neon‐yellow */
  background: #00e5ff;          /* neon‐blue */
  color: #0e1a2b;               /* dark text */
  box-shadow: 0 0 20px #ffff00;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}
.button-group .home-button:hover,
.button-group .home-button:active {
  background: #ffff00;          /* neon‐yellow */
  color: #000;
  box-shadow: 0 0 35px #00e5ff;
}
.button-group .home-button .emoji {
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 768px) {
  header.widgetwheel-header {
    padding: 1rem;
  }
  .widgetwheel-title {
    font-size: 2rem;
  }
  .prompt-ninja-text {
    font-size: 1rem;
    top: 70%;
    text-shadow: none;
  }
  .description {
    padding: 0.8rem;
  }
  .description h2 {
    font-size: 1.1rem;
  }
}
