@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --dark_blue: #202046;
    --grayish_blue: #babacf;
}

* {
    font-family: 'Inter';
}

body {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    background-image: url(images/pattern-curve.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 20px;
    font-weight: 300;
    color: var(--dark_blue);
}

h2 {
    font-size: 18px;
    color: var(--dark_blue);
    margin: 0;
}

h3 {
    font-size: 18px;
    color: var(--grayish_blue);
    margin: 0;
}

section {
    width: 350px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}

.testimony {
    grid-row: 2/3;
    text-align: center;
    background-image: url(images/pattern-quotes.svg);
    background-repeat: no-repeat;
    background-size: 20%;
    background-position: top center;
}

.image {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 350px;
    justify-content: center;
    align-items: center;
    grid-row: 1/2;
    background-image: url(images/pattern-bg.svg);
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
}

.image img {
    width: 250px;
    height: 250px;
    box-shadow: 10px 10px 50px -10px var(--dark_blue);
}

.slider {
    display: flex;
    width: 50px;
    height: 25px;
    background-color: white;
    border-radius: 30px;
    transform: translate( 0,-50%);
    border: 2px solid white;
    box-shadow: 0 5px 20px var(--dark_blue);
    margin: 0;
}

.previous {
    width: 50%;
    height: 100%;
    background-image: url(images/icon-prev.svg);
    background-position: left 8px center;
    background-size: 30%;
    background-repeat: no-repeat;
}

.next {
    width: 50%;
    height: 100%;
    background-image: url(images/icon-next.svg);
    background-position: right 8px center;
    background-size: 30%;
    background-repeat: no-repeat;
}

.previous:hover, .next:hover {
    cursor: pointer;
}

.name-position {
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    section {
        width: 60%;
        height: auto;
        grid-template-columns: 1fr 50px 50px 50px 1fr;
        grid-template-rows: 1fr;
        gap: 0;
    }

    .image {
        width: 100%;
        height: 100%;
        grid-column: 3/6;
        grid-row: 1/2;
    }

    .image img {
        width: 400px;
        height: auto;
        margin-top: 20px;
    }

    .testimony {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        grid-column: 1/5;
        grid-row: 1/2;
        z-index: 999;   
    }

    h1 {
        font-size: 32px;
        line-height: 1.5;
    }

    h2, h3 {
        font-size: 25px;
    }

    .name-position {
        flex-direction: row;
        gap: 15px;
    }

    .slider {
        width: 70px;
        height: 35px;
        transform: translate(-150%,-50%);
    }
}