/* Add your CSS here to style your valentines day page */

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

body {
    font-family: "Segoe UI", cursive;
    background: linear-gradient(to bottom, #ffb6c1, #ffe4e1);
    color: #5a1a2c;
}

#wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

header {
    background: #ff4d6d;
    padding: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav li {
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

nav li:hover {
    transform: scale(1.2);
}

main {
    text-align: center;
    padding: 30px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

img {
    width: 250px;
    margin: 20px 0;
}

section {
    background: #fff0f5;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
}

section h2 {
    color: #ff4d6d;
}

footer {
    text-align: center;
    padding: 15px;
    background: #ff4d6d;
    color: white;
}

section:nth-of-type(1) h2::before {
    content: "💖 ";
}

section:nth-of-type(2) h2::before {
    content: "❤️ ";
}

section:nth-of-type(3) h2::before {
    content: "🏹 ";
}



@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}



@keyframes pulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.4); 
    }
    100% { 
        transform: scale(1); 
    }
}

section:nth-of-type(1) h2::before,
section:nth-of-type(2) h2::before {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5em;
    animation: pulse 1.5s infinite;
}

section:nth-of-type(1) h2::before {
    animation: pulse 2s infinite;
}

section:nth-of-type(2) h2::before {
    animation: pulse 1s infinite;
}


body {
    font-family: "Segoe UI", cursive;
    background: linear-gradient(270deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
    background-size: 800% 800%;
    animation: gradientMove 10s ease infinite;
    color: #5a1a2c;
}

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

section h2 {
    position: relative;
    cursor: pointer;
}

/* Create rain icons */
section h2::after {
    content: "💖 💖 💖 💖 💖";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    opacity: 0;
    font-size: 1.5rem;
}

/* On hover: start raining */
section:nth-of-type(1) h2:hover::after {
    content: "💖 💖 💖 💖 💖";
    animation: rain 1.5s infinite;
    opacity: 1;
}

section:nth-of-type(2) h2:hover::after {
    content: "❤️ ❤️ ❤️ ❤️ ❤️";
    animation: rain 1.5s infinite;
    opacity: 1;
}

section:nth-of-type(3) h2:hover::after {
    content: "🏹 🏹 🏹 🏹 🏹";
    animation: rain 1.5s infinite;
    opacity: 1;
}

@keyframes rain {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 120px;
        opacity: 0;
    }
}
