/* Links */
main a, .youtube-link a {
    text-decoration: none;
    color: #000;
    transition: all 0.2s ease-in-out;
}

main a:hover, .youtube-link a:hover {
    color: var(--color-primary);
}

/* Slider */
.slider {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.content {
    position: absolute;
    top: 40%;
    left: 20%;
    color: #fff;
}

.content h1 {
    font-size: 40px;
    font-weight: 450;
    max-width: 45vw;
}

.btn {
    font-size: 22px;
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 19px 29px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background-color: var(--color-footer);
}

/* Slider navigation */
.slider-nav {
    position: absolute;
    bottom: 18%;
    right: 25%;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 10;
}

.slider-nav button {
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    fill: #fff;
    transition: all 0.2s ease-in-out;
}

.slider-nav button:hover {
    fill: var(--color-primary);
}

.slider-nav button svg {
    width: 25px;
    fill: inherit;
}

.slider-nav .prev {
    margin-right: 10px;
}

.slider-nav .next {
    margin-left: 10px;
}

/* Main */
main {
    padding: 2% 20%;
}

main h1 {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 10px 0;
}

main p {
    font-size: 17px;
    font-weight: 350;
    line-height: 30px;
    margin-bottom: 8px;
}

/* Product categories */
.product-categories {
    padding: calc(2% - 20px) 20% 2% 20%;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-secondary);
}

.product-categories section {
    width: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.product-categories section h3 {
    font-weight: 450;
    margin-bottom: 10px;
}

.product-categories section p {
    max-width: 80%;
    margin: 0 10%;
    line-height: 30px;
}

.thumbnail {
    margin: 20px 0;
}

.thumbnail img {
    width: 138px;
    border: 5px #dcdcdd solid;
    border-radius: 50%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.thumbnail img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* Youtube */
.youtube {
    padding: 2% 20%;
}

.youtube h2 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.youtube-link {
    display: flex;
}

.youtube-link .logo {
    max-width: 50px;
}

.youtube-link .side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
}

/* Responsiveness */
/* xl */
@media (max-width: 1200px) {
    .content {
        top: 30%;
        left: 10%;
    }

    .slider-nav {
        bottom: 18%;
        right: 15%;
    }

    main {
        padding: 2% 10%;
    }

    .product-categories {
        padding: 2% 10%;
    }

    .youtube {
        padding: 2% 10%;
    }
}

/* lg */
@media (max-width: 992px) {
    .content {
        top: 20%;
    }

    .youtube {
        padding: 2% 10%;
    }

    .product-categories section p {
        max-width: 90%;
        margin: 0 5%;
    }
}

/* md */
@media (max-width: 768px) {
    .slider {
        height: 52vh;
    }

    .content h1 {
        font-size: 35px;
        max-width: 70vw;
    }

    .product-categories {
        flex-direction: column;
        align-items: center;
    }

    .product-categories section {
        width: 100%;
    }

    .product-categories section p {
        max-width: 100%;
        margin: 0;
        text-align: center;
    }
}

/* sm */
@media (max-width: 576px) {
    .content {
        top: 15%;
        left: 15%;
    }

    .content h1 {
        font-size: 34px;
        max-width: 80vw;
    }

    .slider-nav {
        bottom: 5%;
        right: 50%;
        transform: translateX(50%);
    }
}