
/* =========================================================
   ✦ MOSSYWEB PERSONAL SITE ✦
   COMPACT / WHITE / BLACK / FAIRY WEB
   ========================================================= */


/* =========================================================
   ✦ FONTS
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=VT323&family=Patrick+Hand&display=swap");

@font-face {
    font-family: "rainyhearts";
    src: url("fonts/rainyhearts.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "poti";
    src: url("fonts/poti.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "lovely";
    src: url("fonts/LOVELY.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   ✦ RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-width: 0;
}

body {
    margin: 0;
    padding: 20px 10px;

    background-color: #fff;
    background-image: url("images/PuffyStarYellow.png");
    background-repeat: repeat;
    background-position: top left;
    background-size: 150px 150px;
    background-attachment: fixed;

    color: #000;

    font-family: "IM Fell English", Georgia, serif;
    font-size: 15px;
    line-height: 1.45;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

p {
    margin: 7px 0;
}

strong {
    color: #000;
}

h2 {
    margin: 5px 0 12px;

    color: #9a6166;

    font-family: "lovely", monospace;
    font-size: 30px;
    font-weight: normal;

    text-align: center;
}

h3 {
    margin: 7px 0;

    color: #000;
    font-size: 18px;
}


/* =========================================================
   ✦ MAIN SITE
   ========================================================= */

.site {
    width: min(1050px, 100%);
    margin: 32px auto;

    position: relative;

    background: transparent;
}


/* =========================================================
   ✦ FLOATING DECORATIONS
   ========================================================= */

.sparkles {
    position: fixed;
    top: 3px;
    left: 0;

    width: 100%;

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

    pointer-events: none;

    z-index: 200;
    opacity: 0.7;
}

.sparkles img {
    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: none;
}

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

.header {
    width: 100%;
    min-height: 220px;

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

    padding: 20px 30px;

    background: transparent;

    position: relative;
}


/* =========================================================
   ✦ HEADER IMAGE
   ========================================================= */

.header-image-wrap {
    width: 100%;

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

    background: transparent;
}

.header-image {
    display: block;

    width: 700px;
    max-width: 100%;
    height: auto;

    background: transparent;

    border: none;
    padding: 0;
    margin: 0;

    object-fit: contain;
}

/* =========================================================
   ✦ HEADER TEXT
   ========================================================= */

.header-text {
    flex: 0 1 auto;

    background: transparent;

    text-align: left;
}

.header-text h1 {
    margin: 0 0 8px;

    font-family: "lovely", monospace;
    font-size: 42px;
    font-weight: normal;
}

.header-text p {
    margin: 0;
}
/* =========================================================
   ✦ MUSHROOM NAVIGATION
   ========================================================= */

.navigation {
    position: absolute;

    top: -16px;
    left: 43%;

    transform: translateX(-50%);

    width: 100%;

    display: flex;

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

    gap: 4px;

    margin: 0;
    padding: 0;

    flex-wrap: nowrap;

    z-index: 100;
}

.navigation a {
    display: inline-flex;

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

    padding: 0;
    margin: 0;

    background: transparent;

    border: none;
    border-radius: 0;
    box-shadow: none;

    text-decoration: none;

    line-height: 0;
}

.navigation a img {
    display: block;

    width: 90px;
    max-width: none;
    height: auto;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    box-shadow: none;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* HOVER STILL WORKS */

.navigation a:hover img {


    filter:
        drop-shadow(0 0 5px #8fd8ff)
        drop-shadow(0 0 10px rgba(143, 216, 255, 0.7));
}


/* KEYBOARD ACCESSIBILITY */

.navigation a:focus,
.navigation a:focus-visible {
    outline: 2px dotted #000;
    outline-offset: 4px;
}

.navigation a:active {
    transform: none;
}

 /* =========================================================
   ✦ MAIN LAYOUT
   ========================================================= */

.layout {
    display: grid;

    grid-template-columns:
        165px
        minmax(0, 1fr)
        165px;

    gap: 10px;

    padding: 0;

    background: transparent;

    position: relative;

    z-index: 1;

    overflow: visible;
}


/* =========================================================
   ✦ SIDEBARS + CONTENT
   ========================================================= */

.sidebar,
.content,
.right-sidebar {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;

    position: relative;

    overflow: visible;
}


/* =========================================================
   ✦ SIDEBAR CONNECTING BACKGROUND
   ========================================================= */

.sidebar::before,
.right-sidebar::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 8px;
    right: 8px;

    background: rgba(111, 143, 175, 0.18);

    border-radius: 12px;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   ✦ SIDEBAR BOXES ONLY
   Decorative image border
   ========================================================= */

.sidebar .box,
.right-sidebar .box {
    position: relative;

    z-index: 2;

    min-width: 0;

    width: calc(100% - 10px);

    margin: 0 auto;

    padding: 12px;

    box-sizing: border-box;

    border-width: 8px;
    border-style: solid;

    border-image:
        url("https://files.catbox.moe/vbzm7h.png")
        8
        fill
        round;

    overflow: visible;

    /* removes any shadow between boxes */
    box-shadow: none;

    /* keeps the boxes visually touching */
    transform: none;
}


/* =========================================================
   ✦ FIRST BOX
   ========================================================= */

.sidebar .box:first-child,
.right-sidebar .box:first-child {
    margin-top: 0;
}


/* =========================================================
   ✦ LAST BOX
   ========================================================= */

.sidebar .box:last-child,
.right-sidebar .box:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ✦ SIDEBAR BOX CONTENT
   ========================================================= */

.sidebar .box-content,
.right-sidebar .box-content {
    min-width: 0;

    position: relative;

    z-index: 3;
}


/* =========================================================
   ✦ IMAGES INSIDE SIDEBAR BOXES
   ========================================================= */

.sidebar .box img,
.right-sidebar .box img {
    max-width: 100%;

    height: auto;
}


/* =========================================================
   ✦ PROFILE IMAGE
   ========================================================= */

.profile-image {
    padding: 3px;

    background: #fff;

    border: 1px solid #000;

    transform: rotate(1.5deg);

    position: relative;

    z-index: 1;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.profile-image:hover {
    transform: rotate(-1.5deg) scale(1.045);

    z-index: 20;

    box-shadow:
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(0, 0, 0, 0.35);
}

.profile-image img {
    display: block;

    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;

    border: 1px solid #000;

    transition: filter 0.35s ease;
}


/* =========================================================
   ✦ PROFILE TEXT
   ========================================================= */

.profile p {
    font-size: 13px;
}


/* =========================================================
   ✦ STATUS
   ========================================================= */

.status {
    padding: 5px;

    background: #fff;

    border: 1px dashed #000;

    font-size: 10px;

    text-align: center;
}

.status-dot {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 3px;

    border-radius: 50%;

    background: #000;
}


/* =========================================================
   ✦ MOOD
   ========================================================= */

.mood {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 6px;

    margin: 0;

    background: #fff;

    text-align: center;

    overflow: hidden;
}

.mood img {
    width: auto;

    height: auto;

    max-width: 100%;

    max-height: 120px;

    margin: 0 auto;

    padding: 0;

    border: none;

    object-fit: contain;

    flex: 0 1 auto;
}

.mood a {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    max-width: 100%;

    margin: 0;

    padding: 0;

    background: transparent;

    border: none;
}

.mood a img {
    max-width: 100%;

    max-height: 90px;
}

.mood span {
    font-size: 21px;
}


/* =========================================================
   ✦ BLINKIES
   ========================================================= */

.blinkies {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    gap: 0;

    text-align: center;
}

.blinkies .blinkie {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 150px;

    height: 30px;

    max-width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    background: #fff;

    font-family: "VT323", monospace;

    font-size: 14px;

    line-height: 1;

    text-align: center;

    overflow: hidden;

    flex-shrink: 0;
}

.blinkies .blinkie img {
    display: block;

    width: auto;

    height: auto;

    max-width: 100%;

    max-height: 30px;

    margin: 0;

    padding: 0;

    border: 0;

    object-fit: contain;
}


/* =========================================================
   ✦ WELCOME
   ========================================================= */

.welcome {
    position: relative;
    z-index: 1;

    width: 100%;

    margin: 0 auto 1em;
    padding: 10px 0;

    box-sizing: border-box;

    background: transparent;

    overflow: visible;
}

.welcome img {
    display: block;
    margin: 0 auto;
}

.welcome h2 {
    position: relative;
    z-index: 3;

    margin: 5px 0 12px;
    padding: 0;

    color: #a0a0c6;

    font-family: "lovely", monospace;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   ✦ WELCOME SIGN / GIF
   ========================================================= */

.welcome-sign {
    position: relative;
    z-index: 5;

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

    margin: 0;
    padding: 0;

    background: transparent;

    text-align: center;
    line-height: 0;

    overflow: visible;

    /* barely overlaps the blue box */
    top: 25px;
}

.welcome-sign img {
    position: relative;
    z-index: 6;

    display: block;

    width: 45%;
    max-width: 500px;
    height: auto;

    margin: 0 auto;
    padding: 0;

    border: 0;

    transform: none;
}


/* =========================================================
   ✦ BOX 16
   Blue frame around the text area
   ========================================================= */

.box16 {
    position: relative;
    z-index: 3;

    width: 80%;
    max-width: 100%;

    margin: 1em auto;
    padding: 15px 30px;

    box-sizing: border-box;

    background-color: #526494;

    background-image:
        url("images/back01.gif"),
        url("images/back01.gif");

    background-position:
        left top,
        right top;

    background-repeat:
        repeat-y,
        repeat-y;

    border-radius: 5px;

    overflow: visible;
}

.box16 .box-inner {
    position: relative;
    z-index: 4;

    width: 100%;
    height: 350px;

    margin: 0;
    padding: 10px;

    box-sizing: border-box;

    background: #526494;

    color: #fff;

    font-family: "rainyhearts", sans-serif;
    font-size: 20px;
    line-height: 1.45;

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


/* =========================================================
   ✦ BOX 16 CUSTOM SCROLLBAR
   ========================================================= */

.box16 .box-inner::-webkit-scrollbar {
    width: 20px;
}

.box16 .box-inner::-webkit-scrollbar-track {
    background: transparent;
}

.box16 .box-inner::-webkit-scrollbar-thumb {
    background-color: transparent;

    background-image:
        url("https://i.postimg.cc/4NwPfm6m/cloud-with-stars.gif");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;

    border: none;
}

.box16 .box-inner::-webkit-scrollbar-button {
    display: none;
}

.box16 .box-inner::-webkit-scrollbar-corner {
    background: transparent;
}


/* =========================================================
   ✦ BOX 16 CUSTOM SCROLLBAR
   ========================================================= */

.box16 .box-inner::-webkit-scrollbar {
    width: 20px;
}

.box16 .box-inner::-webkit-scrollbar-track {
    background: transparent;
}

.box16 .box-inner::-webkit-scrollbar-thumb {
    background-color: transparent;

    background-image:
        url("https://i.postimg.cc/4NwPfm6m/cloud-with-stars.gif");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;

    border: none;
}

.box16 .box-inner::-webkit-scrollbar-button {
    display: none;
}

.box16 .box-inner::-webkit-scrollbar-corner {
    background: transparent;
}

/* =========================================================
   ✦ TWO COLUMNS
   ========================================================= */

.two-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 12px;
}

.two-columns > div {
    padding: 7px;

    background: #fff;

    border: 1px dashed #000;
}


/* =========================================================
   ✦ LISTS
   ========================================================= */

ul {
    margin: 5px 0;
    padding-left: 17px;
}

li {
    margin: 2px 0;
}

li::marker {
    color: #000;
}





/* =========================================================
   ✦ DIARY
   ========================================================= */

.diary-entry {
    padding: 8px 3px;

    border-bottom: 1px dashed #000;
}

.diary-entry:last-child {
    border-bottom: none;
}

.date {
    font-family: "VT323", monospace;
    font-size: 15px;
}

.diary-entry h3 {
    margin: 3px 0;
}





/* =========================================================
   ✦ SITE INFO
   ========================================================= */

.counter {
    padding: 5px;

    background: #fff;

    border: 1px inset #000;

    font-family: "VT323", monospace;
    font-size: 15px;

    text-align: center;

    letter-spacing: 1px;
}


/* =========================================================
   ✦ LINK LIST
   ========================================================= */

.link-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.link-list li {
    margin: 0;
}

.link-list a {
    display: block;

    padding: 4px;

    border-bottom: 1px dashed #000;

    text-decoration: none;
}

.link-list a:hover {
    padding-left: 8px;

    color: #fff;
    background: #000;
}


/* =========================================================
   ✦ WEBRING
   ========================================================= */

.webring {
    text-align: center;
}

.webring-buttons {
    margin-top: 8px;
    padding: 5px;

    background: #fff;

    border: 1px solid #000;

    font-family: "VT323", monospace;
}


/* =========================================================
   ✦ SITE BUTTON
   ========================================================= */

.site-button {
    width: 88px;
    height: 31px;

    margin: 8px auto;

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

    background: #fff;

    border: 2px solid #000;

    color: #000;

    font-family: "VT323", monospace;
    font-size: 10px;
    line-height: 9px;

    text-align: center;
}


/* =========================================================
   ✦ TEXTAREA
   ========================================================= */

textarea {
    display: block;

    width: 100%;
    height: 65px;

    resize: none;

    padding: 5px;

    color: #000;
    background: #fff;

    border: 1px solid #000;

    font-family: monospace;
    font-size: 8px;
}


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

.footer {
    padding: 10px 15px 20px;

    background: #fff;

    border-top: 1px solid #000;

    color: #000;

    text-align: center;

    position: relative;
    z-index: 3;
}

.footer .small-text {
    font-size: 11px;
}


/* =========================================================
   ✦ GLOBAL SCROLLBAR
   ========================================================= */

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

::-webkit-scrollbar-track {
    background: #fff;
}

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

    border: 2px solid #fff;
}


/* =========================================================
   ✦ TEXT SELECTION
   ========================================================= */

::selection {
    color: #fff;
    background: #000;
}


/* =========================================================
   ✦ HELLO / FLIP TEXT
   ========================================================= */

.flip-demo {
    display: flex;
    justify-content: center;
    align-items: center;

    perspective: 900px;
}

.flip-wrap {
    position: relative;

    display: inline-block;

    font-size: 36px;
    font-weight: 800;

    color: #fff;

    transform-style: preserve-3d;

    transition: transform 0.6s ease;

    line-height: 1;
}

.flip-front,
.flip-back {
    display: block;

    backface-visibility: hidden;
}

.flip-back {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    text-align: center;

    transform: rotateX(180deg);

    color: #efd1d3;
}

.flip-wrap:hover {
    transform: rotateX(180deg);
}

.divider,
.center {
    display: flex;

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


/* =========================================================
   ✦ TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .layout {
        grid-template-columns:
            150px
            minmax(0, 1fr);
    }

    .right-sidebar {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .navigation {
        gap: 9px;
    }

    .navigation a img {
        width: 130px;
        max-width: 130px;
    }
}


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

@media (max-width: 620px) {

    /* BODY */

    body {
        padding: 5px;
    }


    /* SITE */

    .site {
        width: 100%;
        margin: 8px auto;
    }


    /* HEADER */

    .header {
        min-height: 160px;

        padding: 25px 12px;

        text-align: center;

        justify-content: center;

        gap: 8px;

        z-index: 30;
    }

    .header-text {
        width: 100%;
    }

    .header h1 {
        font-size: 50px;
    }

    .header-image {
        width: 100%;
        max-width: 90%;
        height: auto;

        margin: 8px auto;
    }


    /* HEADER DECORATION */

    .header-decoration {
        position: absolute;

        right: 5px;
        bottom: 10px;

        max-width: 70px;

        opacity: 0.8;

        filter:
            grayscale(1)
            drop-shadow(0 0 2px #000)
            drop-shadow(0 0 5px #000)
            drop-shadow(0 0 9px #000)
            drop-shadow(0 0 13px rgba(0, 0, 0, 0.85));
    }


    /* HEADER STARS */

    .header::before,
    .header::after {
        width: 40px;
        height: 40px;
    }

    .header::before {
        top: -20px;
        left: -20px;
    }

    .header::after {
        right: -20px;
        bottom: -20px;
    }


    /* NAVIGATION */

    .navigation {
        width: 100%;

        display: flex;

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

        flex-wrap: wrap;

        gap: 6px;

        padding: 7px 4px;

        margin: 40px auto 20px;

        z-index: 20;
    }

    .navigation a {
        width: auto;
        min-width: 0;
        height: auto;

        flex: 0 0 auto;

        margin: 0;
        padding: 7px 12px;

        font-size: 14px;
        line-height: 1.2;

        border-radius: 12px;
    }


    /* MAIN LAYOUT */

    .layout {
        display: flex;

        flex-direction: column;

        gap: 7px;

        padding: 7px;

        overflow: visible;
    }

    .content {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .right-sidebar {
        order: 3;

        display: flex;
    }


    /* TWO COLUMNS */

    .two-columns {
        grid-template-columns: 1fr;
    }





    /* BLINKIES */

    .blinkies .blinkie {
        width: 150px;
        max-width: 100%;
    }


    /* PROFILE */

    .profile-image:hover {
        transform: rotate(-1.5deg) scale(1.025);
    }


    /* MOOD */

    .mood {
        width: 100%;

        padding: 5px;

        overflow: hidden;
    }

    .mood img,
    .mood > img,
    .mood a img {
        max-width: 100%;
        max-height: 80px;
    }


    /* WELCOME */

    .welcome {
        width: 100%;
        min-height: 0;

        margin: 1em auto;
        padding: 15px 20px;

        background-color: #f0a8a8;

        background-image:
            url("back01.gif"),
            url("back01.gif");

        background-position:
            left top,
            right top;

        background-repeat:
            repeat-y,
            repeat-y;

        border-radius: 5px;

        overflow: visible;
    }

    .welcome h2 {
        margin: 5px 0 12px;

        font-size: 27px;
    }

    .welcome-sign {
        margin: 0;

        overflow: visible;
    }

    .welcome-sign img {
        width: 60%;
        max-width: 400px;

        transform: none;
    }


    /* BOX 16 */

    .box16 {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;
    }

    .box16 .box-inner {
        padding: 9px;

        background: #fff;

        font-size: 17px;
    }
}


/* =========================================================
   ✦ VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    /* HEADER */

    .header {
        min-height: 145px;

        padding: 22px 10px;

        z-index: 30;
    }

    .header h1 {
        font-size: 42px;
    }

    .header-image {
        max-width: 85%;
    }


    /* STARS */

    .header::before,
    .header::after {
        width: 34px;
        height: 34px;
    }

    .header::before {
        top: -17px;
        left: -17px;
    }

    .header::after {
        right: -17px;
        bottom: -17px;
    }


    /* NAVIGATION */

    .navigation {
        gap: 4px;

        padding: 6px 3px;

        margin-top: 40px;
    }

    .navigation a {
        width: auto;
        min-width: 0;
        height: auto;

        flex: 0 0 auto;

        padding: 6px 10px;

        font-size: 13px;

        border-radius: 10px;
    }


 

    .album-art {
        width: 90px;

        margin: auto;
    }





    /* BLINKIES */

    .blinkies {
        align-items: center;
    }

    .blinkies .blinkie {
        width: 150px;
        max-width: 100%;
    }


    /* MOOD */

    .mood img,
    .mood > img,
    .mood a img {
        max-width: 100%;
        max-height: 100px;
    }


    /* WELCOME */

    .welcome {
        padding: 15px 16px;

        margin: 1em auto;

        background-color: #f0a8a8;

        background-image:
            url("back01.gif"),
            url("back01.gif");

        background-position:
            left top,
            right top;

        background-repeat:
            repeat-y,
            repeat-y;

        border-radius: 5px;
    }

    .welcome h2 {
        font-size: 25px;
    }

    .welcome-sign {
        margin: 0;
    }

    .welcome-sign img {
        width: 75%;
        max-width: 350px;

        transform: none;
    }


    /* BOX 16 */

    .box16 {
        width: 100%;
        max-width: 100%;
    }

    .box16 .box-inner {
        padding: 8px;

        font-size: 16px;
    }


    /* HEADER DECORATION */

    .header-decoration {
        max-width: 60px;

        filter:
            grayscale(1)
            drop-shadow(0 0 2px #000)
            drop-shadow(0 0 5px #000)
            drop-shadow(0 0 8px #000)
            drop-shadow(0 0 11px rgba(0, 0, 0, 0.85));
    }
}


/* =========================================================
   ✦ REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .profile-image,
    .profile-image img,
    .header-image,
    .gallery img,
    .navigation a {
        transition: none;
        animation: none;
    }

    .header-decoration {
        animation: none;
    }
}

.inline-pixel {
    display: inline-block;
    width: auto;
    height: 20px;
    max-width: none;
    margin: 0 2px;
    padding: 0;
    border: none;
    vertical-align: middle;
}
