::-moz-selection,
::selection {
    background: #fdffbe;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    letter-spacing: 0.3px;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    font-family: "Old Standard TT", serif;
}

img,
picture {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
}

a,
input,
button,
textarea,
select {
    color: inherit;
    font: inherit;
}

.wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

.secondary-background {
    background-color: #f1f1f1;
}

.tags-form,
.listing-container > div {
    margin: 3.25em 0;
}

.tob-bar {
    text-align: center;
    border-bottom: 1px solid #eee;

    a {
        text-decoration: none;
    }
}

.tags {
    list-style-type: none;

    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;

    padding: 0;
    margin: 0 0 1.5rem 0;

    strong {
        display: inline-block;
        padding: 2px 8px;
    }

    span {
        display: inline-block;
        padding: 4px 8px;

        font-size: 0.8rem;

        cursor: pointer;
        border-radius: 2px;
        background: #efefef;
        transition: 0.3s ease background;

        &:hover {
            background: #ccc;
        }
    }

    label input:checked + span {
        background: #ccc;
    }
}

.pagination {
    &,
    ul {
        display: inline-flex;
        gap: 1rem;
    }
    ul {
        padding: 0;
        list-style-type: none;
    }
    .current-number {
        pointer-events: none;
        text-decoration: none;
    }
}

.content h2 {
    font-size: 1.17em;
}

#images {
    margin: 2rem 0 1.5rem 0;
}

footer {
    text-align: center;
}
