﻿p {
    color: dimgray;
}

/*Solutions*/
:root {
    /* Primary */

    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Yellow: hsl(40, 100%, 68%);
    --Blue: hsl(212, 86%, 64%);
    --Light-Blue: hsl(216, 80%, 75%);
    --Green: hsl(149, 83%, 49%);
    --Orange: hsl(22, 100%, 63%);
    --Indigo: hsl(259, 91%, 68%);
    /* Neutral */
    --Very-Dark-Blue: hsl(234, 12%, 34%);
    --Grayish-Blue: hsl(229, 6%, 66%);
    --Very-Light-Gray: hsl(0, 0%, 98%);
}

.feature {
    position: relative;
    max-width: 15.8rem;
    height: 19rem;
    margin: 2rem auto;
    padding: 2em;
    border-radius: 0.75em;
    box-shadow: 5px 5px 10px rgba(0 0 0/0.15);
    text-align: left;
    transition: transform 200ms ease-in;
}

    .feature h5 {
        font-weight: 600;
    }

    .feature:hover {
        transform: scale(1.03);
    }

.feature__desc {
    margin-top: 0.5em;
    color: var(--Grayish-Blue);
}

.feature__img {
    width: 60px;
    position: absolute;
    bottom: 10%;
    right: 10%;
}

/* separate styling */

.section__title {
    margin: 0 auto;
    max-width: 90%;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1.5em;
    text-align: center;
}

    .section__title span {
        font-weight: 700;
    }

.section__desc {
    max-width: 32ch;
    margin: 1rem auto 3rem;
    color: var(--Grayish-Blue);
    font-size: 1rem;
    text-align: center;
}

.feature-one {
    border-top: 5px solid var(--Green);
}

.feature-two {
    border-top: 5px solid var(--Yellow);
}

.feature-three {
    border-top: 5px solid var(--Red);
}

.feature-four {
    border-top: 5px solid var(--Light-Blue);
}

.feature-five {
    border-top: 5px solid var(--Orange);
}

.feature-six {
    border-top: 5px solid var(--Very-Dark-Blue);
}

.feature-seven {
    border-top: 5px solid var(--Cyan);
}

.feature-eight {
    border-top: 5px solid var(--Indigo);
}

.attribution {
    color: var(--Very-Dark-Blue);
    opacity: 0.7;
}

    .attribution a {
        color: var(--Blue);
        text-decoration: underline;
    }

        .attribution a:hover {
            color: var(--Cyan);
        }

/* media queries */

@media (min-width: 1000px) {
    body {
        align-items: center;
        min-height: 100vh;
    }

    section {
        max-width: 200rem;
    }

    .section__title {
        margin: 0 auto;
        max-width: 50%;
        font-size: 2rem;
    }

    .section__desc {
        max-width: 55ch;
        margin: 1rem auto 1rem;
    }

    .features {
        display: flex;
    }
}

/*Slider*/
@-webkit-keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 9));
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 9));
    }
}

.slider {
    background: white;
    box-shadow: 0 10px 20px 5px rgba(0, 0, 0, 0.125);
    height: 100px;
    /*margin-top: 50px;
    margin-bottom: 50px;*/
    overflow: hidden;
    position: relative;
    width: 100%;
}

    .slider::before, .slider::after {
        background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
        content: "";
        height: 100px;
        position: absolute;
        width: 200px;
        z-index: 2;
    }

    .slider::after {
        right: 0;
        top: 0;
        transform: rotateZ(180deg);
    }

    .slider::before {
        left: 0;
        top: 0;
    }

    .slider .slide-track {
        -webkit-animation: scroll 40s linear infinite;
        animation: scroll 40s linear infinite;
        display: flex;
        width: calc(250px * 14);
    }

    .slider .slide {
        height: 100px;
        width: 250px;
    }

/*Footer*/
.footer h3, .footer p {
    color: white;
}

.footer .list-unstyled a {
    color: white;
}