html {
    height: 100%;
    width: 100%;
}

body {
    background-image: url("background.jpg");
    background-position: center;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    margin: 0;
}

main {
    color: #ffe;
    background-color: rgb(0 0 0 / 0%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    height: 90%;
    width: 90%;
    text-align: center;
    border: 2px solid white;
    display: grid;
    grid-template:
	'header header' 80px
	'article nav' 1fr
    / 1fr max(140px, 15%);
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    grid-area: header;
    background-color: rgb(210 200 180 / 50%);
    padding: 5px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid white;
}

header h1 {
    margin: 0;
}
header h5 {
    margin: 0;
}

article {
    grid-area: article;
    background-color: rgb(0 215 200 / 50%);
    border-radius: 0 0 0 20px;
    padding: 2%;
    overflow-y: scroll;
}

nav {
    grid-area: nav;
    background-color: rgb(133 0 133 / 50%);
    border-left: 1px solid white;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 0 0 20px 0;
}

nav a {
    margin-bottom: 12px;
}

#article-text {
    font-size: 15px;
    font-family: sans-serif;
    margin: 24px 10%;
}

.image-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.image-list img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    margin: 24px;
}

.image-div {
    display: block;
}

#image-overlay {
    visibility: hidden;
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 40%);
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
}

#image-overlay img {
    object-fit: contain;
    max-height: 90vh;
    max-width: 90vw;
}

footer {
    color: #dcdccc;
    text-align: right;
    align-self: end;
    margin-right: 16px;
}

@media screen and (max-width: 800px) {
    main {
        grid-template:
            'header' 80px
            'article' calc(100% - 80px) / 100%;
    }

    article {
        border-radius: 0 0 20px 20px;
    }

    nav {
        visibility: hidden;
    }

    .image-list img {
        max-width: 240px;
        object-fit: scale-down;
        margin: 12px;
    }

    #article-text {
	margin: 24px 0;
    }
}
