:root {
    --primary-color: white;
    --secondary-color: black;
    --HI-blue: rgb(0, 54, 148);

    --main-font: Inter;
    --secondary-font: 'Libre Baskerville';
    --third-font: 'Josefin Sans';

    --main-font-color: black;
    --secondary-font-color: rgb(35, 35, 35);
}
html {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--main-font);
}
html, body {
    padding: 0;
    margin: 0 !important;
    margin-right: 0 !important;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

main {
    padding-top: 110px;
    margin-bottom: 250px;
}
#title-section {
    width: 90%;
    margin: auto;
    display: flex;
}
#main-puzzle {
    width: clamp(52vw, 58%, 1400px);
    margin: auto;
    object-fit: contain;
}
main h1 {
    text-indent: 2rem each-line;
    display: block;
    max-width: 700px;
    margin: 0 0 0 2vw;
    font-size: clamp(2.4rem, calc(2.4rem + 0.5vw), 5rem);
    font-family: var(--secondary-font);
}
#title-description {
    display: block;
    
    text-indent: 2rem;
    font-family: var(--secondary-font);
    font-size: clamp(1.2rem, calc(1.2rem + 1.2vw), 2rem);

    margin-top: 100px;
    width: 90%;
    max-width: 650px;
}
#title-text {
    padding-top: 260px;
}

#team-grid {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    margin: auto;
    z-index: 1;
}
.member {
    border: 2px solid rgb(230, 230, 230);
    border-radius: 20px;
    box-shadow: 12px 12px 10px rgb(230, 230, 230);
    background-color: var(--primary-color);

    display: grid;
    grid-template-rows: 2fr 1fr;
    grid-template-columns: auto auto;

    column-gap: 5vw;

    max-width: clamp(600px, 50%, 900px);
    margin-top: 100px !important;
    padding: 30px;
    margin: auto;
    z-index: 2;

    background-repeat: no-repeat;
}
#dave {
    background-image: url(../images/about/puzzle-piece.webp);
    background-position: 120% 25%;
}
#dan {
    background-image: url(../images/about/puzzle-piece-2.webp);
    background-position: 110% 30%;
}
#ben {
    background-image: url(../images/about/puzzle-piece-3.webp);
    background-position: 120% 35%;
}
#team-grid img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 24px 24px 10px rgb(230, 230, 230);
    object-fit: contain;
    align-self: center;

    grid-row: 1;
    grid-column: 1;
}
#team-grid h2 {
    font-size: clamp(2.5rem, calc(2.5rem + 0.5vw), 4.5rem);
    font-family: var(--main-font);
    font-weight: 500;
    background-color: var(--HI-blue);
    box-shadow: 8px 8px 5px rgb(130, 160, 219);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.95);

    grid-row: 2;
    grid-column: 1;

    align-self: center;

    padding: 20px;
    text-align: center;

}
#team-grid p {
    text-indent: clamp(1rem, calc(1rem + 1vw), 5rem);
    font-size: clamp(1.1rem, calc(0.8rem + 1vw), 1.8rem);
    font-family: var(--secondary-font);


    align-self: center;
    grid-row: span 2;
    grid-column: 2;
}

@media only screen and (max-width: 850px) {
    #title-section {
        flex-direction: column;
        text-align: center;
    }
    main h1 {
        display: inline;
        margin: 0;
        text-align: center;
    }
    #title-description {
        margin: 100px auto 0 auto;
    }
    #main-puzzle {
        margin-top: 100px;
        width: 100%;
    }
    .member {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .member * {
        grid-column: span 1 !important;
    }
    .member img {
        grid-row: 1;
    }
    .member h2 {
        grid-row: 2;
    }
    .member p {
        grid-row: 3;
    }
    .member {
        background-image: none !important;
    }
}