body {
    font-family: Arial, sans-serif;
    background-color: #222;
    background-size: cover; /* Hintergrund für die gesamte Seite passend */
    background-position: center;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    background-attachment: fixed; /* Bild bleibt beim Scrollen fixiert */
}

.site-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.menu {
    margin-top: 50px;
}

button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
}

button:hover {
    background-color: #666;
    transform: scale(1.05);
}

.background-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.background-option {
    width: 100px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.background-option:hover {
    border-color: #fff;
}

#last-score, #high-score {
    font-size: 18px;
    margin-top: 10px;
}

#game-over-message {
    margin-top: 20px;
    color: red;
    font-size: 20px;
    font-weight: bold;
}

#warning-message {
    font-size: 24px;
    color: #ff0000; /* Warntext in Rot */
    background-color: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund */
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    border-radius: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5); /* Weißer Schatten für bessere Lesbarkeit */
}

#game-container {
    position: relative;
    width: 900px;
    margin: auto;
}

#gameCanvas {
    width: 100%;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.3); /* Spielfeld leicht transparent */
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    color: #fff; /* Weißer Text für besseren Kontrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Schatten für bessere Lesbarkeit */
}

#pause-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-family: Arial, sans-serif;
    color: #fff; /* Weißer Text für besseren Kontrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Schatten für bessere Lesbarkeit */
}

.pause-game {
    position: absolute;
    top: 50px;
    right: 20px;
    font-size: 16px;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 15px;
}

.pause-game:hover {
    background-color: #218838;
    transform: scale(1.05);
}
