
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #e8ddc9;
    font-family: Georgia, serif;
}

.diary-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 30px;
    overflow: hidden;
}

.book {
    position: relative;
    width: min(350px, 70vw);
    height: 440px;
    perspective: 1500px;
    transition: transform 1.5s ease;
}

/* Move the book right to make room for
   the cover when it opens to the left. */
.book.open {
    transform: translateX(35%);
}

.diary-page,
.diary-cover {
    position: absolute;
    inset: 0;
    border-radius: 5px 12px 12px 5px;
}

.diary-page {
    background: #fff9ed;
    padding: 45px 25px;
    border: 1px solid #cbbba3;
    box-shadow: 6px 10px 25px #6b503544;
    color: #58402d;
}

.diary-page h2 {
    font-weight: normal;
    font-style: italic;
    margin-bottom: 35px;
}

.diary-page p {
    line-height: 1.8;
}

.diary-cover {
    background: linear-gradient(
        100deg,
        #624530,
        #876448 15%,
        #76553c 85%
    );

    border: 3px solid #b89972;
    color: #f7efdf;

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

    padding: 25px;
    text-align: center;

    transform-origin: left center;
    transition: transform 1.5s ease;

    backface-visibility: hidden;
    box-shadow: 6px 10px 25px #6b503566;
    z-index: 2;
}

.book.open .diary-cover {
    transform: rotateY(-160deg);
}

.cover-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: #e4c99c;
}

h1 {
    font-size: 32px;
    font-weight: normal;
    line-height: 1.3;
}

.subtitle {
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    color: #e4c99c;
}

button {
    padding: 14px 28px;
    background: #76583e;
    color: white;
    border: none;
    border-radius: 6px;
    font: 16px Georgia, serif;
    cursor: pointer;
}

button:hover {
    background: #58402d;
}

@media (max-width: 600px) {
    .book {
        width: min(280px, 55vw);
        height: 350px;
    }

    .book.open {
        transform: translateX(42%);
    }

    h1 {
        font-size: 24px;
    }

    .diary-page {
        padding: 25px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .book,
    .diary-cover {
        transition: none;
    }
}


/* Milestone 3: Diary writing page */

.diary-page {
    overflow-y: auto;
    padding: 25px 22px;
}

#diaryForm {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.page-label {
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    color: #997d62;
    margin: 0 0 10px;
}

#diaryForm label {
    color: #76583e;
    font-size: 13px;
}

#entryDate,
#entryTitle {
    width: 100%;
    padding: 9px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cbbba3;
    color: #58402d;
    font-family: Georgia, serif;
    font-size: 14px;
}

#entryText {
    width: 100%;
    min-height: 160px;
    resize: vertical;

    border: none;
    outline: none;
    padding: 5px 8px;

    color: #58402d;
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 30px;

    background-color: transparent;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 29px,
        #d8d5c9 29px,
        #d8d5c9 30px
    );
}

#entryDate:focus,
#entryTitle:focus {
    outline: 2px solid #b89972;
    outline-offset: 2px;
}

.save-button {
    margin-top: 10px;
    padding: 11px;
    font-size: 13px;
}

#saveMessage {
    text-align: center;
    font-size: 12px;
    color: #55734c;
    margin: 0;
}


/* Milestone 4: Memory collection */

.memory-button {
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    background: #a08466;
}

#memoryCollection {
    margin-top: 20px;
    border-top: 1px solid #cbbba3;
    padding-top: 15px;
}

#memoryCollection h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.memory-item {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #58402d;
    border: none;
    border-bottom: 1px solid #d8d5c9;
    border-radius: 0;
    padding: 12px 4px;
    margin: 0;
    cursor: pointer;
}

.memory-item:hover {
    background: #eee4d2;
}

.memory-item .memory-date {
    display: block;
    font-size: 11px;
    color: #96785b;
    margin-bottom: 5px;
}

#memoryDetails {
    margin-top: 18px;
    padding: 12px;
    background: #f3ead9;
    border-radius: 5px;
}

#memoryText {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

/* Keep the HTML hidden attribute effective */
[hidden] {
    display: none !important;
}


/* Milestone 5: Diary page navigation */

.diary-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #cbbba3;
    padding-bottom: 10px;
}

.nav-tab {
    flex: 1;
    margin: 0;
    padding: 9px 5px;
    background: transparent;
    color: #876a4e;
    border-radius: 4px;
    font-size: 12px;
}

.nav-tab:hover {
    background: #eee4d2;
}

.nav-tab.active {
    background: #76583e;
    color: #fff9ed;
}

#memoryCollection {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}


/* Milestone 6.1: Memory dissolve */

#writeView,
#memoryCollection {
    opacity: 1;
    transition: opacity 350ms ease-in-out;
}

#writeView.fading-out,
#memoryCollection.fading-out {
    opacity: 0;
}

#writeView.fading-in,
#memoryCollection.fading-in {
    animation: memoryAppear 450ms ease-out both;
}

@keyframes memoryAppear {
    from {
        opacity: 0;
        filter: blur(3px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #writeView,
    #memoryCollection {
        transition: none;
        animation: none;
    }
}


/* Milestone 7: Photographs and keepsakes */

#entryPhoto {
    width: 100%;
    font-size: 12px;
    color: #76583e;
}

#photoPreview,
#memoryPhoto {
    background: #ffffff;
    padding: 9px 9px 18px;
    margin: 14px auto;
    max-width: 240px;
    width: 100%;
    box-shadow: 2px 5px 14px rgba(75, 52, 30, 0.18);
    transform: rotate(-2deg);
    text-align: center;
}

#previewImage,
#savedMemoryImage {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

#photoPreview p,
#memoryPhoto p {
    margin: 12px 0 0;
    color: #876a4e;
    font-size: 12px;
    font-style: italic;
}

[hidden] {
    display: none !important;
}


/* Milestone 9: Editing and deleting memories */

.memory-actions {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.memory-actions button {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
}

#editMemory {
    background: #96785b;
}

#deleteMemory {
    background: #a36b62;
}

#cancelEdit {
    background: transparent;
    border: 1px solid #b89972;
    color: #76583e;
    padding: 10px;
    font-size: 12px;
}

#cancelEdit:hover {
    background: #eee4d2;
}


/* Milestone 9.1: Memory Reading Mode */

#memoryDetails {
    margin-top: 0;
}

.reading-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

#backToMemories {
    background: transparent;
    color: #76583e;
    padding: 6px 0;
    font-size: 12px;
    text-align: left;
}

#backToMemories:hover {
    background: transparent;
    text-decoration: underline;
}

#memoryPosition {
    color: #96785b;
    font-size: 11px;
    white-space: nowrap;
}

.memory-pagination {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #d8d5c9;
}

.memory-pagination button {
    padding: 9px 12px;
    font-size: 12px;
    background: #96785b;
}

.memory-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#memoryListView,
#memoryDetails {
    animation: readingAppear 350ms ease-out;
}

@keyframes readingAppear {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #memoryListView,
    #memoryDetails {
        animation: none;
    }
}


/* Milestone 9.2: Overlapping memory pages */

#memoryDetails {
    position: relative;
    isolation: isolate;
}

#memoryDetails.page-entering-next {
    animation: pageSlideNext 480ms cubic-bezier(.22, 1, .36, 1);
}

#memoryDetails.page-entering-previous {
    animation: pageSlidePrevious 480ms cubic-bezier(.22, 1, .36, 1);
}

.memory-page-ghost {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;

    background: #f3ead9;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(75, 52, 30, 0.18);

    animation: pageRecede 480ms ease both;
}

@keyframes pageSlideNext {
    from {
        transform: translateX(85%) rotate(3deg);
        opacity: .8;
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

@keyframes pageSlidePrevious {
    from {
        transform: translateX(-85%) rotate(-3deg);
        opacity: .8;
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

@keyframes pageRecede {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(.965);
        opacity: .5;
    }
}

@media (prefers-reduced-motion: reduce) {
    #memoryDetails.page-entering-next,
    #memoryDetails.page-entering-previous,
    .memory-page-ghost {
        animation: none;
    }
}


/* Milestone 9.2: Smooth overlapping pages */

#memoryStage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 5px;
    background: #f3ead9;
}

#memoryPaper {
    position: relative;
    z-index: 1;
    padding: 18px 14px;
    background: #f3ead9;
    transform-origin: center center;
}

.memory-paper-ghost {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
    background: #f3ead9;
}

#memoryPaper.paper-incoming {
    z-index: 2;
}

#memoryPaper.paper-incoming-next {
    animation: paperEnterNext 520ms
        cubic-bezier(.22, 1, .36, 1) both;
}

#memoryPaper.paper-incoming-previous {
    animation: paperEnterPrevious 520ms
        cubic-bezier(.22, 1, .36, 1) both;
}

.memory-paper-ghost.paper-outgoing {
    animation: paperMoveBack 520ms ease both;
}

@keyframes paperEnterNext {
    from {
        transform: translateX(85%) rotate(2deg);
        opacity: .85;
        box-shadow: -12px 8px 24px rgba(75, 52, 30, .2);
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
        box-shadow: none;
    }
}

@keyframes paperEnterPrevious {
    from {
        transform: translateX(-85%) rotate(-2deg);
        opacity: .85;
        box-shadow: 12px 8px 24px rgba(75, 52, 30, .2);
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
        box-shadow: none;
    }
}

@keyframes paperMoveBack {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(.965);
        opacity: .45;
    }
}

@media (prefers-reduced-motion: reduce) {
    #memoryPaper.paper-incoming-next,
    #memoryPaper.paper-incoming-previous,
    .memory-paper-ghost.paper-outgoing {
        animation: none;
    }
}


/* Milestone 9.3: Beautiful Memory Headings */

.memory-heading {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2d4be;
}

.memory-chapter {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a18a70;
    margin-bottom: 14px;
}

.memory-heading #memoryTitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 4vw, 30px);
    font-style: italic;
    font-weight: normal;
    line-height: 1.3;
    color: #63462f;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}

.memory-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 230px;
    margin: 0 auto 14px;
}

.ornament-line {
    height: 1px;
    flex: 1;
    background: #d8c4a6;
}

.ornament-heart {
    font-size: 23px;
    line-height: 1;
    color: #ad806a;
}

.memory-heading #memoryDate {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    color: #9b8064;
    margin: 0;
}


/* Milestone 9.4: Scrapbook-style photographs */

#memoryPhoto {
    position: relative;
    width: fit-content;
    max-width: 90%;
    margin: 32px auto 25px;
    padding: 12px 12px 20px;
    background: #fffdf8;
    border: 1px solid #e4d9c8;
    border-radius: 2px;

    transform: rotate(-2deg);
    transform-origin: center center;

    box-shadow:
        0 5px 10px rgba(74, 50, 29, 0.12),
        0 12px 24px rgba(74, 50, 29, 0.08);

    transition:
        transform 300ms ease,
        box-shadow 300ms ease;
}

#memoryPhoto:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow:
        0 8px 16px rgba(74, 50, 29, 0.15),
        0 16px 28px rgba(74, 50, 29, 0.1);
}

#savedMemoryImage {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#memoryPhoto p {
    margin: 15px 0 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 12px;
    color: #8d7866;
}

/* Decorative tape across the top */

#memoryPhoto::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 85px;
    height: 26px;

    transform: translateX(-50%) rotate(3deg);

    background: rgba(199, 174, 134, 0.55);
    border-left: 1px dashed rgba(130, 105, 73, 0.25);
    border-right: 1px dashed rgba(130, 105, 73, 0.25);

    box-shadow: 0 2px 4px rgba(70, 45, 25, 0.08);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #memoryPhoto {
        transition: none;
    }

    #memoryPhoto:hover {
        transform: rotate(-2deg);
    }
}


/* Milestone 9.5: Floating save heart */

.save-button {
    position: relative;
}

.save-heart {
    position: absolute;
    left: 50%;
    top: -10px;
    z-index: 5;

    color: #ad6e70;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1;

    pointer-events: none;

    animation: floatSaveHeart 1.3s ease-out forwards;
}

@keyframes floatSaveHeart {
    0% {
        opacity: 0;
        transform: translate(-50%, 15px) scale(.5);
    }

    25% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(1.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .save-heart {
        animation: none;
        display: none;
    }
}


/* Milestone 9.5: Gentle button interactions */

#memoryCollection button,
#writeView button {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

@media (hover: hover) {
    #memoryCollection button:not(:disabled):hover,
    #writeView button:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(75, 52, 30, 0.12);
    }
}

#memoryCollection button:not(:disabled):active,
#writeView button:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(75, 52, 30, 0.1);
}

#memoryCollection button:focus-visible,
#writeView button:focus-visible {
    outline: 2px solid #ad806a;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    #memoryCollection button,
    #writeView button {
        transition: none;
    }
}


/* Milestone 9.5: Gentle memory collection reveal */

#memoryList .memory-item {
    animation: memoryListReveal 420ms ease-out both;
    animation-delay: calc(var(--memory-index, 0) * 55ms);
}

@keyframes memoryListReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #memoryList .memory-item {
        animation: none;
    }
}


/* =====================================
   MILESTONE 10.9.5 — LOGIN SCREEN
===================================== */

/* Keep hidden screens completely invisible */
[hidden] {
    display: none !important;
}

.login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 245, 220, 0.6),
            transparent 65%
        ),
        #e9dfcd;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 42px 36px;
    box-sizing: border-box;
    background: #faf3e6;
    border: 1px solid #d6c3a8;
    border-radius: 8px;
    box-shadow:
        0 18px 45px rgba(75, 52, 35, 0.15),
        inset 0 0 30px rgba(180, 145, 100, 0.06);
    text-align: center;
}

.login-card h1 {
    margin: 18px 0 12px;
    color: #654936;
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    line-height: 1.25;
}

.login-subtitle {
    margin-bottom: 30px;
    color: #92765e;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.6;
}

#loginForm {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

#loginForm label {
    margin-top: 8px;
    color: #6e513c;
    font-size: 0.9rem;
    font-weight: 600;
}

#loginForm input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #cbb79d;
    border-radius: 5px;
    background: #fffaf1;
    color: #4f3a2d;
    font: inherit;
}

#loginForm input:focus {
    outline: 2px solid #a78666;
    outline-offset: 2px;
}

#loginButton {
    margin-top: 20px;
    padding: 14px 18px;
    border: none;
    border-radius: 5px;
    background: #795b45;
    color: #fff9ef;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#loginButton:hover {
    background: #624633;
    transform: translateY(-2px);
}

#loginButton:disabled {
    opacity: 0.65;
    cursor: wait;
}

#loginMessage {
    min-height: 1.2em;
    margin: 10px 0 0;
    color: #8b493e;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}


/* =====================================
   MILESTONE 10.9.8 — LOGOUT BUTTON
===================================== */

.diary-session {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

#logoutButton {
    padding: 7px 12px;
    border: 1px solid #cbb79d;
    border-radius: 5px;
    background: #f6ead8;
    color: #795b45;
    font-family: Georgia, serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#logoutButton:hover {
    background: #ead8bd;
}

#logoutButton:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* =====================================
   MILESTONE 11.9 — SAVE DESTINATION
===================================== */

.save-destination {
    margin: 20px 0 16px;
}

.save-destination label {
    display: block;
    margin-bottom: 8px;
    color: #795b45;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}

#saveDestination {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbb79d;
    border-radius: 5px;
    background: #fffaf1;
    color: #654936;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    cursor: pointer;
}

#saveDestination:focus {
    outline: 2px solid #a78666;
    outline-offset: 2px;
}


/* =====================================
   MILESTONE 14.15 — COMFORTABLE WRITING
===================================== */

#entryText {
    display: block;
    width: 100%;
    box-sizing: border-box;

    min-height: 260px;
    max-height: 60vh;

    padding: 0 9px;
    margin-top: 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 32px;

    color: #614c3b;

    background-color: transparent;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 31px,
        #dac8ae 31px,
        #dac8ae 32px
    );
    background-position: 0 0;

    border: none;
    border-radius: 0;
    outline: none;

    resize: vertical;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#entryText:focus {
    outline: none;
}

#entryText::placeholder {
    color: #a28b75;
    opacity: 1;
}

#entryText {
    min-height: 260px;
    line-height: 32px;
}


/* Pre-deployment mobile adjustments */
@media (max-width: 600px) {
    .diary-container {
        padding: 18px 12px;
        gap: 24px;
    }

    .book {
        width: min(350px, 76vw);
        height: min(520px, 72dvh);
    }

    .book.open {
        transform: translateX(12%);
    }

    .diary-page {
        padding: 20px 14px;
    }

    #entryText {
        min-height: 260px;
        max-height: 45dvh;
    }

    .memory-actions,
    .memory-pagination {
        flex-wrap: wrap;
    }

    .memory-actions button,
    .memory-pagination button {
        min-width: 0;
    }
}


/* Version 1.1 — Responsive diary layout */

@media (max-width: 600px) {
    .diary-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 16px 12px;
        gap: 16px;
        justify-content: center;
        overflow-x: clip;
    }

    .book {
        width: min(100%, 440px);
        height: clamp(480px, 78dvh, 850px);
        max-height: calc(100dvh - 100px);
        transition: transform 1.5s ease;
    }

    /* Keep the diary centered when opened */
    .book.open {
        transform: none;
    }

    .diary-page {
        padding: 18px 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .diary-cover {
        padding: 18px;
    }

    .cover-content h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        overflow-wrap: break-word;
    }

    .diary-navigation {
        gap: 8px;
    }

    #memoryDetails {
        padding: 10px;
    }

    #memoryPaper {
        padding: 16px 10px;
    }

    #memoryText {
        overflow-wrap: anywhere;
    }

    #entryText {
        min-height: 220px;
        max-height: none;
        font-size: 16px;
    }

    #openDiary {
        max-width: 100%;
    }
}

@media (max-width: 600px) and (max-height: 650px) {
    .diary-container {
        justify-content: flex-start;
    }

    .book {
        height: 480px;
        max-height: none;
    }
}
