body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    font-family: 'Squada One', cursive;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    overflow: hidden;
    z-index: 1;
}

#canvas {
    background-color: #30c0df;
    border: 2px solid black;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.game-screen.active {
    opacity: 1;
    visibility: visible;
}

.game-screen h1 {
    font-size: 4em;
    color: #ffd700;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.game-screen h2 {
    font-size: 3em;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.game-button, button {
    font-family: 'Squada One', cursive;
    padding: 15px 30px;
    font-size: 1.8em;
    cursor: pointer;
    border: 3px solid #ffd700;
    border-radius: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 5px 0 #388E3C;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-button:hover, button:hover {
    background-color: #5cb85c;
    box-shadow: 0 4px 0 #388E3C;
    transform: translateY(-2px);
}

.game-button:active, button:active {
    background-color: #3e8e41;
    box-shadow: 0 0 0 #388E3C;
    transform: translateY(3px);
}

#score-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 1.5em;
    text-align: center;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
}

#score-list li {
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

#score-list li:last-child {
    border-bottom: none;
}

.final-score-text, .best-score-text {
    font-size: 2em;
    margin: 5px 0;
    color: #f0f0f0;
}

.final-score-text span, .best-score-text span {
    color: #ffd700;
}

.share-x-button {
    background-color: #000000;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 5px 0 #222222;
}

.share-x-button:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 0 #222222;
}

.share-x-button:active {
    background-color: #0a0a0a;
    box-shadow: 0 0 0 #222222;
}

.share-x-button i {
    margin-right: 10px;
    font-size: 1.2em;
}
