@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary-color: #ffe135;
    /* Banana Yellow */
    --secondary-color: #ff6b6b;
    /* Accent Red */
    --text-color: #333;
    --bg-color: #87CEEB;
    /* Sky Blue */
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

* {
    box-sizing: border-box;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background-color: var(--bg-color);
}

#game-world {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #87CEEB;
    /* Fallback Sky Blue */
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    /* Double width for looping */
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Animation handled in JS for speed control */
}

.game-object {
    position: absolute;
    bottom: 50px;
    z-index: 5;
}

#creator-credit {
    position: relative;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
    margin: 0 0 10px 0;
    z-index: 6;
    text-align: center;
}

#title {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 #000;
    margin: 30px 0 0 0;
    text-align: center;
}

#ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    /* Match the script offset */
    background-color: #4CAF50;
    /* Grass Green */
    border-top: 5px solid #388E3C;
    z-index: 4;
}

#player {
    position: absolute;
    bottom: 250px;
    /* Match script offset */
    left: 100px;
    width: 60px;
    height: 60px;
    z-index: 10;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Remove debug styles if any */
    background-color: transparent;
    border: none;
}

#score-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 6;
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 2px 2px 0 #fff;
    display: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 20px;
    border: 5px solid var(--primary-color);
    z-index: 10000;
    /* Force on top of everything */
}

/* Credits Scroll */
.credits-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: rgba(0, 0, 0, 0.05);
}

.credits-content {
    position: absolute;
    width: 100%;
    text-align: center;
    animation: scrollUp 10s linear infinite;
}

.credits-content p {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.credits-content h2 {
    margin: 20px 0 10px;
    color: #4CAF50;
}

@keyframes scrollUp {
    0% {
        top: 100%;
    }

    100% {
        top: -150%;
    }
}