/* ============================= */
/* GLOBAL */
body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background: #1e90a8; /* fallback linker Bereich */
    color: white;
}

h2, h3 {
    font-weight: 700;
    margin: 0;
}

/* ============================= */
/* LAYOUT */
.game {
    display: flex;
    height: 100vh;
}

/* ============================= */
/* LINKE SEITE (Background JPEG) */
.left {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('background/Background1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Anzeige oben */
.score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.top-image {
    width: 70px;
}

.score-bar h2 {
    font-size: 22px;
}

/* BPS */
.bps-display {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Klickbarer Ben */
#ben {
    width: 180px;
    cursor: pointer;
    transition: transform 0.08s ease;
}

#ben:active {
    transform: scale(0.92);
}

/* ============================= */
/* SHOP RECHTS (Mintgrün eckig + Scrollbar) */
.right {
    width: 30%;
    background: #98FF98; /* mintgrün */
    padding: 20px;
    border-left: 2px solid white; /* Trennstrich links */
    box-sizing: border-box;
    position: relative;
    overflow-y: auto; /* Scrollbar aktiviert */
    max-height: 100vh; /* Shop passt sich an Bildschirmhöhe an */
}

.right h2 {
    margin-bottom: 20px;
}

/* ============================= */
/* SHOP ITEMS ALS BUTTONS */
.shop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #3AB0FF; /* Blau für Buttons */
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 10px; /* leicht abgerundet */
    transition: 0.2s;
    font-weight: 600;
    color: white; /* Textfarbe weiß auf blau */
    justify-content: flex-start;
}

.shop-item:hover {
    background: #1D8ED0; /* dunkleres Blau beim Hover */
    transform: scale(1.03);
}

.shop-icon {
    width: 32px;
    height: 32px;
}

/* Große Items (click1, auto1) */
.shop-item.large {
    padding: 25px;
    font-size: 20px;
}

.shop-item.large .shop-icon {
    width: 48px;
    height: 48px;
}

/* Gesperrte Items */
.shop-item.locked {
    background: rgba(0, 0, 0, 0.2); /* grauer Hintergrund für gesperrt */
    color: black;
    cursor: default;
    opacity: 0.6;
}

.shop-item.locked .shop-icon {
    display: none;
}

/* Gekauft Animation */
.shop-item.purchased {
    animation: pulse 0.3s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============================= */
/* MUSIC CONTROLS OBEN LINKS */
.music-controls {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

/* BUTTONS MUSIC */
.music-controls button {
    background: #3AB0FF;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 10px; /* abgerundet */
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.music-controls button:hover {
    background: #1D8ED0;
    transform: scale(1.05);
}

.music-controls input[type="range"] {
    cursor: pointer;
}