@font-face {
    font-family: Mono;
    src: url("font/Fontfabric-Mont-Heavy.otf") format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: Mono;
    src: url("font/Fontfabric-Mont-Regular.otf") format('opentype');
    font-weight: normal;
}

html, body {
    margin: 20px 0;
    font-size: 10px;

    font-family: 'Mono', sans-serif;
    font-weight: normal;
    color: #000;
}

.matrix {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    font-size: 2rem;
}

.button {
    position: absolute;
    display: block;
    font-size: 1.8rem;
    line-height: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    padding: 5px 50px;
    background-color: #000000;
    color: #FFFFFF;
}

@media (min-width: 1000px) {
    .button {
        font-size: 2rem;
        line-height: 2.5rem;
        padding: 15px 50px;
    }
}

.hover-zoom {
    overflow: hidden;
}
/* Slides container */
.matrix-slides {
    display: flex;
    animation: matrix-slide infinite ease-in-out;
    animation-duration: 8s;
    animation-direction: alternate;
}

/* Individual slide */
.matrix-slide {
    flex-shrink: 0;
    width: 100%;
}

/* Animation for sliding */
@keyframes matrix-slide {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(0);
    }
    60% {
        transform: translateX(-100%);
    }
    80% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hover-zoom > div {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}


.hover-zoom:hover > div {
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    -o-transform: scale(1.03);
    transform: scale(1.03);
}

.matrix-header,
.matrix-care,
.matrix-styling {
    position: relative;
}

.matrix-header .button {
    right: 30px;
    bottom: 20px;
}

@media (min-width: 1000px) {
    .matrix-header .button {
        right: auto;
        left: 50px;
    }
}

.matrix-care .button,
.matrix-styling .button {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 15px 100px;
}

.matrix-header picture,
.matrix-header picture img,
.matrix-care picture,
.matrix-care picture img,
.matrix-brand picture,
.matrix-brand picture img,
.matrix-styling picture,
.matrix-styling picture img {
    width: 100%;
    height: auto;
    display: grid;
}

.matrix-info {
    text-align: center;
    margin-top: 50px;
}

.matrix-info h3 {
    font-size: 3rem;
    line-height: 4rem;
    font-weight: bold;
    /*font-weight: 550;*/
}

.matrix-info p {
    font-size: 2.2rem;
    line-height: 2.5rem;
}

.matrix-care {
    margin-top: 50px;
}

.matrix-brands {
    display: grid;
    grid-template-columns: 100%;
    grid-template-columns: repeat(2, 50%);
    padding: 10px;
}

@media (min-width: 450px) {
    .matrix-brands {
        grid-template-columns: repeat(2, 50%);
    }
}

@media (min-width: 1000px) {
    .matrix-brands {
        grid-template-columns: repeat(3, 33.33333%);
    }

    .matrix-brand.desktop-hidden {
        display: none;
    }
}

.matrix-brand-mega-sleek {
    background-color: #FF4C00;
}

.matrix-brand-high-amplify {
    background-color: #00B8BA;
}

.matrix-brand-so-silver {
    background-color: #8C86BC;
}

.matrix-brand-brass-off {
    background-color: #012F9A;
}

.matrix-brand-insta-cure {
    background-color: #EB1A6E;
}

.matrix-brand-unbrake-my-blonde {
    background-color: #C7A7DD;
}

.matrix-brand-dark-envy {
    background-color: #025158;
}

.matrix-brand-keep-me-vivid {
    background-color: #DA2793;
}

.matrix-brand-color-obsessed {
    background-color: #501372;
}

.matrix-brand-a-curl-can-dream {
    background-color: #FCB529;
}

.matrix-brand-food-for-soft {
    background-color: #65be52;
}

.matrix-brand-build-a-bond {
    background-color: #f96cae;
}

.matrix-brand-dream-fale {
    background-color: #fcb527;
}
.matrix-brand-dream-loki {
    background-color: #efd55a;
}


.matrix-brand {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    text-align: center;
    margin: 5px;
}

.matrix-brand-header {
    color: #FFFFFF;
    margin: 10px;
}

.matrix-brand-name {
    font-size: 2.2rem;
    line-height: 2.5rem;
    font-weight: bold;
}

.matrix-brand-purpose {
    margin-top: 5px;
    font-size: 1.3rem;
    line-height: 1.6rem;
}

@media (min-width: 450px) {
    .matrix-brand-name {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .matrix-brand-purpose {
        font-size: 2rem;
        line-height: 2.2rem;
    }
}

.matrix-brand-details {
    display: flex;
    position: relative;
    flex-grow: 1;
}

@media (min-width: 1000px) {
    .matrix-brand-details {
        min-height: 420px;
    }
}

.matrix-brand-image {
    display: flex;
    width: 100%;
}

.matrix-brand-description {
    display: none;
    align-content: center;
    font-size: 2.2rem;
    line-height: 2.5rem;
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, .6);
    backdrop-filter: blur(12px);
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    padding: 30px 20px;
}

@media (min-width: 1000px) {
    .matrix-brand:hover .matrix-brand-description {
        display: grid;
        opacity: 1;
    }
}

.matrix-brand-buy {
    max-height: 60px;
    background-color: #000000;
}

.matrix-brand-buy a {
    display: block;
    color: #FFFFFF;
    font-size: 1.6rem;
    line-height: 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    padding: 15px 20px;
}

@media (min-width: 450px) {
    .matrix-brand-buy a {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 700px) {
    .matrix-brand-header {
        margin: 30px 20px;
    }

    .matrix-brand-name {
        font-size: 4rem;
        line-height: 4.5rem;
    }

    .matrix-brand-purpose {
        margin-top: 15px;
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .matrix-brand-description {
        font-size: 2.8rem;
        line-height: 3rem;
    }

    .matrix-brand-buy a {
        font-size: 2.5rem;
        line-height: 3rem;
    }
}

@media (max-width: 1000px) {
    .matrix-care,
    .matrix-styling {
        position: relative;
        aspect-ratio: 1700/920;
        overflow: hidden;
    }

    .matrix-care picture,
    .matrix-styling picture {
        width: auto;
        height: 100%;
    }

    .matrix-care picture img,
    .matrix-styling picture img {
        width: auto;
        height: 110%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: block;
    }

    .matrix-care picture img {
        height: 130%;
    }
}
