:root {
    --background-color: #121212;
    --surface-color: #222222;
    --surface-color-2: #353535;
    --text-color: #cdcdcd;
}

html {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: sans-serif;

    width: 100%;
    height: 100%;
    display: flex;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

body {
    width: min(100%, 60rem);
    display: flex;
    flex-direction: column;
}

.expanded-image-body {
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0;
    padding: 0;
}

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

a:hover {
    text-decoration: underline;
}

img {
    width: 100%;
    border-radius: 0.5rem;
    display: block;
    margin: auto;
}

.right_align {
    display: flex;
    justify-content: flex-end;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    margin: 0 0.25rem;
}

code {
    background-color: var(--surface-color-2);
    border-radius: 0.2rem;
    padding: 0.1rem;
}

pre > code {
    display: block;
    border-radius: 0.5rem;
    padding: 0.5rem;
    overflow: auto;
}

.header {
    background-color: var(--surface-color);
    display: flex;
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 1rem;
}

.header .header_link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    margin: 1rem;
}

.body {
    display: flex;
    margin: 0 1rem;
    flex: 1 0 0;
}

.body .content {
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 1rem;
    flex: 1 0 0;
    min-width: 0;
}

.footer {
    margin: 1rem;
    padding-bottom: 1rem;
    flex: 0 0 0;
    display: flex;
    justify-content: space-evenly;
}

.footer .item {
    display: flex;
    justify-content: center;
}

.back-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.back-button > img {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 40rem) {
    .footer {
        flex-direction: column;
    }
}