:root {
    --hb: #e9e1d6;
    --tt: #5d4a31;
    --tb: #e2d7cf;
    --ti: #008;
    --ts: #e8e8e8;
    --b: #ffffff;
    --dt: #473529;
    --db: #f8f3ec;
    --di: #00b;
    --da: #937352;
    --tgn: #313131;
    --tgb: #bc0404;
    --tgf: #02ab02;
    --editor: #fff;
    --empty: #fff;
}
 
[data-theme="dark"] {
    --hb: #4f301a;
    --tt: #E6C28B;
    --tb: #000000;
    --ti: #e79417;
    --ts: #4a3628;
    --b: #2a2018;
    --dt: #d9c9b2;
    --db: #4A3628;
    --di: #fff;
    --da: #B08A5D;
    --tgn: #f7f3f3;
    --tgb: #ce5656;
    --tgf: #49aa49;
    --editor: #7b6c5e;
    --empty:#222;
}

html { box-sizing: border-box; }
*, *:before, *:after {box-sizing: inherit;}

body {
    font-family: Roboto,Helvetica,sans-serif;
    line-height: 130%;
    font-size: 11pt;
    margin: 0px;
    height: 100%;
    background-color: var(--empty);
}

.grecaptcha-badge { display: none; }
.custom-recaptcha3-terms { font-size:10pt; }

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--ti);
}

blockquote {
    border-left: 6px solid var(--ts);
    padding-left: 10px;
    margin-left: 4px;
}

.container {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 100vh;
    max-width: 1800px;
    margin:0 auto;
    grid-template-columns: 2fr 7fr 16px auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "h h e ad"
        "s m e ad"
        "f f e ad";
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background-color: var(--b);
}
.header {
    grid-area: h;
    display: flex;
    background-color: var(--hb);
    box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 8px 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    height: 40px;
}
.left-panel{
    grid-area: s;
    padding: 4px 0px 4px 8px;
    background-color: var(--tb);
}
.user {
    color: var(--tt);
    width: 40px;
    height: 40px;
}
.logo {
    display: block;
    margin-right: auto;
    height: 100%;
}
.logo img {
    height: 100%;
    margin-left: 8px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0px 2px 2px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    border-radius: 16px 0 0 16px;
    width: 100%;
    color:var(--tt);
    cursor: pointer;
}
#menu {
    display: none;
    background-color: var(--tb);
}
.opt-nav-link{
    display: none;
}
.nav-active{
    background-color: var(--b);
    display: flex;
}
.footer {
    display: flex;
    color: var(--tt);
    grid-area: f;
    font-size: 10pt;
    padding: 4px;
}
.footer div {
    padding: 0px 4px;
    height: 100%
}
.see-also {
    grid-area: ad;
}
.see-wide {
    top: 0px;
    position: sticky;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    row-gap: 16px;
}
.see-narrow {
    display: none;
    flex-direction: column;
    align-items: center;
}
.main {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    padding-left: 16px;
    grid-area: m;
    color: var(--dt);
    gap: 8px;
    position: relative;
}
.empty {
    grid-area: e;
}
.side-bar {
    color: var(--tt);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    position: sticky;
    top: 0px;
}
form {
    display: grid;
    grid-template-columns: auto 2fr;
    grid-template-areas:
        "fm fm"
        "flu fdu"
        "flp fdp"
        "flc fdc"
        "x fb";
    gap: 4px;
    align-items: center;
    justify-items: start;
}
.side-bar>hr{
    position: relative;
    border: none;
    right: 4px;
    border-top: 2px dotted var(--b);
    width: 100%;
    margin-right: 10px;
}
input[type="text"] {
    all: unset;
    width: 100%;
    max-width: 100%;
    min-width: 10px;
    border: none;
    border-radius: 5px;
    padding: 4px;
    background-color: var(--db);
    color: var(--dt);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    height: 24px;
}

#login-form input[type="text"],
input[type="password"] {
    all: unset;
    width: 100%;
    max-width: 100%;
    min-width: none;
    border-radius: 5px;
    border: none;
    background-color: var(--tb);
    color:var(--tt);
    box-sizing: border-box;
    padding: 4px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, .2);
}

.moderline div,
input[type="submit"] {
    padding: 4px 8px;
    background-color: var(--tb);
    color: var(--ti);
    border: 1px solid var(--ti);
    border-radius: 5px;
    cursor: pointer;
}

.moderline div {
    margin: 0px 4px;
}

.login-message{
    font-weight: 600;
    grid-area: fm;
    color:var(--ti);
}

.post-form{
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 4px 0px 4px 4px;
    border: 1px solid var(--tb);
    border-radius: 5px;
    margin: 2px 0px;
}

.btn {
    display: inline-block;
    padding: 4px;
    color: var(--tt);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    box-sizing: content-box;
    height: 16px;
    fill:none;
}
.tag {
    display: inline-block;
    margin-left: 2px;
    color: var(--tt);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    font-size: 11px;
    text-transform: uppercase;
}
.tag::before {
    content: '#';
    color: #9b9b9b;
    font-size: 7pt;
    position: relative;
    bottom: 4px;
    font-weight: 800;
}
.followed-tag::before { color: var(--tgf);}
.blocked-tag::before {color: var(--tgb);}
.cbtns {
    display: flex;
    gap: 8px;
    margin: 0 0 0 -5px;
}
.lastbtn{
    margin-right: auto;
}
.liked{
    fill: var(--tt);
    stroke: none;
}
.not_liked{
    stroke: var(--tt);
}
.btn img{
    width: 16px;
    height: 16px;
}
.submit-btn{
    cursor: pointer;
    border-radius: 0 0 8px 8px;
    padding: 4px 8px;
}
.author{
    font-weight: 600;
    font-size: 10pt;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    position: relative;
    color: var(--tt);
    width: fit-content;
}
.followed-author {
    color: var(--tgf);
}

.blocked-author {
    color: var(--tgb);
    text-decoration: line-through;
}

.tag-popup {
    visibility: visible;
    animation: fadeIn 1s;
    background-color: var(--tb);
    color: var(--tt);
    text-align: center;
    font-size: 80%;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    right: -15px;
    margin-left: 0px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    box-shadow: 0 0 8px rgba(0,0,0,.4);
    font-size: 12px;
}
.tag-popup a {
    margin: 4px 0px;
    color: unset;
}
.tag-popup img {
    margin-right: 6px;
    position: relative;
    bottom: -3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
#login-form{
    padding: 8px;
    margin: 12px 8px 6px 4px;
    background: var(--db);
    border-radius: 8px;
}
.comment {
    margin: 0;
    padding: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.comment-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: flex-start;
    align-items: center;
    gap: 0 4px;
}
.comment-time {
    font-size: 10pt;
    margin-right: auto;
}
.parent-comment {
    padding: 0 0 0 2px;
}
.parent-row {
    display: flex;
    margin: 0px 0px 0px -2px;
    padding: 4px 0;
    background-color: var(--b);
    z-index: 99;
    gap: 8px;
    text-wrap-mode: nowrap;
    color: var(--dt);
}
.parent-row .ava {
    width:20px;
    height:20px;
}
.parent-row .author {
    font-weight: 600;
    display: inline;
    margin-left: -4px;
}
.parent-text{
    overflow: hidden;
}
.parent-row>div {
    display: inline;
}
.editor-box {
    display: flex;
    flex-direction: column;
    margin: 0px;
    padding: 8px 16px;
    background-color: var(--b);
    color: var(--dt);
}
.editor {
    background-color: var(--editor);
}
.editor-buttons {
    padding: 0;
    background-color: var(--tb);
    border-radius: 0px 0px 8px 8px;
    height: fit-content;
    align-self: end;
    display: flex;
    justify-content: flex-start;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    align-items: center;
}
.editor-buttons>span{
    margin-left: 8px;
    margin-right: auto;
}

.moderline,
.tagline {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    font-size: 11pt;
    gap: 0 4px;
}

.comment>.ava {
    float: left;
    margin: 0 8px 4px 0px;
}

img.ava {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 0 4px #0003;
    float: left;
}
.ctext {
    margin: 8px 0;
}
.ctext ul,
.ctext ol {
    margin: 0px;
    padding: 6px 0px 6px 20px;
}
.ctext li,
.ctext p {
    margin: 4px 0px;
    padding: 2px 0px;
}
.ctext a {
    font-weight: 600;
    color: var(--di);
}
.vid {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
  }
.vid iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.page {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--tb);
    background-color: var(--db);
    position: relative;
    display: table;
    clear: both;
    width: 100%;
}
.page>h2 {
    font-size: 14pt;
    line-height: 16pt;
    color: var(--dt);
    margin: 2px 8px 6px 0px;
}
.page>span {
    padding-top: 4px;
    padding-bottom: 4px;
    overflow: auto;
}
.page>img {
    border-radius: 0 6px;
    width: 40%;
    cursor: pointer;
    float: right;
    translate: 16px -16px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.banner {
    background-color: var(--tb);
    border-radius: 8px;
    padding: 8px 16px;
    align-self: center;
    justify-self: center;
    font-size: 12pt;
    width: 100%;
    box-shadow: 0 0 8px #0008;
    border: 0.5 solid var(--tt);
    margin: 12px;
}

.banner a{ font-weight: 600; }

.settings {
    margin: 0px;
    display: flex;
    flex-direction: column;
    background-color: var(--db);
    padding: 16px;
    border: 1px solid var(--tb);
    border-radius: 8px;
    min-height: 100%;
}
.settings li {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "st sc sb"
        "x scomment scomment";
    border-bottom: 1px dotted var(--b);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.settings li p {
    grid-area: st;
    font-weight: 600;
    margin: 0px;
}
.settings li textarea,
.settings li input[type="text"],
.settings li input[type="email"],
.settings li input[type="password"] {
    grid-area: sc;
    min-width: 0;
    max-width: none;
    width: 100%;
    background-color: var(--tb);
    color: var(--tt);
}
.settings-btn {
    grid-area: sb;
    padding: 4px 8px;
    margin: 0px 18px;
    background-color: var(--tb);
    color: var(--ti);
    border: 1px solid var(--ti);
    border-radius: 5px;
    cursor: pointer;
    height: fit-content;
}

.settings li span {
    grid-area: scomment;
    font-size: 80%;
    font-style: italic;
}
.settings-wrapped {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.moder{
    font-size: 80%;
    color: var(--di);
    padding-right: 8px;
}
.fav-list{
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    margin: 8px 4px;
    gap: 4px;
}
dt{
    font-weight: 600;
    padding-top: 8px;
}
.info-panel {
    padding: 8px;
}
.next-page {
    text-align: center;
    font-weight: 600;
    display: block;
    padding: 6px;
    background-color: var(--db);
}
@media screen and (max-width:1200px){
    .container{
        grid-template-columns: 1fr 3fr 4px auto;
        grid-template-areas:
            "h h e ad"
            "s m e ad"
            "f f e ad";
    }
    form {
        grid-template-columns: 1fr 4fr;
        grid-template-areas: 
        "fm fm"
        "flu flu"
        "fdu fdu"
        "flp flp"
        "fdp fdp"
        "flc fdc"
        "fb fb";
    }
}
.main pre{
    background-color: var(--tt);
    color: var(--tb);
    border: 1px dotted var(--da);
    padding: 6px;

}
.static-content {
    width: 100%;
    max-width: 640px;
    height: 100%;
    box-shadow: inset 0 0 18px rgba(177, 150, 0, 0.2);
    padding: 8px 20px;
    border: 1px solid var(--tb);
    border-radius: 8px;
    flex-direction: column;
    line-height: 150%;
    margin: 0 auto;
}
.static-content img{
    max-width: 100%;
    box-shadow: 2px 2px 8px #0009
}
.section>img{
    float:right;
    margin: 0 0 8px 8px;
}
.head-icon{
    width: 40px;
    height: 40px;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tt);
    border-radius: 8px;
}
.checked-icon,.unchecked-icon {
    width: 20px;
    height: 20px;
    transition: opacity 1s;
    position: absolute;
}
.unchecked-icon {
    opacity: 1;
}
.checked-icon {
    opacity: 0;
}

input:checked ~ .unchecked-icon {
    opacity: 0;
}

input:checked ~ .checked-icon {
    opacity: 1;
}

.ql-toolbar{
    margin-top: 8px;
    border-radius: 8px 8px 0 0;
}
.page-comment {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}
.page-comment .comment {
    flex: 1;
}

.page-comment .page {
    flex: 1;
}

body:has(#menu-cb:checked) #left-panel {
    right: 0%;
}

.twitbox {
    display: grid;
    place-items: center; 
}

.replies {
    margin: 0 -8px 0 8px;
    position: relative;
}
.replies::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 26px;
    left: -2px;
    width: 10px;
    border-left: 2px solid var(--tb);
}
.replies>.comment::before{
    content: "";
    position: absolute;
    left: -2px;
    width: 10px;
    height: 16px;
    border-left: 2px solid var(--tb);
    border-bottom: 2px solid var(--tb);
    border-bottom-left-radius: 8px;
}

.refresh {
    position: relative;
    left: -12px;
    color: var(--tb);
    cursor: pointer;
}

.pbtns{
    height: 24px;
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-evenly;
    background: var(--tb);
    border-radius: 8px 0;
}
.pbtns svg {
    width: 32px;
    height: 24px;
    color: var(--tt);
    padding: 4px 8px;
}

#vidChat{
    display: none;
    border-radius: 10px;
    border: 1px solid var(--tb);
    background-color: var(--db);
    position: sticky;
    top: 0;
    padding: 8px;
    z-index: 99;
    height: 90px;
    grid-template-areas:
        "vmy vpeer vtags";
    gap: 8px;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: 100%;
}
.vid-ctl{
    display: flex;
    height: 24px;
    position: absolute;
    right: 0;
    bottom: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-evenly;
    background: var(--tb);
    border-radius: 4px 0;
    z-index: 99;
}
.vid-ctl>svg {
    cursor: pointer;
}
.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
  }
  
.dots span {
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: jump 1.4s infinite ease-in-out;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jump {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

.close-btn {
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    background: var(--tb);
    border-radius: 0 8px;
    z-index: 99;
    cursor: pointer;
}

.vid-panel {
    border: .5px solid var(--tb);
    border-radius: 6px;
    background: var(--db);
    position: relative;
    aspect-ratio: 4/3;
    height: 100%;
}

#vidChat.fullVid>.vid-panel{
    aspect-ratio: 4/3;
}

.vid-panel video {
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 6px;
    position: absolute;
}

#peerVideoBanner {
    font-size: 10pt;
    position: absolute;
    left: 0px;
    bottom: 15px;
    width: 100%;
    text-align: center;
    text-shadow: 0 0 3px #000f;
    color: white;
    overflow: hidden;
}
#vidTags {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
}
.fullVid>#vidTags {
    flex-direction: row;
    flex-wrap: wrap;
}
#vidMsgs {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    align-items: stretch;
    height: 100%;
    max-height: 200px;
}

#vidMsgsList {
    flex: 1 1 auto;
    overflow: auto;
}

#vidChat.fullVid {
    position: relative;
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "vmy vpeer"
        "vtags vtags";
}

@media screen and (max-width:760px) {
    .container{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 40px auto 1fr auto auto;
        grid-template-areas:
            "h h"
            "s s"
            "m m"
            "ad ad"
            "f f";
    }
    .header {
        position: fixed;
        width: 100%;
        z-index: 999;
        border-radius: unset;
        opacity: 95%;
    }
        .main{
        padding: 4px 0;
    }
    .left-panel{
        position: fixed;
        width: 80%;
        bottom: 0px;
        top: 40px;
        padding: 4px 8px;
        right: -100%;
        transition: right .5s cubic-bezier(0.25, 1, 0.5, 1);
        border-left: 2px solid #0001;
        z-index: 999;
        opacity: 95%;
    }
    .nav-link {
        margin: 0;
        padding: 4px 8px;
        border-radius: 8px;
    }
    form {
        display: grid;
        grid-template-columns: 1fr 4fr;
        grid-template-areas: 
            "fm fm"
            "flu fdu"
            "flp fdp"
            "flc fdc"
            "x fb";
        gap: 4px;
        align-items: center;
        justify-items: start;
    }
    #menu {
        height: 40px;
        width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        translate: 8px 0;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
        border-radius: 16px 0 0 16px;
        color: var(--tb);
        background-color: var(--tt);
    }
    .page{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "h"
            "i"
            "t";
        gap: 4px;
    }
    .page>img {
        border-radius: 6px;
        grid-area: i;
        margin: 4px 0px;
        width: 100%;
        translate: 0 0;
        box-shadow: none;
    }
    .page>h2{grid-area: h;margin: 0;}
    .page>span{grid-area: t;padding: 0;}
    .side-bar{
        gap: 4px;
    }
    .see-wide{display: none;}
    .see-narrow{display: flex;}
    .post-form{ display: none;}
    .banner{ margin-top: 16px; }
    #login-form {
        width: 100%;
        margin: 12px 0px;
    }
    .page-comment {
        display: block;
        margin-bottom: 16px;
    }
    #vidChat{ top:40px; }
    #vidChat.fullVid{
        grid-template-areas:
            "vmy"
            "vpeer"
            "vtags";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        top:0;
    }
}
#vidMsgsList>div {
    width: 100%;
    padding-left: 17px;
    position: relative;
}
.vcMyMsg:before {
    content: '←';
    color: #5f3afd;
    position: absolute;
    left: 0px;
    bottom: 2px;
}
.vcPeerMsg:before{
    content: '→';
    color: #9b9b9b;
    position: absolute;
    left: 1px;
    bottom: 2px;
}
.vcServMsg:before{
    content: '●';
    color: #b44242;
    position: absolute;
    left: 2px;
    bottom: 1px;
}

@media (min-width:760px){
    .nav-link:hover{
        color:var(--ti);
    }    
    input[type="submit"]:hover {
        background-color: var(--ts);
    }
    .post-form:hover {
        background-color: var(--ts);
    }
    .tag:hover {
        text-decoration: underline;
    }
    .submit-btn:hover,
    .btn:hover {
        background-color: var(--ts);
    }
    .author:hover {
        background-color: var(--ts);
    }
    .tag-popup a:hover{
        text-decoration: underline;
    }
    .ctext a:hover {
        text-decoration: underline;
    }
    .settings-btn:hover {
        background-color: var(--ts);
    }
    .head-icon:hover{
        background-color: var(--tb);
    }
    .pbtns svg:hover{
        color: var(--ti);
    }
    .vid-ctl>svg:hover, .close-btn:hover {
        color: var(--di);
    }
    #vidChat .tag:hover {text-decoration: line-through;}
}