/* static/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

header h1,
header a.game-name {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  text-decoration: none;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
}

nav a.logout {
  cursor: pointer;
}

button {
  background-color: #005a9c;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00467f;
}

form {
  margin: 20px 0;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Game container with 16:9 aspect ratio */
#game-container {
  width: 1280px;
  height: 720px;
  background-color: #000;
  margin: 20px auto;
  position: relative;
}

/* Spacing for welcome and buttons in lobby */
.lobby {
  text-align: center;
  margin-top: 40px;
}

#player-counter {
  font-size: 1.2rem;
  margin: 10px 0;
}

#dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#game-over {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #212121;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  z-index: 1001;
}

/* Logout modal styles */
#logout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

#logout-modal .modal-content {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
}

#logout-modal h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

#logout-modal label {
  display: block;
  margin-bottom: 10px;
}

#logout-modal select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

#logout-modal button {
  width: 45%;
  margin: 0 5%;
}

/* static/style.css (REPLACE previous hero styles with this) */

/* --- Landing Page / Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 85px);
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #001f3f 0%, #0d0d0d 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h2 { /* Using h2 to match your original text structure */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero .subheading {
    font-size: 1.25rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: #005a9c;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #00467f;
    transform: translateY(-3px);
}

.cta-button.accent {
    background-color: #007a4d;
}

.cta-button.accent:hover {
    background-color: #005c3a;
}

/* static/style.css */

/* --- Airplane Animation Styles --- */
#airplane {
    position: absolute;
    width: 100px;
    height: auto;
    cursor: pointer;
    z-index: 100; /* Ensure airplane is above the trail */
    
    /* Initial position: centered horizontally, 20% from the top */
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    
    /* We add a transition on the fill property for the hover effect */
    transition: fill 0.3s;
}

#airplane path {
    fill: #e0e0e0;
}

#airplane:hover path {
    fill: #2ecc71;
}

/* New style for the trail particles */
.trail-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(224, 224, 224, 0.7);
    border-radius: 50%;
    z-index: 99;
    /* This transition will make the particle fade and shrink */
    transition: transform 1s ease-out, opacity 1s ease-out;
    /* We use translate to center the particle on its coordinates */
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#airplane:hover path {
    fill: #2ecc71;
}

/* New animation class triggered by JS */
.is-flying-lap {
    animation: airplaneLap 5s ease-in-out forwards;
}

@keyframes airplaneLap {
    0% {
        top: 20%;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
    }
    20% {
        top: 15%;
        left: 85%;
        transform: translateX(-50%) rotate(90deg);
    }
    50% {
        top: 70%;
        left: 80%;
        transform: translateX(-50%) rotate(180deg);
    }
    80% {
        top: 60%;
        left: 15%;
        transform: translateX(-50%) rotate(270deg);
    }
    100% {
        top: 20%;
        left: 50%;
        transform: translateX(-50%) rotate(360deg);
    }
}

/* --- Logout Modal Polish & Responsive --- */
/* (Keep the logout modal and media query styles from the previous answer) */
#logout-modal .modal-content { background: #1c1c1c; padding: 30px; border-radius: 8px; width: 90%; max-width: 400px; }
#logout-modal .modal-actions { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
#logout-modal button { width: 120px; }
#logout-modal button.cancel { background-color: #555; }
#logout-modal button.cancel:hover { background-color: #444; }
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .hero .subheading { font-size: 1.1rem; }
    #airplane { width: 70px; }
}

/* static/style.css (ADD THIS TO THE END) */

/* --- Footer --- */
footer {
  background-color: #080808;
  color: #888;
  padding: 30px 0;
  margin-top: 60px; /* Pushes footer down from content */
  border-top: 1px solid #333;
  font-size: 0.9em;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e0e0e0;
}

/* static/style.css (ADD THIS TO THE END) */

/* --- Sticky Footer Styles --- */

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > div.container {
    flex: 1;
}

#mobile-blocker {
    display: none; /* Hidden by default, JS toggles to flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A2930 0%, #0F1316 100%); /* Subtle gradient background */
    color: #EAECEE; /* Light text color */
    z-index: 9999; /* Ensure it's on top of everything */
    
    /* Flexbox for centering content */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.blocker-content {
    max-width: 550px; /* Limit width for readability */
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background for the content box */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Subtle shadow */
    backdrop-filter: blur(4px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(4px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-container {
    margin-bottom: 20px;
}

.airplane-icon {
    font-size: 5em; /* Large icon size */
    color: #4FC3F7; /* Bright accent color */
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.6); /* Subtle glow */
}

#mobile-blocker h1 {
    font-size: 2.8em; /* Prominent headline */
    color: #4FC3F7; /* Accent color for headline */
    margin-bottom: 15px;
    font-weight: 700; /* Bold */
    line-height: 1.2;
}

#mobile-blocker p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #BDC3C7; /* Slightly darker text for readability */
}

#mobile-blocker p.cta-message {
    font-weight: 600; /* Make the call to action stand out */
    color: #EAECEE;
    font-size: 1.2em;
}

/* Optional Button Styling */
#mobile-blocker button {
    background-color: #4FC3F7;
    color: #17202A;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#mobile-blocker button:hover {
    background-color: #29B6F6;
    transform: translateY(-2px);
}

/* --- Responsive Adjustments (for smaller mobile screens) --- */
@media (max-width: 480px) {
    .blocker-content {
        padding: 20px;
    }
    #mobile-blocker h1 {
        font-size: 2.2em;
    }
    #mobile-blocker p {
        font-size: 1em;
    }
    .airplane-icon {
        font-size: 4em;
    }
}