:root {
    --text-color: #333;
    --text-color-selected: #000;
    --secondary-text-color: #666;

    --background-color: #fff;
    --secondary-background-color: #fafafa;
    --tertiary-background-color: #eee;

    --text-color-inverted: #eee;
    --secondary-text-color-inverted: #bbb;

    --background-color-inverted: #000;
    --secondary-background-color-inverted: #222;
    --tertiary-background-color-inverted: #333;

    --emphasis-color: red;

    --transparent-color: rgba(0, 0, 0, 0.1);
    --transparent-border: rgba(0, 0, 0, 0.2);

    --header-height: 200px;
    --footer-height: 40px;

    --text-smaller: 0.9em;
    --text-small: 1em;
    --text-medium: 1.2em;
    --text-big: 1.6em;
    --text-huge: 3em;

    --spacing-small: 6px;
    --spacing-medium: 12px;
    --spacing-big: 24px;
    --spacing-huge: 48px;

    --border-radius: 2px;
    --border-radius-big: 4px;
    --border-radius-huge: 8px;
}

@media (max-width: 1000px) {
    :root {
        --text-huge: 1.7em;
        --text-big: 1.2em;
        --header-height: 60px;
    }
}

html, body {
    margin: 0;
    padding: 0;

    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);

    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: white;
}

header .logo {
    width: 300px;
}

.page-scroll {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
}

article {
    display: flex;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
}

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

.invisible {
    visibility: hidden !important;
}

.hidden {
    display: none !important;
}

.fake-centered {
    padding-bottom: calc((var(--header-height) - var(--footer-height)) / 1.5);
}

.spawn-right {
    animation: spawnRight 0.5s ease-in-out forwards;
}

.spawn-left {
    animation: spawnLeft 0.5s ease-in-out forwards;
}

article.fake-centered {
    height: calc(100vh - var(--header-height) - (var(--header-height)) / 1.5);
    padding-bottom: calc((var(--header-height)) / 1.5);
}

article.black-card {
    height: calc(100vh - var(--header-height));
    padding-bottom: 0;
}

article.reverse {
    flex-direction: row-reverse;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h1 {
    font-size: var(--text-huge);
    padding-bottom: var(--spacing-big);
}

p {
    font-size: var(--text-medium);
    font-weight: normal;
    margin-bottom: var(--spacing-medium);
}

.tagline {
    font-size: var(--text-big);
    color: var(--secondary-text-color);
    padding-bottom: var(--spacing-big);
}

a {
    text-decoration: none;
    color: var(--secondary-text-color);
}
article a {
    font-weight: bold;
}
a:hover, a.active {
    color: var(--text-color);
    text-decoration: underline;
}

.black-card a {
    color: var(--secondary-text-color-inverted);
}
.black-card a:hover {
    color: var(--text-color-inverted);
}

hr {
    border: none;
    border-top: 1px solid var(--text-color-inverted);
}

.social {
    display: flex;
    gap: 14px;
    margin-top: var(--spacing-big);
}

.social a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-small);
}

.social img {
    display: flex;
    height: 22px;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content>div {
    width: 75%;
}


.flex-50 {
    flex-basis: 50%;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.self-start {
    justify-self: start;
    align-self: flex-start;
}

.width-75 {
    width: 75%;
}

.products-browser-nav {
    text-align: center;
}

ul {
    list-style-image: url("/images/bullet.webp");
}

nav ul, .products-browser-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.products-browser-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.products-browser-nav li {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    white-space: nowrap;
}

a.selected {
    color: var(--text-color-selected);
    text-decoration: underline;
}

.black-card a.selected {
    color: white;
}

.black-card {
    background-color: var(--background-color-inverted);
    color: var(--text-color-inverted);
}
.black-card .tagline {
    color: var(--secondary-text-color-inverted);
}

.content>.products-browser {
    width: calc(100% - var(--spacing-huge) * 3);

    display: flex;
    flex-direction: column;

    gap: var(--spacing-big);
}

.products-category-browser {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-big);
}

.products-list div {
    width: 15vw;
    max-height: 30vh;
}

.products-category-nav {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 20px;
}

.products-category-nav button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    max-height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-br br {
    display: none;
}

.product {
    border-radius: 8px;
    box-shadow: 0px 0px 2px var(--transparent-border);

    background-color: white;

    aspect-ratio: 1;
    max-height: 30vh;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    gap: var(--spacing-big);
}

.black-card .product {
    background-color: var(--secondary-background-color-inverted);
    color: var(--text-color-inverted);
}

.product span {
    font-size: var(--text-small);
    margin: 0;
}

.product img {
    max-height: calc(100% - 100px);
    max-width: calc(100% - 8px);
    border-radius: 4px;
}

.card {
    border-radius: 8px;
    box-shadow: 0px 0px 2px var(--transparent-border);

    background-color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-screen {
    display: none;
}

.fit-content {
    width: fit-content;
}

iframe {
    border: none;
    height: 300px;
    width: 100%;
}

.popup-content {
    display: flex;
    flex-direction: row;
}

.popup-description ul.specs li {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 20px;
    margin-bottom: 4px;
}

@media (max-height: 900px) {
    :root {
        --header-height: 100px;
    }
}

@media (max-width: 1000px) {
    article, article.reverse, #contact {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-big);
    }

    #contact {
        padding-bottom: 0;
    }

    .products-browser-nav li {
        padding-top: 0;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }

    article, article.fake-centered, article.black-card {
        height: auto;
        padding-bottom: var(--spacing-big);
        padding-top: var(--spacing-huge);
        gap: var(--spacing-big);
    }

    article:not(.fake-centered) {
        padding-top: var(--spacing-huge);
    }

    div.fake-centered {
        padding-bottom: 0;
    }

    .content {
        max-width: 100vw;
    }

    .small-screen {
        display: inline-block;
    }

    .social {
        align-items: center;
        justify-content: center;
    }

    h1, .tagline {
        text-align: center;
    }

    .content>div:not(.fit-content) {
        width: 85%;
    }
    .partners-logo img {
        max-width: 33%;
    }

    ul {
        padding-left: 30px;
    }


    header {
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }

    header .logo {
        max-width: 80%;
    }

    header a {
        display: flex;
        align-items: center;
    }

    header button {
        background: none;
        border: none;
        border-radius: var(--border-radius-big);
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px;
        width: 50px;
    }

    .popup-content {
        flex-direction: column;
    }

    .resource-list {
        justify-content: center;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        background-color: var(--background-color);
        left: 0;
        right: 0;
        bottom: 0;
        justify-content: end;
        display: flex;
        padding: 10px;
        z-index: 100;
        font-size: var(--text-big);
    }

    .mobile-hidden {
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: var(--spacing-big);
        align-items: end;
        padding-right: var(--spacing-medium);
        padding-bottom: var(--spacing-medium);
    }

    .content>.products-browser {
        width: 90%;
    }

    .content>.products-browser {
        flex-direction: column-reverse;
    }

    .content>.products-browser {
        width: 100%;
    }

    .products-category-nav {
        display: block;
    }

    .products-list {
        gap: var(--spacing-medium);
    }

    .products-list div {
        width: calc(60vw);
        max-width: 300px;
        font-size: var(--text-smaller);
    }

    .content>div, .width-75 {
        width: auto;
    }

    .contact {
        width: 100%;
    }

    .products-list div:nth-child(1), .products-list div:nth-child(2), .products-list div:nth-child(3), .products-list div:nth-child(4) {
        animation-delay: 0.1s !important;
    }
}