@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
html {
    transition:cubic-bezier(0.075, 0.82, 0.165, 1) 1.8s;
    transition-property: filter;
    width: 100vw;
    overflow-x: hidden;
}
body {
    background-color: rgb(5, 5, 5);
    color: white;
    font-family: "Space Mono";
    padding: 10px;
}
mark {
    background-color: white;
    border-radius: 5px;
    padding-left: 3.5px;
    padding-right: 3.5px;
}
a {
    color: rgb(208, 208, 208);
    transition:cubic-bezier(0.075, 0.82, 0.165, 1) 1.8s;
    transition-property: filter;
}
a:hover {
    color: rgb(240, 240, 240)
}
a.mainpage {
    color: white;
    font-size: 14pt;
}
div.header {
    padding: 6px;
    padding-top: 8px;
}
p {
    white-space: pre;
    text-wrap:wrap;
}

button.theme {
    position: fixed;
    bottom: 12px;
    right: 12px;
    font-size: 25pt;
    border-radius: 9999px;
    border: white solid 2px;
    background-color: rgba(255, 255, 255, 0.02);
    cursor:pointer;
    width: 45pt;
    height: 45pt;
    transition: cubic-bezier(0.215, 0.610, 0.355, 1) 0.3s;
    backdrop-filter: blur(50px);
    background-image: url('/moon.png');
    background-position: center;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    z-index: 5;
    
    
}
button.theme:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
pre {

    filter: grayscale();
    border-radius: .5em !important;
    margin-bottom: 10px !important;
}
code:not([class]) {
    background-color: #272822;
    font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
    padding: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
    filter: grayscale();
    border-radius: .5em !important;
}
img {
    display: block;
    width: auto;
    height: 30vw;
    padding-bottom: 10px;
    cursor:pointer;
}
div.imagepreview .closebtn {
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 30pt;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: -5px;
    width: 50px;
    height: 90px;
}
div.imagepreview {
    background: rgba(0, 0, 0, 0.883);
    transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s;
    transition-property: opacity;
    opacity: 0;
    backdrop-filter: blur(10px);
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}
/*div.imagepreview {
    opacity: 1;
    visibility: visible;
}*/

div.imagepreview img {
    position: fixed;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    height: auto;
    width: 78vw;
    cursor:default;
    padding-bottom: 0;
}

@media only screen and (max-width : 415px) {
    img {
        width: 100%;
        max-width: none;
        height: auto;
    }
}
body.whitetheme img {
    filter: invert(1)
}
div.post {
    background-color: #161515;
    width: 85vw;
    max-width: 500px;
    height: fit-content;
    padding: 7px;
    padding-left: 10px;
    border-radius: .8em;
    text-wrap:stable;
    margin-bottom: 10px;
    overflow: hidden;
    display: block;
}
a:has(div.post) {
    text-decoration: none;
}
strong.titleblog {
    font-size: large;
}
body.whitetheme div.utterances {
    filter: invert(1);
}