.banner {
    width: 100%;
    height: 800px;
    background-color: var(--color-white);
/*    background-image: url(image/homepage-banner.webp); */
    background-position: center center;
    background-size: cover;
    border-bottom: 5px solid var(--color-red-dark);
    overflow: hidden;
}

.banner > div {
    margin-left: 72px;
    margin-top: 250px;
    width: 700px;
    /* background-color: rgba(0,0,0,0.8); */
    padding: 20px;
    border-radius: 10px;
}

.banner > span {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.banner > span > video {
    margin-top: -100px;
}

.banner > span:after {
    content: " ";
    width: 100%;
    height: 100%;
    display: block;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.2);
    position: absolute;
}

.banner:before {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.6);
}

.banner:after {
    content: " ";
    width: 20px;
    height: 20px;
    border-radius: 20px;
    background-color: var(--color-red-dark);
    top: 100%;
    left: 50%;
    position: absolute;
    margin-left: -10px;
    margin-top: -7px;
}

.banner > div > h2 {
    font-size: 42px;
    color: var(--color-white);
}

.banner > div > h2:before {
    content: " ";
    width: 100%;
    height: 3px;
    position: absolute;
    top: 100%;
    margin-top: 12px;
    background-color: var(--color-white);
}

.banner > div > p {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
}

.banner > div > p:before {
    content: " ";
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: var(--color-white);
    position: absolute;
    top: 0;
    margin-top: -32px;
    left: 50%;
    margin-left: -10px;
}

.banner > div > span {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 30px;
}

.banner > div > span > i {
    cursor: pointer;
    font-size: 32px;
    color: var(--color-white);
    transition: 0.4s ease all;
    -webkit-transition: 0.4s ease all;
}

.banner > div > span > i:hover {
    margin-top: 6px;
}

.banner > div > a {
    display: none;
    color: var(--color-white);
    background-color: var(--color-green-light);
    border-radius: 50px;
    padding: 12px 16px;
    font-weight: 600;
}

.banner > div > a > i {
    margin-right: 20px;
}

.slider-section {
    display: grid;
    grid-template-columns: 5% 95%;
    grid-template-areas: "slider-navigation hps-container";
    margin: 150px 72px 0 72px;
    height: 530px;
    overflow: visible;
}

.hps-container {
    grid-area: hps-container;
    display: none;
}

.hps-container.visible {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    animation: hpsIn 1s ease;
    -webkit-animation: hpsIn 1s ease;
}

.slider-section:not(.pause) .hps-container.visible:before {
    content: " ";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 5px;
    background-color: var(--color-grey-light);
    animation: hspInLoad 20s ease;
    -webkit-animation: hpsInLoad 20s linear;
}

.slider-section.pause .hps-container.visible:before {
    opacity: 0;
}

@keyframes hpsInLoad {
    from { width: 0; }
    to { width: 100%; }
}

#hpsSurfaces, #hpsOrder {
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    height: 530px;
    margin: 0;
    -webkit-box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    -moz-box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    width: 100%;
}

#hpsSurfaces {
    background-image: url("image/surfaces-widget-2.webp");
}

#hpsOrder {
    background-image: url("image/bed-image-2.webp");
}

#hpsSurfaces *, #hpsOrder *  {
    color: var(--color-white);
}

#hpsSurfaces h2:before, #hpsOrder h2:before {
    display: none;
}

#hpsSurfaces div, #hpsOrder div {
    width: 50%;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.slider-section .left, .slider-section .right {
    display: none;
}

.slider-section .slider-navigation, .slider-section .slider-navigation > span {
    grid-area: slider-navigation;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.slider-section .slider-navigation > span {
    margin: 10px 0;
}

.slider-section .slider-navigation > span > button {
    width: 40px;
    height: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: none;
    background-color: var(--color-grey-medium-1);
    border-radius: 5px;
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.slider-section .slider-navigation > span > button:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.slider-section .slider-navigation i:hover {
    transform: scale(1.3);
    -webkit-transform: scale(1.3); 
}

.slider-section .slider-navigation i {
    cursor: pointer;
    font-size: 22px;
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.slider-section .slider-navigation > button {
    background-color: transparent;
    border: none;
    margin-left: 5px;
    color: var(--color-black);
}

.slider-section .slider-navigation > span > button:hover {
    background-color: var(--color-grey-dark);
}

.slider-section .slider-navigation > span > button.active {
    background-color: var(--color-red-dark)!important;
}

.slider-section .slider-image-left {
    grid-area: slider-image-left;
    width: 50%;
}

.slider-section .slider-image-left img, .slider-section .slider-image-right img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    -webkit-box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    -moz-box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    box-shadow: 5px 5px 25px 0px rgba(211,211,211,1);
    object-position: center center;
}

.slider-section .slider-image-left img {
    cursor: pointer;
    width: 500px;
}

.slider-section .slider-image-right img {
    width: 250px;
}



.slider-section .slider-image-left p {
    font-style: italic;
    font-size: 14px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.slider-section .slider-content {
    grid-area: slider-content;
    margin: 0 40px;
}

.slider-section .slider-image-right {
    grid-area: slider-image-right;
}

.slider-section .slider-content h2 {
    font-size: 42px;
    padding: 0;
    margin: 0;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.slider-section .slider-content h2:before {
    content: " ";
    height: 5px;
    width: 100%;
    border-radius: 5px;
    background-color: var(--color-grey-medium-2);
    position: absolute;
    left: 0;
    top: 100%;
}

.slider-section .slider-content p.large-text {
    font-weight: 500;
    font-size: 20px;
}

.slider-section .slider-content span {
    display: block;
    margin: 50px 0;
}

.flamel-about {
    padding: 0 72px;
    margin-top: 100px;
}

.flamel-about > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.flamel-about h2 {
    margin: 0;
    padding: 0;
    font-size: 36px;
}

.flamel-about a {
    margin-left: auto;
    display: block;
    padding: 16px;
    border-radius: 5px;
    background-color: var(--color-red-dark);
}

.flamel-about a > i {
    margin-left: 16px;
    color: var(--color-white);
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.flamel-about a > font {
    color: var(--color-white);
    cursor: pointer;
    font-family: "Comfortaa", sans-serif;
    font-weight: 600;
}

.flamel-about p {
    width: 47%;
    background-color: var(--color-grey-light);
    padding: 10px;
    border-radius: 5px;
}

.flamel-about p:nth-child(2) {
    margin-left: auto;
}

.flamel-about img {
    width: 48px;
    height: 48px;
    margin-right: 20px;
}

@media screen and (max-width: 1720px) {
    .slider-section .slider-content .small-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 1620px) {
    .slider-section {
        margin: 100px 30px 0 30px;
    }
}

@media screen and (max-width: 1520px) {
    .slider-section .slider-content p.large-text {
        font-size: 16px;
    }

    .slider-section .slider-image-right img {
        width: 150px;
    }

    .flamel-about {
        padding: 0 20px;
    }
}

@media screen and (max-width: 1420px) {
    .slider-section .slider-image-right img {
        display: none;
    }
}

@media screen and (min-width: 1221px) {
    @keyframes banner-text-show {
        0% { margin-top: 230px; margin-left: 60px; opacity: 0; }
        20% { opacity: 0; }
        100% { margin-top: 250px; margin-left: 72px; opacity: 1; }
    }

    @keyframes hpsIn {
        from { margin-top: -20px; opacity: 0; }
        to { margin-top: 0; opacity: 1; }
    }
}

@media screen and (max-width: 1220px) {
    .banner > span > video {
        margin-top: 0;
        width: auto!important;
        height: 100%!important;
    }

    .banner > div {
        text-align: center;
        margin-left: 0;
        width: 100%;
    }

    .banner > div > h2:before, .banner > div > p:before {
        display: none;
    }

    #hpsSurfaces div, #hpsOrder div {
        width: 100%;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .slider-section {
        grid-template-areas:
        "hps-container"
        "slider-navigation";
        grid-template-columns: 100%;
    }

    .slider-section .slider-navigation .up i {
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
    }

    .slider-section .slider-navigation .up {
        margin-right: 10px;
    }

    .slider-section .slider-navigation .down i {
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
    }

    .slider-section .slider-navigation, .slider-section .slider-navigation > span {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .slider-section .slider-navigation > span > button {
        margin-right: 10px;
    }

    .slider-section .slider-navigation > span > button:last-of-type {
        margin-right: 0;
    }

    .slider-section .slider-image-left {
        display: none;
    }

    .banner > div > p {
        padding: 0 20px;
    }

    @keyframes hpsIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .slider-section {
        height: 600px;
    }

}

@media screen and (max-height: 1030px) {
    .banner > div {
        margin-top: 150px;
        margin-left: 20px;
    }

    @keyframes banner-text-show {
        0% { margin-top: 130px; margin-left: 0; opacity: 0; }
        20% { opacity: 0; }
        100% { margin-top: 150px; margin-left: 20px; opacity: 1; }
    }

    .banner {
        height: 600px;
    }

    .md-save-planet {
        margin: 50px 0 0 0;
    }
}

@media screen and (max-width: 1000px) {
    .flamel-about h2 {
        font-size: 20px;
    }
}

@media screen and (min-width: 801px) {
    .banner > div {
        animation: banner-text-show 2s ease;
    }
}

@media screen and (max-width: 800px) {
    .banner > div {
        margin-top: 0;
        margin-left: 0;
    }

    .hps-container[data-content="initial"] .slider-content {
        margin: 0 20px;
    }

    .banner > div > h2 {
        font-size: 24px;
        color: var(--color-black);
    }

    .banner > div > p {
        font-size: 16px;
        color: var(--color-black);
    }

    .banner:before {
        display: none;
    }

    #scrollDown {
        display: none;
    }

    .banner > span:after {
        display: none;
    }

    .slider-section {
        margin: 5px 0;
        height: auto;
    }

    #hpsSurfaces, #hpsOrder, #hpsSurfaces div, #hpsOrder div {
        border-radius: 0;
    }

    #hpsSurfaces div, #hpsOrder div {
        background-color: rgba(0,0,0,0.8);
    }

    .slider-section .slider-content span a {
        width: 100%;
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }

    .slider-section .slider-content h2 {
        font-size: 32px;
    }

    .slider-section .slider-navigation, .slider-section .slider-navigation > span {
        justify-content: center;
    }

    #hpsSurfaces, #hpsOrder {
        height: auto;
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
    }

    .flamel-about > div {
        flex-wrap: wrap;
        justify-content: center;
    }

    .flamel-about img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .flamel-about h2 {
        text-align: center;
        margin-bottom: 30px;
    }

    .flamel-about a {
        margin-right: auto;
    }

    .flamel-about p:nth-child(2) {
        display: none;
    }

    .flamel-about p {
        width: 100%;
    }

    @keyframes hpsIn {
        from { opacity: 1; }
        to { opacity: 1; }
    }

    .banner > span {
        position: relative;
        height: 220px;
    }

    .banner > div > a {
        display: block;
    }
}