@import "https://wapchan.org/stylesheets/wapstyles/fontimport.css";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial Pixelated 16", "PC-98", Verdana, Arial, sans-serif;
    font-size: 12px;
    background: #222;
    color: #ffdd00;
    min-height: 100vh;
}


.header {
    background: #1e1e1e;
    color: #000;
    padding: 8px;
    border-bottom: 1px solid #000;
}

.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.logo img {
    max-width: 150px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.user-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}
@media (max-width: 640px) {
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .nav-tab {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
        font-size: 0.85rem;
        padding: 8px 6px;
    }
}

.user-controls input,
.user-controls button {
    padding: 3px 6px;
    font-size: 11px;
    border: 1px solid #999;
    background: #fff;
}

.user-controls button {
    background: #ddd;
    cursor: pointer;
}

.user-controls button:hover {
    background: #ccc;
}

.nav-tabs {
    display: flex;
}

.nav-tab {
    padding: 8px 16px;
    background: #444;
    border-right: 1px solid #000;
    color: #ffdd00;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}

.nav-tab:hover,
.nav-tab.active {
    background: #ffdd00;
    color: #000;
}

.sub-nav {
    background: #2a2a2a;
    padding: 6px 12px;
    border-bottom: 1px solid #444;
    font-size: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.sub-nav a {
    color: #ffdd00;
    text-decoration: none;
}

.sub-nav a:hover {
    text-decoration: underline;
}

.sub-nav-right {
    margin-left: auto;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.about-section {
    background: #1e1e1e;
    border: 2px solid #444;
    margin-bottom: 20px;
    padding: 20px;
}
.box-header {
	font-weight: bold;
	font-size: 20px;
}
.about-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    max-width: 190px;
    max-height: 120px;
    border-radius: 3px;
    border: 2px solid #444;
}

.about-text h2 {
    color: #ffdd00;
    margin-bottom: 12px;
    font-size: 16px;
}

.about-text p {
    color: #ccc;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
}

.about-text a {
    color: #fd0;
    font-weight: bold;
    text-decoration: none;
}

.about-text a:hover {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}
.pixel {
	image-rendering: pixelated;
}
.about-title {
    font-size: 24px !important;
    font-weight: bold;
}
.forum-section {
    background: #1e1e1e;
    border: 2px solid #444;
}

.section-header {
    background: #ffdd00;
    color: #000;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 12px;
}

.forum-row {
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    border-bottom: 2px solid #333;
}

.forum-row:hover {
    background: #252525;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-info {
    flex: 1;
    min-width: 0;
}
.holder {
    margin-left: 1em;
    margin-right: auto;
}
.forum-title {
    color: #ffdd00;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.forum-title:hover {
    color: #fff;
}

.forum-desc {
    color: #ccc;
    font-size: 11px;
    line-height: 1.3;
}

.forum-stats {
    min-width: 80px;
    font-size: 11px;
    flex-shrink: 0;
}

.forum-stats div {
    color: #ffdd00;
    font-weight: bold;
}

.last-post {
    min-width: 150px;
    font-size: 11px;
    text-align: right;
    flex-shrink: 0;
}

.last-post-title {
    color: #ffdd00 !important;
    margin-bottom: 2px;
}

.last-post-info {
    color: #999;
}

.last-post-info a {
    color: #ffdd00;
}

.sidebar {
    width: 250px;
    background: #1e1e1e;
    border-bottom: 2px solid #444;
    padding: 0;
    height: fit-content;
    flex-shrink: 0;
}

.sidebar-header {
    background: #333;
    color: #ffdd00;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #444;
}

.sidebar-content {
    padding: 8px 10px;
    font-size: 11px;
    border-left: 2px solid #444;
    border-right: 2px solid #444;
}

.sidebar-content ul {
    list-style: none;
}

.sidebar-content li {
    margin-bottom: 5px;
    position: relative;
}

.sidebar-content a {
    color: #ccc;
    text-decoration: none;
}

.sidebar-content a:hover {
    color: #ffdd00;
}

.oekaki {
    display: inline-block;
}

.oekaki img {
    border: 1px solid #ffdd00;
    max-width: 50px;
    max-height: 50px;
}

#friends {
    text-align: center;
}

#friends li {
    display: inline-block;
}

#friends li img {
    max-width: 70px;
}

.article h2 {
    font-size: 11px;
    color: #ffdd00;
    font-weight: bold;
}

.article p {
    margin-top: 5px;
}

.unimportant {
    color: #fff;
}

.chan-post {
    color: #ccc;
    /*font-family: monospace;*/
    font-size: 11px;
    margin-bottom: 4px;
    padding: 2px 4px;
    background: #252525;
    border-left: 2px solid #ffdd00;
}

.chan-post:hover {
    background: #2a2a2a;
}

.chan-post-board {
    background: #333;
    border: 1px solid #444;
    color: #ffdd00;
    font-size: 12px;
    font-weight: bold;
}

.online-users {
    color: #ccc;
    font-size: 11px;
}

.online-count {
    color: #ffdd00;
    font-weight: bold;
}

@media screen and (max-width: 768px) {

    .nav-tabs {
        background: none;
        border:none;
    }

    .container {
        flex-direction: column;
        padding: 5px;
        gap: 15px;
    }

    .main-content {
    	width: 100%;
        order: 2;
    }

    .sidebar {
        width: 100%;
    }

    .recent-images {
        order: 3;
        margin-top: 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        align-self: center;
    }

    .forum-row {
        align-items: flex-start;
    }

    .forum-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .forum-stats,
    .last-post {
        min-width: auto;
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .forum-stats {
        display: flex;
        gap: 15px;
    }

    .last-post {
        text-align: left;
    }

    .sub-nav {
        flex-direction: column;
        gap: 8px;
    }

    .sub-nav-right {
        margin-left: 0;
    }

    .image-item {
        width: 80px;
        height: 80px;
        font-size: 11px;
    }

    .gallery-nav {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* New stuff goes here lol */
.recent-images {
    width: 100%;
    background: #1e1e1e;
    border: 2px solid #444;
    margin: 10px auto;
    flex-basis: 100%;
}

.gallery-container {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    flex: 1;
    padding: 5px 0;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #ffdd00;
    border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

.image-item {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border: 2px solid #444;
    border-radius: 3px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-item:hover {
    border-color: #ffdd00;
}

.image-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gallery-nav {
    background: #333;
    border: 2px solid #444;
    color: #ffdd00;
    font-size: 20px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: #ffdd00;
    color: #000;
    border-color: #ffdd00;
}

.gallery-nav:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    background: #1e1e1e;
    border-top: 2px solid #ffdd00;
    margin-top: 30px;
    padding: 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffdd00;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    color: #999;
    font-size: 11px;
    border-top: 1px solid #444;
    padding-top: 15px;
}
/* lol */
.active-threads-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.thread-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background-color: #2f2f2f;
    border: 2px solid #444;
}

.post-board {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.thread-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.thread-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thread-title {
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
}

.thread-title:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .active-threads-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .thread-preview {
        position: relative;
        flex-direction: row;
        align-items: center;          /* key alignment fix */
        gap: 10px;
        padding: 10px;
        padding-top: 20px;            /* room for board label */
    }

    .post-board {
        position: absolute;
        top: 4px;
        left: 10px;
        font-size: 0.7rem;
        opacity: 0.8;
        white-space: nowrap;
    }

    .thread-preview img {
        width: 96px;
        height: 72px;
        flex-shrink: 0;
    }

    .thread-meta {
        gap: 6px;
    }

    .thread-title {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .thread-meta small {
        font-size: 0.75rem;
        opacity: 0.85;
    }
}






/* TV body */
.tv {
    position: relative;
    width: 100%;
    max-width: 420px;      /* adjust if you want bigger TVs */
    padding: 7%;
    background: #4a3b2a;
    border-radius: 5%;
    /* NO outer shadow */
    box-shadow:
        inset -8px -8px 0 #2d2218,
        inset 8px 8px 0 #6b5640;
    box-sizing: border-box;
}

/* Antennas scale naturally */
.antenna {
    position: absolute;
    width: 1%;
    min-width: 3px;
    height: 30%;
    background: #bbb;
    top: -28%;
}

.antenna.left {
    left: 32%;
    transform: rotate(-20deg);
}

.antenna.right {
    right: 32%;
    transform: rotate(20deg);
}

/* Screen scales with TV */
.screen {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 6%;
    overflow: hidden;
    box-shadow: inset 0 0 6vw rgba(0,255,0,0.15);
}

/* Image itself */
.screen img {
    width: 100%;
    display: block;
    filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

/* Scanlines */
.scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,0,0,0.2),
            rgba(0,0,0,0.2) 1px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    mix-blend-mode: multiply;
}


/* Dials */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4%;
}

.tv-label {
    font-weight: bold;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.dial-group {
    display: flex;
    gap: 10px;
}

.dial {
    width: 16px;           /* explicit size */
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #777, #222);
    box-shadow:
        inset -2px -2px 4px #000,
        inset 2px 2px 4px #999;
    flex-shrink: 0;
}



/* lol */

/* Mobile Responsive Updates */
@media screen and (max-width: 768px) {
    .recent-images {
        order: 3;
        margin-top: 0;
    }

    .gallery-container {
        padding: 8px;
        gap: 8px;
    }

    .image-item {
        width: 80px;
        height: 80px;
        font-size: 11px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .image-item {
        width: 70px;
        height: 70px;
        font-size: 9px;
    }

    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-tabs {
        display: flex;
        flex-direction: row;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .nav-tab {
        border-right: 1px solid #000;
        border-bottom: none;
    }

    .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        flex: 1;
    }

    .sidebar {
        width: 250px;
    }

    .recent-images {
        width: 100%;
        order: 3;
        flex-basis: 100%;
    }

    .forum-row {
        flex-direction: row;
        align-items: center;
    }

    .forum-icon {
        margin-right: 12px;
        margin-bottom: 0;
    }

    .forum-stats {
        min-width: 80px;
    }

    .last-post {
        min-width: 150px;
        text-align: right;
    }
}

@media screen and (max-width: 480px) {

    .header {
        padding: 5px;
    }

    .container {
        padding: 5px;
    }

    .about-section,
    .forum-section,
    .recent-images {
        margin-bottom: 10px;
        padding: 10px;
    }

    .forum-row {
        padding: 8px;
    }

    .forum-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .forum-desc {
        display: none;
    }

    .sidebar-section {
        margin-bottom: 10px;
    }

    .image-item {
        width: 70px;
        height: 70px;
        font-size: 9px;
    }
}
