body {
    padding: 2rem 2rem;
}

*, ::after,::before {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css?family=Karla:400|Spectral:400');

html {
    font-size: 100%;
} /*16px*/

/*
=================
Global Styles
=================
*/
/*fonts*/
:root {
    /*color*/
    --primary-100: hsl(106, 81%, 89%);
    --primary-200: hsl(106, 83%, 79%);
    --primary-300: hsl(106, 83%, 68%);
    --primary-400: hsl(106, 83%, 58%);
    --primary-500: hsl(106, 93%, 47%);
    --primary-600: hsl(106, 94%, 38%);
    --primary-700: hsl(106, 93%, 28%);
    --primary-800: hsl(106, 94%, 19%);
    --primary-900: hsl(106, 92%, 9%);
    /* grey */
    --grey-50: hsl(210, 40%, 98%);
    --grey-100: hsl(210, 40%, 96%);
    --grey-200: hsl(214, 32%, 91%);
    --grey-300: hsl(213, 27%, 84%);
    --grey-400: hsl(215, 20%, 65%);
    --grey-500: hsl(215, 16%, 47%);
    --grey-600: hsl(215, 19%, 35%);
    --grey-700: hsl(215, 25%, 27%);
    --grey-800: hsl(217, 33%, 17%);
    --grey-900: hsl(222, 47%, 11%);
    /*rest of colors*/
    --black: #222;
    --white: #fff;
    /*font*/
    --headingFont: 'Karla', sans-serif;
    --paragraphFont: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    --smallText: 0.7em;
    /*rest of the vars*/
    --backgroundColor: var(--grey-50);
    --textColor: var(--grey-900);
    --borderRadius: 0.25rem;
    --letter-spacing: 1px;
    --transition: 0.3s ease-in-out all;
    --max-width: 1120px; /*optional 1170*/
    --fixed-width: 600px;
    /*box shadow*/
    --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),  0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-4: 0 20px 25px -5px rgba(7, 7, 7, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background: var(--backgroundColor);
    font-family: var(--bodyFont);
    font-weight: 400;
    line-height: 1.75;
    color: var(--textColor);
}

p {
    font-family: var(--paragraphFont);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    max-width: 40em;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    margin-bottom: 1.38rem;
    font-family: var(--headingFont);
    font-weight: 400;
    line-height: 1.3;
    text-transform: capitalize;
}

h1 {
    margin-top: 0;
    font-size: 3.052rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}

small, .text-small {
    font-size: var(--smallText);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding: 0;
}

.photo {
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn {
    cursor: pointer;
    color: var(--white);
    background: var(--primary-500);
    border: transparent;
    border-radius: var(--borderRadius);
    letter-spacing: var(--letter-spacing);
    padding: 0.375rem 0.75rem;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    text-transform: capitalize;
    display: inline-block;
}
.btn:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-3);
}
.btn-hipster {
    color: var(--primary-500);
    background: var(--primary-200);
}
.btn-hipster:hover {
    color: var(--primary-200);
    background: var(--primary-700);
}
.btn-block {
    width: 100%;
}


/*
==================================
Review
==================================
*/


/*
=================
main
=================
*/
main {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.container {
    width: 80vw;
    max-width: var(--fixed-width);
}
.title h1{
    font-family: var(--headingFont);
    text-align: center;
    line-height: 0.7;
}
.title-underline {
    background: var(--primary-500);
    width: 7rem;
    height: 0.25rem;
    margin: 0 auto;
}
.review {
    margin-top: 3rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--borderRadius);
    box-shadow: var(--shadow-2);
    text-align: center;
    transition: var(--transition);
}
.review:hover {
    box-shadow: var(--shadow-4);
}
/*
we apply the pseudo elements to the img-container not the image itself, becos the image is content and we add pseudo elements before and after
the content. The pseudo elements will have position: absolute, hence img-container position will be relative;
*/
.img-container {
    position: relative;
    height: 150px;
    width: 150px;
    margin: 0 auto;
}
#person-img {
    position: absolute;
    height: 100%;
    border-radius: 50%;
}
.img-container::before {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    background: var(--primary-500);
    border-radius: 50%;
    top: -0.25rem;
    right: -0.5rem;
}
.img-container::after {
    position: absolute;
    height: 2.5rem;
    width: 2.5rem;
    background: var(--primary-500);
    border-radius: 50%;
    top: 0;
    left: 0;
    color: var(--white);
    transform: translateY(25%);
    /* the ff code was got from fontawesome site */
    font-family: 'Font Awesome 5 Free';
    content: '\f10e';
    font-weight: 600;
    display: grid;
    place-items: center;
}
#author {
    margin: 0.25rem;
}
#job {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--primary-500);
    font-size: 0.85rem;
}
#info {
    margin-bottom: 0.75rem;
}
.prev-btn, .next-btn {
    color: var(--primary-200);
    background: transparent;
    border-color: transparent;
    font-size: 1.25rem;
    margin: 0.25rem 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.prev-btn:hover, .next-btn:hover {
    color: var(--primary-500);
}
.random-btn {
    color: var(--primary-500);
    font-family: var(--paragraphFont);
    background: var(--primary-100);
    margin-top: 0.75rem;
    border: 1px solid var(--primary-500);
    padding: 0.25rem 0.5rem;
}
.random-btn:hover {
    background: var(--primary-500);
    color: var(--black);
}












