/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background: #0c0391;
    font-family: 'Press Start 2P', cursive;
    color: #ff69b6;
    overflow-x: hidden;
  }
  
  /* All pages are hidden by default */
  .page { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
  }
  
  /* Home page forced visible on load */
  #homePage { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px rgba(128,128,128,0.8);
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    color: #fff;
    line-height: 1.5;
  }
  
  /* Game Menu */
  #gameMenu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .game-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .game-block {
    padding: 2rem;
    border: 4px solid #ff69b6;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    text-align: center;
  }
  
  .game-block:hover {
    background-color: rgba(255,105,182,0.27);
    transform: scale(1.05);
  }
  
  /* Game Page */
  #gamePage {
    display: none;
    background: #130c33;
  }
  
  /* Global Button Style */
  .btn {
    padding: 15px 30px;
    background: transparent;
    border: 3px solid #ff69b6;
    color: #ff69b6;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  .btn:hover {
    background: #ff69b6;
    color: #000;
    transform: scale(1.1);
  }
  
  /* UI Panel (for instrument zone buttons) */
  #ui-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border: 2px solid #ff69b6;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  #ui-panel button {
    background: #ff69b6;
    border: none;
    color: #fff;
    padding: 10px 15px;
    margin: 5px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  #ui-panel button:hover {
    transform: scale(1.05);
  }
  
  /* Dropdown Menu (Top Right) */
  #dropdownMenu {
    position: absolute;
    top: 100px;
    right: 20px;
    z-index: 10;
  }
  
  #menuBtn {
    background: #ff69b6;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  #dropdownMenuContent {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
    border-radius: 5px;
    overflow: hidden;
    z-index: 11;
  }
  
  #dropdownMenuContent a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
  }
  
  #dropdownMenuContent a:hover {
    background: #ff69b6;
    color: #fff;
  }
  
  /* Left Sidebar for menus */
  #leftSidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
    z-index: 20;
  }
  
  #leftSidebar button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    background: #ff69b6;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  /* Instrument Selection and Music Challenge Panels */
  #instrumentSelection, #musicChallengePanel {
    position: absolute;
    left: 210px;
    top: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border: 2px solid #ff69b6;
    border-radius: 5px;
    z-index: 30;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
    display: none;
  }
  
  #instrumentSelection button, #musicChallengePanel button {
    display: block;
    margin-bottom: 5px;
    font-family: 'Press Start 2P', cursive;
    background: #ff69b6;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  /* Bottom Bar */
  #bottomBar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    text-align: center;
    padding: 10px;
    z-index: 20;
  }
  
  #bottomBar button {
    font-family: 'Press Start 2P', cursive;
    margin: 0 5px;
    background: #ff69b6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.5);
  }
  
  /* Canvas */
  canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #130c33;
    z-index: 1;
    pointer-events: none;
    image-rendering: pixelated;
  }
  