:root {
    --bg-color: #222;
    --text-color: white;
    --header-bg: #333;
    --accent-color: #ffd700;
    /* Gold */
    --card-bg: #2a2a2a;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-shadow: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(255, 215, 0, 0.1);
}
body {
    margin: 0;
    padding: 0;
    font-family: serif;
    text-align: center;
    background-color: var(--bg-color);
        color: var(--text-color);
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--header-bg);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-logo {
    height: 25vh;
    width: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-logo {
        height: 15vh;
        max-height: 120px;
    }

    header h1 {
        font-size: 1.4rem;
    }
}
a.header-container:hover {
    opacity: 0.9;
}

.article-list {
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
    padding: 0 20px;
}

.article-list h2 {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Base list styles */
.article-list ul {
    list-style-type: none;
    padding: 0;
}

/* Default list items (for non-grid sections like 'About') */
.article-list li {
    margin: 15px 0;
}

/* Grid Layout for Articles */
ul.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

ul.article-grid li {
    margin: 0;
    display: flex;
}

/* Card Styling */
.article-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 120px;
    padding: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.article-grid a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px var(--hover-shadow), 0 0 15px var(--glow-color);
    background-color: var(--header-bg);
    border-color: var(--accent-color);
    z-index: 1;
}

/* Click/Active State */
.article-grid a:active {
    transform: translateY(-2px) scale(0.98);
}

/* Legacy/Default Link Styling */
.article-list ul:not(.article-grid) a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.article-list ul:not(.article-grid) a:hover {
    text-decoration: underline;
}

/* Game Link Section */
.game-section {
    margin: 40px auto;
    text-align: center;
    padding: 20px;
}

.big-game-button {
    display: inline-block;
    background-color: #006400;
    /* Dark Green */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #00ff00;
    /* Neon Green */
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.big-game-button:hover {
    background-color: #008000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    color: #fff;
}

.big-game-button:active {
    transform: scale(0.95);
}
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    line-height: 1.6;
}
.binary-block {
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
    background-color: #1a1a1a;
    padding: 20px;
    border-left: 2px solid #444;
    margin-bottom: 30px;
    margin-top: 30px;
    color: #00ff00;
    /* Classic terminal green or just keeping it white/default? User has dark mode... let's stick to inherit or subtle. */
    color: #aaa;
    font-size: 0.9rem;
    overflow-x: auto;
}

.translation-block {
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding-top: 20px;
    padding-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}
.chaos-button {
    display: inline-block;
    background-color: #800080;
    /* Purple */
    color: #ffd700;
    /* Gold */
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse-chaos 2s infinite;
}

.chaos-button:hover {
    background-color: #a020f0;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    color: #fff;
}

@keyframes pulse-chaos {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}