* {
    box-sizing: border-box;
    font-family: sans-serif;
}

::-webkit-scrollbar {
    width: 7px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #aaa;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

html {
    scrollbar-color: #aaa transparent;
    scrollbar-width: thin;
}

body {
    margin: 0;
}

header {
    padding: 5px;
    width: 100%;
    box-shadow: 0 0 3px #000;
    margin-bottom: 3px;
    display: flex;
}

main {
    display: table;
    margin: 0 auto;
    margin-bottom: 30px;
}

main a:nth-of-type(odd) {
    background-color: #eee;
}

main a {
    display: block;
    color: #000;
    text-decoration-line: none;
    padding: 5px;
}

main a:hover {
    background-color: #ddd;
}

.date {
    padding: 5px;
    color: #555;
}

.date.new {
    color: green;
}

.buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
}

button {
    margin: 10px 10px 10px 0;
    cursor: pointer;
    border-radius: 13px;
    padding: 5px 10px;
    border-width: 0;
    background-color: #eee;
}

button:hover,
.active {
    background-color: #aaa;
}

.dark,
.dark button,
.dark a,
.dark input {
    background-color: #000 !important;
    color: #acb !important;
}

@media(prefers-color-scheme:dark) {

    body,
    button,
    a,
    input {
        background-color: #000 !important;
        color: #acb !important;
    }

    .search,
    button.rss-btn {
        border: 1px solid #333 !important;
    }

}

@media(prefers-color-scheme:light) {

    body,
    button,
    a,
    input {
        background-color: #000 !important;
        color: #acb !important;
    }

    .search,
    button.rss-btn {
        border: 1px solid #333 !important;
    }

}

.search {
    display: block;
    margin: 10px auto;
    width: calc(100% - 20px);
    font-size: 1rem;
    padding: 5px;
    border: 1px solid #aaa;
}

.search-wrapper {
    position: relative;
}

.clear-btn {
    position: absolute;
    margin: 0 auto;
    top: 1px;
    display: inline-block;
    background-color: transparent!important;
    font-size: 22px;
    padding: 1px 8px;
    border-radius: 0;
    right: 11px;
}

.clear-btn:hover {
    background-color: transparent;
}

.hidden {
    display: none;
}

.dm {
    display: none;
}
