/* ================================
   🌐 Global Layout & Page Structure
   ================================ */

   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  body {
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Arial, sans-serif;
  }
  
  .page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full height layout for sticky footer */
  }
  
  #app {
    flex: 1; /* Take up all space between header and footer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center card */
    align-items: center;
  }
  
  /* ================================
     🧾 Card Styling (Quiz + Game Over)
     ================================ */
  
  .card, .game-over-card {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
    max-width: 600px;
    height: 400px;
    margin: 80px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  /* ================================
     🧠 Welcome Header
     ================================ */
  
  .welcome-message {
    text-align: center;
    /* margin-bottom: 20px; */
  }
  
  .capitalism-heading {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #111;
  }
  
  .capitalism-subheading {
    font-size: 1.1rem;
    color: #444;
    font-style: italic;
    /* margin-top: 5px; */
  }
  
  /* ================================
     💰 Score Display
     ================================ */
  
  h3 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  .horizontal-container {
    display: flex;
    justify-content: space-between;
  }
  
  /* ================================
     🌍 Country Prompt + Input Field
     ================================ */
  
  .answer-container {
    width: 100%;
    text-align: center;
  }
  
  input {
    text-align: center;
    width: 60%;
    padding: 10px;
    font-size: large;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  /* ================================
     🟡 Buttons (Submit + Restart)
     ================================ */
  
  button, .restart-button {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: large;
    display: block;
    width: 80%;
    padding: 15px 40px;
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #ffca00;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* Smaller width for restart button for style variation */
  .restart-button {
    width: 68%;
  }
  
  button:hover, .restart-button:hover {
    background-color: #ffd500;
  }
  
  /* ================================
     ✅ Answer Feedback Animations
     ================================ */
  
  #result {
    text-align: center;
    font-size: 24px;
  }
  
  .checkmark, .cross {
    color: transparent;
    animation-duration: 0.5s;
    animation-timing-function: ease;
  }
  
  .checkmark {
    animation-name: checkmark;
  }
  
  .cross {
    animation-name: cross;
  }
  
  @keyframes checkmark {
    0%   { color: transparent; }
    100% { color: green; }
  }
  
  @keyframes cross {
    0%   { color: transparent; }
    100% { color: red; }
  }
  
  /* ================================
     🪦 Game Over Card Text Styles
     ================================ */
  
  .game-over-card h1 {
    font-size: 2rem;
    color: #333;
  }
  
  .game-over-card p {
    font-size: 1.5rem;
    color: #666;
    margin-top: 0;
  }
  
  .game-over-card .message {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff5733;
    /* margin-top: 10px; */
  }
  
  /* ================================
     🔗 Footer Styles
     ================================ */
  
  footer {
    /* margin-top: -100px; */
    padding-top: 10px;
    padding-bottom: 20px;
    text-align: center;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 1rem;
  }
  
  footer nav {
    margin-top: 10px;
  }
  
  footer nav a {
    color: #ff9500;
    text-shadow: 0 0 2px rgba(0,0,0,0.15);
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.3s ease;
  }
  
  footer nav a:hover {
    color: #111;
  }

  /* =========================================
   📱 Responsive Design for Mobile Devices
   ========================================= */
@media (max-width: 800px) {
  /* Adjust buttons on smaller screens */
  button,
  .restart-button {
    width: 100%;
    max-width: 350px;
    font-size: 1rem;
    padding: 12px 16px;
    letter-spacing: 1px;
    word-break: break-word;
    white-space: normal;
  }

  /* Restart button width override */
  .restart-button {
    width: 90%;
    max-width: 320px;
  }

  /* Make input field responsive */
  input {
    width: 90%;
    max-width: 300px;
    font-size: 0.9rem;
  }

  /* Resize card container for game and results */
  .card,
  .game-over-card {
    width: 80%;
    max-width: 600px;
    height: auto;
    padding: 20px 15px;
    margin: 40px 10px;
  }

  /* Resize game-over text content */
  .game-over-card .message,
  .game-over-card p {
    font-size: 1.2rem;
  }

  /* Footer link adjustments */
  footer nav a {
    font-size: 0.85rem;
    margin: 0 8px;
  }
}
