p {
    position: fixed;
    z-index: 10;
    margin: 0;
    color: white;
    left: 10px;
    top: 10px;
    font-family: sans-serif;
    font-size: 14px;
  }
  body {
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
    background-color: black;
    height: 100vh; /* Ensure the body takes the full height of the viewport */
  }
  #game-container {
    position: relative;
  }
  
  #score-container, #hi-score-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .score-label {
    margin-bottom: 5px;
  }
  
  .score-value {
    font-size: 18px;
    font-weight: bold;
  }
  #startButton {
    background-color: #f4d35e;
    color: #111827;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    border: 2px solid #fff3b0;
    box-shadow: 4px 4px 0 #e4572e;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  #startButton:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #e4572e;
  }

  #splashScreen {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #080b1c;
    color: #f8fafc;
    font-family: "Courier New", monospace;
    transition: opacity 280ms ease, visibility 280ms ease;
  }

  #splashScreen::before,
  #splashScreen::after,
  .splash-stars {
    position: absolute;
    inset: 0;
    content: "";
    background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
    background-size: 42px 42px;
    opacity: 0.45;
  }

  #splashScreen::after {
    background-size: 77px 77px;
    background-position: 22px 31px;
    opacity: 0.28;
  }

  .splash-stars {
    background-size: 113px 113px;
    background-position: 63px 11px;
    opacity: 0.18;
  }

  .splash-content {
    position: relative;
    z-index: 1;
    width: min(480px, calc(100% - 40px));
    padding: 36px 32px;
    text-align: center;
    border: 2px solid #33c3ff;
    background: rgba(8, 11, 28, 0.9);
    box-shadow: 8px 8px 0 #e4572e;
  }

  .splash-kicker {
    position: static;
    margin: 0 0 16px;
    color: #f4d35e;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  #gameTitle {
    margin: 0;
    color: #33c3ff;
    font-size: clamp(42px, 10vw, 72px);
    letter-spacing: 0;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #e4572e;
  }

  .splash-intro {
    position: static;
    margin: 24px 0 28px;
    color: #d6e5ef;
    font-size: 16px;
  }

  .instructions {
    display: grid;
    gap: 12px;
    margin: 0 0 30px;
    padding: 20px;
    border-top: 1px solid rgba(51, 195, 255, 0.55);
    border-bottom: 1px solid rgba(51, 195, 255, 0.55);
  }

  .instruction-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    font-size: 14px;
  }

  .instruction-row span:last-child {
    margin-left: 8px;
    color: #d6e5ef;
  }

  .keycap {
    display: inline-grid;
    min-width: 30px;
    min-height: 30px;
    place-items: center;
    padding: 0 6px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #b7d9e9;
    box-shadow: 2px 2px 0 #33c3ff;
    font-weight: bold;
  }

  .keycap-wide {
    min-width: 72px;
  }

  #splashScreen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .hidden {
    display: none;
  }
  /* Add this CSS to your existing styles */
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    width: 60%; /* Adjust the percentage as needed */
  
    /* Center the modal horizontally */
    margin-left: auto;
    margin-right: auto;
  }
  
  .modal-content {
    max-width: 400px; /* Adjust the maximum width as needed */
    margin-left: auto;
    margin-right: auto;
    background-color: #2ecc71;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
  }
  
  .close {
    color: #2ecc71;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: rgb(14, 10, 10);
    text-decoration: none;
    cursor: pointer;
  }
  /* ... Your existing styles ... */
  #scoreContainer {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
}

  /* ... Your existing styles ... */
  
  #restartButton,
  #closeButton {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #080a09;
  }
  