/* importing fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Deep charcoal black, pulled from the darkest shadow of the suit jacket */
    --base-color: #121214;
    /* Pure white for maximum contrast against the dark base */
    --text-color: #ffffff;
    /* A deep, rich navy blue from the shadowed folds of the tie */
    --primary-color: #132447;
    /* Dark graphite grey from the leather chair, useful for secondary background elements like cards */
    --secondary-color: #242528;
    /* A dark, cool slate grey from the darker patches of the grunge wall background */
    --color-1: #3a3d42;
    /* A very deep, muted bronze tone, derived from the darkest shadow areas of the skin */
    --color-2: #252c3b;
    /* Midnight blue/black from the deepest recesses between the tie and shirt collar */
    --color-3: #233445;
}

* {
    /* "*" is everything specifier, sets defaults since elements have built in margins and paddings*/
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* html specifies everything on the page*/
    font-family: Poppins, sans-serif;
    color: var(--text-color);
}

body {
    padding: 1em;
    /* em = 16 px */
    background-color: var(--base-color);
}

h1,
h2,
h3 {
    /* headers */
    font-family: Merriweather, Poppins, sans-serif;
}

nav {
    /* nav bar*/
    margin: 1em auto 3em;
    width: min(1000px, 100%);
    /*Nav bar can grow up to 1000px but never exceed screen size*/
}

nav ul {
    /* list in nav bar */
    display: flex;
    /* horizontal row */
    align-items: center;
    list-style-type: none;
    /* removes bullets */
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
    font-family: Merriweather, Poppins;
    font-weight: bold;
    font-size: larger;
}

nav a {
    text-decoration: none;
    /* removes underline by default for links */
    color: var(--text-color);
    transition: .5s;
}

nav a:hover {
    /* when hovering ontop of link, underline link*/
    color: rgb(0, 88, 183);
}

header,
section {
    margin: 2em auto;
    width: min(75em, 100%);
    background: var(--color-1);
    padding: min(2em, 15%);
    border-radius: 1em;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

.text-container {
    flex: 0 1 34em;
}

.text-container p {
    margin: .75em 0 1em 0;
    font-size: 1.25rem;
}

#centered-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: .5s;
}

a:hover {
    color: rgb(0, 88, 183);
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    text-decoration: underline;
}