/* =========================================
   BASIC SETTINGS
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;

    background:
        linear-gradient(
            135deg,
            #ffd6e7,
            #fff0f5,
            #ffe4ec
        );

    color: #7a1738;

    overflow-x: hidden;
}


/* =========================================
   ALL BUTTONS
========================================= */

button {
    border: none;

    padding: 15px 32px;

    margin-top: 20px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #ff4d88,
            #ff1744,
            #c2185b
        );

    color: white;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(194, 24, 91, 0.35),
        0 0 15px rgba(255, 105, 180, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-3px) scale(1.05);

    box-shadow:
        0 12px 25px rgba(194, 24, 91, 0.45),
        0 0 20px rgba(255, 105, 180, 0.5);
}

button:active {
    transform: scale(0.95);
}


/* =========================================
   WELCOME SCREEN
========================================= */

.welcome {
    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffd6e7,
            #fff0f5
        );
}


/* =========================================
   WELCOME CARD
========================================= */

.welcome-card {
    width: 90%;
    max-width: 600px;

    text-align: center;

    position: relative;

    z-index: 5;

    padding: 35px 25px;

    background:
        rgba(255, 255, 255, 0.88);

    border-radius: 25px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(10px);
}

.small-text {
    color: #a8325a;

    font-size: 16px;

    margin: 0 0 10px;
}

h1 {
    color: #8b1235;

    font-size: 42px;

    margin: 15px 0;
}

h1 span {
    display: block;

    color: #e91e63;
}

.subtitle {
    color: #777;

    font-size: 18px;

    margin-bottom: 10px;
}


/* =========================================
   GO AHEAD BUTTON
========================================= */

#goAheadButton {
    display: none;

    margin-top: 20px;
}

#goAheadButton.show-button {
    display: inline-block;

    animation:
        buttonAppear 0.8s ease forwards;
}

@keyframes buttonAppear {

    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================
   WELCOME PHOTO POPUPS
========================================= */

.memory-popups {
    position: absolute;

    inset: 0;

    z-index: 10;

    pointer-events: none;
}

.popup-photo {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.8s ease;
}

.popup-photo img {
    width: 80%;

    max-width: 400px;

    max-height: 75vh;

    object-fit: contain;

    border-radius: 20px;

    border: 8px solid white;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3);
}


/* =========================================
   BIRTHDAY VIDEO SCREEN
========================================= */

.birthday-video {
    width: 100%;

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 25px 15px;

    background:
        linear-gradient(
            135deg,
            #e91e63,
            #ad1457,
            #880e4f
        );

    overflow-y: auto;
}

.video-card {
    width: 100%;

    max-width: 650px;

    text-align: center;

    padding: 30px 20px;

    background:
        rgba(255, 255, 255, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.3);

    border-radius: 28px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}

.video-card h2 {
    color: white;

    font-size: 26px;

    line-height: 1.4;

    margin: 10px 0 15px;
}

.video-card p {
    color: white;

    font-size: 17px;

    line-height: 1.6;
}


/* VIDEO ITSELF */

.video-card video {
    display: block;

    width: 100%;

    max-width: 550px;

    max-height: 65vh;

    margin: 20px auto;

    border-radius: 20px;

    background: #000;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);

    object-fit: contain;
}


/* =========================================
   LOVE NOTE
========================================= */

.love-note {
    width: 100%;

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 25px 15px;

    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #ffd6e7,
            #ffe4ec
        );

    overflow-y: auto;
}

.note-card {
    width: 100%;

    max-width: 650px;

    text-align: center;

    padding: 35px 25px;

    background:
        rgba(255, 255, 255, 0.9);

    border-radius: 28px;

    box-shadow:
        0 15px 45px rgba(139, 18, 53, 0.2);
}

.heart {
    font-size: 55px;

    animation:
        heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

}

.note-card h2 {
    color: #c2185b;

    font-size: 30px;

    margin: 15px 0 25px;
}

.note-card p {
    color: #6d3a4c;

    font-size: 17px;

    line-height: 1.8;

    margin: 15px 0;
}

.love-ending {
    color: #e91e63 !important;

    font-size: 20px !important;

    font-weight: bold;
}


/* =========================================
   SPECIAL PHOTO
========================================= */

.special-photo {
    width: 100%;

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 25px 15px;

    background:
        linear-gradient(
            135deg,
            #ffe4ec,
            #fff0f5,
            #ffd6e7
        );

    overflow-y: auto;
}

.special-photo-container {
    width: 100%;

    max-width: 650px;

    text-align: center;

    padding: 30px 20px;

    background:
        rgba(255, 255, 255, 0.9);

    border-radius: 28px;

    box-shadow:
        0 15px 40px rgba(139, 18, 53, 0.18);
}

.photo-title {
    color: #c2185b;

    font-size: 22px;

    font-weight: bold;
}

.special-photo-container img {
    display: block;

    width: 100%;

    max-width: 450px;

    max-height: 60vh;

    margin: 20px auto;

    object-fit: contain;

    border-radius: 20px;

    border: 7px solid white;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2);
}

.photo-caption {
    color: #777;

    font-size: 17px;
}

/* =========================================
   OUR MEMORIES - ONE PHOTO AFTER ANOTHER
========================================= */

.memories {
    width: 100%;
    min-height: 100vh;

    display: none;

    justify-content: center;
    align-items: flex-start;

    padding: 30px 15px 50px;

    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #ffd6e7
        );

    overflow-y: auto;
}

.memories-container {
    width: 100%;
    max-width: 650px;

    text-align: center;
}

.memories-container h1 {
    color: #c2185b;
    font-size: 34px;

    margin: 10px 0 12px;
}

.memories-intro {
    color: #777;

    font-size: 17px;

    line-height: 1.6;

    margin: 0 auto 30px;

    max-width: 550px;
}


/* =========================================
   ONE PHOTO PER ROW
========================================= */

.memory-grid {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 25px;

    align-items: center;
}


/* =========================================
   MEMORY CARD
========================================= */

.memory-card {
    width: 100%;

    background: white;

    padding: 10px;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

    overflow: hidden;
}


/* =========================================
   FULL PHOTO
========================================= */

.memory-card img {
    display: block;

    width: 100%;

    height: auto;

    max-height: none;

    object-fit: contain;

    border-radius: 14px;
}


/* =========================================
   PHOTO CAPTION
========================================= */

.memory-card p {
    color: #9b2851;

    font-size: 15px;

    line-height: 1.4;

    margin: 12px 5px 5px;

    font-weight: bold;
}


/* =========================================
   OUR FUTURE BUTTON
========================================= */

.memories-container button {
    margin-top: 30px;
}


/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 600px) {

    .memories {
        padding: 25px 12px 45px;
    }

    .memories-container h1 {
        font-size: 29px;
    }

    .memories-intro {
        font-size: 15px;

        padding: 0 5px;

        margin-bottom: 25px;
    }

    .memory-grid {
        gap: 22px;
    }

    .memory-card {
        width: 100%;

        padding: 7px;

        border-radius: 17px;
    }

    .memory-card img {
        width: 100%;

        height: auto;

        border-radius: 12px;
    }

    .memory-card p {
        font-size: 13px;

        margin: 10px 3px 4px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .memories {
        padding-left: 9px;
        padding-right: 9px;
    }

    .memory-card {
        padding: 6px;

        border-radius: 15px;
    }

    .memory-card img {
        border-radius: 10px;
    }

    .memory-card p {
        font-size: 12px;
    }

}


/* =========================================
   FUTURE
========================================= */

.future {
    width: 100%;

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: flex-start;

    padding: 40px 15px;

    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #ffd6e7,
            #ffe4ec
        );

    overflow-y: auto;
}

.future-container {
    width: 100%;

    max-width: 650px;

    text-align: center;
}

.future-heart {
    font-size: 55px;
}

.future-container h1 {
    color: #c2185b;

    font-size: 38px;
}

.future-intro {
    color: #777;

    font-size: 17px;

    line-height: 1.6;

    margin-bottom: 25px;
}

.future-item {
    display: flex;

    align-items: flex-start;

    text-align: left;

    gap: 15px;

    background:
        rgba(255, 255, 255, 0.9);

    margin: 15px 0;

    padding: 18px;

    border-radius: 18px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.future-item > span {
    font-size: 30px;

    min-width: 40px;
}

.future-item h2 {
    color: #c2185b;

    margin: 0 0 7px;

    font-size: 21px;
}

.future-item p {
    color: #777;

    margin: 0;

    line-height: 1.5;

    font-size: 15px;
}


/* =========================================
   FINAL SCREEN
========================================= */

.final {
    width: 100%;

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 35px 15px;

    background:
        linear-gradient(
            135deg,
            #880e4f,
            #c2185b,
            #e91e63
        );

    overflow-y: auto;
}

.final-container {
    width: 100%;

    max-width: 650px;

    text-align: center;

    color: white;

    padding: 35px 20px;
}

.final-hearts {
    font-size: 28px;

    margin: 15px 0;
}

.birthday-cake {
    font-size: 70px;

    animation:
        cakeFloat 2s ease-in-out infinite;
}

@keyframes cakeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}

.final-container h1 {
    color: white;

    font-size: 38px;

    line-height: 1.3;
}

.final-container h1 span {
    color: #ffd700;
}

.final-message {
    font-size: 17px;

    line-height: 1.8;

    margin: 20px 0;

    color: #fff;
}

.long-distance {
    font-size: 18px;

    line-height: 1.7;

    font-style: italic;

    color: #ffe4ec;

    margin: 25px 0;
}

.big-love {
    color: #ffd700;

    font-size: 30px;

    font-weight: bold;

    margin: 30px 0;

    animation:
        heartbeat 1.5s infinite;
}

.forever {
    font-size: 17px;

    line-height: 1.7;

    color: white;
}


/* =========================================
   MOBILE PHONE DESIGN
========================================= */

@media (max-width: 600px) {

    h1 {
        font-size: 32px;
    }

    .welcome-card {
        width: 90%;

        padding: 28px 15px;
    }

    .small-text {
        font-size: 14px;
    }

    .subtitle {
        font-size: 16px;
    }


    /* Popup photos */

    .popup-photo img {
        width: 85%;

        max-width: 330px;

        max-height: 65vh;

        border-width: 6px;
    }


    /* Buttons */

    button {
        width: auto;

        max-width: 90%;

        padding: 13px 25px;

        font-size: 16px;
    }


    /* Video */

    .birthday-video {
        padding: 15px 10px;
    }

    .video-card {
        padding: 25px 15px;

        border-radius: 22px;
    }

    .video-card h2 {
        font-size: 21px;
    }

    .video-card p {
        font-size: 15px;
    }

    .video-card video {
        max-height: 65vh;

        border-radius: 15px;
    }


    /* Love note */

    .note-card {
        padding: 30px 18px;
    }

    .note-card h2 {
        font-size: 26px;
    }

    .note-card p {
        font-size: 16px;

        line-height: 1.7;
    }


    /* Special photo */

    .special-photo-container {
        padding: 25px 15px;
    }

    .special-photo-container img {
        max-height: 55vh;

        border-width: 5px;
    }


    /* Memories */

    .memories {
        padding: 25px 10px;
    }

    .memories-container h1 {
        font-size: 30px;
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .memory-card {
        padding: 7px;

        border-radius: 14px;
    }

    .memory-card img {
        height: 135px;

        border-radius: 10px;
    }

    .memory-card p {
        font-size: 12px;

        line-height: 1.3;
    }


    /* Future */

    .future {
        padding: 30px 12px;
    }

    .future-container h1 {
        font-size: 32px;
    }

    .future-item {
        padding: 15px;

        gap: 10px;
    }

    .future-item > span {
        font-size: 25px;

        min-width: 32px;
    }

    .future-item h2 {
        font-size: 18px;
    }

    .future-item p {
        font-size: 14px;
    }


    /* Final */

    .final {
        padding: 25px 12px;
    }

    .final-container {
        padding: 25px 10px;
    }

    .birthday-cake {
        font-size: 60px;
    }

    .final-container h1 {
        font-size: 31px;
    }

    .final-message {
        font-size: 16px;

        line-height: 1.7;
    }

    .long-distance {
        font-size: 17px;
    }

    .big-love {
        font-size: 25px;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    h1 {
        font-size: 28px;
    }

    .welcome-card {
        padding: 25px 12px;
    }

    .popup-photo img {
        width: 88%;

        max-height: 60vh;
    }

    .memory-card img {
        height: 115px;
    }

    .memory-card p {
        font-size: 11px;
    }

}