/* General Styling */
body {
    font-family: "Arial", sans-serif;
    background-color: #f9ecec;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }

  /* Navbar Styling */
  .navbar {
    background: linear-gradient(to right, #ff9999, #ffcccc);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  .nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  .nav-link {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  .nav-link:active {
    background: rgba(255, 255, 255, 0.4);
  }
  .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }

  /* Header Styling */
  header {
    background: linear-gradient(to right, #ff9999, #ffcccc);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  header p {
    color: #fff;
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
  }

  /* Container Styling */
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  /* Section Styling */
  .hiragana-section {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .hiragana-section h2 {
    color: #ff6f61;
    font-size: 1.8rem;
    border-bottom: 2px solid #ffcccc;
    padding-bottom: 0.5rem;
    margin-top: 0;
  }
  .hiragana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .lesson-card {
    background: #fffaf0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.3s;
    text-decoration: none;
    color: #666;
    display: block;
  }
  .lesson-card h3 {
    font-size: 2rem;
    margin: 0;
    color: #ff6f61;
  }
  .lesson-card p {
    margin: 0.5rem 0;
    font-size: 1rem;
  }
  .lesson-card:hover {
    transform: scale(1.05);
    background: #ffeeee;
  }
  .lesson-card:active {
    background: #ffcccc;
  }

  /* Motivation Block */
  .motivation-block {
    background: #fffaf0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    max-width: 600px;
    color: #666;
    transition: transform 0.2s;
  }
  .motivation-block p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.8;
  }
  .motivation-block:hover {
    transform: scale(1.05);
  }

  /* Cookie Consent */
  .cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fffaf0;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    z-index: 1000;
    text-align: center;
    display: none;
  }
  .cookie-content h3 {
    font-size: 1.5rem;
    color: #ff6f61;
    margin: 0 0 1rem;
  }
  .cookie-content p {
    font-size: 1rem;
    color: #666;
    margin: 0 0 1rem;
  }
  .policy-link {
    color: #ff9999;
    text-decoration: none;
  }
  .policy-link:hover {
    text-decoration: underline;
  }
  .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  .accept-btn {
    background: #ffcccc;
    color: #fff;
  }
  .accept-btn:hover {
    background: #ff9999;
    transform: scale(1.05);
  }
  .reject-btn {
    background: #fff;
    color: #ff6f61;
    border: 1px solid #ffcccc;
  }
  .reject-btn:hover {
    background: #ffeeee;
    transform: scale(1.05);
  }

  /* Footer Styling */
  footer {
    text-align: center;
    padding: 1rem;
    background: #ffcccc;
    color: #fff;
    width: 100%;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    /* Navbar */
    .navbar {
      justify-content: space-between;
      padding: 0.5rem 1rem;
    }
    .hamburger {
      display: block;
    }
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: linear-gradient(to right, #ff9999, #ffcccc);
      padding: 1rem;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
      display: flex;
    }
    .nav-link {
      font-size: 1rem;
      padding: 0.5rem;
      width: 100%;
      text-align: center;
    }

    /* Header */
    header {
      padding: 1.5rem;
    }
    header h1 {
      font-size: 2rem;
    }
    header p {
      font-size: 1rem;
    }

    /* Container */
    .container {
      margin: 1rem auto;
      padding: 0 0.5rem;
    }

    /* Section */
    .hiragana-section {
      padding: 1rem;
    }
    .hiragana-section h2 {
      font-size: 1.5rem;
    }
    .hiragana-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .lesson-card h3 {
      font-size: 1.5rem;
    }
    .lesson-card p {
      font-size: 0.9rem;
    }

    /* Motivation Block */
    .motivation-block {
      padding: 1rem;
      max-width: 90%;
    }
    .motivation-block p {
      font-size: 1rem;
    }

    /* Cookie Consent */
    .cookie-consent {
      bottom: 10px;
      max-width: 90%;
      padding: 1rem;
    }
    .cookie-content h3 {
      font-size: 1.2rem;
    }
    .cookie-content p {
      font-size: 0.9rem;
    }
    .cookie-buttons {
      flex-direction: column;
      gap: 0.5rem;
    }
    .btn {
      padding: 0.5rem;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .hiragana-grid {
      grid-template-columns: 1fr; /* Single column */
    }
    .lesson-card h3 {
      font-size: 1.2rem;
    }
    .lesson-card p {
      font-size: 0.8rem;
    }
    header h1 {
      font-size: 1.5rem;
    }
    header p {
      font-size: 0.9rem;
    }
    .motivation-block p {
      font-size: 0.9rem;
    }
  }