:root {
    --sky-color: #87CEEB;
    --ground-color: #558B2F;
    --tree-bg: #2E7D32;
    --tree-fg: #1B5E20;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 1rem;
    position: absolute;
    width: 100%;
    z-index: 10;
}

footer {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.forest-container {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom, var(--sky-color) 40%, var(--ground-color) 40%);
    width: 100%;
    height: 100%;
}

.trees-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

.back-trees {
    bottom: 15%;
    z-index: 1;
    opacity: 0.8;
}

.front-trees {
    bottom: 0;
    z-index: 3;
}

.tree {
    position: absolute;
    bottom: 0;
    height: auto;
}

.tree-bg {
    width: 150px;
}

.tree-fg {
    width: 200px;
}

.animal-container {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 200px;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.animal {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.animal:hover {
    transform: scale(1.1);
}

/* Animations using keyframes */
@keyframes sway {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.tree {
    animation: sway 5s infinite ease-in-out;
}

@keyframes roam {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

.lion {
    animation: roam 8s infinite ease-in-out;
}

.tiger {
    animation: roam 7s infinite ease-in-out reverse;
}

.elephant {
    animation: roam 10s infinite ease-in-out 1s;
}
