/* 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;
    }
}
/* ================================
   LOGIN SCREEN - SEPARATE PAGE
================================ */

#loginPage {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        #ffdce9,
        #ffeef5,
        #ffd6e7
    );

    z-index: 999999;

    overflow: hidden;
}


/* LOGIN BOX */

.login-box {
    width: 90%;
    max-width: 500px;

    padding: 45px 35px;

    text-align: center;

    background: rgba(255, 255, 255, 0.55);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 30px;

    box-shadow:
        0 20px 60px rgba(255, 20, 147, 0.20);

    backdrop-filter: blur(15px);
}


/* LOGIN TITLE */

.login-box h1 {
    font-family: 'Great Vibes', cursive;

    font-size: 65px;

    color: #ff1493;

    margin: 0 0 10px;
}


/* LOGIN TEXT */

.login-box p {
    font-family: 'Poppins', sans-serif;

    font-size: 18px;

    color: #555;

    margin: 10px 0 25px;
}


/* INPUTS */

.login-box input {
    width: 100%;

    padding: 15px 20px;

    margin: 10px 0;

    border: 2px solid #ffb6d5;

    border-radius: 30px;

    background: rgba(255,255,255,0.9);

    font-family: 'Poppins', sans-serif;

    font-size: 16px;

    outline: none;

    box-sizing: border-box;
}


/* INPUT FOCUS */

.login-box input:focus {
    border-color: #ff1493;

    box-shadow:
        0 0 15px rgba(255,20,147,0.2);
}


/* BUTTON */

.login-box button {
    width: 100%;

    padding: 15px;

    margin-top: 15px;

    border: none;

    border-radius: 30px;

    background: linear-gradient(
        90deg,
        #ff1493,
        #ff69b4
    );

    color: white;

    font-family: 'Poppins', sans-serif;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}


.login-box button:hover {
    transform: scale(1.03);

    box-shadow:
        0 10px 25px rgba(255,20,147,0.3);
}


/* ERROR */

#error {
    color: #e91e63 !important;

    font-size: 14px !important;

    margin-top: 15px !important;
}


/* ================================
   VERY IMPORTANT
   HIDE BIRTHDAY PAGE INITIALLY
================================ */

#birthdayPage {
    display: none;
}
/* =========================
   OUR STORY TIMELINE
========================= */

.timeline-section {
    width: 100%;
    padding: 80px 20px 100px;
    box-sizing: border-box;

    text-align: center;
}

.timeline-title {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #ff1493;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 70px;
}


/* Timeline */

.timeline {
    position: relative;

    width: 90%;
    max-width: 1000px;

    margin: auto;
}


/* Center line */

.timeline::after {
    content: '';

    position: absolute;

    width: 4px;

    background: linear-gradient(
        to bottom,
        #ff69b4,
        #ff1493,
        #ffc0cb
    );

    top: 0;
    bottom: 0;

    left: 50%;

    margin-left: -2px;

    border-radius: 10px;
}


/* Timeline item */

.timeline-item {
    position: relative;

    width: 50%;

    padding: 20px 40px;

    box-sizing: border-box;
}


/* Left */

.timeline-item.left {
    left: 0;

    text-align: right;
}


/* Right */

.timeline-item.right {
    left: 50%;

    text-align: left;
}


/* Circle */

.timeline-item::after {
    content: '❤️';

    position: absolute;

    width: 35px;
    height: 35px;

    top: 30px;

    background: white;

    border: 3px solid #ff69b4;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 15px;

    z-index: 2;

    box-shadow:
        0 5px 15px rgba(255,20,147,0.2);
}


/* Circle positions */

.timeline-item.left::after {
    right: -19px;
}

.timeline-item.right::after {
    left: -19px;
}


/* Content */

.timeline-content {
    padding: 25px;

    background: rgba(255,255,255,0.75);

    border: 1px solid rgba(255,255,255,0.9);

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(255,20,147,0.12);

    transition: 0.3s;
}


.timeline-content:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(255,20,147,0.2);
}


/* Date */

.timeline-date {
    display: inline-block;

    padding: 6px 14px;

    margin-bottom: 10px;

    border-radius: 20px;

    background: #ffe0ed;

    color: #e91e8c;

    font-size: 13px;

    font-weight: 600;
}


/* Heading */

.timeline-content h3 {
    color: #d62985;

    font-size: 21px;

    margin-bottom: 10px;
}


/* Text */

.timeline-content p {
    color: #555;

    line-height: 1.7;

    font-size: 15px;
}


/* Final memory */

.final-memory {
    background:
        linear-gradient(
            135deg,
            rgba(255,220,235,0.9),
            rgba(255,245,250,0.9)
        );
}


.timeline-heart {
    font-size: 35px;

    margin-top: 15px;

    animation: heartbeat 1.5s infinite;
}


@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

}


/* =========================
   MOBILE TIMELINE
========================= */

@media (max-width: 700px) {

    .timeline-title {
        font-size: 45px;
    }

    .timeline {
        width: 100%;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;

        left: 0 !important;

        padding-left: 55px;
        padding-right: 10px;

        text-align: left !important;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 2px;
        right: auto;
    }

    .timeline-content {
        padding: 20px;
    }

}
/* =========================
   TIMELINE PAGE
========================= */

#timelinePage {
    display: none;

    min-height: 100vh;
    width: 100%;

    padding: 40px 20px 100px;

    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #fff0f6,
        #ffe0ec,
        #fff5f9
    );
}


/* Timeline button */

.timeline-button-container {
    text-align: center;
    padding: 40px 20px;
}

.timeline-button-container button {
    padding: 15px 30px;

    border: none;
    border-radius: 30px;

    background: #ff1493;
    color: white;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transition: 0.3s;
}

.timeline-button-container button:hover {
    transform: scale(1.05);
}


/* Back button */

.back-button {
    position: fixed;

    top: 20px;
    left: 20px;

    padding: 12px 20px;

    border: none;
    border-radius: 25px;

    background: #ff1493;
    color: white;

    font-family: 'Poppins', sans-serif;
    font-weight: 500;

    cursor: pointer;

    z-index: 1000;
}


/* Timeline */

.timeline-section {
    width: 100%;
    text-align: center;
}

.timeline-title {
    font-family: 'Great Vibes', cursive;

    font-size: 65px;

    color: #ff1493;

    margin-top: 30px;
}

.timeline-subtitle {
    color: #777;

    margin-bottom: 70px;
}


.timeline {
    position: relative;

    width: 90%;
    max-width: 1000px;

    margin: auto;
}


/* Center line */

.timeline::after {
    content: '';

    position: absolute;

    width: 4px;

    top: 0;
    bottom: 0;

    left: 50%;

    margin-left: -2px;

    background: linear-gradient(
        to bottom,
        #ff69b4,
        #ff1493,
        #ffc0cb
    );

    border-radius: 10px;
}


/* Timeline item */

.timeline-item {
    position: relative;

    width: 50%;

    padding: 20px 40px;

    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}


/* Hearts */

.timeline-item::after {
    content: '❤️';

    position: absolute;

    top: 30px;

    width: 35px;
    height: 35px;

    display: flex;

    justify-content: center;
    align-items: center;

    background: white;

    border: 3px solid #ff69b4;

    border-radius: 50%;

    z-index: 2;
}

.timeline-item.left::after {
    right: -19px;
}

.timeline-item.right::after {
    left: -19px;
}


/* Timeline cards */

.timeline-content {
    padding: 25px;

    background: rgba(255,255,255,0.85);

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(255,20,147,0.12);

    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    display: inline-block;

    padding: 6px 14px;

    margin-bottom: 10px;

    border-radius: 20px;

    background: #ffe0ed;

    color: #e91e8c;

    font-size: 13px;

    font-weight: 600;
}

.timeline-content h3 {
    color: #d62985;

    font-size: 21px;

    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;

    line-height: 1.7;

    font-size: 15px;
}


/* Final memory */

.final-memory {
    background: linear-gradient(
        135deg,
        #ffe0ed,
        #fff5fa
    );
}

.timeline-heart {
    font-size: 35px;

    margin-top: 15px;

    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

}


/* Mobile */

@media (max-width: 700px) {

    .timeline-title {
        font-size: 48px;
    }

    .timeline {
        width: 100%;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;

        left: 0 !important;

        padding-left: 55px;
        padding-right: 10px;

        text-align: left !important;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 2px;
        right: auto;
    }

}
/* =========================
   ONE LAST SURPRISE PAGE
========================= */

#finalSurprisePage {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px 80px;
    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #fff0f6,
        #ffdce9,
        #fff7fa
    );
}


/* FINAL BUTTON */

.final-surprise-button {
    text-align: center;
    margin: 60px 0 30px;
}

.final-surprise-button button {
    padding: 16px 32px;

    border: none;
    border-radius: 30px;

    background: #ff1493;
    color: white;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;

    box-shadow:
        0 8px 25px rgba(255,20,147,0.2);
}

.final-surprise-button button:hover {
    transform: scale(1.06);
}


/* FINAL PAGE CONTAINER */

.final-surprise-container {
    width: 90%;
    max-width: 750px;

    margin: 80px auto 0;

    text-align: center;
}


/* HEART */

.final-heart {
    font-size: 80px;

    animation: finalHeartbeat 1.5s infinite;
}

@keyframes finalHeartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

}


/* TITLE */

.final-surprise-container h1 {
    font-family: 'Great Vibes', cursive;

    font-size: 70px;

    color: #ff1493;

    margin: 10px 0;
}


/* INTRO */

.final-intro {
    color: #777;

    font-size: 17px;

    margin-bottom: 35px;
}


/* MESSAGE */

.final-message {
    padding: 40px;

    background: rgba(255,255,255,0.9);

    border-radius: 30px;

    box-shadow:
        0 20px 60px rgba(255,20,147,0.15);

    border: 1px solid #ffd1e2;
}


/* MESSAGE TEXT */

.final-message p {
    color: #555;

    font-size: 16px;

    line-height: 1.9;

    margin-bottom: 22px;
}


/* BOLD TEXT */

.final-message strong {
    color: #d62985;
}


/* BIRTHDAY HEADING */

.final-message h2 {
    color: #ff1493;

    font-family: 'Great Vibes', cursive;

    font-size: 38px;

    margin: 30px 0 15px;
}


/* SIGNATURE */

.final-signature {
    margin-top: 30px;

    color: #ff1493;

    font-family: 'Great Vibes', cursive;

    font-size: 32px;

    line-height: 1.5;
}


/* MOBILE */

@media (max-width: 600px) {

    .final-surprise-container h1 {
        font-size: 50px;
    }

    .final-message {
        padding: 25px;
    }

    .final-message p {
        font-size: 14px;
    }

    .final-signature {
        font-size: 27px;
    }

}
/* =========================
   REDUCE MAIN BIRTHDAY CARD
========================= */

.card {
    width: 90%;
    max-width: 650px;
    min-height: auto;

    padding: 35px 25px;

    margin: 30px auto;

    box-sizing: border-box;
}


/* PHOTO */

.card .photo {
    width: 170px;
    height: 170px;

    margin: 0 auto 20px;
}

.card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* SMALLER TEXT */

.card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.card h1 {
    font-size: 65px;
    margin: 5px 0;
}

.card h2 {
    font-size: 30px;
    margin: 5px 0 15px;
}


/* MESSAGE */

.card #typewriter {
    font-size: 15px;
    line-height: 1.7;

    max-width: 550px;
    margin: 15px auto;
}


/* GIFT */

.gift-container {
    margin-top: 20px;
}

.gift {
    font-size: 45px;
}

.gift-text {
    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .card {
        width: 92%;
        padding: 25px 18px;
        margin: 20px auto;
    }

    .card .photo {
        width: 130px;
        height: 130px;
    }

    .card h3 {
        font-size: 15px;
    }

    .card h1 {
        font-size: 45px;
    }

    .card h2 {
        font-size: 25px;
    }

    .card #typewriter {
        font-size: 13px;
    }

}