:root {
    --primary-color: #4CAF50;
    /* Frog Green */
    --accent-color: #FFEB3B;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --font-main: 'Fredoka', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    user-select: none;
    background-color: #87CEEB;
    /* Sky blue fallback */
}

.hidden {
    display: none !important;
}

#game-container {
    width: 100%;
    height: 100%;
    display: block;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
}

h1 {
    font-size: 4rem;
    color: var(--text-color);
    text-shadow: 0 4px 0px rgba(0, 0, 0, 0.2);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    animation: float 3s ease-in-out infinite;
}

p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    box-shadow: 0 6px 0 #2E7D32, 0 10px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

button:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #2E7D32, 0 0 0 rgba(0, 0, 0, 0.2);
}

#score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Footer Styling */
#footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
    z-index: 1000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

#footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#footer a:hover {
    opacity: 1;
    text-decoration: underline;
}