body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    color: #212121;
    flex-direction: column;
}

body.dark {
    background-color: #212121;
    color: #fafafa;
}

.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%;
    max-width: 500px;
}

body.dark .container {
    background-color: #333333;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%;
    max-width: 500px;
}

body.dark .card {
    background-color: #333333;
}

.title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3f51b5;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    width: 48%;
}

.select, .checkbox {
    margin-top: 5px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark .select, body.dark .checkbox {
    border: 1px solid #666;
    background-color: #444;
    color: #fafafa;
}

.game-canvas {
    border: 1px solid #ccc;
    margin-top: 20px;
    background-color: #333;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

body.dark .game-canvas {
    border: 1px solid #666;
    background-color: #222;
}

.score, .level {
    font-size: 20px;
    margin-top: 10px;
}

.game-over {
    font-size: 24px;
    color: red;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.footer {
    margin-top: 20px;
    font-size: 14px;
}

.link {
    color: #3f51b5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.touch-controls {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.touch-button {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #3f51b5;
    color: #fff;
    cursor: pointer;
}

.touch-button:active {
    background-color: #303f9f;
}

@media (max-width: 600px) {
    .container, .card {
        width: 100%;
        margin: 0 10px;
    }

    .game-canvas {
        width: 100%;
        height: auto;
    }

    .control-group {
        width: 100%;
    }
}
