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

body {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffb6b6);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    font-family: 'Parisienne', cursive;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.heart-container {
    position: relative;
}

.heart {
    width: 100px;
    height: 100px;
    background: #ff4d4d;
    position: relative;
    transform: rotate(-45deg);
    margin: 50px auto;
    animation: beat 1.2s infinite ease-in-out;
}

.heart:before,
.heart:after {
    content: "";
    width: 100px; /* Adjusted to match the base */
    height: 100px;
    background: #ff4d4d;
    border-radius: 50%;
    position: absolute;
}

.heart:before {
    top: -50px;
    left: 0;
}

.heart:after {
    left: 50px;
    top: 0;
}


@keyframes beat {
    0%, 100% { transform: scale(1) rotate(-45deg); }
    50% { transform: scale(1.15) rotate(-45deg); }
}

.shadow {
    width: 100px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: shadowPulse 1.2s infinite ease-in-out;
}

@keyframes shadowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.message-container {
    margin-top: 50px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3em;
    animation: fadeIn 2s ease-in;
}

p {
    font-size: 1.5em;
    max-width: 600px;
    animation: fadeIn 3s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.petals {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 12px;
    height: 24px;
    background: linear-gradient(#ff9999, #ffcccc);
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-20vh) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Heart Pump Effect */
.pump {
    transform: scale(1.2) rotate(-45deg);
    transition: transform 0.2s ease-in-out;
}

.mini-heart {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ff4d4d;
    transform: rotate(-45deg);
    position: absolute;
    animation: burst 1s ease-out forwards;
}

.mini-heart:before,
.mini-heart:after {
    content: "";
    width: 15px;
    height: 15px;
    background: #ff4d4d;
    border-radius: 50%;
    position: absolute;
}

.mini-heart:before {
    top: -7px;
    left: 0;
}

.mini-heart:after {
    left: 7px;
    top: 0;
}

@keyframes burst {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) translate(calc(-20px + 40px * random()), calc(-30px + 60px * random()));
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5) translate(calc(-30px + 60px * random()), calc(-40px + 80px * random()));
        opacity: 0;
    }
}

#playMusic {
    background-color: #ff4d4d; /* Red color for the button */
    color: white;
    font-family: 'Parisienne', cursive;
    font-size: 1.5em;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

#playMusic:hover {
    background-color: #ff1a1a; /* Darker red when hovered */
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

#playMusic:active {
    transform: scale(1); /* Reset scale when clicked */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
