@import url('https://fonts.cdnfonts.com/css/comic-sans-ms');

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

html,
body {
    background: #9b59b6;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

#centerPhoto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 380px;
    height: 380px;
    cursor: pointer;
    transition: transform 0.6s ease;
    animation: bounce-roll 1.2s ease-in-out infinite;
    transform-origin: center;
    z-index: 2;
}

#followerPhoto {
    position: absolute;
    width: 220px;
    height: auto;
    pointer-events: auto;
    will-change: transform;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    z-index: 1;
}

#centerPhoto.spin {
    animation: spin 1s ease-in-out;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bounce-roll {
    0% {
        transform: translate(-50%, -56%) scaleX(1.08) scaleY(0.92) rotate(-18deg);
    }
    25% {
        transform: translate(-48%, -50%) scaleX(1.02) scaleY(0.98) rotate(-6deg);
    }
    50% {
        transform: translate(-50%, -44%) scaleX(0.94) scaleY(1.06) rotate(18deg);
    }
    75% {
        transform: translate(-52%, -50%) scaleX(1.02) scaleY(0.98) rotate(6deg);
    }
    100% {
        transform: translate(-50%, -56%) scaleX(1.08) scaleY(0.92) rotate(-18deg);
    }
}

.falling-photo {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -100px;
    opacity: 0.8;
    animation: fall linear;
}

.heart {
    position: absolute;
    width: 24px;
    height: 24px;
    color: #ff1b1b;
    font-size: 1.5rem;
    animation: heartRise 1.2s ease-out forwards;
    pointer-events: none;
    opacity: 1;
}

@keyframes heartRise {
    0% {
        opacity: 1;
        transform: translate(-50%, -20%) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1.4);
    }
}

@keyframes fall {
    to {
        top: 100vh;
        transform: rotate(360deg);
    }
}

.footer-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", "Marker Felt", cursive;
    font-size: 2.5rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    #centerPhoto {
        width: 260px;
        height: 260px;
    }

    #followerPhoto {
        width: 140px;
    }

    .footer-text {
        top: 20px;
        bottom: auto;
        font-size: 2rem;
    }
}
