/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;500;600;700&display=swap');


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/* =========================
   HTML & BODY
========================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            rgba(255, 182, 193, 0.35),
            rgba(255, 182, 193, 0.35)
        ),
        url("assets/background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


/* =========================
   DARK PINK OVERLAY
========================= */

.overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 192, 203, 0.20)
        );

    z-index: 0;

    pointer-events: none;
}


/* =========================
   SPARKLES
========================= */

.sparkles {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image:
        radial-gradient(
            white 2px,
            transparent 2px
        );

    background-size: 60px 60px;

    opacity: 0.15;

    animation: sparkle 8s linear infinite;

    pointer-events: none;

    z-index: 1;
}

@keyframes sparkle {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 200px 300px;
    }
}


/* =========================
   GLASS CARD
========================= */

.card {
    position: relative;

    width: 90%;
    max-width: 520px;

    margin: 25px auto;
    padding: 30px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.5);

    box-shadow:
        0 20px 60px rgba(255, 20, 147, 0.25),
        0 0 30px rgba(255, 255, 255, 0.2);

    text-align: center;

    z-index: 2;

    animation: card 1.2s ease;
}

@keyframes card {

    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   HEARTBEAT
========================= */

.card {
    animation:
        card 1.2s ease,
        heartbeat 2.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}


/* =========================
   PHOTO
========================= */

.photo {
    width: 170px;
    height: 170px;

    margin: 0 auto;

    border-radius: 50%;

    overflow: hidden;

    border: 5px solid white;

    box-shadow:
        0 0 30px hotpink,
        0 0 60px pink;

    animation: pulse 2.5s infinite;
}

.photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    box-shadow: 0 0 25px #ff69b4;

    animation: glow 2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {

    50% {
        box-shadow: 0 0 45px #ff1493;
    }
}


/* =========================
   HEADING
========================= */

h1 {
    font-family: 'Great Vibes', cursive;

    font-size: 65px;

    color: #ff1493;

    margin-top: 15px;

    line-height: 1.1;

    text-shadow:
        0 0 10px white,
        0 0 20px hotpink;
}

h2 {
    margin-top: 10px;

    font-size: 30px;

    color: #d63384;
}

h3 {
    font-size: 19px;

    color: #b5179e;

    margin-top: 15px;
}


/* =========================
   MESSAGE
========================= */

#typewriter {
    margin-top: 20px;

    font-size: 15px;

    line-height: 1.7;

    color: #444;

    min-height: 100px;
}


/* =========================
   BUTTON
========================= */

button {
    margin-top: 20px;

    padding: 13px 35px;

    border: none;

    border-radius: 50px;

    background:
        linear-gradient(
            45deg,
            #ff1493,
            #ff69b4
        );

    color: white;

    font-size: 17px;

    cursor: pointer;

    transition: 0.4s;
}

button:hover {
    transform: translateY(-5px) scale(1.05);

    box-shadow:
        0 10px 30px hotpink;
}


/* =========================
   POPUP
========================= */

.popup {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.5);

    z-index: 999;
}

.popup-card {
    background: white;

    width: 90%;
    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    border-radius: 30px;

    text-align: center;

    animation: popup 0.6s;
}

.popup-card h2 {
    margin: 20px 0;
}

.popup-card p {
    line-height: 2;

    color: #555;

    font-size: 16px;
}

@keyframes popup {

    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================
   FOOTER
========================= */

footer {
    position: relative;

    width: 100%;

    margin: 0 0 15px;

    text-align: center;

    font-size: 13px;

    color: white;

    font-weight: bold;

    z-index: 5;
}


/* =========================
   FLOATING HEARTS
========================= */

#hearts {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    overflow: hidden;

    z-index: 1;
}

.heart {
    position: absolute;

    font-size: 25px;

    animation: float linear forwards;
}

@keyframes float {

    0% {
        transform:
            translateY(100vh)
            rotate(0deg);

        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(-120px)
            rotate(360deg);

        opacity: 0;
    }
}


/* =========================
   GIFT BOX
========================= */

.gift-container {
    margin-top: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.gift {
    font-size: 70px;

    cursor: pointer;

    transition: 0.4s;

    animation: bounce 2s infinite;
}

.gift:hover {
    transform: scale(1.2) rotate(8deg);
}

.gift-text {
    margin-top: 8px;

    font-size: 17px;

    color: #d63384;

    font-weight: 600;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* =========================
   FALLING PETALS
========================= */

.petal {
    position: fixed;

    top: -50px;

    font-size: 23px;

    pointer-events: none;

    animation: petalFall linear forwards;

    z-index: 4;
}

@keyframes petalFall {

    0% {
        transform:
            translateY(-100px)
            rotate(0deg);

        opacity: 1;
    }

    100% {
        transform:
            translateY(110vh)
            rotate(720deg);

        opacity: 0;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

    body {
        justify-content: center;
        align-items: center;
    }

    .card {
        width: 90%;

        padding: 25px;

        margin: 20px auto;
    }

    .photo {
        width: 145px;
        height: 145px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 17px;
    }

    #typewriter {
        font-size: 14px;

        min-height: 80px;
    }

    button {
        padding: 12px 30px;

        font-size: 16px;
    }

    .gift {
        font-size: 60px;
    }

    .gift-text {
        font-size: 15px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .card {
        width: 92%;

        padding: 20px;

        margin: 15px auto;
    }

    .photo {
        width: 125px;
        height: 125px;
    }

    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 15px;
    }

    #typewriter {
        font-size: 13px;

        line-height: 1.6;
    }

    button {
        padding: 10px 25px;

        font-size: 15px;
    }

    .gift {
        font-size: 55px;
    }

    .gift-text {
        font-size: 14px;
    }

    footer {
        font-size: 11px;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 360px) {

    .card {
        width: 94%;

        padding: 16px;
    }

    .photo {
        width: 110px;
        height: 110px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 14px;
    }

    #typewriter {
        font-size: 12px;
    }

    .gift {
        font-size: 48px;
    }
}