@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Besley:wght@600&display=swap');

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

/* Body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f5f2;
    color: #222525;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
}

/* Text */
b {
    font-weight: 500;
}

a {
    color: #078080;
}

a:hover {
    color: #222525;
}

.white-link {
    color: #fffffe;
    text-decoration: none;
}

.white-link:hover {
    color: #bcbdbd;
}

h1 {
    font-family: 'Besley', serif;
    font-size: 42px;
    line-height: 54px;
    font-weight: 600;
    margin: 15px 0px;
}

h2 {
    font-family: 'Besley', serif;
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
}

h3 {
    font-family: 'Besley', serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 600;
}

.margin-top-font-shrink {
    margin-top: 15px;
    font-size: 14px;
}

.margin-top-font-shrink-black {
    font-size: 14px;
    color: #222525;
}

.top-margin {
    margin-top: 20px;
}

/* Blockquote */
blockquote {
    background-color: #e5f1ed;
    color: #222525;
    border-left: 4px solid #078080;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-style: italic;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.ghost-item {
    visibility: hidden;
}

.li-figures {
    background-color: #e5f1ed;
    border: 1px solid #078080;
    border-radius: 2px;
    padding: 7px 14px;
    font-size: 16px;
    font-weight: 500;
}

/* Separator */
hr {
    border: none;
    border-top: 1px solid #bcbdbd;
    margin: 25px 0px 20px 0px;
}

.invisible {
    border: none;
    border-top: 0px;
    margin: 25px 0px 0px 0px;
}

/* Navigation */
.nav-wrapper {
    max-width: 1000px;
    margin: 0px auto;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

nav li:last-child {
    margin-left: 30px;
}

nav a {
    display: block;
    text-decoration: none;
    color: #222525;
}

nav a.active, nav a:hover {
    color: #078080;
}

/* Footer */
.footer-wrapper {
    max-width: 1000px;
    margin: 0px auto;
}

footer {
    padding: 20px 0px;
    background-color: #004643;
    color: #fffffe;
}

footer a {
    color: #fffffe;
}

footer a:hover, footer a.active {
    color: #bcbdbd;
}

/* Logo */
.logo, .logo-footer {
    margin-right: auto;
    font-weight: 500;
}

.logo a:hover {
    color: #222525;
}

.logo-footer a:hover {
    color: #fffffe;
}

/* Header */
header {
    padding: 20px 0px;
    background-color: #fffffe;
}

/* Page Highlight, Page Description */
.page-highlight {
    background-color: #078080;
}

.page-description {
    max-width: 1000px;
    margin: 0px auto;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: 300px;
    color: #fffffe;
}

/* Items List */
.items-list {
    max-width: 1000px;
    margin: 0px auto;
    padding: 30px 0px;
}

.divider-item {
    max-width: 1000px;
    margin: 0px auto;
    padding-bottom: 10px;
}

.items-list ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 20px 0px;
}

.items-list ul.ul-figures {
    justify-content: start;
}

.items-list li {
    flex: 1;
}

.items-list li.li-figures {
    flex: none;
}

.items-list a {
    text-decoration: none;
}

.items-list a.underline-link {
    text-decoration: underline;
}

.items-list ul li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 24px;
}

.items-list ul li:last-child {
    margin-right: 0px;
}

/* Section Highlight */
.section-highlight {
    background-color: #e5f1ed;
}

.section-divider {
    border-top: 1px solid #bcbdbd;
    max-width: 1000px;
    margin: 0px auto;
}

/* Button */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.items-list ul.ul-figures-top-margin {
    justify-content: start;
    margin-bottom: 10px;
}

ul:last-child {
    margin-bottom: 0px;
}

.error {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #e5f1ed;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.error-heading {
    font-size: 210px;
    margin: 0;
}

.error-text {
    text-align: center;
    margin-bottom: 40px;
}

/* Featured Header */
.featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsiveness */
@media (max-width: 1000px) {
    .nav-wrapper {
        max-width: 90%;
    }

    .page-description {
        max-width: 90%;
        padding-right: 0px;
    }

    .items-list {
        max-width: 90%;
    }

    .footer-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 800px) {
    .items-list ul.ul-figures {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-list ul.ul-figures-top-margin {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-list ul {
        flex-wrap: wrap;
        margin: 0px;
    }

    .items-list h2 + ul {
        margin-top: 20px;
    }

    .items-list h3 + ul {
        margin-top: 20px;
    }

    .items-list .featured + ul {
        margin-top: 20px;
    }

    .items-list li {
        flex: calc(33.33% - 8px);
        margin-bottom: 20px;
    }

    .items-list ul:last-of-type {
        margin-bottom: 0;
    }
    
    .items-list ul:last-of-type li:last-child {
        margin-bottom: 0;
    }

    .items-list li:nth-child(3n) {
        margin-right:0px;
    }

    .items-list li:nth-child(3n + 1) {
        margin-left: 0px;
    }
}