/* Base styles */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f0f0f0;
    font-family: monospace;
    line-height: 1.5;
    overflow-x: hidden; /* Prevent horizontal scrolling at body level */
    text-align: center; /* Center all text by default */
    width: 100%;
}

/* Terminal Mode Button Styles */
.terminal-mode-toggle {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
}

.terminal-mode-button {
    background-color: rgba(30, 30, 30, 0.8);
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 4px;
    padding: 5px 10px;
    font-family: monospace;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-mode-button:hover {
    background-color: rgba(50, 50, 50, 0.9);
    box-shadow: 0 0 8px #0f0;
}

.terminal-icon {
    font-size: 18px;
    margin-right: 5px;
}

/* Terminal Mode Styles */
body.terminal-mode {
    background-color: #000 !important;
}

/* Override rainbow animations in terminal mode */
body.terminal-mode .highlight,
body.terminal-mode .greeting-text,
body.terminal-mode .directory-header,
body.terminal-mode .section-title,
body.terminal-mode a:hover,
body.terminal-mode .footer-controls,
body.terminal-mode .last-updated,
body.terminal-mode .news,
body.terminal-mode .mirrors,
body.terminal-mode .heart,
body.terminal-mode .ascii-art,
body.terminal-mode .board-item {
    animation: none !important;
    color: #0f0 !important;
    border-color: #0f0 !important;
    box-shadow: none !important;
}

body.terminal-mode svg path {
    animation: none !important;
    fill: #0f0 !important;
    stroke: #0f0 !important;
}

/* Static green glow for board items in terminal mode */
body.terminal-mode .board-item {
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3) !important;
}

body.terminal-mode .board-item:hover {
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7), 0 0 25px rgba(0, 255, 0, 0.5) !important;
}

/* Terminal mode text color overrides */
body.terminal-mode a {
    color: #0f0 !important;
}

body.terminal-mode .small-text {
    color: #0f0 !important;
    opacity: 0.8;
}

/* Terminal button state when terminal mode is active */
body.terminal-mode .terminal-mode-button {
    background-color: #0f0;
    color: #000;
}

/* Update these CSS styles in your styles.css file */

/* ===== ENHANCED LOGO STYLES WITH FILTER GLOW EFFECTS ===== */
/* Enhanced 3D Logo Rotation Styles with Better Glows */
#logoContainer {
  perspective: 800px;
  margin: 20px 0;
  display: inline-block;
  z-index: 1100; /* Higher than most elements but below flash overlay */
  position: relative; /* Needed for absolute positioning of the image during transition */
}

#logoContainer img {
    transform-style: preserve-3d;
    /* Default continuous spin */
    animation: gentle-spin 7s infinite linear, rainbow-filter-glow 10s infinite linear; /* 10s duration for sync */
    transition: transform 0.5s ease, filter 0.5s ease;
    /* Starting color should match other rainbow animations */
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

/* ChurchSymbol gets the same animated rainbow filter glow as the logo */
.greeting-container img[alt="ChurchSymbol"] {
    animation: rainbow-filter-glow 10s infinite linear;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    transition: filter 0.5s ease;
}

/* We'll use a separate class for the exit animation to avoid conflicts */
.logo-container-exit {
  transition: transform 2s ease, opacity 2.5s ease;
  transform: translateY(-150px) !important;
  opacity: 0 !important;
}

/* Gentle constant spinning animation */
@keyframes gentle-spin {
  0% { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* Rainbow filter animation - synced with other rainbow animations (10s) */
@keyframes rainbow-filter-glow {
  0% { filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)); } /* Red */
  14% { filter: drop-shadow(0 0 10px rgba(255, 127, 0, 0.8)); } /* Orange */
  28% { filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.8)); } /* Yellow */
  42% { filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.8)); } /* Green */
  56% { filter: drop-shadow(0 0 10px rgba(0, 0, 255, 0.8)); } /* Blue */
  70% { filter: drop-shadow(0 0 10px rgba(75, 0, 130, 0.8)); } /* Indigo */
  84% { filter: drop-shadow(0 0 10px rgba(143, 0, 255, 0.8)); } /* Violet */
  100% { filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)); } /* Back to Red */
}

/* Terminal mode STOPS the spin animation for accessibility */
body.terminal-mode #logoContainer img {
    /* Keep spinning animation in terminal mode for accessibility */
    /* Only override the filter for green glow */
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.8)); /* Static green glow using filter */
    transition: filter 0.5s ease;
}

/* Green pulse effect using filter in terminal mode */
@keyframes terminal-filter-pulse {
  0% { filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.7)); }
  50% { filter: drop-shadow(0 0 15px rgba(0, 255, 0, 1.0)); }
  100% { filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.7)); }
}

/* Apply pulse animation in terminal mode */
body.terminal-mode #logoContainer img {
  animation: terminal-filter-pulse 3s infinite !important;
}

/* Hover effect overrides animation temporarily */
#logoContainer:hover img {
  animation-play-state: paused;
  transform: rotateY(45deg) rotateX(15deg);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)); /* Bright white glow on hover */
}

/* Terminal mode hover brightens the green glow */
body.terminal-mode #logoContainer:hover img {
  transform: rotateY(0deg) rotateX(0deg) !important; /* Keep flat in terminal mode */
  filter: drop-shadow(0 0 20px rgba(0, 255, 0, 1.0)) !important; /* Brighter green on hover */
}

/* Make sure the logo image has transparent background for best glow effect */
#logoContainer img {
  /* If your logo doesn't already have transparency: */
  background: transparent;
}

/* Adjust overlay transition timing */
.overlay {
  transition: opacity 2.5s ease-in-out;
  background-color: #000;
}
/* ===== END ENHANCED LOGO STYLES ===== */

/* Rainbow animation keyframes */
@keyframes rainbow {
    0% { color: #ff0000; border-color: #ff0000; } /* Red */
    14% { color: #ff7f00; border-color: #ff7f00; } /* Orange */
    28% { color: #ffff00; border-color: #ffff00; } /* Yellow */
    42% { color: #00ff00; border-color: #00ff00; } /* Green */
    56% { color: #0000ff; border-color: #0000ff; } /* Blue */
    70% { color: #4b0082; border-color: #4b0082; } /* Indigo */
    84% { color: #8b00ff; border-color: #8b00ff; } /* Violet */
    100% { color: #ff0000; border-color: #ff0000; } /* Back to Red */
}

@keyframes rainbow-fill {
    0% { fill: #ff0000; stroke: #ff0000; } /* Red */
    14% { fill: #ff7f00; stroke: #ff7f00; } /* Orange */
    28% { fill: #ffff00; stroke: #ffff00; } /* Yellow */
    42% { fill: #00ff00; stroke: #00ff00; } /* Green */
    56% { fill: #0000ff; stroke: #0000ff; } /* Blue */
    70% { fill: #4b0082; stroke: #4b0082; } /* Indigo */
    84% { fill: #8b00ff; stroke: #8b00ff; } /* Violet */
    100% { fill: #ff0000; stroke: #ff0000; } /* Back to Red */
}

/* Rainbow glow animation keyframes */
@keyframes rainbow-glow {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5); } /* Red */
    14% { box-shadow: 0 0 5px rgba(255, 127, 0, 0.7), 0 0 20px rgba(255, 127, 0, 0.5); } /* Orange */
    28% { box-shadow: 0 0 5px rgba(255, 255, 0, 0.7), 0 0 20px rgba(255, 255, 0, 0.5); } /* Yellow */
    42% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.7), 0 0 20px rgba(0, 255, 0, 0.5); } /* Green */
    56% { box-shadow: 0 0 5px rgba(0, 0, 255, 0.7), 0 0 20px rgba(0, 0, 255, 0.5); } /* Blue */
    70% { box-shadow: 0 0 5px rgba(75, 0, 130, 0.7), 0 0 20px rgba(75, 0, 130, 0.5); } /* Indigo */
    84% { box-shadow: 0 0 5px rgba(143, 0, 255, 0.7), 0 0 20px rgba(143, 0, 255, 0.5); } /* Violet */
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5); } /* Back to Red */
}

/* Rainbow flash overlay */
.rainbow-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(124deg, 
        rgba(255,0,0,0.8), 
        rgba(255,127,0,0.8), 
        rgba(255,255,0,0.8),
        rgba(0,255,0,0.8), 
        rgba(0,0,255,0.8), 
        rgba(75,0,130,0.8), 
        rgba(143,0,255,0.8));
    z-index: 2000; /* Higher than overlay */
    pointer-events: none;
    opacity: 0; /* Start hidden */
}

@keyframes flashFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Class to trigger the flash animation */
.flash-active {
    animation: flashFade 1s forwards;
}

/* Apply rainbow animation to all relevant elements */
.highlight,
.greeting-text,
.directory-header,
.section-title,
a:hover,
.footer-controls {
    animation: rainbow 10s infinite linear;
    color: #ff0000; /* Start with red */
}

/* Fix for the highlight class to ensure rainbow effect is visible */
.highlight {
    display: inline;
    font-weight: bold;
    animation: rainbow 10s infinite linear;
    background: none;
    overflow: visible;
    max-width: none;
    white-space: normal;
}

/* For elements with border-color */
.footer-controls,
.welcome-box {
    border-color: #ff0000; /* Start with red */
    animation: rainbow 10s infinite linear;
}

/* For SVG elements if they exist */
svg path {
    animation: rainbow-fill 10s infinite linear;
    fill: #ff0000;
    stroke: #ff0000;
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

.grid-container {
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(60, 45, 30, 0.1) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(60, 45, 30, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: 0 0;
    padding: 1rem;
    box-sizing: border-box;
}

.logo-container {
    margin-top: 10px;
    cursor: pointer;
}

/* When overlay is hidden */
.overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Content styles */
.content-wrapper {
    visibility: hidden; /* Start hidden until overlay is dismissed */
    background-image: linear-gradient(rgba(60, 45, 30, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(60, 45, 30, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: 0 0;
    background-color: #000; /* AMOLED black */
}

.content-visible {
    visibility: visible;
}

/* Links page styles - New community layout */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* Center the container */
    text-align: center; /* Ensure all content is centered */
    padding: 0 10px; /* Add some padding for smaller screens */
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-image: linear-gradient(rgba(60, 45, 30, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(60, 45, 30, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: 0 0;
    background-color: #000; /* AMOLED black */
}

.back-link {
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    animation: rainbow 10s linear infinite;
}

/* Enhanced ASCII Art Styles */
.ascii-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow to prevent scrolling */
}

.ascii-art {
    font-family: 'Courier New', monospace; /* Use a more consistent monospace font */
    display: inline-block;
    font-size: 0.45vw; /* Smaller font size as percentage of viewport width */
    line-height: 1.0;
    margin: 0;
    padding: 0;
    animation: rainbow 10s infinite linear;
    text-align: center;
    width: 100%;
    overflow: hidden; /* Hide overflow */
    white-space: pre; /* Preserve formatting */
    /* Ensure centering */
    position: relative;
    left: 50%;
    transform: translateX(-50%) scale(1); /* Center horizontally + for JS scaling */
    transform-origin: center;
}

/* Manually adjust size for different screen sizes - even smaller fonts */
@media (min-width: 1200px) {
    .ascii-art {
        font-size: 6px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .ascii-art {
        font-size: 5px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .ascii-art {
        font-size: 4px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .ascii-art {
        font-size: 3px;
    }
}

@media (max-width: 575px) {
    .ascii-art {
        font-size: 2.5px;
    }
}

/* Emoji container styling */
.emoji-container {
    display: inline-block;
}

.last-updated {
    margin-bottom: 30px;
    font-size: 14px;
    animation: rainbow 10s linear infinite;
}

.news {
    margin-bottom: 20px;
    font-size: 14px;
    animation: rainbow 10s linear infinite;
}

.mirrors {
    margin-bottom: 40px;
    font-size: 14px;
    animation: rainbow 10s linear infinite;
}

.section-title {
    margin: 20px 0;
    font-size: 16px;
    animation: rainbow 10s linear infinite;
    text-align: center;
}

.small-text {
    animation: rainbow 10s linear infinite;
    text-align: center;
}

.content-area {
    display: flex;
    margin-bottom: 30px;
    justify-content: center; /* Center the content area */
    max-width: 500px; /* Limit width for better centering */
    margin-left: auto;
    margin-right: auto;
}

.sidebar {
    flex: 0 0 20px; /* Make sidebar narrower */
    text-align: center;
    animation: rainbow 10s linear infinite;
}

.content {
    flex: 1;
    padding-left: 10px;
    text-align: center; /* Center the content text */
}

.heart {
    font-weight: bold;
    animation: rainbow 10s linear infinite;
}

/* Enhanced board items with rainbow glow */
.board-item {
    position: relative;
    padding: 5px 10px;
    margin: 10px 0;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.85);
    transition: transform 0.3s ease;
    animation: rainbow 10s infinite linear, rainbow-glow 10s infinite linear;
    text-align: center;
    overflow: visible; /* <-- allow overflow */
    text-overflow: initial; /* <-- allow overflow */
    white-space: normal; /* <-- allow wrapping */
    display: flex; /* <-- use flex for alignment */
    align-items: center; /* <-- vertical align */
    justify-content: center; /* <-- center content */
    gap: 8px; /* <-- space between emoji and text */
}

.board-item a {
    display: inline-flex; /* <-- allow inline emoji and text */
    align-items: center;
    width: auto; /* <-- don't force full width */
    border-bottom: none;
    white-space: normal; /* <-- allow wrapping */
    gap: 8px; /* <-- space between emoji and text */
}

/* Optional: style the emoji itself for spacing */
.emoji {
    margin-left: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.board-item:hover {
    transform: scale(1.05);
}

.board-item a {
    display: inline-block;
    width: 100%;
    border-bottom: none; /* Remove the default border from links */
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    animation: rainbow 10s infinite linear;
    text-align: center;
}

.footer-row {
    margin: 8px 0;
    animation: rainbow 10s infinite linear;
}

.footer-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid; /* Color set by animation */
    padding: 5px;
    display: flex;
    gap: 5px;
}

.control-button {
    width: 30px;
    height: 30px;
    background-color: #222;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: rainbow 10s linear infinite;
}

/* Index page styles */
.greeting-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.greeting-text {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.small-text {
    font-size: 0.8rem;
    margin: 0 auto;
    display: block;
    word-break: break-word;
    white-space: normal;
    overflow: visible !important;
    max-width: none !important;
}

/* Original links page styles */
.directory-header {
    padding: 10px 0;
    font-size: 1.2rem;
    cursor: pointer;
}

.welcome-box {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid; /* Color set by animation */
    padding: 15px;
    margin: 10px 0;
    line-height: 1.5;
}

.section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.section {
    flex: 1;
    min-width: 200px;
}

.section-desc {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.link-list {
    list-style-type: none;
    padding-left: 0;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list li:before {
    content: "– ";
    color: #aaa;
}

a {
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px dashed #555;
}

a:hover {
    border-bottom: 1px dashed; /* Color set by animation */
}

.netizen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.netizen-item {
    border: 1px solid #333;
    padding: 5px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.85);
}

.netizen-item img {
    max-width: 100%;
    height: auto;
}

.footer-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.footer-button {
    border: 1px solid #333;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.85);
}

/* Image board specific styles */
.image-board-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: left;
}

.board-header {
    text-align: center;
    margin-bottom: 20px;
    animation: rainbow 10s linear infinite;
    color: #ff7300;
    font-size: 1.6rem;
}

.board-form {
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 10px;
}

.form-label {
    flex: 0 0 150px;
    background-color: #ff7300;
    padding: 8px;
    text-align: center;
    color: black;
    font-weight: bold;
}

.form-input {
    flex: 1;
    background-color: white;
    border: none;
    padding: 8px;
    color: black;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.file-input-container {
    display: flex;
    align-items: center;
    background-color: white;
    flex: 1;
    padding: 0;
}

.file-input-button {
    background-color: #ddd;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: black;
}

#file {
    display: none;
}

.file-input-text {
    padding: 8px;
    color: #555;
    flex: 1;
}

.rules-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 20px;
}

.rules-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.rules-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff7300;
}

.submit-button {
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px 15px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    margin-left: auto;
    display: block;
}

/* Posts styling */
.post {
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.post-header {
    display: flex;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.post-file-info {
    flex: 1;
}

.post-info {
    flex: 0 0 auto;
}

.post-anonymous {
    color: #ff7300;
    font-weight: bold;
}

.post-date {
    color: #aaa;
}

.post-content {
    display: flex;
    margin-top: 10px;
}

.post-image {
    flex: 0 0 150px;
    margin-right: 15px;
    border: 1px solid #444;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-text {
    flex: 1;
    color: #ddd;
    line-height: 1.4;
}

.post-number {
    color: #aaa;
}

.post-reply-link {
    color: #ff7300;
    text-decoration: none;
    cursor: pointer;
}

.quoted-text {
    color: #789922;
}

.post-reply-count {
    margin-left: 5px;
}

.admin-tag {
    background-color: #ff7300;
    color: black;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 0.8em;
}

.error-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.error-code {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: rainbow 10s infinite linear;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: rainbow 10s infinite linear;
}

.error-description {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #aaa;
    line-height: 1.4;
}

.error-image {
    max-width: 100%;
    height: auto;
    margin: 20px auto 40px;
    border-radius: 5px;
    animation: rainbow-glow 10s infinite linear;
    max-height: 400px;
}

.error-ascii {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
    margin: 30px auto;
    animation: rainbow 10s linear infinite;
    white-space: pre;
    display: inline-block;
    text-align: left;
}

.error-button {
    display: inline-block;
    padding: 8px 20px;
    margin: 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    animation: rainbow-glow 10s linear infinite;
    transition: transform 0.3s ease;
}

.error-button:hover {
    transform: scale(1.05);
}

/* Override styles for terminal mode */
body.terminal-mode .error-code,
body.terminal-mode .error-message,
body.terminal-mode .error-ascii {
    animation: none !important;
    color: #0f0 !important;
}

body.terminal-mode .error-button {
    animation: none !important;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3) !important;
}

body.terminal-mode .error-button:hover {
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7), 0 0 25px rgba(0, 255, 0, 0.5) !important;
}

body.terminal-mode .error-image {
    animation: none !important;
    filter: sepia(0.5) hue-rotate(55deg);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7) !important;
}

/* Board items */
.board-item {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Welcome box */
.welcome-box {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Footer controls */
.footer-controls {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Netizen item */
.netizen-item {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Footer button */
.footer-button {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Error button */
.error-button {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Overlay */
.overlay {
    background-color: #000;
}

/* Hide and stack board-items except the first */
.board-item.menu-animate {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}

/* When active, fade in and slide down */
.board-item.menu-animate.menu-animate-in {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}