body {
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      background-color: #000;
      overflow: hidden;
      font-family: 'MedievalSharp', sans-serif;
      color: #ddd;
    }

    .game-container {
      position: relative;
      border: 2px solid white;
    }

    .score-container, .level-container, .hearts-container {
      position: absolute;
      top: 10px;
      color: #ddd;
      font-size: 16px;
    }

    .score-container {
      left: 10px;
    }

    .level-container {
      right: 10px;
    }

    .hearts-container {
      left: 10px;
      top: 30px;
    }

    .top-scores-container {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background-color: rgba(0, 0, 0, 0.8);
      color: #ddd;
      padding: 10px;
      border-radius: 5px;
      text-align: left;
      max-height: 200px;
      overflow-y: auto;
    }

    .top-scores-container h3 {
      margin-top: 0;
      font-size: 14px;
    }

    .top-scores-container ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .top-scores-container li {
      margin-bottom: 3px;
      font-size: 12px;
    }

    #username-input-container {
      margin-top: 5px;
      display: flex;
      gap: 5px;
      justify-content: flex-start;
    }

    #username-input {
      padding: 5px;
      border: 1px solid #ccc;
      border-radius: 4px;
      color: black;
      font-size: 12px;
    }

    #save-score-button {
      padding: 5px 8px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
    }

    .play-again-button {
      position: absolute;
      top: 10px;
      left: 10px;
      padding: 8px 12px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      display: none;
    }

    #pause-overlay, #game-over-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      font-size: 3em;
      z-index: 10;
    }

    #game-over-overlay button {
      margin-top: 20px;
      padding: 8px 12px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.5em;
    }
