@supports (field-sizing: content) {
    textarea, input {
      field-sizing: content;
    }
}

.site-title {
    width: 95px;
    position: fixed;
    z-index: 9;
    transition: all 0.5s;
}

#main {
    padding-top: 50px;
}

.title-span {
    view-transition-name: titleSpan;
}

/*article p:not(:first-child):not(p:has(img) + p):not(h3 + p):not(picture + p):not(blockquote + p):not(pre + p):not(ol + p):not(ul + p):not(p.like):not(p.like + p):not(div + p):not(p:has(span.badge)):not(audio + p):not(p:has(span.hashtag)):not(p.preamble) {
    text-indent: 28px;
}*/

article p, article p + h3 {
    margin-top: 0.6em !important;
}

article p:has(span.badge) {
    margin-top: 0.7em !important;
}

.littlefoot__popover p:first-of-type {
    margin-top: 0.1em !important;
}

.bi-link-45deg {
    position: relative;
    top: -2px;
}

.toTop {
    position: fixed;
    bottom: -30px;
    left: calc(50vw + 283px);
    transition: all 1s;
    z-index: 10;
    border-radius: 2px;
}

.toTop:hover {
  stroke: #aaa;
}

#guidebutton {
  transition: all 1s;
  position: fixed;
  bottom: 28px;
  right: calc(50vw - 310px);
  z-index: 10;
}

.bi-x-circle:hover {
    fill: #6BD900 !important;
    stroke: #6BD900 !important;
}

dialog {
    width: 30%;
    border-radius: 10px;
    border: 1px solid #999;
    font-size: 1em;
    line-height: 1.7em;
    outline: none;
}

dialog strong {
    font-size: 1.1em;
}

dialog p {
    padding-left: 15px;
}

#modal_close {
    float: right;
    margin-right: 10px;
    cursor: pointer;
    color: var(--light-links);
}
        
input[type="checkbox"] {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    border: 3px solid #1B597B;
}

.rssc {
    position: relative;
    top: 1px;
    left: -31px !important;
}

.rsscc {
    position: relative;
    top: 1px;
}

blockquote {
    margin-block-end: 0px;
}

p+blockquote + p {
    margin-block-start: 1em !important;
}

u-url {
    margin-right: 0px !important;
}

.toggleComments {
    top: 1px !important;
    margin-right: 0px !important;
}

@media screen and (max-width: 767px) {
    
    .site-title {
        width: 80px !important
    }
    
    .toTop {
        left: calc(100vw - 48px);
    }
  
    #guidebutton {
        right: 22px;
    }
  
    .bottomBar {
        left: 10px !important;
        background-image: none !important;
        background-color: rgba(165,36,61,0.95);
        bottom: 17px !important;
        height: 42px !important;
    }
}

@media screen and (prefers-color-scheme: dark) {

    .bottomBar {
        background-image: linear-gradient(to right, rgba(122, 147, 164,0.95) 0%, rgba(122, 147, 164,1) 30%, rgba(122, 147, 164,0) 90vw) !important;
    }
    
    .toTop {
        fill: #ffffff;
        stroke: #ffffff;
    }

    .toTop:hover {
        fill: #ff8533;
        stroke: #ff8533;
    }
    
    .replies {
        background-color: #2a2a2a !important;
    }

    input[type="submit"] {
        color:#aaa;
    }

    input[type="checkbox"]:checked {
        border: 3px solid #f0bc36;
    }
    
    dialog {
        color: #eee;
        background-color: #333;
        border-color: #777;
    }
    
    #modal_close {
        color: var(--dark-links);
    }
}

.replies {
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 100vw;
    background-color: rgba(250,250,250,0.95);
    padding-left: 15px;
    padding-right: 30px;
    padding-top: 55px;
    padding-bottom: 50px;
    transition: all .5s;
    overflow: auto;
    display: block;
    z-index: 100;
}

.comment_section {
    display: grid;
    grid-template-columns: 35px calc(100% - 35px);
}

.comment {
    width: calc(100% - 60px);
}

.comment_text {
    width: 89%;
}

.photo-box {
    bottom: 4px;
    right: 0px;
}

object.avatar {
    right: 0px;
}

@media screen and (prefers-color-scheme: dark) and (max-width: 767px) {
    .bottomBar {
        background-image: none !important;
        background-color: rgba(122, 147, 164, 0.95) !important;
    }

    input[type="checkbox"]:checked {
        outline: 1px solid #f6a624 !important;
        border: 2px solid #3b3b3b !important;
        background-color: #f6a624 !important;
    }
}

@media screen and (max-width: 767px) { 
    .comment_text {
        width: 82%;
    }

    dialog {
        width: 80%;
    }
            
    input[type="checkbox"] {
        width: 13px;
        height: 13px;
        position: relative;
        top: -1px !important;
        border: 1px solid #999;
    }
    
    .rssc {
        left: -36px !important;
        top: 2.5px !important;
    }

    input[type="checkbox"].rsscc {
        top: 1.5px;
    }
    
    input[type="checkbox"].rsscc:checked {
        width: 11px;
        height: 11px;
        outline: 1px solid #1B597B;
        border: 2px solid #FFF;
        background-color: #1B597B;
        top: 2px !important;
        left: 1px !important;
    }
    
    input[type="checkbox"].rsscc:checked ~ .rssc {
        top: 3.5px !important;
        left: -34px !important;
    }
    
    .postlabel {
        font-size: 13px !important;	
    }
    
    .toggleComments {
        top: 0px !important;
    }
}