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

body {
    font-family: Impact, 'Arial Black', 'Haettenschweiler', 'Franklin Gothic Bold', sans-serif;
    background: linear-gradient(to bottom, #4a90d9 0%, #2a5a8a 50%, #1a3a5a 100%);
    color: #444;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* MS Paint Style Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

/* Tiled Meme Background (9GAG influence) */
.meme-tiles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* MS Paint Window Header */
.paint-window {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    margin-bottom: 50px;
    position: relative;
    cursor: move;
}

.paint-window:active {
    cursor: grabbing;
}

.paint-window.dragging {
    position: absolute;
    z-index: 9999;
}

.window-placeholder {
    background: transparent;
    border: none;
    margin-bottom: 50px;
    pointer-events: none;
}

.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.title-btn:hover {
    background: #d0d0d0;
}

/* Menu Bar (MS Paint style) */
.menu-bar {
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
    padding: 3px 5px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
}

.menu-bar span {
    padding: 2px 8px;
    cursor: pointer;
}

.menu-bar span:hover {
    background: #000080;
    color: #fff;
}

/* Canvas Area */
.canvas-area {
    background: #fff;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 10px;
    min-height: 400px;
}

/* Header with drawn effect */
.main-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 3px solid #000;
    position: relative;
}

.main-header::before,
.main-header::after {
    content: '';
    position: absolute;
    background: #000;
}

.main-header::before {
    top: -5px;
    left: -5px;
    right: -5px;
    height: 3px;
}

.main-header::after {
    bottom: -5px;
    left: -5px;
    right: -5px;
    height: 3px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-img {
    width: 400px;
    height: 400px;
    border: 4px solid #000;
    background: #fff;
    padding: 10px;
}

.logo-text {
    font-size: 56px;
    font-weight: 700;
    color: #d00;
    text-shadow: 4px 4px 0 #000;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding: 10px;
    background: #ffff00;
    border: 2px dashed #000;
    display: inline-block;
}

/* Action Buttons (Paint style but 9gag colors) */
.action-panel {
    background: #ffffcc;
    border: 3px solid #d00;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.action-title {
    font-size: 20px;
    font-weight: 600;
    color: #d00;
    margin-bottom: 15px;
    text-decoration: underline;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.action-btn {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.action-btn:active {
    border-color: #000 #fff #fff #000;
    transform: translate(1px, 1px);
}

.action-btn:hover {
    background: #d0d0d0;
}

.btn-icon {
    font-size: 24px;
}

/* Feed Section - Hidden until scroll */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.feed.visible {
    opacity: 1;
}

.post {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
}

.post-header {
    background: #e8e8e8;
    border-bottom: 3px solid #000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #789922;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-name {
    font-weight: 600;
    color: #117743;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.post-number {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 12px;
}

.post-title {
    padding: 15px;
    font-size: 20px;
    font-weight: 600;
    background: #ffffcc;
    border-bottom: 2px dashed #000;
    color: #333;
}

.post-image-container {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.post-image {
    max-width: 100%;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.post-content {
    padding: 15px;
    line-height: 1.6;
    font-size: 14px;
    font-weight: normal;
    color: #444;
}

.post-content strong {
    font-weight: 500;
    color: #333;
}

.greentext {
    color: #789922;
    font-family: 'Courier New', monospace;
}

.redtext {
    color: #d00;
    font-weight: 600;
}

/* Contract Box (MS Paint meets 4chan) */
.contract-box {
    background: #ffffee;
    border: 4px double #d00;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.contract-label {
    font-size: 18px;
    font-weight: 600;
    color: #d00;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-decoration: underline;
}

.contract-address {
    font-family: 'Courier New', monospace;
    background: #fff;
    border: 2px solid #000;
    padding: 10px;
    word-break: break-all;
    margin: 10px 0;
    font-size: 12px;
}

.copy-button {
    background: #00ff00;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

.copy-button:active {
    border-color: #000 #fff #fff #000;
}

/* Vote System (9gag style with MS Paint buttons) */
.vote-panel {
    background: #e8e8e8;
    border-top: 3px solid #000;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vote-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vote-btn {
    width: 50px;
    height: 50px;
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}

.vote-btn:active {
    border-color: #000 #fff #fff #000;
    transform: translate(1px, 1px);
}

.vote-btn.upvote:hover {
    background: #90ee90;
}

.vote-btn.downvote:hover {
    background: #ffb6c1;
}

.vote-count {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Impact', sans-serif;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.comment-btn {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-btn:active {
    border-color: #000 #fff #fff #000;
}

/* Info Boxes (MS Paint style) */
.info-box {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    padding: 15px;
    margin: 20px 0;
}

.info-box-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 5px;
    background: #000080;
    color: #fff;
}

.info-list {
    list-style: none;
    padding: 10px;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
}

.info-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    margin-top: 20px;
    padding: 15px 20px;
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #000 #000 #fff;
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 10px auto;
}

/* Make disclaimer window smaller */
.paint-window:last-child {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.paint-window:last-child .canvas-area {
    min-height: auto;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 280px;
        height: 280px;
    }

    .vote-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        margin-left: 0;
        width: 100%;
    }

    .paint-window {
        cursor: default !important;
    }

    .paint-window.dragging {
        position: relative !important;
    }
}

/* Crayon effect for some text */
.crayon-text {
    font-family: 'Comic Sans MS', cursive;
    font-size: 24px;
    color: #0066cc;
    text-shadow: 2px 2px 0 rgba(0, 102, 204, 0.3);
    font-weight: 700;
}

/* Marker highlight */
.highlight {
    background: linear-gradient(to bottom, transparent 50%, #ffff00 50%);
    padding: 2px 5px;
    font-weight: 600;
}
