@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&family=Parisienne&display=swap');


/* =========================================
   RESET
========================================= */

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


/* =========================================
   BODY
========================================= */

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.8),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(255, 255, 255, 0.65),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8e3e9,
            #f5d9e2
        );

    color: #765761;

    font-family: "DM Sans", sans-serif;

    overflow-x: hidden;
    overflow-y: auto;
}


/* =========================================
   DEKORASI BACKGROUND
========================================= */

body::before,
body::after {
    content: "♡";

    position: fixed;

    font-family: "Cormorant Garamond", serif;

    color: rgba(190, 117, 139, 0.12);

    pointer-events: none;

    z-index: 0;
}


body::before {
    font-size: 220px;

    left: -60px;
    top: -80px;

    transform: rotate(-15deg);
}


body::after {
    font-size: 180px;

    right: -40px;
    bottom: -60px;

    transform: rotate(15deg);
}


/* =========================================
   HALAMAN LOCK
========================================= */

.lock-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}


/* =========================================
   KERTAS
========================================= */

.paper {
    position: relative;

    width: min(650px, 100%);

    min-height: 560px;

    padding: 50px 65px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background-color: #fffdfb;

    background-image:
        linear-gradient(
            rgba(190, 150, 160, 0.055) 1px,
            transparent 1px
        );

    background-size: 100% 32px;

    border-radius: 6px;

    box-shadow:
        0 30px 70px rgba(118, 72, 88, 0.16),
        0 5px 15px rgba(118, 72, 88, 0.08);

    animation: paperAppear 0.9s ease;

    overflow: hidden;
}


/* =========================================
   EFEK KERTAS
========================================= */

.paper::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 28px;

    width: 1px;

    background: rgba(218, 155, 170, 0.16);
}


.paper::after {
    content: "";

    position: absolute;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: 45px;
    height: 3px;

    border-radius: 50%;

    background: rgba(193, 129, 147, 0.12);
}


@keyframes paperAppear {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            rotate(-1deg)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            rotate(0)
            scale(1);
    }

}


/* =========================================
   TEKS KECIL
========================================= */

.tiny-text {
    font-size: 10px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #bd929e;

    margin-bottom: 12px;
}


/* =========================================
   HATI
========================================= */

.heart {
    font-family: "Cormorant Garamond", serif;

    font-size: 38px;

    color: #d58ea2;

    line-height: 1;

    margin-bottom: 4px;

    animation: heartBeat 3s ease-in-out infinite;
}


@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


/* =========================================
   JUDUL
========================================= */

h1 {
    font-family: "Parisienne", cursive;

    font-size: clamp(64px, 8vw, 88px);

    font-weight: 400;

    line-height: 1;

    color: #aa687c;

    margin-bottom: 14px;
}


/* =========================================
   GARIS
========================================= */

.line {
    width: 65px;

    height: 1px;

    background: #d8a8b4;

    margin: 4px 0 25px;
}


/* =========================================
   PERTANYAAN
========================================= */

.question {
    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    line-height: 1.2;

    color: #765761;

    margin-bottom: 2px;
}


.question-small {
    font-family: "Cormorant Garamond", serif;

    font-size: 19px;

    color: #a3838c;

    margin-bottom: 23px;
}


h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: 34px;

    font-weight: 600;

    color: #9e6275;

    margin-bottom: 15px;
}


/* =========================================
   INPUT
========================================= */

.input-area {
    width: 100%;

    max-width: 370px;
}


input {
    width: 100%;

    padding: 12px 15px;

    border: none;

    border-bottom: 1px solid #d6a5b2;

    background: rgba(255, 255, 255, 0.35);

    outline: none;

    text-align: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 21px;

    color: #72535d;

    transition: all 0.3s ease;
}


input::placeholder {
    color: #c3a0a9;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    letter-spacing: 0.3px;
}


input:focus {
    border-bottom-color: #b87388;

    background: rgba(255, 255, 255, 0.7);

    padding-left: 20px;

    padding-right: 20px;
}


/* =========================================
   BUTTON
========================================= */

button {
    width: 100%;

    margin-top: 18px;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.5);

    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #dda0b1,
        #cf899e
    );

    color: white;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    box-shadow:
        0 8px 20px rgba(180, 103, 125, 0.17);
}


button:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #d58fa3,
        #c87f95
    );

    box-shadow:
        0 12px 28px rgba(180, 103, 125, 0.24);
}


button:active {
    transform: translateY(0) scale(0.98);
}


button:disabled {
    opacity: 0.7;

    cursor: wait;

    transform: none;
}


/* =========================================
   ERROR
========================================= */

.error {
    min-height: 21px;

    margin-top: 12px;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    color: #b5687d;
}


/* =========================================
   PETUNJUK
========================================= */

.hint {
    margin-top: 10px;

    font-family: "Parisienne", cursive;

    font-size: 20px;

    color: #b8939d;
}


/* =========================================
   ANIMASI MEMBUKA KERTAS
========================================= */

body.opening .paper {
    animation: paperClosing 0.7s ease forwards;
}


@keyframes paperClosing {

    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.06) rotate(-1deg);
        filter: blur(4px);
    }

}


/* =========================================
   HALAMAN PEMBUKA KERTASKOSONG
========================================= */

.story-body {
    overflow: hidden;
}


.story-page {
    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 30px;
}


.story-paper {
    position: relative;

    width: min(700px, 100%);

    height: min(620px, calc(100vh - 70px));

    padding: 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background-color: #fffdfb;

    background-image:
        linear-gradient(
            rgba(190,150,160,0.055) 1px,
            transparent 1px
        );

    background-size: 100% 32px;

    border-radius: 6px;

    box-shadow:
        0 30px 70px rgba(118,72,88,0.15);

    animation: storyAppear 1s ease;
}


@keyframes storyAppear {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


.story-small {
    font-size: 10px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #bd929e;

    margin-bottom: 15px;
}


.story-heart {
    font-family: "Cormorant Garamond", serif;

    font-size: 42px;

    color: #d48ca0;

    margin-bottom: 5px;
}


.story-paper h1 {
    font-family: "Parisienne", cursive;

    font-size: clamp(70px, 10vw, 100px);

    font-weight: 400;

    line-height: 1;

    color: #aa687c;
}


.story-line {
    width: 70px;

    height: 1px;

    background: #d7a5b2;

    margin: 25px 0;
}


.story-intro {
    font-family: "Cormorant Garamond", serif;

    font-size: 23px;

    line-height: 1.65;

    color: #765761;
}


.handwriting {
    margin-top: 20px;

    font-family: "Parisienne", cursive;

    font-size: 25px;

    color: #ad7c8b;
}


.story-hint {
    font-size: 11px;

    color: #b5969e;

    margin-bottom: 18px;
}


.story-button {
    width: auto;

    min-width: 190px;

    margin-top: 0;

    padding: 13px 25px;
}


/* ANIMASI KELUAR */

.story-opening .story-paper {
    animation: storyLeave 0.7s ease forwards;
}


@keyframes storyLeave {

    to {
        opacity: 0;

        transform:
            scale(1.05)
            rotate(-1deg);

        filter: blur(3px);
    }

}


/* =========================================
   HALAMAN KEGIATAN
========================================= */

.memory-body {
    margin: 0;

    min-height: 100vh;

    background: #eee7dc;

    color: #403831;

    font-family: Georgia, "Times New Roman", serif;

    overflow-x: hidden;

    overflow-y: auto;
}


.memory-page {
    width: 100%;

    min-height: 100vh;

    height: auto;

    box-sizing: border-box;

    padding: 35px 20px;
}


/* =========================================
   KERTAS
========================================= */

.memory-card {
    width: min(720px, 100%);

    margin: 0 auto;

    padding: 40px 45px;

    box-sizing: border-box;

    background: #fffdf9;

    border: 1px solid rgba(80, 65, 50, 0.12);

    box-shadow:
        0 10px 30px rgba(60, 45, 30, 0.10);

    position: relative;

    height: auto;
}


.memory-card::before {
    content: "";

    position: absolute;

    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;

    border: 1px solid rgba(80, 65, 50, 0.07);

    pointer-events: none;
}


/* =========================================
   HEADER
========================================= */

.memory-top {
    display: flex;

    justify-content: space-between;

    position: relative;

    z-index: 1;

    color: #9b8b7b;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================
   JUDUL
========================================= */

.memory-heading {
    text-align: center;

    margin-top: 45px;

    position: relative;

    z-index: 1;
}


.memory-label {
    margin: 0 0 12px;

    color: #a59687;

    font-size: 11px;

    letter-spacing: 1.5px;
}


.memory-heading h1 {
    margin: 0;

    color: #403831;

    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.08;

    font-weight: 400;
}


.memory-date {
    margin-top: 18px;

    color: #a08f7e;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================
   FOTO
========================================= */

.memory-image {
    width: 100%;

    margin: 35px auto 0;

    overflow: hidden;

    background: #eee7de;

    position: relative;

    z-index: 1;
}


.memory-image {
    width: fit-content;
    max-width: 90%;
    margin: 35px auto 0;
    overflow: hidden;
    background: #eee7de;
    position: relative;
    z-index: 1;
}

.memory-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* =========================================
   CAPTION
========================================= */

.image-caption {
    margin: 10px 0 0;

    text-align: center;

    color: #a29485;

    font-size: 11px;

    font-style: italic;

    position: relative;

    z-index: 1;
}


/* =========================================
   CERITA
========================================= */

.memory-story {
    max-width: 600px;

    margin: 42px auto 0;

    position: relative;

    z-index: 1;
}


.memory-story p {
    margin: 0 0 20px;

    color: #51483f;

    font-size: 15px;

    line-height: 1.9;

    text-align: left;
}


/* =========================================
   CATATAN
========================================= */

.memory-note {
    max-width: 500px;

    margin: 35px auto;

    padding: 20px 24px;

    box-sizing: border-box;

    text-align: center;

    background: #f8f1e8;

    border-left: 2px solid #c8b5a1;

    position: relative;

    z-index: 1;
}


.note-heart {
    display: block;

    margin-bottom: 7px;

    color: #a9917b;

    font-size: 20px;
}


.memory-note p {
    margin: 0;

    color: #76685b;

    font-size: 13px;

    line-height: 1.7;

    font-style: italic;
}


/* =========================================
   VIDEO
========================================= */

.memory-video {
    margin-top: 40px;

    position: relative;

    z-index: 1;
}


.video-label {
    margin: 0 0 12px;

    text-align: center;

    color: #8e7d6d;

    font-size: 12px;

    letter-spacing: 1px;
}


.memory-video video {
    display: block;

    width: 100%;

    max-width: 600px;

    height: auto;

    margin: 0 auto;

    background: #181512;

    border-radius: 3px;
}


/* =========================================
   NAVIGASI
========================================= */

.memory-navigation {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 45px;

    padding-top: 20px;

    border-top: 1px solid rgba(100, 80, 60, 0.15);

    position: relative;

    z-index: 1;
}


.memory-navigation button {
    border: none;

    background: transparent;

    color: #796b5d;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    padding: 7px;

    transition: 0.2s ease;
}


.memory-navigation button:hover {
    color: #403831;

    transform: translateY(-1px);
}


.memory-navigation span {
    color: #aa9b8b;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================
   MOBILE / HP
========================================= */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }


    .lock-page {
        min-height: 100vh;

        height: auto;

        padding: 15px;
    }


    .paper {
        width: 100%;

        height: auto;

        min-height: calc(100vh - 30px);

        padding: 40px 25px;
    }


    .paper::before {
        left: 18px;
    }


    h1 {
        font-size: 62px;
    }


    .heart {
        font-size: 34px;
    }


    .question {
        font-size: 22px;
    }


    .question-small {
        font-size: 18px;

        margin-bottom: 20px;
    }


    h2 {
        font-size: 30px;
    }


    .hint {
        font-size: 18px;
    }


    /* STORY */

    .story-page {
        padding: 15px;

        min-height: 100vh;

        height: auto;
    }


    .story-paper {
        width: 100%;

        height: auto;

        min-height: calc(100vh - 30px);

        padding: 35px 25px;
    }


    .story-paper h1 {
        font-size: 68px;
    }


    .story-intro {
        font-size: 20px;
    }


    /* KEGIATAN */

    .memory-page {
        padding: 15px 10px;
    }


    .memory-card {
        width: 100%;

        padding: 28px 20px;

        height: auto;
    }


    .memory-card::before {
        top: 9px;

        left: 9px;

        right: 9px;

        bottom: 9px;
    }


    .memory-top {
        font-size: 8px;

        letter-spacing: 1px;
    }


    .memory-heading {
        margin-top: 35px;
    }


    .memory-label {
        font-size: 9px;

        letter-spacing: 1px;
    }


    .memory-heading h1 {
        font-size: clamp(28px, 9vw, 38px);
    }


    .memory-date {
        margin-top: 14px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }


    .memory-image {
        margin-top: 28px;
    }


    .memory-image img {
        width: 100%;

        max-height: 350px;

        object-fit: contain;
    }


    .image-caption {
        font-size: 10px;
    }


    .memory-story {
        margin-top: 32px;
    }


    .memory-story p {
        font-size: 14px;

        line-height: 1.8;
    }


    .memory-note {
        margin: 28px auto;

        padding: 18px;
    }


    .memory-note p {
        font-size: 12px;
    }


    .memory-video {
        margin-top: 32px;
    }


    .video-label {
        font-size: 11px;
    }


    .memory-video video {
        width: 100%;

        max-width: 100%;
    }


    .memory-navigation {
        margin-top: 35px;

        padding-top: 16px;
    }


    .memory-navigation button {
        font-size: 11px;
    }

}
/* =========================================
   WARNA PINK HALAMAN KEGIATAN
========================================= */

.memory-body {
    color: #765761;
}

/* Header */
.memory-top {
    color: #bd8798;
}

/* Tulisan kecil di atas judul */
.memory-label {
    color: #c08395;
}

/* Judul utama */
.memory-heading h1 {
    color: #b96882;
}

/* Tanggal */
.memory-date {
    color: #c18b9a;
}

/* Caption foto */
.image-caption {
    color: #c18b9a;
}

/* Cerita */
.memory-story p {
    color: #765761;
}

/* Kotak catatan */
.memory-note {
    background: #fff1f5;
    border-left-color: #d79aaa;
}

.note-heart {
    color: #d27f96;
}

.memory-note p {
    color: #9b6877;
}

/* Judul video */
.video-label {
    color: #b97889;
}

/* Navigasi */
.memory-navigation {
    border-top-color: rgba(190, 110, 135, 0.18);
}

.memory-navigation button {
    color: #b87388;
}

.memory-navigation button:hover {
    color: #a85f75;
}

.memory-navigation span {
    color: #c18b9a;
}
@media (max-width: 600px) {
    .memory-image img {
        width: 90%;
        max-height: 300px;
    }
}
@media (max-width: 600px) {
    .memory-image {
        max-width: 95%;
    }

    .memory-image img {
        max-width: 100%;
        max-height: 320px;
    }
}