@import url('https://rsms.me/inter/inter.css');
@import url('https://rsms.me/inter/inter-display.css');

* {
    font-family: 'Inter', Helvetica, sans-serif !important;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums slashed-zero;
}

nav * {
    font-family: 'InterDisplay', Helvetica, sans-serif !important;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

h1 {
    font-size: 72px;
    font-weight: 800;
    margin-left: 0;
    margin-bottom: 18px;
    margin-top: 0;
    /*hyphens: auto;*/
    line-height: 1.0;
}

h2 {
    font-size: 36px;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 19px;
    font-weight: 600;

    margin-top: 2em;
    margin-bottom: 1em;
}

h1 + h2, h2 + h3 {
    margin-top: 1em;
}

p, section li, td, th, input {
    font-size: 19px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1em;
}

strong, b {
    font-weight: 800;
}

ul {
    list-style: disc;
    padding-left: 20px;
}

ol {
    list-style: decimal outside;
}

ul ol, ol ul, ul ul, ol ol {
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px !important;
}

section ul, section ol {
    margin-bottom: 2em;
}

section ul li {
    margin-bottom: 0.215em;
}

table {
    margin-bottom: 2em;
}

th {
    vertical-align: top;
    text-align: left;
}

th {
    font-weight: 800;
}

th img {
    width: 100%;
}

tr {
    border-bottom: 1px solid black;
}

td {
    border-right: 1px solid black;
    padding: 5px;
    min-width: 170px;
}

td:first-child {
    border-left: 1px solid black;
}

#logo {
    width: 46px;
    height: 24px;
    position: relative;
    top: 5px;
}

#wrap {
    width: 66%;
    margin: auto;

    margin-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

header {
    margin-bottom: 100px;
    position: fixed;
    margin-left: -250px;
}

section {
    clear: both;
}

section .video-key {
    float: right;
    margin: 0;
    margin-top: -4em;
    width: 50%;
}

h3 > a {
    text-decoration: none;
}

section#news ul {
    list-style-type: none;
}

section#news ul li {
    margin-bottom: 3em;
}

date {
    margin-left: 0.5em;
    float: right;
    font-size: 18px;
    opacity: 0.5;
}

code {
    display: block;
    white-space: pre;
    font-family: monospace !important;
    background: black;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.article li {
    max-width: 700px;
}

.article iframe {
    max-width: 700px;
    width: 100%;
}

.article > date {
    float: left;
    margin-top: -26px;
    margin-left: 0px;
    font-size: 12px;
}

a {
    color: black;

    text-decoration-thickness: 1px;
    text-decoration-color: black;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
}

a.active {
    color: black;
    text-decoration-color: black;
    font-weight: bold;
}

nav a.active {
    font-weight: 800;
}

nav a.active:active {
    font-weight: 800;
}

nav a:active {
    font-weight: inherit;
}

nav a:hover {
    text-decoration: underline;
}

a:hover {
    color: black;
    text-decoration-color: black;
}

a:visited {
    color: black;
}

.btt {
    display: none;
}

.thumbs img {
    width: 217px;
    margin-top: 0px;
    margin-bottom: 1em;
    margin-right: 1em;
}

.thumbs a:last-child img {
    margin-right: 0;
}

section h1 {
    max-width: 1180px;
    text-wrap: balance;
}

section img, section video {
    max-width: 100%;
    display: block;
}

section figure {
    margin-top: 1em;
    margin-bottom: 1em;
}

section figure img {
    padding: 2em;
    border: 1px solid black;
}

section figcaption {
    margin-top: 1em;
    font-style: italic;
    font-size: 19px;
}

section p {
    max-width: 700px;
}

nav {
    display: block;
    font-size: 25px;

    background-color: black;
    color: white;

    padding-top: 0px;
    padding-bottom: 0px;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;

    line-height: 1;
}

nav ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
}

nav li {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 25px;
    padding-bottom: 25px;
    display: inline-block;
}

nav a {
    color: white;
}

#nav li:nth-child(2) {
    padding-left: calc((100vw - 66vw) / 2 - 50px);
}

nav a:active, nav a.active, nav a:visited, nav a:hover {
    color: white !important;
}

nav.subnav {
    padding-left: calc((100vw - 66vw) / 2 + 28px);
    font-size: 19px;
}

nav.subnav li {
    padding-top: 0;
}

.button {
    display: flex;
    width: fit-content;
    text-decoration: none;
    color: black;
    background-color: white;
    border: 2px solid #000000;
    margin-top: 20px;
}

.button:visited {
    color: black;
}

#search input {
    background: black;
    color: white;
    border: 1px solid white;
    width: calc(66vw - 939px);
    min-width: 120px;

    background-image: url("icons/search-inactive.svg");
    background-repeat: no-repeat;
    background-size: 30px;
    background-position: 4px 4px;
    padding: 4px;
    padding-left: 40px;
    margin: 0 !important;
}

#icons {
    position: absolute;
    right: 0px;
    padding-right: 10px;
}

#icons a {
    font-size: 0;
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: text-bottom;
    margin-right: 15px;
    margin-top: 5px;

    background-repeat: no-repeat;
    background-size: 30px;
}

#icons #account {
    background-image: url("icons/user-inactive.svg");
}

#icons #cart {
    background-image: url("icons/bag-inactive.svg");
}


.btt {
    display: block;
    text-decoration: none;
}

.breadcrumb {
    margin-top: 190px;
    margin-bottom: 15px;
}

.wrap-key {
    width: 100%;
    margin: auto;

    margin-top: 0;
    padding-left: 0;
    padding-right: 0;

    position: relative;

    line-height: 0;
    white-space: nowrap;

    background: black;
}

.wrap-key > * {
    white-space: normal;
}

.wrap-key img {
    width: 100%;
}

.wrap-key h1 {
    font-size: calc(6vw);
    position: absolute;
    top: 42%;
    width: 100%;
    text-align: center;

    font-family: 'InterDisplay', Helvetica, sans-serif !important;
    font-weight: 800;
    color: white;

    text-shadow: 0px 5px 17px black;
}

.wrap-key h2 {
    margin-top: 0;
}

.key-left, .key-right {
    width: 50%;
    display: inline-block;
    vertical-align: top;
}

.key-left section, .key-right section {
    padding-left: 9vw;
    padding-right: 9vw;
    padding-top: 9vw;

    line-height: normal;
}

.key-black {
    background: black;
    color: white;
}

.key-black * {
    color: white;
    text-decoration-color: white;
}

.key-black a:visited {
    color: white;
    text-decoration-color: white;
}

.sep {
    padding-left: 5px;
    padding-right: 5px;
}

.notice {
    background: #ff0;
    color: black;
    font-size: 19px;
    padding: 35px;
    margin-left: -35px;
    margin-top: 35px;
}

.warning {
    background: #d500a9;
    color: black;
    font-size: 19px;
    padding: 35px;
    margin-left: -35px;
    margin-top: 35px;
}

.positive {
    background: #24ccff;
    color: black;
    font-size: 19px;
    padding: 35px;
    margin-left: -35px;
    margin-top: 35px;
}

.inverted {
    background: black;
    color: white;
    font-size: 19px;
    padding: 35px;
    margin-left: -35px;
    margin-top: 35px;
}

select, input, textarea, button {
    border: 1px solid black;
    border-radius: 0;
    background: white;
    font-size: 19px;
    padding: 6px;
    color: black;
    width: 430px;
}

button {
    background: black !important;
    color: white !important;
}

input[type=radio] {
    width: auto;
}

footer {
    float: left;
    clear: both;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    text-align: center;
}

footer p {
    font-size: 13px;
}

iframe.mastodon-embed {
    height: 550px;
}

.key-left iframe, .key-right iframe {
    width: 100%;
    height: 28vw;
}

/* special link icons */

a.download, a.electronics, a.manual, a.mechanical, a.sources, a.shop {
    background-repeat: no-repeat;
    background-size: 26px;
    padding-left: 36px;
    padding-bottom: 4px;
    line-height: 36px;
}


a.download {
    background-image: url(/documentation/download-icon-32x32.svg);
}

a.electronics {
    background-image: url(/documentation/electronic-sources-icon-32x32.svg);
}

a.manual {
    background-image: url(/documentation/manual-icon-32x32.svg);
}

a.mechanical {
    background-image: url(/documentation/mechanical-parts-icon-32x32.svg);
}

a.sources {
    background-image: url(/documentation/software-sources-icon-32x32.svg);
}

a.shop {
    background-image: url(/documentation/shop-icon-32x32.svg);
}

a.bag {
    background-image: url(/icons/bag-icon-black.svg);
    background-repeat: no-repeat;
    background-size: 28px;
    background-position: 10px 7px;
    padding: 10px 10px 10px 45px;
}

@media (max-width: 1800px) {
    .key-left section, .key-right section {
        padding-left: 5vw;
        padding-right: 5vw;
        padding-top: 5vw;
    }
}

@media (max-width: 1450px) {
    #wrap {
        width: 90%;
    }

    #nav li:nth-child(2) {
        padding-left: calc((100vw - 90vw) / 2 - 50px);
    }

    nav.subnav {
        padding-left: calc((100vw - 90vw) / 2 + 28px);
    }

    #search, #icons {
        display: none;
    }

    .key-left section, .key-right section {
        padding-left: 3vw;
        padding-right: 3vw;
        padding-top: 3vw;

        line-height: normal;
    }

    .key-left h2, .key-right h2 {
        font-size: 25px;
    }
}

@media (max-width: 1000px) {
    #wrap {
        width: 100%;
        padding-left: 25px;
        padding-right: 25px;
    }

    nav li {
        display: block;
        padding-bottom: 0;
    }

    #nav li:nth-child(2) {
        padding-left: 25px;
    }

    #nav {
        padding-bottom: 25px;
    }

    nav.subnav {
        background-color: white;
        color: black;
        padding-left: 0;
    }

    nav.subnav a {
        color: black !important;
    }

    nav.subnav a:visited {
        color: black !important;
    }

    nav.subnav li {
        display: inline-block;
        padding-top: 25px;
    }

    footer p {
        font-size: 9px;
    }

    .key-left section, .key-right section {
        padding-left: 50px;
        padding-right: 50px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .key-left, .key-right {
        width: 100%;
        display: block;
    }

    .key-left iframe, .key-right iframe {
        height: 56vw;
    }
}
