body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    background-image: url('/rubbish_street.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-image {
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    margin: 0 auto 20px auto; /* Center image and add space below */
    border-radius: 8px; /* Slightly rounded corners */
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

.debate-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.debate-side {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
}

.yes-side h2 {
    color: #e74c3c; /* Reddish for 'YES' */
}

.no-side h2 {
    color: #27ae60; /* Greenish for 'NO' */
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid;
    border-radius: 4px;
    font-size: 0.95em;
}

.yes-side li {
    border-left-color: #e74c3c;
}

.no-side li {
    border-left-color: #27ae60;
}

.comment-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.comment-input-area {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#comment-text {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 1em;
}

.comment-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#post-comment-btn, #tip-comment-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#post-comment-btn {
    background-color: #3498db;
    color: white;
}

#post-comment-btn:hover {
    background-color: #2980b9;
}

#tip-comment-btn {
    background-color: #f1c40f;
    color: #333;
}

#tip-comment-btn:hover {
    background-color: #f39c12;
}

.comments-list {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

.comment-content-wrapper {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-author-name {
    font-weight: bold;
    color: #34495e;
}

.comment-timestamp {
    font-size: 0.8em;
    color: #999;
}

.comment-text-content {
    margin-top: 8px;
    word-wrap: break-word; /* Ensure long words break */
}

.comment-text-content img {
    max-width: 100%;
    max-height: 300px; /* Limit height of embedded images */
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
    display: block; /* Ensures images behave like block elements for spacing */
    object-fit: contain; /* Prevents stretching */
}

.comment-tip-info {
    font-size: 0.85em;
    color: #f39c12;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #fffbe6;
    border: 1px solid #fce899;
    border-radius: 4px;
    display: inline-block;
}

.loading-message, .no-comments-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

.neon-questions {
    margin: 20px 0 30px 0;
    text-align: center;
}

.neon-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #00ffff,
        0 0 35px #00ffff,
        0 0 40px #00ffff;
    margin: 15px 0;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    display: block;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 20px #00ffff,
            0 0 35px #00ffff,
            0 0 40px #00ffff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.personality-quiz {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.quiz-questions {
    margin: 20px 0;
}

.quiz-question {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.quiz-question h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.answer-options label:hover {
    background-color: #e8f4f8;
}

.answer-options input[type="radio"] {
    margin: 0;
}

.quiz-button {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s ease;
    display: block;
    margin: 20px auto;
}

.quiz-button:hover {
    background-color: #2980b9;
}

.quiz-results {
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.quiz-results h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.social-media-quiz {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.scenario-questions {
    margin: 20px 0;
}

.scenario-question {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.scenario-question h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.scenario-question p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #34495e;
}

.response-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-inputs textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 0.95em;
    font-family: 'Courier New', Courier, monospace;
}

.response-inputs textarea:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

.page-index {
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-index h2 {
    color: white;
    margin-bottom: 15px;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
}

.index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-list li {
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
}

.index-list a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.index-list a:hover {
    background-color: #34495e;
    color: #ecf0f1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .debate-container {
        flex-direction: column;
    }
    .debate-side {
        width: 100%;
    }
}