/* General Styling */
body {
    background: #000; /* Solid black for a CRT feel */
    color: #00ff00; /* Neon green text */
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #002b00; /* Deep green */
    color: #00ff00;
    text-align: center;
    font-weight: bold;
    padding: 20px 0;
    font-size: 1.6rem;
    border-bottom: 2px solid #00aa00;
}

.ascii-art {
    font-family: monospace;
    color: #00ff00;
    margin: 10px auto;
    text-align: center;
    line-height: 1.2;
}

.container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Sidebar and content split */
    width: 100%;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    background-color: #001a00;
    padding: 15px;
    border-right: 2px solid #004d00;
    border-radius: 5px;
}

.sidebar h2 {
    color: #00ff00;
    border-bottom: 1px dashed #00aa00;
    padding-bottom: 5px;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.sidebar ul li {
    margin: 5px 0;
    padding: 5px 0;
}

.sidebar ul li a {
    color: #00ff00;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 5px;
    transition: border-left 0.2s, padding-left 0.2s;
}

.sidebar ul li a:hover {
    border-left: 2px solid #00ff00;
    padding-left: 10px;
}

.trending .ascii-frame {
    border: 1px dashed #00ff00;
    padding: 10px;
    margin-top: 10px;
}

.trending ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending ul li {
    color: #00ff00;
    padding: 5px 0;
    border-bottom: 1px dashed #00aa00;
}

.trending ul li:last-child {
    border-bottom: none;
}

/* Main Content */
.main-content {
    background-color: #001a00;
    padding: 15px;
    border-radius: 5px;
    border: 1px dashed #00ff00;
}

.category {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px dashed #00ff00;
}

.category h2 {
    display: flex;
    align-items: center;
    background-color: #002b00;
    color: #00ff00;
    margin: 0;
    padding: 10px;
    font-size: 1.4rem;
}

.ascii-icon {
    display: inline-block;
    color: #00ff00;
    margin-right: 10px;
    font-size: 1rem;
    white-space: pre;
}

/* Posts */
.post {
    background-color: #000;
    color: #00ff00;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #00ff00;
}

.post h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Buttons */
.back-to-top a {
    display: inline-block;
    background-color: #001a00;
    color: #00ff00;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #00aa00;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.back-to-top a:hover {
    background-color: #002b00;
    color: #00ff00;
}

.timestamp {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Stack sidebar and content */
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid #004d00;
    }

    .main-content {
        margin-top: 20px;
    }
}

/* Likes/Dislikes Styling */
.like-dislike {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.like-dislike button {
    background-color: #001a00; /* Dark green */
    color: #00ff00; /* Neon green text */
    border: 1px solid #00aa00; /* Green border */
    padding: 5px 10px;
    border-radius: 4px; /* Rounded corners */
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.like-dislike button:hover {
    background-color: #002b00; /* Slightly lighter green */
    border-color: #00ff00; /* Bright green on hover */
}









.footer {
    background-color: #001a00; /* Dark green background */
    color: #00ff00; /* Neon green text */
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 20px 0;
    border-top: 2px solid #00aa00; /* Green top border */
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}
