body {
    background: #000;
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    line-height: 1.5;
}

ol, ul {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
}

button {
    color: inherit;
    cursor: pointer;
    font: inherit;
    margin: 0;
    overflow: visible;
    text-transform: none;
    padding: 0;
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a.button {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0.375rem;
    border-width: 1px;
    color: #fff;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    display: inline-block;
}

a.button:hover, a.button:focus {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

details.dropdown > summary {
    display: inline-block;
    cursor: pointer;
}

details.dropdown > summary:after {
    padding-left: 5px;
    content: '\25BA';
}

details.dropdown[open] > summary:after {
    transform: rotate(90deg);
    display: inline-block;
}

.hide {
    display: none;
}

.breadcrumbs {
    display: block;
    margin: 5px;
}

.breadcrumbs > ol {
    display: flex;
}

.breadcrumb {
    list-style: none;
}

.breadcrumb + .breadcrumb:before {
    list-style: none;
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    content: '/';
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 5px;
}

.header .site-name {
    font-size: 2rem;
}

.header .site-name a {
    text-decoration: none;
}

.header .genders.big {
    display: none;
}

@media (min-width: 679px) {
    .header .genders.small {
        display: none;
    }

    .header .genders.big {
        display: flex;
        align-items: stretch;
    }
}

.header .genders.small details {
    position: relative;
}

.header .genders.small .genders-dropdown {
    list-style: none;
    position: absolute;
    padding: 0 10px 10px;
    left: -10px;
    background: #000;
}

.header .genders.big a {
    text-decoration: none;
    justify-self: auto;
    padding: 5px 10px;
}

.header .genders.big a:hover, .header .genders.big a:focus {
    background-color: rgba(255, 255, 255, .12);
}

.header .genders.big a.active {
    background-color: rgba(255, 255, 255, .12);
    color: #ff0000;
}

.header .genders.big .divider {
    border: 1px solid #808080;
    align-self: stretch;
}

.header .locales {
    margin-left: auto;
}

.header .locales summary {
    color: transparent;
    text-shadow: 0 0 0 #fff;
}

.header .locales .locales-dropdown {
    list-style: none;
    position: absolute;
    background: #000;
    padding: 0 5px 5px;
}

@media (max-width: 445px) {
    .header .locales details {
        text-align: right;
    }

    .header .locales summary span {
        display: none;
    }

    .header .locales summary:after {
        content: '\1F310';
    }

    .header .locales details.dropdown[open] > summary::after {
        transform: none;
    }

    .header .locales .locales-dropdown {
        right: 0;
    }
}

.models {
    display: flex;
    flex-wrap: wrap;
}

.models .model {
    position: relative;
    padding: 10px;
}

.models .model-preview {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    width: 30vw;
    height: 30vw;
    max-width: 224px;
    max-height: 224px;
}

@media (max-width: 880px) {
    .models .model-preview {
        width: 23vw;
        height: 23vw;
    }
}

@media (max-width: 700px) {
    /* todo scroll in chrome in index */
    .index-wrapper .models {
        flex-wrap: unset;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        scroll-behavior: smooth;
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }

    @media (hover: hover) {
        .index-wrapper .models::-webkit-scrollbar {
            height: 5px;
        }

        .index-wrapper .models::-webkit-scrollbar-track {
            background: #333;
        }

        .index-wrapper .models::-webkit-scrollbar-thumb {
            background: #888;
        }

        .index-wrapper .models::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
    }

    .index-wrapper .models .model {
        flex-basis: 15em;
        scroll-snap-align: start;
    }

    .listing .models, .similar-models .models {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr));
    }

    .models .model-preview {
        width: 30vw;
        height: 30vw;
    }
}

.devel .models .model-preview,
.show-disclaimer .models .model-preview,
.restricted .models .model-preview {
    filter: blur(15px);
}

.restricted-warning {
    font-size: 1.2em;
}

.models .model-link {
    display: block;
    width: 100%;
}

.models .model-name {
    position: absolute;
    left: 50%;
    top: 12px;
    color: white;
    transform: translate(-50%, 0);
    text-align: center;
}

.footer {
    border-top: 1px solid white;
    display: flex;
    gap: 50px;
    padding: 0 5px;
}

.footer .footer-right {
    text-align: right;
}

.footer-disclaimer .rta {
    background: url("/assets/RTA.gif") no-repeat left top;
    background-size: 100% 100%;
    width: 88px;
    height: 31px;
    display: inline-block;
}

.description .text.collapse {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description .expand {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        line-height: 1.2;
    }

    .about {
        text-align: justify;
    }

    .footer-disclaimer {
        text-align: justify;
    }

    .footer-rta {
        text-align: right;
    }
}
