:root {
    color-scheme: light dark;
    --background: light-dark(#f8f8fa, #20252b);
    --text: light-dark(#17212b, #17212b);
    --image-size: 50px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: sans-serif;
    margin: 0 auto;
    margin-top: 0;
    max-width: 1400px;
    padding: 0 2vw 2vw;
}

img {
    image-rendering: pixelated;
}

h1 {
    background: #d7c1ed;
    padding: 0.5em;
    text-align: center;
}

h3 {
    margin: 0;
    padding: 0.5em 0.75em;
    text-align: left;
}

p {
    text-align: center;
}

.search {
    margin: 1em 0;
    text-align: center;
}

.search>.label {
    margin-right: 1em;
}

.search>input {
    border: 2px solid #17212b;
    border-radius: 0;
    font: inherit;
    padding: 0.5em;
}

.search>button {
    border: 2px solid #17212b;
    border-radius: 0;
    cursor: pointer;
    padding: 0.5em 0.75em;
    visibility: hidden;
}

.sections {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.sections>div {
    box-sizing: border-box;
    display: block;
    padding: 0.75em;
    width: 100%;
}

.sections>div:nth-child(1) {
    background: #f7d794;
}

.sections>div:nth-child(2) {
    background: #a8d8ea;
}

.sections>div:nth-child(3) {
    background: #b8e0d2;
}

.sections>div:nth-child(4) {
    background: #f6c5c0;
}

.sections>div:nth-child(5) {
    background: #d7c1ed;
}

.sections>div:nth-child(6) {
    background: #c5d5ea;
}

.sections>div:nth-child(7) {
    background: #f4d6a6;
}

.sections>div:nth-child(8) {
    background: #c7e9b0;
}

.sections>div:nth-child(9) {
    background: #f3b7c5;
}

.sections>div:nth-child(10) {
    background: #b9c7f5;
}

.sections>div:nth-child(11) {
    background: #f2c6a0;
}

.content {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-evenly;
}

.link {
    text-align: center;
    min-width: calc(var(--image-size) + 2em);
    padding: 10px 10px 3px;
}

.link:hover {
    background-color: #ffffff66;
    outline: 3px solid #17212b;
}

.link img {
    max-width: var(--image-size);
    max-height: var(--image-size);
    height: var(--image-size);
    object-fit: contain;
}

/*
@media (prefers-color-scheme: dark) {
  .hide-light {
    display: none;
  }
}

@media (prefers-color-scheme: light) {
  .hide-dark {
    display: none;
  }
}
*/

.round-corners {
    border-radius: 15px;
}

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

.footer {
    color: gray;
    font-size: small;
    margin-top: 5em;
    text-align: center;
}
