* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: black;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.m-wrapper {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#post_page .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background-color: #001935;
    border-bottom: 1px solid black;
    color: white;
}

#post_page .header .logo-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#post_page .header .logo {
    font-size: 1.64rem;
    font-weight: bold;
    white-space: nowrap;
    color: #ccc;
}

#post_page .header .logo:hover {
    color: white;
    text-decoration: none;
}

#post_page .header .posts-counter {
    display: flex;
    align-items: center;
}

#post_page .header .posts-counter svg {
    width: 12px;
    fill: #808080;
}

#post_page .header .posts-counter>div {
    background-color: #4a4e69;
    color: #eee;
    margin-left: -3px;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 2px solid #808080;
}

#post_page .header .mobile-buttons {
    display: none;
    gap: 2rem;
    align-items: center;
    line-height: 1;
}

#post_page .header .mobile-buttons svg {
    width: 22px;
    fill: #ccc;
}

#post_page .header .mobile-buttons .show-list svg path {
    fill: #ccc;
}

#post_page .header .buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

#post_page .header .buttons .button {
    padding: 0.75rem 1rem;
    border-radius: 3px;
    font-size: 1.24rem;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

#post_page .header .buttons .button:hover {
    text-decoration: none;
    opacity: 0.9;
}

#post_page .header .buttons .source {
    max-width: 240px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #4a4e69;
    color: #eee;
    font-size: 0.9rem;
    font-weight: normal;
    font-family: 'Courier New', Courier, monospace;
}

#post_page .header .buttons .source code {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#post_page .header .buttons .source svg {
    width: 16px;
    fill: #eee;
}

#post_page .header .buttons .show-list {
    color: #eee;
    background-color: brown;
}

#post_page .header .buttons .random {
    background-color: #f6ae2d;
    color: black;
}

#post_page .header .buttons .next {
    background-color: #007bff;
    color: white;
}

#post_page .content {
    position: fixed;
    top: 60px;
    height: calc(100vh - 60px);
    width: 100%;
    overflow: hidden;
}

#post_page .content iframe {
    border: none;
    width: 100%;
    height: 100%;
}

#post_page .content .notfound {
    margin: 4rem auto 0;
    text-align: center;
    font-size: 1.24rem;
}

#post_page .content .notfound h1 {
    font-size: 1.64rem;
    font-weight: bold;
}

#list_page .wrapper {
    max-width: 880px;
    padding: 0 1rem;
}

#list_page .header {
    width: 100%;
    height: 60px;
    padding: 0.5rem 0;
}

#list_page .header .logo-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#list_page .header .logo {
    font-size: 1.64rem;
    font-weight: bold;
    white-space: nowrap;
    color: #222;
}

#list_page .header .logo:hover {
    color: black;
    text-decoration: none;
}

#list_page .header .posts-counter {
    display: flex;
    align-items: center;
}

#list_page .header .posts-counter svg {
    width: 12px;
    fill: #222;
}

#list_page .header .posts-counter>div {
    background-color: #222;
    color: #fff;
    margin-left: -3px;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 2px solid #222;
}

#list_page .posts {
    width: 100%;
    padding: 0 1rem;
}

#list_page .posts ul {
    list-style-type: disc;
    padding-left: 2rem;
    font-size: 1.24rem;
}

#list_page .posts ul li {
    padding: 0.3rem 0rem;
}

#list_page .posts .pagination {
    margin-top: 2rem;
}

#notfound_page,
#error_page {
    padding: 1rem;
}

#notfound_page .container,
#error_page .container {
    margin-top: 3rem;
    text-align: center;
    font-weight: 500;
}

#notfound_page .container h1,
#error_page .container h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

#notfound_page .container p,
#error_page .container p {
    margin-top: 1.5rem;
}

@media only screen and (max-width: 580px) {
    #post_page .header .mobile-buttons {
        display: flex;
    }

    #post_page .header .buttons {
        display: none;
    }

    #list_page .posts ul {
        padding-left: 0rem;
        line-height: 1.4;
    }
}