:root {
    --red: hsl(0, 78%, 62%);
    --cyan: hsl(180, 62%, 55%);
    --orange: hsl(34, 97%, 64%);
    --blue: hsl(228, 45%, 44%);
    --grey500: hsl(234, 12%, 34%);
    --grey400: hsl(212, 6%, 44%);
    --white: hsl(0, 0%, 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'poppins', sans-serif;
    min-height: 100vh;
}

body {
    font-size: 15px;
    font-weight: 400;
    color: var(--grey400);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content:center;
    gap: 50px;
    padding: 50px 20px;
}

.header {
    text-align: center;
}

.header>b{
    margin-top: 3px;
}
.header>p {
    margin-top: 15px;
}
h1,
h2 {
    color: var(--grey500);
}

h1 {
    font-size: 1.5rem;
    font-weight: 200;
}

b {
    font-weight: 600;
}

.supervisor,
.team-builder,
.karma,
.calculator {
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    position: relative;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.supervisor {
    box-shadow: 0px -7px 0px 0px var(--cyan), 0 0 5px 3px whitesmoke;
}

.team-builder {
    box-shadow: 0px -7px 0px 0px var(--red), 0 0 5px 3px whitesmoke;
}

.karma {
    box-shadow: 0px -7px 0px 0px var(--orange), 0 0 5px 3px whitesmoke;
}

.calculator {
    box-shadow: 0px -7px 0px 0px var(--blue), 0 0 5px 3px whitesmoke;
}

img {
    position: absolute;
    top: 60%;
    left: 70%;
}

.cards-container {
    display: grid;
    grid-template-columns: 275px;
    grid-template-rows: repeat(4, 200px);
    gap: 30px;
    grid-template-areas: 
        "card1"
        "card2"
        "card3"
        "card4"
    ;
}
/* Responsive Design */
/* For tablets and medium screens */
@media (min-width: 690px) and  (max-width: 1119px) {
    .cards-container {
       grid-template-columns: repeat(2, 300px); 
       grid-template-rows: repeat(2, 200px);
       grid-template-areas: 
       "card1 card2"
       "card3 card4"
       ;

    }
}
/*for desktops and large screens */ 
@media (min-width: 1120px) {
    body {
        margin: 10px 120px;
    }
    .header{
        width: 50%;
    }
    .supervisor,.team-builder,.calculator,.karma{
        height: 200px;
        width: 250px;
    }
    .cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content:center;
    }  
    .card {
        transform: translate(0,50%);
    }
    
}

/* Attribution styles */

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}
