@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
   --base-color: #ffffff;
   --text-color: #000000;
   --primary-color: #ffc06e;
   --secondary-color: #8D8DFF;
   --tertiary-color: #80EF80;
   --color-1: #F9F6F3;
   --color-2: #efe5dc;
   --color-3: #F9F6F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Inter, 'Courier New', Courier, monospace;
}

body {
    font-family: Inter, 'Courier New', Courier, monospace;
    color: var(--text-color);
    padding: 1em;
    background-color: var(--base-color);
}

h1, h2, h3 {
    font-family: Lora, Inter, 'Courier New', Courier, monospace;
}

nav {
    margin: 1em auto 3em auto;
    width: min(1000px, 100%);
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
    font-family: Lora, Inter;
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    text-decoration: underline;
}

header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    background-color: 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;
}

.flex-container .text {
    flex-basis: 100%;
    text-align: center;
}

header img {
    max-width: 100%; /* Prevents image from overflowing container*/
    border-radius: 1em; /* Round borders */
    object-fit: cover; /* Image fills space without stretch */
    object-position: bottom; /* Focus on bottom part of image if cropping happens */
}

section#contact img {

}

.text-container {
    flex: 0 1 34em; /* 0 - Container does not grow. 1 - Container will shrink if needed. 34em - text container width */
}

h1 {
    font-size: 2.5 rem; /* Font size of header*/
 }

.text-container li {
    padding-left: 1.2em
}

.text-container ul {
    padding-left: 0;
}

.text-container p {
    margin: 0.75em 0 1em 0; /* Top Right Down Left */
    font-size: 1.25rem; /* Font size 1.25x the standard, root font size */
}

.cta-button {
    display: inline-block; /* Displays the buttons as blocks, rather than links */
    text-decoration: none; /* Remove underline */
    color: white;
    background-color: var(--primary-color); /* Set background color of blcok */
    padding: .75em 1.25em;
    border-radius: .5em;
    font-weight: 700;
    text-align: center;
}

.secondary {
    background-color: var(--secondary-color);
}

.tertiary {
    background-color: var(--tertiary-color)
}

section img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: fill;
}

section {
    padding: 3em min(2em, 15%);
    background-color: var(--color-1);
}

section .cta-button {
    display: block;
    width: fit-content;
    margin: 1em auto;
}

h2 {
    font-size: 2.5rem;
}

section h2 {
    text-align: center;
}

section li {
    /* Try to center bullet points */
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
    text-align: center;
}

section ul {
    /* Try to center bullet points */
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-color);
}

.about img {
    object-position: bottom;
}

footer a:hover {
    text-decoration: underline;
}

.card {
    margin: 1em;
    background-color: var(--color-2);
    border-radius: 1em;
    padding: min(1em, 15%);
    width: auto;
}

@media(max-width: 988px) {
    header {
        text-align: center;
    }

    header .text-container {
        padding-top: 0;
    }
}

@media(max-width: 640px) {
    nav li {
        display: none;
    }

    nav li:first-child,
    nav li:last-child {
        display: block;
    }

    header {
        margin-top: 0;
    }

    .cta-button {
        margin-top: .5em;
        width: 100%;
    }

    .text-container p {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}