* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    color: rgb(1, 161, 4);
}
h2 {
    color: rgb(0, 129, 152);
}
h3 {
    color: rgb(1, 36, 161);
}
p {
    color: rgb(0, 242, 255);
}

body {
    height: 100vh;
    overflow: hidden; /* Hides elements when they move out of the viewport */
    background-color: #000;
    position: relative;
    font-family: sans-serif;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Puts the animation behind the main content */
}

.bean {
    position: absolute;
    list-style: none;
    width: 50px;
    height: 100px;
    background-color: rgba(122, 255, 155, 0.6); /* Light salmon color with opacity */
    border-radius: 50px / 100px; /* Creates the capsule/bean shape */
    animation: float 15s infinite ease-in-out;
    bottom: -150px; /* Start position off-screen */
}

/* Apply different styles and animation delays to individual beans for variation */
.bean:nth-child(1) {
    left: 10%;
    animation-duration: 15s;
    width: 60px;
    height: 120px;
}

.bean:nth-child(2) {
    left: 30%;
    animation-duration: 20s;
    background-color: rgba(98, 255, 0, 0.6);
    width: 40px;
    height: 80px;
}

.bean:nth-child(3) {
    left: 50%;
    animation-duration: 18s;
    width: 70px;
    height: 140px;
}

.bean:nth-child(4) {
    left: 70%;
    animation-duration: 22s;
    background-color: rgba(187, 255, 155, 0.6);
    width: 50px;
    height: 100px;
}

.bean:nth-child(5) {
    left: 90%;
    animation-duration: 17s;
    width: 65px;
    height: 130px;
}
/* You can add more nth-child selectors for more beans */

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg); /* Moves the bean up the screen */
        opacity: 0;
    }
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #155;
    z-index: 1;
}
