:root {
    --theme-color: #c23616;
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background-color: #eee;
    font-family: "verdana", sans-serif;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.link {
    color: black;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.link-subtle {
    text-decoration: none;
}

.link-subtle:hover {
    text-decoration: none;
}

.transparent {
    opacity: 0;
}

.hidden {
    display: none;
}

#header-container {
    position: relative;
}

#header-image {
    width: 100%;
    aspect-ratio: 4/1;
    object-fit: cover;
    display: block;
}

#header-attribution {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 10px;
    background-color: #444444b8;
}

#header-attribution a {
    color: #aaa;
    font-size: 14px;
}

#header-attribution a:focus-visible {
    outline: 3px solid #aaa;
    outline-offset: 7px;
}

@media screen and (max-width: 600px) {
    #header-attribution {
        padding: 8px;
    }

    #header-attribution a {
        font-size: 12px;
    }

    #header-attribution a:focus-visible {
        outline: 2px solid #aaa;
        outline-offset: 6px;
    }
}

/* Navigation bar */

#menu-bar {
    height: 50px;
    background-color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#menu-bar .button {
    display: flex;
    width: 120px;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #0000;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

#menu-bar .button:hover {
    color: #333;
}

#menu-bar .button.current {
    color: black;
}

#menu-bar .button:focus-visible {
    outline: none;
    color: #333;
}

@media screen and (max-width: 600px) {
    #header-image {
        aspect-ratio: 2/1;
    }
}

/* Mobile navigation bar */

#menu-show {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    user-select: none;
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform .3s ease-out;
    z-index: 20;
}

#menu-show.revealed {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion) {
    #menu-show {
        transition: none;
    }
}

@media screen and (max-width: 600px) {
    #menu-show {
        display: flex;
    }

    #menu-bar {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(101%);
        height: 100%;
        transition: transform .3s ease-in-out;
        padding-top: 50px;
    }

    #menu-bar.revealed {
        transform: translateX(0%);
    }

    #menu-bar .button {
        display: block;
        height: auto;
        width: auto;
        font-size: 22px;
        padding: 10px 80px 10px 30px;
        margin: 10px 0 10px 0;
    }
}

/*        */



#main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#title {
    text-align: center;
    margin: 40px 40px 60px 40px;
    font-size: 40px;
}

#content {
    width: 80%;
}

#footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    font-size: 12px;
    background-color: var(--theme-color);
}

#footer-content {
    margin: 5px 0 5px;
}

#footer p {
    margin: 5px;
    color: #111;
}

#footer #sitemap {
    font-size: 15px;
    margin-bottom: 10px;
}

#footer #sitemap a {
    color: #111;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.col-1  { display: flex; flex-direction: column; width:   8.3333%; }
.col-2  { display: flex; flex-direction: column; width:  16.6666%; }
.col-3  { display: flex; flex-direction: column; width:  25.0000%; }
.col-4  { display: flex; flex-direction: column; width:  33.3333%; }
.col-5  { display: flex; flex-direction: column; width:  41.6666%; }
.col-6  { display: flex; flex-direction: column; width:  50.0000%; }
.col-7  { display: flex; flex-direction: column; width:  58.3333%; }
.col-8  { display: flex; flex-direction: column; width:  66.6666%; }
.col-9  { display: flex; flex-direction: column; width:  75.0000%; }
.col-10 { display: flex; flex-direction: column; width:  83.3333%; }
.col-11 { display: flex; flex-direction: column; width:  91.6666%; }
.col-12 { display: flex; flex-direction: column; width: 100.0000%; }

.col-center {
    align-items: center;
}

.row-center {
    justify-content: center;
}



.container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.wrap-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.container-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

project-entry {
    display: flex;
    flex-direction: column;
    width: 330px;
    height: 330px;
    margin: 20px;
    align-items: center;
    background-color: white;
    filter: drop-shadow(4px 4px 4px #ddd);
    cursor: pointer;
    transition: all .3s ease-out;
}

project-entry:hover {
    filter: drop-shadow(4px 4px 4px #bbb);
}

project-entry a {
    width: 100%;
    height: 100%;
}

.thumbnail {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.item-title {
    margin: 20px;
    font-size: 20px;
    text-align: center;
}

.item-desc {
    font-size: 14px;
    margin: 0 15px 0 15px;
    text-align: center;
}
