body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, footer {
    background-color: #D3D3FF;
    margin: 0;
    padding: 10px 20px;
    flex-grow: 0;
    flex-shrink: 0;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 50px;
}

header a, footer a {
    text-decoration: none;
    color: black;
    padding: 10px;
}

header li, footer li {
    list-style: none;
    display: flex;
}

main {
    margin: 20px;
    flex-grow: 1;
}

#heading, h2, h3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.border {
    border: 1px solid black;
}

#heading p {
    margin-bottom: 0;
}

/* For if there are multiple flags in a page's heading*/
#heading-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

#buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

#info {
    margin: 10px 100px 0;
}

#info li {
    margin-bottom: 10px;
}

summary {
    padding: 5px;
    margin-bottom: 10px;
}

figcaption {
    margin-top: 5px;
}

.split-in-two {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
}

.split-in-two div {
    flex: 1;
}

/* For links to other pages in page headings */
#redirect {
    margin: 20px 200px;
    text-align: center;
}

/* For resources and DIY flags pages */
h2 {
    margin-top: 50px;
}

/* For about page */
h3 {
    margin-top: 50px;
}

/* For FAQ page */
.intro {
    margin-top: 50px;
}

/* For DIY flag page */
#subtitle {
    text-align: center;
}

.spacing {
    margin-top: 20px;
}

.photo-desc {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 25px;
}

.photo-desc figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure {
    text-align: center;
}

#top-link {
    display: flex;
    justify-content: center;
    padding: 10px;
}

footer nav {
    display: flex;
    justify-content: space-around;
}