/* BANNER */

.banner-wrapper {
    display: flex;
    justify-content: end;
    position: relative;
    overflow-x: clip;
}

.banner-title {
    width: 90%;
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.banner-title .green {
    color: var(--company-color4);
}

.banner-title>h1 {
    font-family: var(--regular-font);
    font-weight: 500;
    font-size: 1.75em;
    text-align: center;
    margin: 0;
}

.banner-media {
    height: 100%;
    position: relative;
}

.banner-media>video,
.banner-media>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-media .mb {
    display: inline;
}

.banner-media .pc {
    display: none;
}

/* SEARCHBAR */

.searchbar-wrapper {
    position: relative;
    font-size: 0.75em;
    min-width: 34ch;
}

.searchbar-wrapper::after {
    --_icon-size: 1.15em;
    content: "";
    background-image: url(/res/media/icons/gc_home_search.svg);
    background-repeat: no-repeat;
    width: var(--_icon-size);
    height: var(--_icon-size);
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#searchbar-input {
    width: 100%;
    height: 3.5em;
    font-size: 1.2em;
    padding: 0.5em 1.5em;
    padding-right: 2.75em;
    border: none;
    border: none;
    text-overflow: ellipsis;
}

#searchbar-input:hover {
    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;
    top: 100%;
    z-index: 1;

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

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

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

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

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

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

#chemical-list>li:is(:hover, :focus) {
    background-color: #bfbfbf;
    color: white;
}

#searchbar-input:focus+#chemical-list,
#chemical-list:hover,
#chemical-list:focus-within {
    opacity: 1;
    visibility: visible;
}

@media (width>=768px) {
    .banner-media .mb {
        display: none;
    }

    .banner-media .pc {
        display: inline;
    }
}

@media (width>=1024px) {
    .banner-wrapper {
        font-size: 1.25rem;
    }

    .banner-title {
        top: 160px;
    }

    .banner-title>h1 {
        text-align: start;
    }

}

@media (width>=1440px) {
    .banner-wrapper {
        font-size: 1.5rem;
    }

    .banner-title {
        top: unset;
        bottom: 7%;
        left: 95%;
    }
}