body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #007acc, #003d66);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .game-container {
    background-color: rgba(255, 255, 255, 0.07);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  
  .score-lives {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
  }
  
  .flag-display img {
    max-width: 100%;
    max-height: 200px;
    margin: 20px auto;
    display: block;
  }
  
  .choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
  }
  
  .choice-btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    background-color: #00aaff;
    color: white;
    transition: background-color 0.3s ease;
  }
  
  .choice-btn:hover {
    background-color: #007acc;
  }
  
  #nextBtn, #quitBtn {
    padding: 12px 20px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    background-color: #ffaa00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #nextBtn:hover, #quitBtn:hover {
    background-color: #cc8800;
  }
  
  .result-message {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: bold;
  }
  
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .modal-content {
    background: linear-gradient(135deg, #0088cc, #004080);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 90%;
    max-width: 400px;
    color: white;
  }
  
  .modal-content h2 {
    margin-top: 0;
    font-size: 1.5em;
  }
  
  .modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
  }
  
  .modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #ffaa00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-buttons button:hover {
    background-color: #cc8800;
  }
  
  #skipBtn {
    padding: 12px 20px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    background-color: #888888;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #skipBtn:hover {
    background-color: #555555;
  }
  
  .footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #cccccc;
    pointer-events: none;
    user-select: none;
  }

  #errorModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  #errorModal .modal-content {
    background: linear-gradient(135deg, #cc4444, #660000);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    max-width: 400px;
    width: 90%;
  }

  #errorModal .modal-buttons button {
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background-color: #ffaa00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #errorModal .modal-buttons button:hover {
    background-color: #cc8800;
  }

  .timer { display:flex; align-items:center; gap:10px; }
  .timer.hidden { display:none; }
  .timer-bar { width:160px; height:10px; background: rgba(255,255,255,0.2); border-radius:999px; overflow:hidden; }
  #timer-bar-fill { height:100%; width:100%; background: rgba(255,255,255,0.9); }

  #question-timer {
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

  #question-timer.hidden {
    display: none !important;
  }

  .choice-btn.correct {
  background-color: #2ecc71 !important;
  }

  .choice-btn.wrong {
    background-color: #e74c3c !important;
  }
