:root {
    --background-color: #0e0f0f;
    --header-footer-bg: #171819;
    --text-color: #b6b0a6;
    --hover-color: #e8e6e3;
}

body.light-theme {
    --background-color: #f7f7f7;
    --header-footer-bg: #eaeaea;
    --text-color: #3a3a3a;
	--hover-color: #1a1a1a;
}

body.dark-theme {
    --background-color: #0e0f0f;
    --header-footer-bg: #171819;
    --text-color: #b6b0a6;
	--hover-color: #e8e6e3;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
	font-size: 1rem;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-footer-bg);
	height: 80px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header h1 {
    margin: 0;
}

header h1 a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

header h1 img {
    width: 32px;
    height: auto;
    margin-right: 10px;
}

main {
    flex: 1;
    padding: 80px 20px 20px;
    margin: 0 auto;
    max-width: 800px;
}

main h2 {
    text-align: center;
}

main a {
    color: var(--text-color);
    text-decoration: none;
}

main a:hover {
    color: var(--hover-color);
}

section {
    padding: 20px;
    margin: 10px auto;
    max-width: 800px;
    background: var(--header-footer-bg);
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
	scroll-margin-top: 90px;
}

footer {
	height: 80px;
    background: var(--header-footer-bg);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

ul li, ol li {
    margin: 8px 0;
}

.toggle-button {
    background-color: var(--text-color);
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-panel {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: calc(100vh - 80px);
    background: var(--header-footer-bg);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    margin-top: 80px;
}

.right-panel.active {
    right: 0;
}

.right-panel a {
    display: block;
    margin: 10px 0;
    color: var(--text-color);
    text-decoration: none;
	font-weight: bold;
}

.right-panel a:hover {
    color: var(--hover-color);
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    max-width: 232px;
    width: 100%;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--text-color);
    border-radius: 4px;
    color: var(--text-color);
    background-color: transparent;
    margin-right: 10px;
    outline: none;
    font-weight: bold;
    max-width: 182px;
}

.search-icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--text-color);
    cursor: pointer;
}

.highlight {
    color: var(--hover-color);
}

.theme-toggle {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle .circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--text-color);
}

@media (max-width: 600px) {
    body {
        font-size: 0.875rem;
    }
}