/* Apply Finger Paint font to the entire page */
body {
    margin: 0;
    overflow: hidden;
    background: #333333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    min-width: 100vw;
    position: relative;
    font-family: 'Finger Paint', cursive;
}

/* Balloon Container Styling */
.balloon-container {
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    top: 5vh;
    gap: 20px;
}

/* General Balloon Styling */
.balloon {
    display: inline-block;
    width: 80px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -10px -10px 0 rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: bottom center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    animation: sway 3s ease-in-out infinite;
  }

/* Center Balloon */
.center-balloon {
    width: 100px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

/* Independent Vertical Sway Animation */
.balloon1 { animation-duration: 3s; }
.balloon2 { animation-duration: 3.5s; }
.balloon3 { animation-duration: 4s; }
.balloon4 { animation-duration: 4.5s; }
.center-balloon { animation-duration: 5s; }

/* Define Vertical Sway Keyframes */
@keyframes sway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); } /* Sway up by 20px */
}

/* Center Image Fixed to Bottom Center */
.center-image {
    width: 500px;
    height: auto;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: filter 0.3s ease;
}

.center-image:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); 
}

/* Balloon String Styling */
.balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 25vh;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
}

/* Balloon Colors */
.balloon1 { background-color: hsl(215, 50%, 65%); background-image: url('/images/tg.svg'); background-size: 75%;}
.balloon2 { background-color: hsl(245, 40%, 65%); background-image: url('/images/x.svg'); background-size: 70%;}
.balloon3 { background-color: hsl(139, 50%, 60%); background-image: url('/images/dextools.svg'); background-size: 70%;}
.balloon4 { background-color: hsl(59, 50%, 58%); background-image: url('/images/dexscreener.svg'); background-size: 70%;}
.center-balloon { background-color: hsl(23, 55%, 57%);}

/* Center Balloon Text */
.center-balloon .balloon-text {
    color: white;
    text-align: center;
    line-height: 1;
    font-size: .8EM;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Responsive Scaling for Text in Center Balloon */
.center-balloon .balloon-text p {
    margin: 5px 0;
}

/* Hover Effect (Glow) */
.balloon:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Click (Pop) Effect */
.balloon:active {
    animation: pop 0.2s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0); opacity: 0; }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .center-image {
        width: 300px;
        height: auto;
    }

    .balloon {
        width: 60px;
        height: 80px;
    }

    .balloon-text p {
        font-size: calc(0.7em + 0.4vw); /* Adjust for mobile */
    }
}

.large-text {
    font-size: 6em;
    color: white;
    text-align: center;
    position: absolute;
    top: 40VH;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}