
:root {
    --link-color: #0070E0;
    --link-active-color: #0040B0;
    --link-visited-color: #551A8B;
}

body {
    font-family: "Roboto Slab", serif;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
}

a {
    color: var(--link-color);
}

a:focus, a:active {
    color: var(--link-active-color);
}

a:visited {
    color: var(--link-visited-color);
}

.index-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.index-header {
    align-self: center;
    justify-content: center;
    text-align: center;
    width: 100%
}

.index-header-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    justify-content: space-around;
}

.index-banner-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
}

.index-banner {
    width: 100%;
}

.index-header-link {
    display: block;
}

h1 {
    font-variant: small-caps;
}

.index-page-width {
    @media screen {
        max-width: 1760px;
    }
    @media screen and (max-width: 1759px) {
        max-width: 1320px;
    }
    @media screen and (max-width: 1319px) {
        max-width: 960px;
    }
    @media screen and (max-width: 1000px) {
        max-width: 720px;
    }
    @media screen and (max-width: 719px) {
        max-width: 480px;
    }
    @media screen and (max-width: 479px) {
        max-width: 440px;
    }
}

.index-container {
    align-self: center;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    @media screen and (min-width: 1320px) {
        grid-template-columns: repeat(auto-fill, 440px);
    }
    @media screen and (max-width: 479px) {
        grid-template-columns: repeat(auto-fill, 440px);
    }
}

.index-page-item {
    width: 200px;
    @media screen and (min-width: 1320px) {
        width: 400px;
    }
    @media screen and (max-width: 479px) {
        width: 400px;
    }
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.post-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.post-item {
    align-self: center;
    @media screen {
        max-width: 1500px;
        width: 100%;
    }
    @media screen and (max-width: 1499px) {
        max-width: 1024px;
    }
    @media screen and (max-width: 1023px) {
        max-width: 800px;
    }
    @media screen and (max-width: 799px) {
        max-width: 480px;
    }
    @media screen and (max-width: 479px) {
        max-width: 420px;
    }
    text-align: start;
}

.image {
    text-align: center;
}


nav ul {
    list-style: none;
    padding-left: 0;
}

nav ul li {
    display: inline-block;
    text-align: left;
}

nav a {
    display: block;
    transition: color 0.2s;
    color: var(--link-color);
    font-size: 18px;
    line-height: 2;
}

nav a:visited {
    color: var(--link-color);
}

nav ul ul li a:visited {
    color: var(--link-visited-color);
}

nav ul ul li a {
    color: var(--link-color);
}
nav ul ul li a:focus,
nav ul ul li a:active {
    color: var(--link-active-color);
}
nav a:hover,
nav a:focus,
nav a:active,
nav a:focus:hover,
nav a:active:hover {
    color: var(--link-active-color);
}

nav ul ul {
    display: none;
    position: absolute;
    background: #eeeeee;
    padding: 8px 0 8px 0;
    z-index: 2;
}

nav ul ul li {
    display: list-item;
    position: relative;
    padding-left: 16px;
    padding-right: 16px;
}

nav ul li:focus > ul,
nav ul li:active > ul {
    display: inherit;
}

nav a:focus + ul,
nav a:active + ul {
    display: inherit;
}

figure {
    margin-left: 0;
    margin-right: 0;
}