@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');


/* ==================================================
   PAGE
   ================================================== */

html,
body {
    margin: 0;
    min-height: 100%;
    background: #030303;
}


body {
    font-family: "VT323", monospace;
}


.wonderland-page {
    min-height: 100vh;

    box-sizing: border-box;

    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 45px 18px;

    background:

        radial-gradient(
            circle at 18% 20%,
            rgba(120, 0, 18, 0.18),
            transparent 25%
        ),

        radial-gradient(
            circle at 82% 72%,
            rgba(100, 0, 16, 0.14),
            transparent 26%
        ),

        linear-gradient(
            135deg,
            #020202 0%,
            #090506 48%,
            #020202 100%
        );
}


/* ==================================================
   CRT TEXTURE
   ================================================== */

.wonderland-page::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 3px,
            rgba(255, 255, 255, 0.02) 4px
        );

    z-index: 50;
}


/* ==================================================
   MAIN WINDOW
   ================================================== */

.blogs-window {
    width: 1100px;
    max-width: 96%;

    margin: 0 auto;

    position: relative;

    z-index: 5;

    color: #eeeeee;

    background:
        rgba(4, 4, 4, 0.97);

    border:
        2px solid #8f1022;

    box-shadow:
        8px 8px 0 #180004,
        0 0 34px rgba(150, 0, 24, 0.18);
}


/* ==================================================
   TOP BAR
   ================================================== */

.blogs-topbar {
    display: flex;
    justify-content: space-between;

    padding: 8px 12px;

    color: white;

    background: #7c0d1d;

    border-bottom:
        2px solid #250005;

    font-size: 19px;

    letter-spacing: 2px;
}


/* ==================================================
   CHECKERBOARD
   ================================================== */

.checker-strip {
    height: 14px;

    background:
        repeating-linear-gradient(
            90deg,
            #ffffff 0px,
            #ffffff 14px,
            #050505 14px,
            #050505 28px
        );
}


.bottom-checker {
    opacity: 0.42;
}


/* ==================================================
   HEADER
   ================================================== */

.blogs-header {
    padding:
        28px 25px 22px;

    text-align: center;

    border-bottom:
        1px solid #351015;

    position: relative;
}


.tiny-header {
    margin: 0;

    color: #8a8a8a;

    letter-spacing: 4px;

    font-size: 14px;
}


.blogs-header h1 {
    margin: 5px 0 0;

    color: #ffffff;

    font-size: 55px;

    font-weight: normal;

    letter-spacing: 7px;

    text-shadow:
        3px 3px 0 #7a0b1a,
        0 0 10px rgba(175, 0, 28, 0.28);
}


.blogs-subtitle {
    margin: 0;

    color: #bd1d35;

    font-size: 20px;

    letter-spacing: 3px;
}


/* ==================================================
   LAYOUT
   ================================================== */

.blogs-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 22px;

    padding: 24px;
}


/* ==================================================
   CREATE POST
   ================================================== */

.composer {
    margin-bottom: 25px;

    border:
        1px solid #6f111d;

    background: #080808;

    box-shadow:
        4px 4px 0 #170003;
}


.composer-title {
    display: flex;
    justify-content: space-between;

    padding:
        7px 10px;

    color: #ffffff;

    background: #26070c;

    border-bottom:
        1px solid #70111d;

    letter-spacing: 2px;
}


#post-form {
    padding: 16px;
}


#post-form label {
    display: block;

    margin:
        10px 0 4px;

    color: #d6d6d6;

    letter-spacing: 2px;
}


#post-form input[type="text"],
#post-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 9px;

    color: #f4f4f4;

    background: #020202;

    border:
        1px solid #571721;

    outline: none;

    font-family:
        "VT323",
        monospace;

    font-size: 18px;
}


#post-form textarea {
    height: 110px;

    resize: vertical;
}


#post-form input:focus,
#post-form textarea:focus {
    border-color: #c31b32;

    box-shadow:
        0 0 6px rgba(190, 15, 40, 0.3);
}


/* ==================================================
   UPLOAD
   ================================================== */

.upload-row {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 14px;
}


#post-media {
    display: none;
}


.file-button {
    margin: 0 !important;

    padding:
        6px 10px;

    color:
        #ffffff !important;

    background:
        #480a12;

    border:
        1px solid #8f1427;

    cursor: pointer;
}


#file-name {
    color: #747474;

    font-size: 15px;
}


/* ==================================================
   POST BUTTON
   ================================================== */

#post-button {
    margin-top: 16px;

    padding:
        7px 28px;

    color: #ffffff;

    background: #861022;

    border:
        1px solid #ca293e;

    font-family:
        "VT323",
        monospace;

    font-size: 20px;

    letter-spacing: 2px;

    cursor: pointer;
}


#post-button:hover {
    color: #971024;

    background: white;
}


#post-button:disabled {
    opacity: 0.5;
}


.post-status {
    min-height: 20px;

    margin:
        0 16px 15px;

    color: #b2283b;

    letter-spacing: 2px;
}


/* ==================================================
   FEED
   ================================================== */

.feed-heading {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

    color: #dfdfdf;

    letter-spacing: 3px;

    border-bottom:
        1px dashed #4c1019;

    padding-bottom: 7px;
}


.blink-dot {
    color: #ba132b;

    animation:
        blink 1.6s steps(2) infinite;
}


@keyframes blink {

    50% {
        opacity: 0.2;
    }

}


.loading-text {
    padding: 30px;

    color: #777;

    text-align: center;
}


/* ==================================================
   POSTS
   ================================================== */

.public-post {
    margin-bottom: 15px;

    background: #080808;

    border:
        1px solid #391018;

    box-shadow:
        3px 3px 0 #160004;
}


.public-post-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        8px 10px;

    background: #13090b;

    border-bottom:
        1px solid #391018;
}


.post-name {
    color: #e33a51;

    font-size: 19px;
}


.post-date {
    color: #606060;

    font-size: 14px;
}


.public-post-body {
    padding: 13px;

    color: #dedede;

    font-size: 18px;

    line-height: 1.4;
}


.public-post-text {
    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


.public-post-image {
    display: block;

    max-width: 100%;

    max-height: 700px;

    margin:
        12px auto 0;

    object-fit: contain;

    border:
        1px solid #3d1018;

    background: black;
}


/* ==================================================
   COMMENTS
   ================================================== */

.comments-area {
    padding:
        10px 13px 13px;

    border-top:
        1px dashed #331016;

    background: #050505;
}


.comments-title {
    margin:
        0 0 8px;

    color: #8c8c8c;

    letter-spacing: 2px;
}


.comment {
    margin-bottom: 7px;

    padding:
        7px 9px;

    color: #bbbbbb;

    background: #0c0c0c;

    border-left:
        2px solid #68101d;
}


.comment-name {
    color: #cb263c;
}


.comment-date {
    margin-left: 6px;

    color: #555;

    font-size: 13px;
}


.comment p {
    margin:
        3px 0 0;
}


.reply-form {
    display: grid;

    grid-template-columns:
        100px
        1fr
        auto;

    gap: 6px;

    margin-top: 10px;
}


.reply-form input {
    min-width: 0;

    padding: 6px;

    color: white;

    background: #020202;

    border:
        1px solid #431019;

    font-family:
        "VT323",
        monospace;
}


.reply-form button {
    color: white;

    background: #4d0913;

    border:
        1px solid #8e1325;

    font-family:
        "VT323",
        monospace;

    cursor: pointer;
}


/* ==================================================
   SIDEBAR
   ================================================== */

.sidebar-box {
    margin-bottom: 18px;

    padding-bottom: 12px;

    background: #080808;

    border:
        1px solid #4a1019;

    box-shadow:
        3px 3px 0 #170004;
}


.sidebar-title {
    padding:
        7px 9px;

    color: white;

    background: #25060b;

    border-bottom:
        1px solid #4a1019;

    letter-spacing: 2px;
}


.sidebar-box p {
    padding:
        0 12px;

    color: #9b9b9b;

    line-height: 1.3;
}


.rabbit-message {
    color:
        #c22239 !important;

    letter-spacing: 1px;
}


/* ==================================================
   YOUTUBE
   ================================================== */

.youtube-box {
    margin: 12px;

    background: black;

    border:
        1px solid #63101c;
}


.youtube-box iframe {
    display: block;

    width: 100%;

    height: 210px;

    border: 0;
}


.playlist-note {
    font-size: 15px;

    color: #9d2133 !important;

    letter-spacing: 2px;
}


/* ==================================================
   RETURN
   ================================================== */

.return-room {
    display: inline-block;

    color: #c32038;

    text-decoration: none;

    font-size: 18px;

    letter-spacing: 2px;
}


.return-room:hover {
    color: white;
}


/* ==================================================
   CSS PIXEL RABBIT
   ================================================== */

.rabbit-area {
    position: absolute;

    top: 13px;

    right: 5%;

    width: 120px;

    height: 110px;

    z-index: 8;

    pointer-events: none;
}


.pixel-rabbit {
    position: relative;

    width: 100%;

    height: 100%;

    filter:
        drop-shadow(
            4px 4px 0 #2b0006
        );

    animation:
        rabbit-breathe
        3.5s
        ease-in-out
        infinite;
}


@keyframes rabbit-breathe {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-4px);
    }

}


.rabbit-head {
    position: absolute;

    width: 44px;

    height: 39px;

    left: 39px;

    top: 32px;

    background: #f5f5f5;

    box-shadow:
        -7px 7px 0 #f5f5f5,
        7px 7px 0 #f5f5f5,
        0 14px 0 #dedede;
}


.rabbit-ear {
    position: absolute;

    width: 12px;

    height: 38px;

    top: 2px;

    background: white;

    border:
        3px solid #bcbcbc;
}


.ear-left {
    left: 40px;

    transform:
        rotate(-8deg);
}


.ear-right {
    left: 66px;

    transform:
        rotate(10deg);
}


.rabbit-eye {
    position: absolute;

    width: 7px;

    height: 7px;

    top: 15px;

    background: #e00022;

    box-shadow:
        0 0 6px #ff002b;
}


.eye-left {
    left: 8px;
}


.eye-right {
    right: 8px;
}


.rabbit-body {
    position: absolute;

    width: 53px;

    height: 31px;

    left: 29px;

    top: 70px;

    background: #f1f1f1;

    box-shadow:
        13px -7px 0 #f1f1f1,
        -8px 9px 0 #dcdcdc,
        18px 9px 0 #dcdcdc;
}


.rabbit-tail {
    position: absolute;

    width: 18px;

    height: 18px;

    left: 16px;

    top: 68px;

    background: white;

    box-shadow:
        -4px 4px 0 #dadada;
}


/* ==================================================
   ANIMATED PIXEL MUSHROOMS
   ================================================== */

.mushroom {
    position: fixed;

    width: 44px;

    height: 44px;

    z-index: 2;

    pointer-events: none;

    image-rendering: pixelated;

    animation:
        mushroom-float
        4s
        ease-in-out
        infinite;
}


.mushroom::before {
    content: "";

    position: absolute;

    width: 34px;

    height: 18px;

    left: 5px;

    top: 4px;

    background: #a10d22;

    box-shadow:
        -4px 4px 0 #a10d22,
        4px 4px 0 #a10d22,
        8px 8px 0 #6e0717,

        6px 4px 0 #ffffff,
        20px 7px 0 #ffffff,
        11px 12px 0 #f2f2f2;
}


.mushroom::after {
    content: "";

    position: absolute;

    width: 12px;

    height: 20px;

    left: 16px;

    top: 21px;

    background: #eaeaea;

    box-shadow:
        -3px 4px 0 #cfcfcf,
        3px 4px 0 #cfcfcf;
}


@keyframes mushroom-float {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-2deg);
    }

    50% {
        transform:
            translateY(-12px)
            rotate(3deg);
    }

}


.mushroom-one {
    left: 3%;

    bottom: 6%;

    animation-duration:
        4.2s;
}


.mushroom-two {
    right: 4%;

    bottom: 11%;

    animation-duration:
        5.3s;

    animation-delay:
        -2s;
}


.mushroom-three {
    left: 8%;

    top: 18%;

    animation-duration:
        3.8s;

    animation-delay:
        -1s;
}


.mushroom-four {
    right: 9%;

    top: 34%;

    transform:
        scale(0.75);

    animation-duration:
        6s;

    animation-delay:
        -3s;
}


.mushroom-five {
    left: 14%;

    bottom: 27%;

    transform:
        scale(0.65);

    animation-duration:
        4.8s;

    animation-delay:
        -2.5s;
}


/* ==================================================
   FALLING PLAYING CARDS
   ================================================== */

.falling-card {
    position: fixed;

    top: -90px;

    width: 38px;

    height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    box-sizing: border-box;

    color: #a50b22;

    background: #f7f7f7;

    border:
        2px solid #141414;

    box-shadow:
        3px 3px 0 #450008;

    font-family:
        "VT323",
        monospace;

    font-size: 23px;

    z-index: 1;

    pointer-events: none;

    animation:
        card-fall
        linear
        infinite;
}


.card-one {
    left: 4%;

    animation-duration: 11s;

    animation-delay: -2s;
}


.card-two {
    left: 14%;

    animation-duration: 15s;

    animation-delay: -9s;

    color: #111111;
}


.card-three {
    left: 25%;

    animation-duration: 13s;

    animation-delay: -4s;
}


.card-four {
    left: 36%;

    animation-duration: 17s;

    animation-delay: -13s;

    color: #111111;
}


.card-five {
    left: 47%;

    animation-duration: 12s;

    animation-delay: -6s;
}


.card-six {
    left: 59%;

    animation-duration: 16s;

    animation-delay: -10s;

    color: #111111;
}


.card-seven {
    left: 69%;

    animation-duration: 14s;

    animation-delay: -1s;
}


.card-eight {
    left: 78%;

    animation-duration: 19s;

    animation-delay: -14s;

    color: #111111;
}


.card-nine {
    left: 87%;

    animation-duration: 13.5s;

    animation-delay: -8s;
}


.card-ten {
    left: 95%;

    animation-duration: 18s;

    animation-delay: -5s;

    color: #111111;
}


@keyframes card-fall {

    0% {
        transform:
            translateY(-80px)
            translateX(0)
            rotate(-18deg);

        opacity: 0;
    }


    10% {
        opacity: 0.9;
    }


    30% {
        transform:
            translateY(35vh)
            translateX(22px)
            rotate(38deg);
    }


    60% {
        transform:
            translateY(70vh)
            translateX(-25px)
            rotate(100deg);
    }


    100% {
        transform:
            translateY(115vh)
            translateX(25px)
            rotate(180deg);

        opacity: 0.12;
    }

}


/* ==================================================
   FLOATING CHESS PIECES
   ================================================== */

.chess-piece {
    position: fixed;

    z-index: 2;

    pointer-events: none;

    color: rgba(255, 255, 255, 0.18);

    font-family:
        Georgia,
        serif;

    font-size: 55px;

    text-shadow:
        3px 3px 0 rgba(90, 0, 15, 0.5);

    animation:
        chess-drift
        ease-in-out
        infinite;
}


.chess-one {
    left: 1%;

    top: 42%;

    font-size: 62px;

    animation-duration:
        7s;

    animation-delay:
        -2s;
}


.chess-two {
    right: 2%;

    top: 20%;

    color:
        rgba(165, 13, 34, 0.28);

    font-size:
        52px;

    animation-duration:
        9s;
}


.chess-three {
    right: 5%;

    bottom: 25%;

    font-size:
        70px;

    animation-duration:
        8s;

    animation-delay:
        -4s;
}


.chess-four {
    left: 5%;

    bottom: 38%;

    color:
        rgba(150, 10, 30, 0.24);

    font-size:
        47px;

    animation-duration:
        10s;

    animation-delay:
        -6s;
}


.chess-five {
    right: 14%;

    bottom: 4%;

    font-size:
        40px;

    animation-duration:
        6.5s;

    animation-delay:
        -3s;
}


@keyframes chess-drift {

    0%,
    100% {
        transform:
            translateY(0)
            translateX(0)
            rotate(-7deg);
    }


    50% {
        transform:
            translateY(-25px)
            translateX(12px)
            rotate(8deg);
    }

}


/* ==================================================
   PROFILE SYSTEM
   ================================================== */

.hidden {
    display: none !important;
}


/* ==================================================
   COMPOSER MEMBER IDENTITY
   ================================================== */

.network-identity {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        14px 16px 0;

    padding:
        10px;

    background:
        #050505;

    border:
        1px dashed #8d1022;
}


.network-avatar {
    width: 52px;

    height: 52px;

    flex-shrink: 0;

    overflow: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        #120508;

    border:
        1px solid #a8172c;

    color:
        #e5344d;

    text-decoration: none;

    box-shadow:
        3px 3px 0 #220005;
}


.network-avatar img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.network-avatar-placeholder {
    font-size: 25px;
}


.network-user-info {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.network-display-name {
    color: white;

    text-decoration: none;

    font-size: 20px;

    letter-spacing: 2px;
}


.network-display-name:hover {
    color: #e12d47;
}


.network-username {
    color: #c7253e;

    font-size: 15px;
}


.network-user-status {
    max-width: 400px;

    color: #777;

    font-size: 14px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.network-owner-badge {
    width: fit-content;

    margin-top: 4px;

    padding:
        2px 5px;

    color:
        #111111;

    background:
        #ffd3dc;

    border:
        1px solid #ffffff;

    font-size:
        12px;

    letter-spacing: 1px;
}


/* ==================================================
   SIDEBAR IDENTITY
   ================================================== */

#sidebar-logged-out,
#sidebar-logged-in {
    padding:
        11px;
}


.sidebar-user {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    padding-bottom: 10px;

    border-bottom:
        1px dashed #4d111a;
}


.sidebar-avatar {
    width: 52px;

    height: 52px;

    flex-shrink: 0;

    overflow: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    color:
        #db2e47;

    background:
        #120508;

    border:
        1px solid #9b1629;

    box-shadow:
        3px 3px 0 #240005;

    font-size:
        25px;
}


.sidebar-avatar img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.sidebar-display-name {
    margin:
        0 !important;

    padding:
        0 !important;

    color:
        #ffffff !important;

    font-size:
        19px;

    letter-spacing:
        1px;
}


.sidebar-username {
    margin:
        2px 0 0 !important;

    padding:
        0 !important;

    color:
        #c8273e !important;

    font-size:
        14px;
}


/* ==================================================
   ACCOUNT BUTTONS
   ================================================== */

.network-account-button {
    display: block;

    box-sizing: border-box;

    width: 100%;

    margin-top: 7px;

    padding:
        6px 8px;

    color:
        #d72c44;

    background:
        #090909;

    border:
        1px solid #7c1222;

    font-family:
        "VT323",
        monospace;

    font-size:
        16px;

    text-align: center;

    text-decoration: none;

    letter-spacing:
        1px;

    cursor: pointer;
}


.network-account-button:hover {
    color:
        #ffffff;

    background:
        #7c1222;
}


.logout-button {
    font-size: 16px;

    box-shadow: none;

    transform: none;
}


/* ==================================================
   PROFILE POST HEADER
   ================================================== */

.profile-post-header {
    align-items:
        flex-start;
}


.post-identity {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.post-avatar {
    width: 46px;

    height: 46px;

    flex-shrink: 0;

    overflow: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    color:
        #da2c44;

    background:
        #110508;

    border:
        1px solid #841225;

    text-decoration: none;

    box-shadow:
        2px 2px 0 #230005;

    font-size:
        22px;
}


.post-avatar img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.post-user-text {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.profile-name-link {
    color: inherit;

    text-decoration: none;
}


.profile-name-link:hover {
    color: #e32c47;

    text-decoration: underline;
}


.post-profile-username {
    color:
        #9f1d31;

    font-size:
        13px;
}


.post-profile-status {
    max-width:
        300px;

    color:
        #666666;

    font-size:
        12px;

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;
}


.post-owner-badge {
    width:
        fit-content;

    margin-top:
        3px;

    padding:
        2px 5px;

    color:
        #111111;

    background:
        #ffd3dc;

    border:
        1px solid #ffffff;

    font-size:
        11px;

    letter-spacing:
        1px;
}


/* ==================================================
   PROFILE COMMENTS
   ================================================== */

.comment-top {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        10px;
}


.comment-name.profile-name-link {
    color:
        #cb263c;
}


/* ==================================================
   LITTLE DETAILS
   ================================================== */

.composer::after {
    content:
        "♠  ♡  ♦  ♣";

    display: block;

    padding:
        5px 10px;

    color:
        #3f1118;

    text-align:
        right;

    letter-spacing:
        4px;

    font-size:
        13px;
}


.sidebar-box:nth-child(1) .sidebar-title::after {
    content:
        " ♡";

    color:
        #d82c45;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 850px) {

    .blogs-layout {
        grid-template-columns:
            1fr;
    }


    .blogs-sidebar {
        order: -1;
    }


    .rabbit-area {
        display: none;
    }


    .chess-piece {
        opacity: 0.45;
    }

}


@media (max-width: 600px) {

    .wonderland-page {
        padding:
            15px 4px;
    }


    .blogs-window {
        max-width:
            98%;
    }


    .blogs-topbar {
        font-size:
            14px;
    }


    .blogs-topbar span:last-child {
        display: none;
    }


    .blogs-header h1 {
        font-size:
            38px;

        letter-spacing:
            4px;
    }


    .blogs-layout {
        padding:
            12px;
    }


    .reply-form {
        grid-template-columns:
            1fr;
    }


    .falling-card {
        opacity:
            0.45;
    }


    .chess-piece {
        font-size:
            35px;

        opacity:
            0.35;
    }


    .mushroom-four,
    .mushroom-five {
        display: none;
    }


    .network-identity {
        margin:
            12px 10px 0;
    }


    .network-user-status {
        max-width:
            200px;
    }


    .profile-post-header {
        gap:
            10px;
    }


    .post-profile-status {
        max-width:
            150px;
    }


    .post-date {
        font-size:
            11px;
    }

}