/* style.css */
body {
    background-color: #2A2A2A;
    color: #DDDDDD;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

a:link,
a:visited {
    color: #FFB300;
    text-decoration: none;
}

a:active,
a:hover {
    color: #FFCC66;
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}

.small-text {
    font-size: 10px;
    font-family: Verdana, Arial, sans-serif;
}

table.forum-layout {
    width: 100%;
    border: 1px solid #111111;
}

table.forum-layout td {
    padding: 6px;
    word-break: break-word;
}

.td-header {
    background-color: #333333;
    color: #FFFFFF;
    font-size: 12px;
    padding: 4px;
    border-bottom: 1px solid #111111;
}

.post-header {
    background-color: #222222;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #111111;
}

.post-author {
    background-color: #1a1a1a;
    width: 150px;
    text-align: left;
    border-right: 1px solid #111111;
}

.username {
    font-weight: bold;
    color: #FF9900;
    font-size: 13px;
    margin-bottom: 3px;
}

.user-title {
    font-size: 10px;
    color: #AAAAAA;
}

.post-content-cell {
    background-color: #202020;
}

.post-body {
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-signature {
    color: #888888;
}

.center {
    text-align: center;
}

.sort-links {
    color: #aaaaaa;
}

.sort-links a {
    margin-left: 6px;
}

.thread-search {
    margin-top: 6px;
}

.thread-search input {
    width: 130px;
    padding: 1px 3px;
    border: 1px solid #444444;
    background: #101010;
    color: #DDDDDD;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.thread-search button {
    margin-left: 4px;
    padding: 1px 6px;
    border: 1px solid #444444;
    background: #222222;
    color: #DDDDDD;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.thread-search button:hover {
    background: #2E2E2E;
}

.thread-search-status {
    margin-top: 4px;
    color: #AAAAAA;
}

.thread-pagination {
    margin: 8px 0;
    color: #AAAAAA;
}

.thread-pagination a {
    margin-right: 8px;
}

.thread-pagination .current-page {
    color: #FFFFFF;
    font-weight: bold;
    margin-right: 8px;
}

.site-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 50px;
    height: 50px;
    display: block;
    transform: translateY(3px);
}

.amf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.amf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    max-width: calc(100% - 40px);
    border: 2px solid #5a5a5a;
    background: #1b1b1b;
    color: #dddddd;
    z-index: 9999;
    box-shadow: 4px 4px 0 #000;
    display: none;
}

.amf-modal-header {
    background: #2b2b2b;
    border-bottom: 1px solid #0f0f0f;
    padding: 6px 8px;
    font-weight: bold;
    color: #ffffff;
}

.amf-modal-body {
    padding: 10px;
    line-height: 1.4;
    font-size: 12px;
}

.amf-modal-footer {
    padding: 8px 10px 10px;
    text-align: right;
}

.amf-modal-btn {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 2px 10px;
    border: 1px solid #666666;
    background: #2a2a2a;
    color: #eeeeee;
    cursor: pointer;
}

.amf-modal-btn:hover {
    background: #333333;
}

@media (max-width: 760px) {
    body {
        margin: 6px;
        font-size: 13px;
    }

    .small-text {
        font-size: 11px;
    }

    .site-logo {
        width: 40px;
        height: 40px;
    }

    .header-table td,
    body > table td[align="right"] {
        display: block;
        width: 100% !important;
        text-align: left !important;
    }

    body > table td[align="right"] {
        padding-top: 0;
    }

    table.forum-layout {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.forum-layout td {
        min-width: 96px;
    }

    #thread-rows tr td:nth-child(4),
    #thread-rows tr td:nth-child(5),
    table.forum-layout tr:first-child td:nth-child(4),
    table.forum-layout tr:first-child td:nth-child(5) {
        display: none;
    }

    .thread-search input {
        width: 150px;
        max-width: calc(100vw - 90px);
    }

    .post-author {
        width: 120px;
    }

    .post-content-cell table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}
