body {
    line-height: 1.5;
    margin: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, Oxygen-Sans, Ubuntu, Cantarell, helvetica neue, Helvetica, pingfang sc, STXihei, 华文细黑, microsoft yahei, 微软雅黑, SimSun, 宋体, Heiti, 黑体, sans-serif;
}

header {
    border-bottom: 3px solid #222;
    margin-bottom: 1rem;
}

sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(25vw, 260px);
    height: 95vh;
    color: #e3ddd5;
    background: #456;

    padding-top: 3vh;
    padding-bottom: 2vh;

    text-align: center;

    display: flex;
    flex-direction: column;

    text-shadow: 2px 2px 5px #111;
    box-shadow: 0px 0 10px 5px #000;
    z-index: 0;
}

#toggle {
  display: none;
}

.burger {
    position: fixed;
    top: 15px;
    right: 20px;
    display: none;
    font-size: 2.2em;
    width: 1.6em;
    height: 1.6em;

    border-radius: 50%;
    background: rgba(255, 249, 220, 1.0);
    text-align: center;
}

.burger label[for="toggle"] {
    text-align: center;
    margin: 0 auto;
}

.sidebar-entry {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
    border-right: solid 2px transparent;
    padding: 0 10px;
}

.sidebar-entry.border {
    border-right: solid 2px cyan;
}

.sidebar-entry:hover {
    border-right: solid 2px cyan;
}

.sidebar-entry.nav-link {
    margin: 25px 0;
    font-size: 1.4em;
}

.sidebar-entry.nav-link>a {
    transform: rotate(-5deg);
    display: inline-block;
}

@keyframes rainbow_animation {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}

@keyframes rainbow_animation_linear {

    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 90% 0;
    }
}


.sidebar-entry.nav-link:hover {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 3s ease-in-out infinite;
    background-size: 400% 100%;
}

.avatar {
    width: min(80%, 200px);
    border-radius: 50%;
    overflow: clip;
    margin: 0 auto;
    display: inline-block;
    object-fit: contain;

    box-shadow: 0px 0 3px 1px #e3ddd5;
}

@font-face {
    font-display: swap;
    font-family: "JUST Sans";
    src: url('/fonts/JUST-Sans-Regular.woff2') format('woff2');
}

.home-title-container {
    position: relative;
}

.home-title {
    width: fit-content;
    letter-spacing: .1rem;
    font-size: 2.0rem;
    transform: rotate(-2deg);
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;

    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff, #0099ff, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation_linear 5s linear infinite;
    background-size: 400% 100%;

    -webkit-text-stroke: 1px rgba(0, 0, 0, 1.0);
}

.home-title-shadow {
    width: fit-content;
    letter-spacing: .1rem;
    font-size: 2.0rem;
    transform: rotate(-2deg);

    position: absolute;
    top: -1.2rem;
    left: 0.2rem;
    z-index: -1;
    color: gray;
    filter: blur(2px);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    align-self: flex-end;
    width: 100%;
    flex-grow: 1;
}

.footer-userbars {
    padding: 0px 5px;
}

.footer-userbars img {
    width: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.footer-social {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    font-size: 2rem;
    margin: 10px 0;
}

.footer-social>a:hover {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 3s ease-in-out infinite;
    background-size: 400% 100%;
}

.footer-cprt {
    font-size: 0.8rem;
}

h1.post-title {
    margin-bottom: 0;
}

i.post-description {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

content {
    position: fixed;
    top: 0;
    left: min(25vw, 260px);
    right: 0;
    height: 100vh;
    padding-left: 3vw;
    padding-right: 3vw;
    overflow: scroll;
    font-size: 1.2em;

    background-color: #fff2d0;
}

main {
    padding-bottom: 100px;
}

a {
    color: inherit;
    text-decoration: underline;
}

sidebar a {
    text-decoration: none;
}

p {
    text-align: justify;
    text-justify: auto;
    hyphens: auto;
}

code {
    background-color: rgba(0.0, 0.0, 0.0, 0.2);
    padding: 0px 4px;
    box-shadow: inset 0px 0px 20px -10px #000;
}
pre code {
    padding: 5px;
    display: block;
}

.overflow-img {
    padding-bottom: 1em;
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.overflow-img img {
    width: 100%;
}

.overflow-img .overflow-img-wrap:before {
    content: '';
    background-image: linear-gradient(to top, rgba(255,242,208,255), rgba(255,242,208,0));
    position: absolute;
    height: 150px;
    left: 0;
    right: 0;
    bottom: 0;
}

.overflow-img .overflow-img-wrap:after {
    display: block;
    content: '';
}

.timestamp {
    font-size: 1.05rem;
    font-style: italic;
}

.taxonomy>div {
    font-size: 1.1em;
    font-style: italic;
}

.taxonomy>ul>li {
    margin-bottom: .1em;
    text-decoration: underline;
}

#home tr>:first-child {
    min-width: 500px;
}

#home img {
    float: left;
    border-radius: 5%;
    width: 200px;
    display: inline;
    margin-right: 10px;
}

li>p>a:hover {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 3s ease-in-out infinite;
    background-size: 400% 100%;
}

main>h3>a:hover {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 3s ease-in-out infinite;
    background-size: 400% 100%;
}

video {
    float: left;
    width: 100%;
    padding-right: 1rem;
    padding-bottom: 1rem;
}

.flow-img {
    padding-right: 1rem;
}

@media screen and (max-width: 700px) {
    main>h2>a {
        background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: rainbow_animation 3s ease-in-out infinite;
        background-size: 400% 100%;
    }

    sidebar {
        left: -28vw;
    }

    content {
        left: 0;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    label[for="toggle"] {
        cursor: pointer;
        font-size: 30px;
        margin-left: 40px;
    }

    .burger {
        display: block;
        z-index: 1;
    }

    .footer-social {
        flex-direction: column;
        justify-content: flex-end;
        font-size: 2rem;
    }

    .footer-social>a {
        margin: .3rem 0;
    }

    input#toggle:checked ~ sidebar {
        left: 0;
        z-index: 1;
    }

    input#toggle:checked ~ content {
        left: 25vw;
    }

    #home tr>:first-child {
        min-width: 220px;
    }

    #home img {
        width: 100px;
    }
}
