body {
    margin: 0;
    overflow: hidden; /* Hide anything outside the sky container */
    font-family: Arial, sans-serif;
    color: #333;
}

.sky {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #87CEEB, #E0F2F7); /* Light blue sky */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

h1, p {
    z-index: 10; /* Make sure text is above the bee */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bee-container {
    position: absolute;
    top: 50%; /* Start roughly in the middle vertically */
    left: -10%; /* Start off-screen to the left */
    transform: translateY(-50%);
    animation: flyAcrossScreen 15s linear infinite; /* Adjust duration for speed */
    z-index: 5;
}

.bee {
    width: 40px;
    height: 40px;
    position: relative;
    animation: bob 1s ease-in-out infinite alternate; /* Bobbing motion */
}

.body {
    width: 30px;
    height: 30px;
    background-color: yellow;
    border: 2px solid black;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
}

.body::before { /* Black stripes */
    content: '';
    position: absolute;
    width: 100%;
    height: 33%;
    background-color: black;
    top: 0;
    left: 0;
    border-radius: 30% 30% 0 0;
}

.body::after { /* Second black stripe */
    content: '';
    position: absolute;
    width: 100%;
    height: 33%;
    background-color: black;
    bottom: 0;
    left: 0;
    border-radius: 0 0 30% 30%;
}

.wing {
    width: 25px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 0;
    z-index: 1;
    transform-origin: bottom center; /* Pivot point for flapping */
    animation: flap 0.15s ease-in-out infinite alternate; /* Fast flapping */
}

.left-wing {
    left: 8px; /* Position relative to bee container */
    transform: rotate(-30deg);
}

.right-wing {
    right: 8px; /* Position relative to bee container */
    transform: rotate(30deg);
}

.stinger {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid black;
    position: absolute;
    bottom: 0px;
    left: 15px;
    z-index: 3;
}


/* --- Animations --- */

@keyframes flyAcrossScreen {
    0% {
        transform: translate(-10%, -50%); /* Start further left */
    }
    100% {
        transform: translate(110vw, -50%); /* End further right */
    }
}

@keyframes bob {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px); /* Move up and down */
    }
}

@keyframes flap {
    0% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0.7); /* Make wings slightly smaller to simulate flap */
    }
}
