body {
    margin: 0;
    overflow: hidden; /* Hide scrollbars, crucial for floating effect */
    font-family: Arial, sans-serif;
    color: white; /* Text color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    background-color: #8B4513; /* A base brown color for peanut theme */
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" fill="white">Welcome Peanuts!</text></svg>');
    background-repeat: repeat;
    background-size: auto; /* Adjust as needed */
    background-attachment: fixed; /* Keep background fixed when scrolling (though we have overflow: hidden) */
}

.welcome-text {
    font-size: 10vw; /* Use viewport width for responsive font size */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    margin-bottom: 20vh; /* This is fine, relative to viewport height */
    text-align: center; /* Ensure text is centered within its content area */
}

.peanuts-container,
.olives-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.peanut {
    position: absolute;
    background-image: url('peanuts.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px; /* Keeping fixed for now, as they are floating background elements */
    height: 150px;
    animation: float-vertical linear infinite;
    opacity: 0.8;
}

.olive {
    position: absolute;
    background-image: url('olive.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 180px; /* Keeping fixed for now, as they are floating background elements */
    height: 180px;
    animation: float-horizontal linear infinite;
    opacity: 0.7;
}

.wwpd-text {
    position: absolute;
    bottom: 20px; /* Or use a percentage for bottom: 2% */
    width: 100%;
    text-align: center;
    font-size: 4vw; /* Use viewport width for responsive font size */
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 3;
}

@keyframes float-vertical {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-15px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.8; }
}

@keyframes float-horizontal {
    0% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 0.9; }
    100% { transform: translateX(0); opacity: 0.7; }
}

/* Styles for screens smaller than 600px (e.g., phones) */
@media (max-width: 600px) {
    .welcome-text {
        font-size: 15vw; /* Make it a bit larger on very small screens if desired */
        margin-bottom: 10vh; /* Adjust spacing */
    }

    .wwpd-text {
        font-size: 6vw; /* Make it larger on very small screens */
        bottom: 10px; /* Closer to the bottom */
    }

    /* Example: Make floating images smaller on very small screens */
    .peanut {
        width: 100px;
        height: 100px;
    }

    .olive {
        width: 120px;
        height: 120px;
    }

    /* You could also reduce the number of elements in JavaScript if needed,
       though that's harder to do dynamically with CSS only. */
}