@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* === HIDE SIDEBAR, HEADER & THEME PICKER === */
.nav-container,
.sidebar,
#sidebar-toggle,
.sidebar-toggle,
.theme-picker {
    display: none !important;
}

/* === LAYOUT FIX: FULL-WIDTH MAIN CONTENT === */
.page-wrapper {
    margin-inline-start: 0 !important;
    padding: 0 !important;
}

.main {
    margin: 0 auto !important;
    max-width: 960px;
    padding: 3rem 5vw !important;
    background-color: transparent !important;
}

.menu-bar-hover-placeholder, .menu-bar {
    background-color: black !important;
}

#theme-toggle, #print-button {
    display: none !important;
}

/* === GLOBAL STYLES === */
html, body {
    background-color: #222222 !important;
    font-family: 'Segoe UI', sans-serif !important;
    line-height: 1.6;
    color: white;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: 'Press Start 2P', cursive !important;
    color: #facc15 !important;
    margin-top: 2em;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1.25em;
}

a {
    color: #eab308 !important;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === CODE === */
code {
    background: #fef3c7 !important;
    color: #1f2937 !important;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
}

pre code {
    background: #fef3c7 !important;
    color: #1f2937 !important;
    padding: 1em;
    display: block;
    border-radius: 10px;
    overflow-x: auto;
    line-height: 1.5;
    font-size: 0.95em;
    box-shadow: 0 0 0 1px #42464c inset;
}

/* === LISTS === */
ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* === BLOCKQUOTES === */
blockquote {
    border-left: 4px solid #eab308;
    padding-left: 1em;
    margin-left: 0;
    color: #d1d5db;
    font-style: italic;
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

th, td {
    border: 1px solid #4b5563;
    padding: 0.75em;
    text-align: left;
}

th {
    background-color: #1f2937;
}

/* === REMOVE FLASH (Dark Mode) === */
[data-mdbook-theme] {
    background: transparent !important;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 600px) {
    .main {
        padding: 2rem 1rem !important;
    }

    h1 {
        font-size: 1.4em !important;
    }

    h2, h3 {
        font-size: 1.1em !important;
    }
}