.banner-wrapper {
    aspect-ratio: 320 / 560;
    margin-bottom: 5em;
}

.banner-title {
    max-width: 40em;
    left: 0;
    transform: translateY(-50%);
    top: 90%;
}

.banner-title>h1 {
    text-wrap: auto;
    word-break: break-word;
}

.banner-title>h1>span {
    display: block;
    text-wrap: inherit;
    word-break: inherit;
}

.banner-media {
    padding-bottom: clamp(100px, 30vw, 210px);
}

.img-wrapper {
    display: flex;
    height: 100%;
    overflow: hidden;
    position: relative;
    --_cover-angle: 23deg;
}

.img-wrapper>img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1921 / 685;
}

.img-wrapper>img.smaller {
    width: 70%;
    margin-left: auto;
}

.img-wrapper>img.mb {
    display: block;
}

.img-wrapper>img.pc {
    display: none;
}

.img-wrapper>.cover {
    background-color: white;
    position: absolute;
    width: 100%;
    height: 200%;
    transform: rotate(var(--_cover-angle));
}

.img-wrapper>.line {
    background-color: white;
    position: absolute;
    width: 2%;
    height: 200%;
    transform: rotate(var(--_cover-angle));
}

.cover:nth-child(3) {
    top: -100%;
    left: -68%;
}

.line:nth-child(4) {
    top: -50%;
    left: 43%;
}

.line:nth-child(5) {
    top: -70%;
    left: 95%;
}

.cover:nth-child(6) {
    bottom: -100%;
    right: -97%;
}

/* SECTIONS */

section {
    font-size: 1rem;
    margin-bottom: 5em;
}

.section-title {
    width: fit-content;
    margin: 0 auto;
    font-size: 2em;
}

.underlined {
    --_underline-gap: 0.5em;
    position: relative;
    margin-bottom: var(--_underline-gap);
}

.underlined::after {
    content: "";
    border-bottom: 3px solid var(--company-color3);

    position: absolute;
    bottom: calc(var(--_underline-gap) * -1);
    left: 25%;
    right: 25%;
}

/*  */

section,
.top-text,
.catalog-searchbar-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.75s ease-in-out, visibility 0.75s ease-in-out;
}

section.hide,
.top-text.hide,
.catalog-searchbar-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

/* SECTIONS */

.looking-ahead {
    margin-top: 3em;
}

.top-text,
.bottom-text,
.looking-ahead-text {
    color: #626262;

    padding: 2.5rem calc(var(--main-padding) * 2);
    margin: auto;
    max-width: 70ch;
    text-align: center;
    text-align: start;
}

.looking-ahead-button {
    width: fit-content;
    display: block;
    margin: 1em auto;

    font-size: 1.2em;
    color: black;
    border-bottom: 2px solid black;
    text-decoration: none;
}

.looking-ahead-button:is(:hover, :focus) {
    color: var(--company-color3);
    border-color: var(--company-color3);
}

.greenol {
    padding: 2.5rem calc(var(--main-padding)* 2);
    margin: auto;
    max-width: 70ch;
}

.greenol>h2 {
    margin-left: 0;
}

.greenol-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5em;
}

.greenol-text {
    color: #606060;
    text-align: start;
}

.greenol-data-list {
    margin: 0;
    padding: 0;
    color: #757b80;
    text-align: center;
}

/* CATALOG */

.catalog {
    margin-top: 4em;
}

.catalog-title-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 1em;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #9c9ea1;
    z-index: 1;
}

.catalog-title {
    margin: 1em auto;
    max-width: 80%;
    font-size: 2em;
    text-align: center;
}

.catalog-options {
    --_catalog-margin: 1em;

    padding: 0;
    margin: var(--_catalog-margin) auto;
    display: flex;
    gap: 1.5em;
}

.catalog-options>li {
    cursor: pointer;
    position: relative;
}

.catalog-options>li.selected::after {
    --_underline-size: 8px;
    content: "";
    position: absolute;
    left: calc(var(--_underline-size) * -1);
    right: calc(var(--_underline-size) * -1);
    bottom: calc(calc(var(--_catalog-margin) * -1) - calc(var(--_underline-size) / 2));
    height: var(--_underline-size);
    background-color: var(--company-color4);
}

.catalog-searchbar-wrapper {
    width: 34ch;
    min-width: 33ch;
    transform: translateY(0%);
}

.catalog-searchbar-wrapper::before {
    --_icon-size: 1.15em;
    content: "";
    background-image: url(../1171-19-10-home-search.html);
    background-repeat: no-repeat;
    width: var(--_icon-size);
    height: var(--_icon-size);
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-40%);
    pointer-events: none;
}

#catalog-searchbar-input {
    width: 100%;
    font-size: 1em;
    padding: 0.5em 2em;
    padding-left: 2.75em;
    border: none;
    border-bottom: 2px solid var(--company-color1);
    text-overflow: ellipsis;
}

#catalog-searchbar-input:is(:hover, :focus) {
    border-color: var(--company-color3);
}

.chemical-list {
    margin: 0;
    padding: 0;
    font-size: 0.9em;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.1s;

    overflow-y: auto;
    overflow-x: hidden;
    max-height: 13.5ch;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;

    background-color: #f2f2f2;
    color: #a7a9ac;
}

#catalog-chemical-list {
    max-height: 20ch;
}

#chemical-result-loading>span::after {
    content: " ";
    animation: dots 1.5s steps(3) infinite;
}

.chemical-list>li>* {
    display: block;
    width: 100%;
    color: inherit;
    text-align: start;
    font-weight: 400;
    font-size: 0.9em;
    padding: 0.35em 2.5em;
}

#catalog-searchbar-input:focus+.chemical-list,
.chemical-list:is(:hover, :focus-within) {
    opacity: 1;
    visibility: visible;
}

.catalog-wrapper {
    position: relative;
}

/* LOADING SCREEN */

.catalog-loading-screen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;

    background-color: var(--primary-background-color);
}

/* LOADING SCREEN */

.catalog-grid {
    --_card-width: 240px;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--_card-width));
    justify-content: center;
    justify-items: center;
    gap: 1em;

    margin: var(--main-padding) calc(var(--main-padding) * 2);
    margin-bottom: calc(var(--main-padding) * 2);
    height: 80vh;
    overflow: auto;

    border-bottom: 1px solid #9c9ea1;
}

div.no-match {
    font-size: 2em;
    text-align: center;
    margin-top: 70%;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: var(--_card-width);
    width: 20%;
    aspect-ratio: 1 / 1;
    padding-bottom: 20px;

    transition: transform 0.1s ease-out;
    position: relative;
}

.catalog-card:is(:hover, :focus) {
    transform: scale(0.99);
}

.catalog-card>img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.catalog-card>h3 {
    max-width: 90%;
    margin: 0.5em 0;
    margin-right: auto;
    margin-bottom: 0;

    font-size: 1.25em;
    font-family: var(--bold-font);

    text-align: start;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.catalog-card>span {
    max-width: 90%;
    margin: 0;
    margin-right: auto;

    color: #9c9ea1;
    font-size: 0.9em;
    font-family: var(--bold-font);

    text-align: start;
}

.catalog-card>a,
.catalog-card>button {
    max-width: 90%;
    margin: 0 20px;
    font-size: 1.25em;
    color: var(--company-color1);
    text-align: center;
    margin-top: 2ch;
    margin-left: auto;

    transition: color 0.1s ease-out;
    display: flex;
    align-items: stretch;
    gap: 0.25em;
}

.catalog-card>a:is(:hover, :focus),
.catalog-card>button:is(:hover, :focus) {
    color: var(--company-color3);
}

.catalog-card>a::after,
.catalog-card>button::after {
    content: ">";
    font-family: var(--bold-font);
}

/* CHEMICAL DATA */

.chemical-data {
    padding: 0 1em;
    padding-top: 4.5em;

    display: flex;
    flex-direction: column;
    gap: 1em;

    position: relative;
}

.chemical-data-go-back {
    width: fit-content;
    font-size: 1.2em;
    color: black;
    border-bottom: 1px solid var(--company-color4);
    text-decoration: none;

    position: absolute;
    top: 1em;
    right: 1em;
}

.chemical-data-list {}

.chemical-data-list-ul {
    padding: 0;
    margin: 0;
    height: 100%;
    border: 2px solid #e7e9ed;

    display: flex;
    overflow-x: auto;
}

.chemical-data-list-ul>li {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 1em;

    background-color: white;
    cursor: pointer;
}

.chemical-data-list-ul>li:not(:last-child) {
    border-bottom: 2px solid #e7e9ed;
}

.chemical-data-list-ul>li:is(:hover, :focus) {
    background-color: #f2f2f2;
}

.chemical-data-list-ul>li.this {
    background-color: #e7e9ed;
    pointer-events: none;
}

.chemical-data-list-ul>li>h4 {
    margin: 0;
}

.chemical-data-list-ul>li>span {
    color: #757b80;
}

.chemical-data-list-ul>li>.show {
    display: none;
}

.chemical-data-list-ul>li.this>span.show {
    display: block;
}

.chemical-data-body {}

.body-nav {
    display: flex;
    flex-direction: column;
}

.body-nav>.wiki {
    display: none;
}

.body-nav>button,
.body-nav>a {
    padding: 0.5em;
    width: 100%;
    min-width: 15ch;
    text-align: center;
    border: 2px solid #e7e9ed;
    color: black;
    font-size: 1em;
}

.body-nav>button.selected,
.body-nav>a.selected {
    min-width: 20ch;
    background-color: #e7e9ed;
}

.body-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in, visibility 0.1s ease-in;
}

.body-content-wrapper.selected {
    opacity: 1;
    visibility: visible;
}

.body-content-wrapper.overview {}

.body-content-wrapper.properties {}

.body-content {}

.properties>.body-content {
    display: flex;
    flex-direction: column;
}

.content-properties {
    display: flex;
    flex-direction: column;
}

.properties-group {
    font-size: 0.9rem;
    color: #757b80;
    margin-bottom: 0.5em;

    display: flex;
    flex-direction: column;
    gap: 0.5em;

    align-items: center;
    text-align: center;
}

.properties-group:not(:last-child) {
    padding-bottom: 0.5em;
    border-bottom: 1px solid #dfe1e5;
}

.properties-group>h4 {
    font-size: 1em;
    margin: 0;
    width: 30%;
    max-width: 300px;
}

.properties-group>p {
    margin: 0;
    flex: 1;

    text-wrap: wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.body-content:not(:last-child) {
    border-bottom: 1px solid #dfe1e5;
}

.body-content>h3 {
    font-size: 1.25em;
}

.characteristics-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.content-characteristics {
    font-size: 0.9rem;
    color: #757b80;
}

.content-characteristics:last-child {
    flex: 1;
}

.content-characteristics>h4 {
    font-size: 1em;
    margin: 0;
}

.content-characteristics>p {
    margin-top: 0;
    margin-bottom: 1em;
}

.content-characteristics>span {}

.chemical-data-form {
    margin: auto;
    width: 100%;
    max-width: 500px;

    padding: 1em;
    height: fit-content;
    border: 2px solid #e7e9ed;
}

.chemical-data-form>h3 {
    font-size: 1.25em;
    margin: 0;
    margin-bottom: 1em;
}

.form-wrapper {}

.input-wrapper {
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.input-label {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.input-label input,
.input-label textarea {
    font-size: 1em;
}

.input-label input:user-invalid,
.input-label textarea:user-invalid {
    border: 1px solid var(--red-font-color) !important;
}

.input-label:has(input:user-invalid)::after,
.input-label:has(textarea:user-invalid)::after {
    color: var(--red-font-color);
    font-size: 0.9em;
    text-wrap: wrap;
    word-wrap: break-word;
    word-break: break-word;
}

.input-label:has(input[type="text"]:user-invalid)::after {
    content: "\1F5D9\0020Please don't leave this field empty";
}

.input-label:has(input[type="email"]:user-invalid)::after {
    content: "\1F5D9\0020Please enter a valid Email Address";
}

.input-label:has(input[name="phone-input"]:user-invalid)::after {
    content: "\1F5D9\0020Please enter a valid Phone number";
}

.input-label textarea {
    height: 10ch;
}

.input-label input:is([type="text"], [type="email"]),
.input-label textarea {
    border: 0;
    outline: 0;
    border: 1px solid transparent;
    border-bottom: 2px solid #a7a9ac;
    padding: 0.5em 1em;

    transition: border 0.1s ease-in;
}

.input-label input:is([type="text"], [type="email"]):is(:hover, :focus),
.input-label textarea:is(:hover, :focus) {
    border: 1px solid #a7a9ac;
    border-bottom: 2px solid #a7a9ac;
}

.checkbox-group {
    padding: 0.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
}

.input-label.checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    color: #a7a9ac;
    cursor: pointer;
}

/* overcomplicated */
.input-label.checkbox:has(input[type="checkbox"]:not(:checked)):is(:hover, :focus) .checkmark {
    background-color: #c7ccd3;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkmark {
    --_checkbox-size: calc(1em + 4px);
    content: "";
    display: inline-block;
    width: var(--_checkbox-size);
    height: var(--_checkbox-size);

    border: 2px solid #a7a9ac;
    position: relative;
    transition: background-color 0.1s ease-in;
}

.input-label:has(input[type="checkbox"]:checked)>.checkmark {
    background-color: #a7a9ac;
}

.request-a-quote-button {
    font-size: 1em;
    padding: 0.5em 1em;
    width: 100%;
    background-color: var(--company-color1);
    color: white;
}

.request-a-quote-button.sent {
    background-color: #929292;
}

@keyframes dots {
    0% {
        content: "";
    }

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

    100% {
        content: "...";
    }
}

/* Check out our YouTube channel */

.check-our-yt {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.check-our-yt-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem calc(var(--main-padding) * 2);
    flex: 1;
}

.check-our-yt-text-wrapper>h2 {
    margin: 0.5em 0;
}

.check-our-yt-text-wrapper>* {
    margin: 0;
}

.check-our-yt-text {
    color: #626262;
    text-align: start;
}

.check-our-yt-button {
    width: fit-content;
    font-size: 1.2em;
    color: black;
    border-bottom: 2px solid black;
    text-decoration: none;
    margin: 1em 0;
}

.check-our-yt-button:is(:hover, :focus) {
    color: var(--company-color3);
    border-color: var(--company-color3);
}

.check-our-yt-img-wrapper {
    position: relative;
    padding: 2.5rem calc(var(--main-padding) * 2);
}

.check-our-yt-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left;
}

.check-our-yt-img:is(.green) {
    display: block;
}

.check-our-yt-img:not(.green) {
    display: none;
}

.check-our-yt-img-wrapper:hover>:is(.green) {
    display: none;
}

.check-our-yt-img-wrapper:hover>:not(.green) {
    display: block;
}

.check-our-yt-img-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: clamp(-130px, -14vw, -55px);
    transform: translateX(-50%);

    background-image: url(../webp/web_youtube_shadow.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    aspect-ratio: 1735 / 302;
    width: 100%;
}

/* Stay tuned for the most recent updates in the industry! */

.stay-tuned {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.stay-tuned-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem calc(var(--main-padding) * 2);
    flex: 1;
}

.stay-tuned-text-wrapper>h2 {
    margin: 0.5em 0;
}

.stay-tuned-text-wrapper>* {
    margin: 0;
}

.stay-tuned-text {
    color: #626262;
    text-align: start;
}

.stay-tuned-button {
    width: fit-content;
    font-size: 1.2em;
    color: black;
    border-bottom: 2px solid black;
    text-decoration: none;
    margin: 1em 0;
}

.stay-tuned-button:is(:hover, :focus) {
    color: var(--company-color3);
    border-color: var(--company-color3);
}

.stay-tuned-img-wrapper {
    position: relative;
    /* padding: 2.5rem calc(var(--main-padding) * 2); */
    padding-top: 2.5rem;
}

.stay-tuned-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left;
}

.stay-tuned-img:is(.green) {
    display: block;
}

.stay-tuned-img:not(.green) {
    display: none;
}

.stay-tuned-img-wrapper:hover>:is(.green) {
    display: none;
}

.stay-tuned-img-wrapper:hover>:not(.green) {
    display: block;
}

@media (width>=768px) {
    section {
        font-size: 1rem;
    }

    .banner-wrapper {
        aspect-ratio: 1920 / 690;
    }

    .banner-title {
        max-width: 39em;
        left: 1em;
        top: 45%;
        transform: translateY(-50%);
    }

    .banner-media {
        padding-bottom: 0;
    }

    .img-wrapper {
        width: 70%;
        margin-left: auto;
        --_cover-angle: 35.5deg;
    }

    .img-wrapper>img.mb {
        display: none;
    }

    .img-wrapper>img.pc {
        display: block;
    }

    .img-wrapper>.line {
        width: 0.75%;
    }

    .cover:nth-child(3) {
        --_pos: -70.9%;
        top: -100%;
        left: var(--_pos);
    }

    .line:nth-child(4) {
        --_pos: 49.5%;
        top: -50%;
        left: var(--_pos);
    }

    .line:nth-child(5) {
        --_pos: 84.5%;
        top: -70%;
        left: var(--_pos);
    }

    .cover:nth-child(6) {
        --_pos: -97%;
        bottom: -100%;
        right: var(--_pos);
    }

    .cover:nth-child(3).smaller {
        left: calc(var(--_pos) + 26%);
    }

    .line:nth-child(4).smaller {
        left: calc(var(--_pos) + 15%);
    }

    .line:nth-child(5).smaller {
        left: calc(var(--_pos) + 10%);
    }

    .cover:nth-child(6).smaller {
        right: calc(var(--_pos) - 5%);
    }

    .catalog-title-wrapper {
        margin: 0 5em;
        flex-direction: row;
        gap: 3em;
    }

    .catalog-title {
        margin: 0;
        position: absolute;
        top: -2.75em;
        left: 50%;
        transform: translateX(-50%);
    }

    .catalog-searchbar-wrapper {
        margin-right: var(--main-padding);
    }

    .catalog-options {
        margin-left: var(--main-padding);
    }

    .catalog-grid {
        margin: var(--main-padding) calc(var(--main-padding) * 4);
        margin-bottom: calc(var(--main-padding) * 2);
        padding: 0 var(--main-padding);
    }

    .content-characteristics:first-child {
        width: 20%;
    }

    .characteristics-wrapper {
        flex-direction: row;
    }
}

@media (width>=1024px) {
    section {
        font-size: 1.1rem;
    }

    .top-text,
    .bottom-text,
    .looking-ahead-text {
        max-width: 120ch;
    }

    .greenol {
        max-width: 120ch;
    }

    .greenol-data-wrapper {
        flex-direction: row;
    }

    .greenol-text {
        max-width: 65%;
        text-align: left;
    }

    .greenol-data-list {
        text-align: start;
    }

    .greenol-data-list>li {
        font-family: var(--bold-font);
    }

    .catalog-options {
        --_catalog-margin: 1.5em;
    }

    .catalog-grid {
        --_card-width: 280px;
    }

    .catalog-searchbar-wrapper {
        margin: 0;
        position: absolute;
        top: 50%;
        bottom: 0;
        right: var(--main-padding);
        transform: translateY(-50%);
    }

    .catalog-searchbar-wrapper::before {
        transform: translateY(-40%);
    }

    .check-our-yt {
        flex-direction: row-reverse;
    }

    .check-our-yt-text-wrapper {
        align-items: flex-start;
        max-width: 70ch;
        margin-right: auto;
    }

    .check-our-yt-img-wrapper {
        width: 50%;
    }

    .check-our-yt-img-wrapper::after {
        bottom: clamp(-150px, -8vw, -90px);
    }

    .check-our-yt-button {
        align-self: end;
    }

    .stay-tuned {
        flex-direction: row-reverse;
    }

    .stay-tuned-text-wrapper {
        align-items: flex-start;
        max-width: 70ch;
        margin-right: auto;
    }

    .stay-tuned-img-wrapper {
        width: 50%;
        padding: 2.5rem calc(var(--main-padding) * 2) 0 0;
    }

    .stay-tuned-img-wrapper::after {
        bottom: clamp(-190px, -9vw, -90px);
    }

    .stay-tuned-button {
        align-self: end;
    }

    /*  */

    .chemical-data {
        max-height: 100ch;
        flex-direction: row;
    }

    .chemical-data-list {
        display: inline-table;
        height: 100%;
        min-width: 180px;
        width: 20%;
    }

    .chemical-data-list-ul {
        flex-direction: column;
    }

    .chemical-data-list-ul>li {
        min-width: unset;
    }

    .chemical-data-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .properties-group {
        text-align: start;
        align-items: start;
        flex-direction: row;
        gap: 1em;
    }

    .body-nav {
        flex-direction: row;
    }

    .body-nav>button,
    .body-nav>a {
        width: fit-content;
        text-align: start;
    }

    .chemical-data-form {
        margin: 0;
        width: 30%;
    }
}

@media (width>=1440px) {
    section {
        font-size: 1.2rem;
    }

    .catalog-grid {
        --_card-width: 320px;
        max-height: 800px;
    }

    .catalog-card {
        align-items: start;
        justify-content: unset;
    }

    .catalog-card>a {
        margin-left: auto;
    }
}