/* Base Styles */
* {
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #282c34;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  
  /* Layout */
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header Styles */
  header {
    margin-bottom: 20px;
    text-align: center;
  }
  
  header nav h1 {
    color: #ba68c8;
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  
  /* Hero Section */
  .hero-section {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
    color: #ba68c8;
    margin-bottom: 20px;
    font-weight: 300;
  }
  
  .hero-section p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Game Section */
  .game-section {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .ball-container {
    position: relative;
    margin: 20px auto;
    display: inline-block;
  }
  
  .ball-img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(186, 104, 200, 0.4);
    transition: all 0.3s ease;
  }
  
  .ball-img.shaking {
    box-shadow: none;
  }
  
  .ball-img:hover {
    box-shadow: 0 0 40px rgba(186, 104, 200, 0.6);
  }
  
  #answer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    max-width: 300px;
    line-height: 1.2;
    font-size: 18px;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  }
  
  #answer.show {
    opacity: 1;
  }
  
  /* Input Section */
  .input-section {
    margin-top: 30px;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  input {
    padding: 15px;
    font-size: 16px;
    width: 400px;
    max-width: 90vw;
    border-radius: 8px;
    border: 2px solid #6a1b9a;
    margin-bottom: 15px;
    background-color: #ffffff;
    color: #333;
    transition: border-color 0.3s ease;
  }
  
  input:focus {
    outline: none;
    border-color: #ba68c8;
    box-shadow: 0 0 10px rgba(186, 104, 200, 0.3);
  }
  
  input::placeholder {
    color: #666;
  }
  
  button {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #6a1b9a, #ba68c8);
    color: white;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
  }
  
  button:hover {
    background: linear-gradient(135deg, #ba68c8, #6a1b9a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.6);
  }
  
  button:active {
    transform: translateY(0);
  }
  
  .instructions {
    font-size: 14px;
    color: #ccc;
    margin-top: 10px;
    font-style: italic;
  }
  
  /* Content Sections */
  .how-to-play,
  .about-section,
  .faq-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: left;
  }
  
  .how-to-play h2,
  .about-section h2,
  .faq-section h2 {
    color: #ba68c8;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #6a1b9a;
    padding-bottom: 10px;
  }
  
  .about-section h3 {
    color: #e0e0e0;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
  }
  
  .how-to-play ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
  }
  
  .how-to-play li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 60px;
    position: relative;
    font-size: 1.1rem;
  }
  
  .how-to-play li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #6a1b9a, #ba68c8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .about-section ul {
    list-style: none;
    padding-left: 0;
  }
  
  .about-section li {
    margin-bottom: 15px;
    padding-left: 30px;
    font-size: 1.1rem;
  }
  
  /* FAQ Section */
  .faq-section details {
    margin-bottom: 15px;
    background-color: #3a3f47;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .faq-section summary {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: #6a1b9a;
    color: white;
    transition: background-color 0.3s ease;
  }
  
  .faq-section summary:hover {
    background-color: #ba68c8;
  }
  
  .faq-section details[open] summary {
    background-color: #ba68c8;
  }
  
  .faq-section p {
    padding: 20px;
    margin: 0;
    background-color: #3a3f47;
    color: #e0e0e0;
  }
  
  /* Social Buttons */
  .social-buttons {
    margin: 50px 0 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-buttons a {
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #6a1b9a, #ba68c8);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
  }
  
  .social-buttons a:hover {
    background: linear-gradient(135deg, #ba68c8, #6a1b9a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.5);
  }
  
  /* Footer */
  footer {
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    text-align: center;
    color: #ccc;
    border-top: 1px solid #444;
    width: 100%;
  }
  
  footer a {
    color: #ba68c8;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  footer a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .hero-section h1 {
      font-size: 2rem;
    }
    
    .hero-section h2 {
      font-size: 1.2rem;
    }
    
    .ball-img {
      width: 350px;
      height: 350px;
    }
    
    #answer {
      max-width: 200px;
      font-size: 16px;
    }
    
    input {
      width: 300px;
      padding: 12px;
    }
    
    button {
      padding: 12px 25px;
      font-size: 16px;
    }
    
    .how-to-play,
    .about-section,
    .faq-section {
      padding: 0 15px;
    }
    
    .social-buttons {
      flex-direction: column;
      align-items: center;
    }
    
    .social-buttons a {
      width: 200px;
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .ball-img {
      width: 280px;
      height: 280px;
    }
    
    #answer {
      max-width: 150px;
      font-size: 14px;
    }
    
    input {
      width: 250px;
    }
    
    .hero-section h1 {
      font-size: 1.8rem;
    }
  }
  