:root {
    --active-highlight-color: #87abf1;
    --body-bg-color: #c8c8c8;
    --content-bg-color: #fff;
    --kleki-color: #2a64f8;
    --kleki-line-color: #2a64f8;
    --line-color: #e1e1e1;

    --text-color: #000;
}

body, html {
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

body {
    background: var(--body-bg-color);
    margin: 0;
    color: var(--text-color);
    font-family: system-ui, sans-serif;
    font-size: 17px;
    line-height: 22px;
}

div, a, span, p {
    box-sizing: border-box;
}

a:link, a:not([href]) {
    color: var(--kleki-color);
    text-decoration: underline;
    cursor: pointer;
}

a:visited {
    color: #536184;
    text-decoration: underline;
}

a:hover, a:not([href]):hover {
    color: var(--text-color);
    text-decoration: underline;
}

.content {
    max-width: 880px;
    background: var(--content-bg-color);
    margin-left: auto;
    margin-right: auto;
    padding: 20px 40px;
    overflow: hidden;

    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content-content {
    flex: 1 auto;
}

.iframe-overlay {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0) 30px);
    pointer-events: none;
    display: none;
    transition: opacity 100ms ease-out;
    opacity: 0;
}

li {
    margin-left: 0;
}

ul {
    margin-top: 0;
    padding-top: 0;
}

.aboveList {
    margin-bottom: 4px;
}

.w-290 {
    width: 290px;
}


/* --- header ---*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
}

.header-logo img {
    height: 30px;
}

.header-links {
    display: flex;
}

.nav-link {
    color: var(--text-color) !important;
    display: block;
    padding: 10px 5px;
    margin: 0 5px;
    text-decoration: none !important;
    transition: box-shadow 200ms ease-out;
    box-shadow: inset 0 -3px transparent;
    text-align: center;
    vertical-align: center;
}

.nav-link:last-child {
    margin-right: 0;
}

.nav-link:hover {
    box-shadow: inset 0 -3px var(--kleki-line-color);
}

.header-active-link {
    text-decoration: none;
    box-shadow: inset 0 -3px var(--kleki-line-color) !important;
}


/* --- footer ---*/
.footer {

    margin: 40px -40px -20px -40px;
    padding: 40px;

    display: flex;
    justify-content: space-between;
    background: #f1f1f1;
}

.footer > div {
    flex-grow: 1;
    flex-basis: 0;
}

.footer-col {
    line-height: 24px;
}

.footer-bitbof {
    display: block;
    width: 100px;
    height: 40px;
    background-image: url(img/bybitbof.min.png?v=2026-03-13);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 5px;
    margin-right: auto;
    margin-left: auto;
}


/* --- home ---*/
.home-intro {
    padding: 40px 40px;
    margin: 0 -40px 20px -40px;
    text-align: center;
    font-size: 27px;
    line-height: 23px;
    background: linear-gradient(45deg, var(--kleki-color), #bd32ff);
    box-shadow: 0 -1px #1b4ad5;
}

.home-intro a {
    text-decoration: none;
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 18px;
    color: var(--kleki-color);
    display: block;
}
.home-intro a:hover {
    color: #5282ff;
}

.home-intro-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.home-tagline {
    display: inline-block;
    padding: 6px 6px;

    color: #fff;
    margin-bottom: 12px;
}

@keyframes iframe-bg-fadein {
    from {
        background: #fff;
    }
    to {
        background: #000;
    }
}

.home-intro > iframe {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;

    animation-duration: 1s;
    animation-name: iframe-bg-fadein;
    animation-timing-function: ease-out;

    box-shadow: 4px 4px 11px rgba(0,0,0,0.2);
}

.home-row {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.home-row > div {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
}

.home-row h3 {
    margin: 10px 0;
}

.home-row > div > img {
    width: 200px;
    height: 150px;
    margin-bottom: 10px;
}

.home-bottom {
    text-align: center;
    border-top: 1px solid var(--line-color);
    padding-top: 40px;
}


/* --- gallery ---*/
#gallery-images {
}

.gallery-im {
    width: 100%;
    display: block;
    background: rgba(0,0,0,0.1);
    margin-bottom: 2px;
}


/* --- about ---*/
.about-wrapper {
    display:flex;
    align-items: flex-start;
}
.about-wrapper>img {
    align-self: flex-start;
    margin-left: 10px;
    flex-shrink: 0;
}
.say-kleki {
    cursor: pointer;
}
#contact:target {
    background: yellow;
}

/* --- help ---*/
.key {
    background: #eee;
    padding: 0 4px;
    border-radius: 3px;
    box-shadow: 1px 1px #ccc;
    color: rgb(55, 55, 55);
    min-width: 13px;
    display: inline-block;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.6em;
    font-family: monospace;
}

.help-block {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.help-block > img {
    align-self: flex-start;
    flex-shrink: 0;
    margin-left: 10px;
}

.help-shortcut {
    display: flex;
}

.help-shortcut>div:first-child {
    width: 160px;
    padding-right: 10px;
}

.help-shortcut>div:last-child {
    line-height: 1.6em;
}

.help-shortcut-title {
    display: inline-block;
    width: 160px;
}

.help-ul {
    list-style-type: circle;
    padding-inline-start: 20px;
}

.help-ul > li {
    border-bottom: 1px solid var(--line-color);
    /*width: 500px;*/
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.help-ul > li:nth-child(even) {
    background: #f9f9f9;
}

#help-shortcuts {
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

#help-shortcuts.help-shortcuts--all {
    max-height: unset;
}

#help-shortcuts:not(.help-shortcuts--all) .help-shortcuts__fade {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 155px;
    background: linear-gradient(0deg, white, rgba(255, 255, 255, 0));
    pointer-events: none;
}

#help-show-all-shortcuts-button {
    background: var(--kleki-color);
    color: white;
    padding: 7px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}


/* --- donate ---*/

.donate-header {
    display: inline-block;
    line-height: 1em;
}

.donate-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: -10px;
    margin-left: -10px;
}

.donate-buttons > * {
    margin-top: 10px;
    margin-left: 10px;
}

.donate-paypal {
    display: inline-block;
    background: #0076bf;
    color: white !important;
    text-decoration: none !important;
    padding: 20px;
    font-weight: bold;

    background-image: url(img/paypal-logo.svg?v=2026-03-13);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 55px;
}

.donate-paypal:hover {
    opacity: 0.85;
}

.donate-patreon {
    display: inline-block;
    background: #FF424D;
    color: white !important;
    text-decoration: none !important;
    padding: 20px;
    font-weight: bold;

    background-image: url(img/patreon-logo.svg?v=2026-03-13);
    background-size: 34px 34px;
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 58px;
}

.donate-patreon:hover {
    opacity: 0.85;
}

.donate-reward {
    display: flex;
    margin-top: 20px;
}

.donate-progress {
    height: 10px;
    background: #aaa;
    width: 200px;
    margin-bottom: 10px;
}
@keyframes donate-progress-bar {
    0% { width: 0; }
    100% { }
}
.donate-progress > div {
    height: 100%;
    background: green;
    opacity: 0.8;
    animation: donate-progress-bar 2s ease;
}

/* --- changelog ---*/
.changelog-header {
    display: flex;
    align-items: center;
}
.changelog-header h1 {
    margin-right: 15px;
}
.changelog-header a {
    color: var(--text-color) !important;
    display: block;
    padding: 10px 5px;
    margin-left: 5px;
    text-decoration: none !important;
    transition: box-shadow 200ms ease-out;
    box-shadow: inset 0 -3px transparent;
    text-align: center;
    vertical-align: center;
}
.changelog-header a:hover {
    box-shadow: inset 0 -3px var(--kleki-color);
}
.changelog-header__active-link {
    text-decoration: none;
    box-shadow: inset 0 -3px var(--kleki-color) !important;
}
.changelog {
    word-wrap: break-word;
}
.changelog h3 {
    color: #000;
    margin-bottom: 0.5em;
    box-shadow: -3px 0 var(--kleki-color);
    padding-left: 6px;
    margin-left: -6px;
}
.changelog-date {
    color: var(--text-color);
    font-weight: lighter;
}
.changelog-release {
    margin-bottom: 20px;
}
.changelog ul {
    padding-inline-start: 1em;
}
.changelog-thank-you {
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--kleki-color);
    font-weight: bold;
}
.changelog-img {
    max-width: 100%;
    box-shadow: 0 0 0 1px #aaa;
}
.changelog-caption {
    margin-bottom: 20px;
    text-align: center;
}
.changelog .blog-link {
    font-weight: initial;
    box-shadow: 0 0 0 1px var(--kleki-color);
    border-radius: 4px;
    padding: 4px;
}




/* --- utils ---*/
.mt0 {
    margin-top: 0;
}

.mb0 {
    margin-bottom: 0;
}

.pb0 {
    padding-bottom: 0;
}

.bb0 {
    border-bottom: none;
}



/* --- mobile --- */

@media (max-width: 650px) {
    .nav-link.hide-in-iframe {
        display: none;
    }
}

@media (max-width: 590px) {


    body {
        font-size: 15px;
    }

    .content {
        padding: 15px;
    }

    .header-logo img {
        height: 20px;
    }

    .nav-link {
        margin: 0;
    }

    .home-row {
        display: block;
        margin-bottom: 0;
    }

    .home-row>div {
        margin-bottom: 40px;
        padding: 0;
    }

    .footer {
        flex-wrap: wrap;
    }

    .footer > div {
        min-width: 33%;

    }

    .footer-col {
        margin-bottom: 20px;
    }

    .about-wrapper {
        display:block;
    }

    .about-wrapper>img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
        height: 150px;
    }

    .donate-reward {
        flex-wrap: wrap;
    }
    .donate-reward img {
        margin-top: 10px;
    }


}

@media (max-width: 750px) {
    .help-block {
        display: block;
    }

    .help-shortcut>div:first-child {
        width: 110px !important;
        min-width: 110px !important;
    }

    .help-block>img {
        display: block;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    :root {
        --body-bg-color: #222;
        --content-bg-color: #2c2c2c;
        --text-color: #ccc;
        --line-color: #646464;
        --kleki-line-color: #4176ff;
    }

    .dark-invert {
        filter: invert();
    }

    .dark-invert-hue {
        filter: invert() hue-rotate(180deg);
    }

    .footer {
        background: #333;
    }

    a:link, a:not([href]) {
        color: #6eb2ff;
        text-decoration: underline;
        cursor: pointer;
    }

    a:visited {
        color: #8591b0;
        text-decoration: underline;
    }

    .help-ul > li:nth-child(even) {
        background: #333;
    }

    #help-shortcuts:not(.help-shortcuts--all) .help-shortcuts__fade {
        background: linear-gradient(0deg, #2c2c2c, #2c2c2c00);
    }

    .donate-progress {
        background: #fff;
    }

    .footer-bitbof {
        background-image: url(img/bybitbof-dark.png?v=2026-03-13);
    }

    .home-intro {
        box-shadow: 0 -1px var(--content-bg-color);
    }

    .home-intro a {
        text-decoration: none;
        color: var(--kleki-color);
    }
    .home-intro a:hover {
        color: #5282ff;
    }

    .iframe-overlay {
        display: none !important;
    }

    .home-intro > iframe {
        animation-name: none;
    }

    .changelog h3 {
        color: #fff;
    }
}