/* Molly Maybe main stylesheet */

/* ========================================
           CUSTOM CURSORS
           Keep the cursors folder beside this HTML.
        ======================================== */

        html,
        body {
            cursor: url("cursors/Normal.cur"), auto;
        }

        body * {
            cursor: inherit;
        }

        a,
        button,
        [role="button"],
        .sidebar-link,
        .calendar-nav,
        .stamp-dot,
        .stamp-flower,
        .button-image {
            cursor: url("cursors/Link.cur"), pointer;
        }

        input,
        textarea,
        [contenteditable="true"] {
            cursor: url("cursors/Text.cur"), text;
        }

        [draggable="true"],
        .move-cursor {
            cursor: url("cursors/Move.cur"), move;
        }

        button:disabled,
        input:disabled,
        textarea:disabled,
        .unavailable-cursor {
            cursor: url("cursors/Unavailable.cur"), not-allowed;
        }

        .help-cursor {
            cursor: url("cursors/Help.cur"), help;
        }

        .working-cursor {
            cursor: url("cursors/Working.cur"), progress;
        }

        .busy-cursor {
            cursor: url("cursors/Busy.cur"), wait;
        }

        .precision-cursor {
            cursor: url("cursors/Precision.cur"), crosshair;
        }

        .resize-horizontal {
            cursor: url("cursors/Horizontal.cur"), ew-resize;
        }

        .resize-vertical {
            cursor: url("cursors/Vertical.cur"), ns-resize;
        }

        .resize-diagonal-one {
            cursor: url("cursors/Diagonal1.cur"), nwse-resize;
        }

        .resize-diagonal-two {
            cursor: url("cursors/Diagonal2.cur"), nesw-resize;
        }

        .handwriting-cursor {
            cursor: url("cursors/Handwriting.cur"), auto;
        }

        .alternate-cursor {
            cursor: url("cursors/Alternate.cur"), default;
        }

        .person-cursor {
            cursor: url("cursors/Person.cur"), pointer;
        }

        .pin-cursor {
            cursor: url("cursors/Pin.cur"), pointer;
        }

        /* ========================================
           GENERAL
        ======================================== */

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

        body {
            font-family: "MS PGothic", "MS Gothic", sans-serif;

            background:
                url("https://mollymaybe.neocities.org/General%20Site%20Stuff/Tiled%20BGs/tumblr_fdd6bbb7aa8365aaf8d05bc0129b39d6_95a5c9b7_100.webp")
                repeat top left;

            background-attachment: fixed;

            padding: 20px;

            color: #8b4049;
        }

        a {
            color: #2e9c16;
            text-decoration: none;

            transition:
                color 0.3s ease,
                text-shadow 0.3s ease;
        }

        a:hover {
            color: #1f6b0f;

            text-decoration-line: underline;
            text-decoration-style: wavy;

            text-shadow: 0 0 8px rgba(46, 156, 22, 0.3);
        }


        /* ========================================
           SCROLLBAR
        ======================================== */

        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: #ffe8ed;

            border: 1px solid #e8b4b8;
            border-radius: 6px;
        }

        ::-webkit-scrollbar-thumb {
            background: #d91e4a;

            border: 2px solid #fce8e8;
            border-radius: 6px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #ff8f9a;
        }


        /* ========================================
           WHOLE SITE
        ======================================== */

        .main-container {
            width: 100%;
            max-width: 900px;

            height: 85vh;
            min-height: 500px;

            margin: 0 auto;

            display: flex;
            flex-direction: column;

            position: relative;
            isolation: isolate;

            overflow: visible;

            background: #fff;

            border: 3px outset #cf8894;
        }


        /* ========================================
           DECORATIONS
        ======================================== */

        .container-decoration {
            position: absolute;

            pointer-events: none;

            z-index: 1000;
        }

        .container-decoration.top-left {
            top: -65px;
            left: -55px;

            width: 180px;
            height: 180px;
        }

        .container-decoration.middle-right {
            top: 20%;
            right: -30px;

            width: 90px;
            height: 90px;

            transform: translateY(-50%);
        }

        .container-decoration.bottom-right {
            bottom: -60px;
            right: -60px;

            width: 200px;
            height: 200px;
        }


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

        .header {
            flex-shrink: 0;

            padding: 15px;

            position: relative;
            z-index: 1;

            background:
                linear-gradient(
                    to bottom,
                    #ecf4e8 0%,
                    #d4e8d4 100%
                );

            border-bottom: 2px solid #c9e2c9;
        }

        .header-image {
            width: 100%;
            height: 120px;

            background:
                url("https://file.garden/Z3nf4eZzZUtRPfhK/free%20layout%20assets/picnic/banner.jpg")
                center / cover;

            border: 2px solid #c9e2c9;
        }

        .site-title {
            position: absolute;

            top: 35px;
            left: 30px;

            padding: 8px 15px;

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

            border: 2px dashed #b8d4b8;

            color: #64a302;

            font-size: 18px;
            font-weight: bold;
        }

        .site-subtitle {
            margin-top: 8px;

            color: #64a302;

            font-size: 11px;
            font-weight: normal;
        }


        /* ========================================
           THREE-COLUMN AREA
        ======================================== */

        .content-wrapper {
            flex: 1;

            min-height: 0;

            display: flex;

            position: relative;
            z-index: 1;

            overflow: hidden;
        }


        /* ========================================
           LEFT SIDEBAR
        ======================================== */

        .sidebar-left {
            width: 180px;
            flex: 0 0 180px;

            padding: 15px;

            background: #fef8f5;

            border-right: 2px solid #e8b4b8;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;

        }


        /* ========================================
           RIGHT SIDEBAR
        ======================================== */

        .sidebar-right {
            width: 180px;
            flex: 0 0 180px;

            padding: 15px;

            background: #fef8f5;

            border-left: 2px solid #e8b4b8;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;

        }


        /* ========================================
           SIDEBARS
        ======================================== */

        .sidebar-section {
            margin-bottom: 20px;
        }

        .sidebar-title {
            margin-bottom: 8px;
            padding-bottom: 4px;

            border-bottom: 1px solid #e8b4b8;

            color: #c97679;

            font-size: 13px;
            font-weight: bold;
        }

        .sidebar-text {
            color: #8b4049;

            font-size: 12px;
            line-height: 1.6;
        }

        .sidebar-link {
            display: block;

            padding: 3px 0;

            color: #fc5b73;

            font-size: 13px;
        }

        .sidebar-link:hover {
            color: #c41831;
        }


        /* ========================================
           PROFILE
        ======================================== */

        .profile-box {
            padding: 10px;

            background: #fff;

            border: 2px solid #e8b4b8;
        }

        .profile-image {
            width: 100%;
            height: 80px;

            margin-bottom: 8px;

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

            overflow: hidden;

            background:
                linear-gradient(
                    135deg,
                    #ffd6d6 0%,
                    #ffb8b8 100%
                );

            border: 2px solid #e8b4b8;
        }

        .profile-image img {
            width: 100%;
            height: 100%;

            object-fit: cover;
        }

        .profile-text {
            text-align: center;
        }


        /* ========================================
           CENTER CONTENT
        ======================================== */

        .main-content {
            flex: 1;

            min-width: 0;
            min-height: 0;

            padding: 20px;

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

            background:
                url("https://file.garden/Z3nf4eZzZUtRPfhK/free%20layout%20assets/picnic/back2.jpg")
                center / 100% 100%;

            background-attachment: fixed;

            background-color: rgba(122, 144, 255, 0.4);
            background-blend-mode: lighten;
        }


        /* ========================================
           POSTS
        ======================================== */

        .post {
            margin-bottom: 25px;
            padding: 15px;

            position: relative;

            background: #fff;

            border: 2px groove #e68c99;
        }

        .post-decoration {
            position: absolute;

            top: -26px;
            right: -18px;

            width: 70px;
            height: 70px;

            pointer-events: none;
        }

        .post-date {
            margin-bottom: 5px;

            color: #999;

            font-size: 13px;
        }

        .post-title {
            margin-bottom: 10px;
            padding-left: 8px;

            border-left: 4px solid #d98b8e;

            color: #b50d2e;

            font-size: 16px;
            font-weight: bold;
        }

        .post-content {
            color: #a3344a;

            font-size: 0.8em;
            line-height: 1.8;
        }

        .post-image {
            width: 100%;
            max-width: 300px;
            height: 150px;

            margin: 10px 0;

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

            overflow: hidden;

            background:
                linear-gradient(
                    135deg,
                    #ffe8e8 0%,
                    #ffd6d6 100%
                );

            border: 2px inset #ffd4da;
        }

        .post-image img {
            width: 100%;
            height: 100%;

            object-fit: cover;
        }

        .post-footer {
            margin-top: 10px;
            padding-top: 8px;

            border-top: 1px dotted #e8b4b8;

            color: #999;

            font-size: 11px;
        }


        /* ========================================
           CALENDAR
        ======================================== */

        .calendar {
            padding: 10px;

            background: #fff;

            border: 2px dashed #709e28;
        }

        .calendar-header {
            margin-bottom: 8px;

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

            color: #539c10;

            font-size: 12px;
            font-weight: bold;
            text-align: center;
        }

        .calendar-nav {
            color: #83b03e;

            cursor: pointer;
            user-select: none;
        }

        .calendar-nav:hover {
            color: #507d09;
        }

        .calendar-grid {
            display: grid;

            grid-template-columns: repeat(7, 1fr);

            gap: 2px;

            font-size: 10px;
            text-align: center;
        }

        .calendar-day {
            padding: 2px;

            color: #476b0e;
        }

        .calendar-day.header {
            color: #79960f;

            font-weight: bold;
        }

        .calendar-day.today {
            background: #d0eb71;

            border-radius: 3px;
        }

        .calendar-day.other-month {
            color: #c7cfae;
        }


        /* ========================================
           STAMP CAROUSEL
        ======================================== */

        .stamp-box {
            width: 100%;
            max-width: 100%;
            padding: 7px;
            overflow: hidden;
            background: #fff;
            border: 2px solid #e8b4b8;
            text-align: center;
        }

        .stamp-carousel {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .stamp-window {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .stamp-slide {
            display: none;
            width: 100%;
            max-width: 100%;
            height: 68px;
            min-width: 0;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .stamp-slide.active {
            display: flex;
        }

        .stamp-slide img {
            display: block;
            max-width: 100%;
            max-height: 64px;
            width: auto;
            height: auto;
            object-fit: contain;
            image-rendering: auto;
        }

        .stamp-controls {
            width: 100%;
            max-width: 100%;
            margin-top: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            overflow: hidden;
        }

        .stamp-flower {
            flex: 0 0 19px;
            width: 19px;
            height: 19px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #5f9b3a;
            font-family: Georgia, serif;
            font-size: 18px;
            line-height: 19px;
            text-align: center;
            cursor: pointer;
            filter: drop-shadow(0 1px 0 #dceccb);
            transition: transform 0.18s ease, color 0.18s ease, filter 0.18s ease;
        }

        .stamp-flower.previous {
            transform: rotate(-12deg);
        }

        .stamp-flower.next {
            transform: rotate(12deg);
        }

        .stamp-flower:hover,
        .stamp-flower:focus-visible {
            color: #39751f;
            outline: none;
            filter: drop-shadow(0 1px 1px rgba(61, 115, 30, 0.28));
        }

        .stamp-flower.previous:hover,
        .stamp-flower.previous:focus-visible {
            transform: rotate(-20deg) scale(1.12);
        }

        .stamp-flower.next:hover,
        .stamp-flower.next:focus-visible {
            transform: rotate(20deg) scale(1.12);
        }

        .stamp-flower:active {
            transform: scale(0.92);
        }

        .stamp-dots {
            min-width: 0;
            display: flex;
            justify-content: center;
            gap: 4px;
        }

        .stamp-dot {
            flex: 0 0 6px;
            width: 6px;
            height: 6px;
            padding: 0;
            border: 1px solid #83a96a;
            border-radius: 50%;
            background: #e5f0dc;
            cursor: pointer;
        }

        .stamp-dot.active {
            background: #6f9e4f;
        }


        /* ========================================
           LINK BACK
        ======================================== */

        .button-section {
            padding: 15px;

            /* whole box stays white */
            background: #fff;

            border: 2px solid #e8b4b8;

            text-align: center;
        }

        .button-title {
            margin-bottom: 10px;

            color: #c97679;

            font-size: 13px;
            font-weight: bold;
        }

        /* only the area directly around the stamp is blue */
.button-image {
    display: inline-block;
    padding: 4px;

    /* matches the website's existing pink palette */
    background: linear-gradient(
        to bottom,
        #ffe8e8 0%,
        #ffd6d6 55%,
        #e8b4b8 100%
    );

    border: 1px solid #d98b8e;

    transition: transform 0.2s ease;
}

.button-image:hover {
    transform: scale(1.05);
}

.button-image img {
    display: block;
    width: 105px;
    height: 65px;
    border: none;
}


        /* ========================================
           FOOTER
        ======================================== */

        .footer {
            flex-shrink: 0;

            padding: 8px 15px 7px;

            position: relative;
            z-index: 1;

            background:
                linear-gradient(
                    to bottom,
                    #ecf4e8 0%,
                    #d4e8d4 100%
                );

            border-top: 2px solid #c9e2c9;

            color: #3d731e;

            font-size: 13px;
            text-align: center;
        }

        .footer-credit {
            line-height: 1.25;
        }


        /* ========================================
           VISITOR COUNTER
        ======================================== */

        .counter-container {
            height: 18px;

            margin-top: 3px;

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

            overflow: hidden;
        }

        .visitor-counter-frame {
            width: 220px;
            height: 18px;

            display: block;

            border: 0;

            background: transparent;
        }


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

        @media (max-width: 768px) {

            body {
                padding: 5px;
            }

            .main-container {
                height: auto;
                min-height: 100vh;

                border-width: 2px;
            }

            .container-decoration {
                display: none;
            }

            .header {
                padding: 10px;
            }

            .header-image {
                height: 80px;
            }

            .site-title {
                position: static;

                margin-top: 10px;
                padding: 6px 10px;

                font-size: 14px;
            }

            .site-subtitle {
                font-size: 10px;
            }

            .content-wrapper {
                flex-direction: column;

                overflow: visible;
            }

            .sidebar-left,
            .sidebar-right {
                width: 100%;
                flex: none;

                padding: 10px;

                overflow: visible;

                border-left: none;
                border-right: none;
                border-top: 2px solid #e8b4b8;
            }

            .main-content {
                padding: 10px;

                overflow: visible;

                background-attachment: scroll;
            }

            .main-content {
                order: 1;
            }

            .sidebar-left {
                order: 2;
            }

            .sidebar-right {
                order: 3;
            }

            .post {
                padding: 10px;

                margin-bottom: 15px;
            }

            .post-decoration {
                top: -3px;
                right: -3px;

                width: 30px;
                height: 30px;
            }

            .post-image {
                max-width: 100%;
                height: 200px;
            }

            .footer {
                padding: 7px 10px;

                font-size: 11px;
            }
        }


        @media (max-width: 480px) {

            .main-container {
                border-width: 1px;
            }

            .header-image {
                height: 60px;
            }

            .site-title {
                font-size: 12px;
            }

            .post-title {
                font-size: 14px;
            }

            .post-content {
                font-size: 0.75em;
            }
        }

    


/* ========================================
   STANDARD CENTER-PAGE HEADER
   Characters / Workshop / Library / Guestbook
======================================== */

.center-page-header {
    margin-bottom: 18px;
    padding: 18px 22px;

    background:
        linear-gradient(
            to bottom,
            #fffefe 0%,
            #fcf8f9 100%
        );

    border: 2px solid #efb3bb;
    border-radius: 8px;

    box-shadow:
        0 4px 0 #d6e7c7;

    text-align: center;
}

.center-page-header h1 {
    margin: 0 0 9px;

    color: #ad5168;

    font-family:
        "Yomogi",
        cursive;

    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;

    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.65);
}

.center-page-header p {
    max-width: 640px;

    margin: 0 auto;

    color: #8b5d66;

    font-family:
        "M PLUS Rounded 1c",
        "MS PGothic",
        "MS Gothic",
        sans-serif;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
}

@media (max-width: 480px) {
    .center-page-header {
        padding: 15px 13px;
        margin-bottom: 15px;
    }

    .center-page-header h1 {
        margin-bottom: 7px;
        font-size: 22px;
    }

    .center-page-header p {
        font-size: 10px;
        line-height: 1.55;
    }
}

/* ========================================
   PERSISTENT PAGE LOADER
======================================== */
.page-link.active {
    color: #1f6b0f;
    font-weight: bold;
}

.main-content.page-loading {
    opacity: 0.55;
    pointer-events: none;
}

.main-content {
    transition: opacity 0.15s ease;
}

.page-load-error {
    padding: 18px;
    background: #fff;
    border: 2px solid #e8b4b8;
    color: #a85c68;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

        /* Independent sidebar scrolling */
        .sidebar-left,
        .sidebar-right {
            scrollbar-width: thin;
            scrollbar-color: #d7a6ae #fef8f5;
        }

        .sidebar-left::-webkit-scrollbar,
        .sidebar-right::-webkit-scrollbar {
            width: 8px;
        }

        .sidebar-left::-webkit-scrollbar-track,
        .sidebar-right::-webkit-scrollbar-track {
            background: #fef8f5;
        }

        .sidebar-left::-webkit-scrollbar-thumb,
        .sidebar-right::-webkit-scrollbar-thumb {
            background: #d7a6ae;
            border: 2px solid #fef8f5;
        }