/* Grundlayout */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to top, #e6f0ec, #fdfaf6);
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}


canvas#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Highscore Anzeige */
#scoreboard {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-weight: bold;
    z-index: 10;
}

/* Popup nach Crash */
#popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 20;
}

.hidden {
    display: none;
}

.btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #88bfa2;
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #6fa88e;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #e6f0ec, #fdfaf6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
}

#start-screen > div {
    padding: 2rem;
}

#startButton.btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

#start-screen .monkey-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-screen .monkey {
    background-image: url("/assets/monkey.png");
    background-position: center;
    background-size: cover;
    width: 3rem;
    height: 5rem;
    margin: 1rem;
}