
/* =================================
   1. GENERAL SETTINGS
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #e9efe5, #f5eee5);
    color: #34483b;
    font-family: Georgia, serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =================================
   2. FLOATING DECORATIONS
================================= */

.floating-flower {
    position: fixed;
    color: #a2b59d;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: float 5s ease-in-out infinite;
}

.flower-one {
    top: 10%;
    left: 7%;
    font-size: 35px;
}

.flower-two {
    bottom: 12%;
    right: 8%;
    font-size: 45px;
    animation-delay: 1s;
}

.flower-three {
    top: 20%;
    right: 12%;
    font-size: 25px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* =================================
   3. PAGE SETTINGS
================================= */

.page {
    display: none;
    min-height: 90vh;
    justify-content: center;
    align-items: center;
    padding: 45px 18px;
    position: relative;
    z-index: 1;
}

.page.active {
    display: flex;
    animation: appear 0.7s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================
   4. MAIN CONTENT CARD
================================= */

.main-card {
    background: #fbf8ef;
    border: 1px solid #dce4d7;
    border-radius: 25px;

    padding: 45px 35px;

    width: 100%;
    max-width: 620px;

    text-align: center;

    box-shadow: 0 15px 45px #34483b15;
}


/* =================================
   5. TEXT DESIGN
================================= */

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #81977d;
    margin-bottom: 25px;
}

h1 {
    font-size: clamp(43px, 8vw, 65px);
    font-weight: normal;
    margin: 15px 0;
    line-height: 1.1;
}

h1 span {
    color: #718a70;
    font-style: italic;
}

h2 {
    font-size: 29px;
    font-weight: normal;
    line-height: 1.3;
}

.description {
    color: #68796b;
    font-size: 16px;
    line-height: 1.9;
}

.flower-decoration {
    color: #8ca386;
    font-size: 30px;
    margin: 20px 0;
}

.tiny-text {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #929d8e;
    margin-top: 25px;
}


/* =================================
   6. BUTTON DESIGN
================================= */

button {
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-3px);
}

button:focus-visible {
    outline: 3px solid #829a7d;
    outline-offset: 4px;
}

.primary-button {
    background: #526d55;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 28px;
    font-size: 14px;
    margin-top: 20px;
}

.primary-button:hover {
    background: #405a44;
}

.secondary-button {
    background: transparent;
    color: #526d55;
    border: 1px solid #a9bca4;
    border-radius: 30px;
    padding: 13px 23px;
    font-size: 13px;
    margin-top: 30px;
}

.secondary-button:hover {
    background: #edf2e9;
}


/* =================================
   7. LETTER SECTION
================================= */

.envelope-area {
    margin: 30px 0;
}

.envelope {
    background: #e8d9c8;
    border: 1px solid #d6c3ae;
    border-radius: 15px;
    width: 145px;
    height: 110px;
    color: #65775e;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.envelope span {
    font-size: 38px;
}

.envelope small {
    font-size: 11px;
    margin-top: 5px;
}

.letter-content {
    display: none;
    text-align: left;
    background: #f4f0e6;
    border: 1px solid #e4ddce;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    animation: appear 0.6s ease;
}

.letter-content.open {
    display: block;
}

.letter-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #58685a;
}

.signature {
    font-style: italic;
    color: #718a70 !important;
}


/* =================================
   8. OPEN WHEN SECTION
================================= */

.message-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 30px;
}

.message-card {
    background: #f2f3eb;
    border: 1px solid #dce4d7;
    border-radius: 17px;
    padding: 20px 10px;
    color: #526d55;
}

.message-card:hover {
    background: #e6eddf;
}

.card-icon {
    display: block;
    font-size: 27px;
    margin-bottom: 12px;
}

.message-card strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
}

.message-card small {
    font-size: 11px;
    color: #849184;
}

.note-display {
    display: none;
    background: #f4eee4;
    border-left: 3px solid #91a58b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 22px;
    animation: appear 0.4s ease;
}

.note-display.show {
    display: block;
}

.note-display p {
    font-size: 15px;
    line-height: 1.8;
    color: #536555;
}


/* =================================
   9. EXAMINATION SECTION
================================= */

.exam-quote {
    font-size: 24px;
    line-height: 1.6;
    font-style: italic;
    color: #526d55;
    margin: 30px 0;
}

.divider {
    width: 55px;
    height: 1px;
    background: #a6b99f;
    margin: 30px auto;
}

.highlight {
    background: #edf2e9;
    padding: 20px;
    border-radius: 15px;
    color: #526d55;
    line-height: 1.8;
    font-size: 15px;
}


/* =================================
   10. FINAL SECTION
================================= */

.future-rnd {
    color: #718a70;
    font-style: italic;
    margin-top: 30px;
}

.final-card {
    border: 1px solid #cbd9c5;
}


/* =================================
   11. FOOTER
================================= */

footer {
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #819080;
    position: relative;
    z-index: 1;
}


/* =================================
   12. MOBILE RESPONSIVENESS
================================= */

@media (max-width: 500px) {

    .main-card {
        padding: 35px 22px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 25px;
    }

    .description {
        font-size: 15px;
    }

    .message-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .message-card {
        padding: 16px 7px;
    }

    .message-card strong {
        font-size: 12px;
    }

    .letter-content {
        padding: 18px;
    }

    .exam-quote {
        font-size: 21px;
    }

}


/* PET LETTERS SECTION */

.pet-letters-container {
    width: 90%;
    max-width: 650px;
    margin: auto;
    padding: 45px 0;
    text-align: center;
}

.pet-intro {
    color: #777c70;
    line-height: 1.8;
    margin: 20px auto 40px;
    max-width: 480px;
}

.pet-letter {
    background: #f7f5ed;
    padding: 25px;
    border-radius: 18px;
    margin: 35px 0;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.pet-letter > img {
    width: 75%;
    max-width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 13px;
    margin: 0 auto 22px;
    display: block;
}

.pet-label,
.simon-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: #98a48c;
    margin-bottom: 10px;
}

.pet-letter h2,
.simon-letter h2 {
    color: #687b61;
    font-size: 25px;
    margin-bottom: 20px;
}

.pet-message {
    color: #656b60;
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
    text-align: center;
}

.pet-signature {
    color: #84947b;
    font-style: italic;
    margin-top: 25px;
}

.pet-double-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.pet-double-photo img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
}


/* SIMON'S SPECIAL LETTER */

.simon-letter {
    background: #eeeee7;
    padding: 30px 25px;
    border-radius: 20px;
    margin-top: 55px;
    border: 1px solid #d9dcd1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.simon-letter > img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 14px;
    margin: 15px 0 25px;
}

.simon-letter h2 {
    font-size: 29px;
}

.simon-signature {
    color: #71836a;
    font-style: italic;
    line-height: 1.8;
    margin-top: 28px;
}

.simon-ending {
    color: #92998a;
    font-size: 13px;
    font-style: italic;
    line-height: 1.8;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #d7dacf;
}


/* FINAL MESSAGE */

.final-note {
    padding: 45px 15px 20px;
    color: #819078;
    font-style: italic;
    line-height: 1.8;
    font-size: 16px;
}

@media (max-width: 480px) {
    .pet-letter,
    .simon-letter {
        padding: 20px 16px;
    }

    .pet-double-photo img {
        height: 170px;
    }

    .pet-message {
        font-size: 14px;
    }
}



