body {
    background-color: #f0f0f0;
    color: #2c3e50;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    /* padding: 20px; */
}
.game-container {
    text-align: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
}
h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #4a148c;
}
#gameCanvas {
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    touch-action: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}
.score-board {
    margin-top: 20px;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: bold;
}
#messageBox {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    width: 80%;
    max-width: 300px;
}
#restartBtn {
    background-image: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px #5e0ec9;
    transition: transform 0.1s, box-shadow 0.1s;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    font-family: Arial, sans-serif;
}
#restartBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #5e0ec9;
}
footer {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #7f8c8d;
    text-align: center;
    width: 100%;
}
footer a {
    color: #3498db;
    text-decoration: none;
}
@media (max-width: 600px) {
    h1 {
        font-size: 1rem;
    }
    #restartBtn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    .score-board {
        font-size: 0.8rem;
    }
    footer {
        font-size: 0.6rem;
    }
}
