/* General Styling */
    body {
      font-family: "Poppins", sans-serif;
      background: linear-gradient(135deg, #fdfbfb, #ebedee);
      color: #333333;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    /* Headings with Custom Fonts and Shadows */
    h1,
    h2 {
      font-family: "Comic Neue", cursive;
      letter-spacing: 1px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* Header (Dashboard Console) */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      background: rgba(
        85,
        85,
        85,
        0.85
      ); /* Dark semi-transparent for opulent feel */
      backdrop-filter: blur(10px); /* Glassy effect */
      padding: 15px 30px;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 4px solid #ffd700; /* Gold accent */
      height: 80px;
    }

    /* Header Title Styling */
    header h1 {
      margin: 0;
      font-size: 2rem;
      color: #ffd700; /* Gold color for opulence */
    }

    /* Header Center Section (User Info) */
    header .header-center {
      display: flex;
      gap: 25px;
      align-items: center;
      font-size: 1rem;
    }

    /* User Info Badges */
    header .header-center span {
      background: rgba(255, 215, 0, 0.2); /* Gold tint */
      padding: 8px 12px;
      border-radius: 12px;
      color: #ffffff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Header Right Section (Navigation and Volume Controls) */
    header .header-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    /* Navigation and Volume Buttons Styling */
    .icon-button {
      background: #ffffff;
      border: none;
      color: #ffd700; /* Gold color */
      font-size: 1.2rem;
      padding: 12px 16px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Hover Effects for Icon Buttons */
    .icon-button:hover {
      background: #ffd700;
      color: #ffffff;
      transform: scale(1.1);
      box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    }

    /* Volume Controls Container */
    #volume-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* Volume Labels */
    .volume-label {
      font-size: 1.5rem;
      color: #ffd700; /* Gold color */
    }

    /* Volume Sliders Styling */
    #volume-controls input[type="range"] {
      width: 100px;
      accent-color: #ffd700;
      cursor: pointer;
      background: transparent;
      outline: none;
    }

    /* Main Content Section */
    main {
      width: 100%;
      max-width: 1400px;
      margin: 30px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    /* Content Section Styling */
    #content-section {
      background: rgba(255, 255, 255, 0.9); /* Slightly opaque for clarity */
      backdrop-filter: blur(10px); /* Glassy effect */
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
      width: 100%;
    }

    /* Section Heading Styling */
    #content-section h2 {
      margin-bottom: 25px;
      font-size: 2rem;
      color: #6a0dad; /* Royal purple for opulence */
      text-align: center;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* Category Buttons Container */
    #category-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin: 25px 0;
    }

    /* Individual Category Button Styling */
    .category-button {
      background: linear-gradient(
        145deg,
        #6a0dad,
        #8a2be2
      ); /* Rich purple gradient */
      color: #ffffff;
      border: none;
      padding: 12px 20px;
      font-size: 1rem;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s ease-in-out;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    }

    /* Hover Effects for Category Buttons */
    .category-button:hover {
      background: linear-gradient(
        145deg,
        #8a2be2,
        #6a0dad
      ); /* Reverse gradient */
      transform: translateY(-3px);
      box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.25);
    }

    /* Active State for Category Buttons */
    .category-button.active {
      background: #ffd700; /* Gold for active state */
      color: #6a0dad; /* Purple text */
      transform: scale(1.05);
      box-shadow: 0px 6px 12px rgba(255, 215, 0, 0.6);
    }

    /* Game Grid Layout */
    .game-grid {
      display: grid;
      grid-template-columns: repeat(
        auto-fit,
        minmax(200px, 1fr)
      ); /* Adjusted min-width for better responsiveness */
      gap: 25px;
      margin-top: 25px;
    }

    /* Make Entire Card Clickable by Using <a> as Game Tile */
    .game-tile {
      position: relative;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 20px;
      text-align: center;
      color: #ffffff; /* White text for visibility */
      font-weight: bold;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: all 0.3s ease-in-out;
      overflow: hidden;
      aspect-ratio: 1 / 1; /* Ensures square cards */
      display: flex;
      align-items: flex-end; /* Align title at the bottom */
      justify-content: center;
      position: relative;
      text-decoration: none; /* Remove underline from link */
    }

    /* Gradient Overlay at Bottom of Game Tile */
    .game-tile::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
      pointer-events: none;
    }

    /* Game Title Styling within Game Tile */
    .game-tile span {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      color: #ffffff; /* White color for visibility */
      text-decoration: none;
      font-size: 1rem; /* Slightly smaller */
      width: 90%;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
      z-index: 1;
    }

    /* Hover Effects for Game Tiles */
    .game-tile:hover {
      transform: scale(1.05); /* Enlargement effect */
      box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    }

    /* Flash Effect Animation */
    @keyframes flash {
      0% {
        opacity: 1;
      }
      50% {
        opacity: 0.5;
      }
      100% {
        opacity: 1;
      }
    }

    /* Flash Class to Trigger Animation */
    .flash {
      animation: flash 0.3s ease-in-out;
    }

    /* Progress Bars Styling */
    .progress-bar-container {
      margin: 10px 0;
      background: #d3d3d3;
      border-radius: 20px;
      height: 20px;
      overflow: hidden;
      box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .progress-bar {
      height: 100%;
      background: #ffd700; /* Gold color */
      width: 50%; /* Example progress */
      transition: width 0.5s ease-in-out;
    }

    /* Particle Background */
    #particles-js {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: -1;
      top: 0;
      left: 0;
    }

    /* Burst Animation Styling */
    .burst {
      position: absolute;
      width: 20px;
      height: 20px;
      background: radial-gradient(
        circle,
        #ffd700 0%,
        rgba(255, 215, 0, 0) 80%
      );
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
    }

    /* Help Info Button Styling */
    #help-button {
      background: #ffffff;
      border: none;
      color: #6a0dad; /* Purple color */
      font-size: 1.2rem;
      padding: 10px 14px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Hover Effects for Help Button */
    #help-button:hover {
      background: #6a0dad;
      color: #ffffff;
      transform: scale(1.1);
      box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
      }

      header .header-center {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
      }

      .icon-button {
        padding: 10px 14px;
        font-size: 1rem;
      }

      .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
      }

      .game-tile span {
        font-size: 0.9rem; /* Slightly smaller on mobile */
      }

      #volume-controls input[type="range"] {
        width: 80px; /* Adjusted for smaller screens */
      }
    }