:root {
    --main-bg-color: hsl(0, 0%, 98%);
    --main-txt-color: hsl(229, 6%, 66%);
    --header-txt-color: hsl(234, 12%, 34%);
    --main-txt-font-size: 15px;

}

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

img {
    display: block;
}

body, main {
    font-family: "Poppins", serif;
    font-size: var(--main-txt-font-size);
    padding: 2rem 1.5rem;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    color: var(--main-txt-color);
}

.header-section {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 35rem;
}

.header-section h1 {
    font-weight: 400;
}

.header-section h2,
section h3 {
    color: var(--header-txt-color);
}

.header-section h2 {
    font-weight: 600;
}

.grid-container {
    display: grid;
    gap: 1.5rem;

}

.grid-container section {
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 1px 1px 10px var(--main-txt-color);
    width: 25rem;
}

.grid-container section img {
    margin-left: auto;
    margin-top: 1.5rem;
}

.supervisor-section {
    border-top: 5px solid hsl(180, 62%, 55%);
}

.team-builder-section {
    border-top: 5px solid hsl(0, 78%, 62%);
}

.karma-section {
    border-top: 5px solid hsl(34, 97%, 64%);
}

.calculator-section {
    border-top: 5px solid hsl(212, 86%, 64%);
}

.attribution {
    margin-top: 2rem;
    font-size: 11px;
    text-align: center;
}

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

@media (min-width:1280px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .karma-section {
        grid-column: 2/3;
    }

    .last-column {
        grid-column-start: 3;
    }

    .span-two-rows-and-center {
        grid-row: 1/3;
        align-content: center;
    }

}