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

body, html {
    font-family: 'Caveat', cursive;
    background-color: white;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.confetti-container lottie-player {
    height: 100%;
}

.riki-pics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.riki-pic {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

.riki-pic.fade-in {
    opacity: 0.8;
}

/* Random positioning and shapes for each pic */
.pic-1 {
    top: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation-delay: 0s;
}

.pic-2 {
    top: 25%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    animation-delay: 1s;
}

.pic-3 {
    bottom: 25%;
    left: 20%;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    animation-delay: 2s;
}

.pic-4 {
    bottom: 15%;
    right: 25%;
    width: 200px;
    height: 200px;
    border-radius: 30px;
    animation-delay: 3s;
}

.pic-5 {
    top: 5%;
    left: 44%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-8px) translateX(5px);
    }
    50% {
        transform: translateY(-12px) translateX(0px);
    }
    75% {
        transform: translateY(-8px) translateX(-5px);
    }
}

.text-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 90%;
    width: 700px;
    margin: 0 auto;
}

.birthday-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: black;
    line-height: 1.2;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
}

.birthday-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.wish-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    color: black;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
    transition-delay: 0.5s;
}

.wish-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.prepaid-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #0E3A5E;
    font-weight: 700;
}

.image-credits {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #EA9A9D;
  font-weight: 700;
}

.prepaid-text > span:first-child {
  color: #869CAE;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .birthday-text {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .wish-text {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .footer {
        bottom: 15px;
        right: 15px;
    }
    
    .prepaid-text,
    .image-credits {
        font-size: 1rem;
    }

    .confetti-container {
      width: 200%;
      transform: translateX(-24%);
    }
    
    /* Make riki pictures smaller on mobile */
    .riki-pic {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .birthday-text {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }
    
    .wish-text {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }
    
    /* Make riki pictures even smaller on very small screens */
    .riki-pic {
        width: 100px !important;
        height: 100px !important;
    }
}
