/* General Setup */
:root {
    /* Solarized Light (Default) */
    --bg-main: #fdf6e3;
    --bg-sidebar: #eee8d5;
    --text-color: #586e75;
    --border-color: #93a1a1;
    --accent: #268bd2;
}

body.dark-mode {
    /* Solarized Dark */
    --bg-main: #002b36;
    --bg-sidebar: #073642;
    --text-color: #839496;
    --border-color: #586e75;
    --accent: #268bd2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1b2e;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

.letterbox-container {
    background-color: var(--bg-main);
    width: 100%;
    max-width: calc(100vh * (4 / 3));
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.header {
    background-color: var(--bg-main);
    padding: 10px;
    border-bottom: 8px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.title-img {
    max-height: 80px;
    width: auto;
}

.main-layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 25%;
    background-color: var(--bg-sidebar);
    padding: 20px;
    border-right: 4px solid var(--border-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Button style for the toggle */
#theme-toggle {
    background: var(--border-color);
    color: var(--bg-main);
    border: none;
    padding: 5px 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: inherit;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    line-height: 1.4;
}

.article-img {
    float: right;
    width: 40%;
    margin-left: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

a, a:visited, a:active {
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    text-decoration: underline;
}
body {cursor: url(cursor.gif), default;}