.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#score-board {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #38B48B;
}

.canvas-wrapper {
    position: relative;
    border: 4px solid #38B48B;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #70c5ce;
    width: 320px;
    height: 480px;
    overflow: hidden;
    cursor: pointer;
}

canvas {
    display: block;
}

#start-screen,
#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

#start-screen p {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#start-screen.hidden,
#game-over.hidden {
    display: none;
}

#game-over p {
    margin-bottom: 20px;
    color: #ff4757;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
}

.controls-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #666;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #38B48B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 0 #2a8f6d;
}

button:hover {
    background-color: #2a8f6d;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b664d;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}