:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #CC6600;
    --secondary-bg: #333333;
    --date-color: #008000;
    --link-color: #FFFFFF;
    --link-hover: #CC6600;
    --currency-text: #333;
    --currency-rate: #ccc;
    --currency-today: #0066cc;
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --accent-color: #993300;
    --secondary-bg: #e0e0e0;
    --date-color: #006400;
    --link-color: #333333;
    --link-hover: #993300;
    --currency-text: #333;
    --currency-rate: #666;
    --currency-today: #004080;
}

body {
    background-color: var(--bg-color);
    font-family: "Trebuchet MS", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
    margin: 2px 5px;
    vertical-align: middle;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #CC6600;
}

input:checked + .slider:before {
    transform: translateX(36px);
}

/* Остальные стили остаются такими же, но с заменой цветов на переменные */

#container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

#header {
    width: 100%;
}

#navigation {
    width: 100%;
    height: 24px;
    text-align: right;
    background-color: var(--secondary-bg);
}

#footer {
    width: 100%;
    text-align: center;
    background-color: var(--secondary-bg);
    clear: both;
}

.footer_text {
    font-size: 10px;
}

.footer_text a {
    color: var(--text-color);
    text-decoration: none;
}

.footer_text a:hover {
    color: var(--accent-color);
}

.navicons {
    margin: 2px 5px 2px 0;
    vertical-align: middle;
}

.navicons:hover {
    border-bottom: 1px var(--text-color) dashed;
}

h1 {
    margin: 10px 0 0 10px;
    font-size: 2.5rem;
    color: var(--accent-color);
}

h2 {
    margin: 0 0 10px 25px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.date {
    margin: 0 0 10px 15px;
    font-size: 1rem;
    color: var(--date-color);
}

.navigation_header {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 0px;
}

#vertinav {
    width: 200px;
    float: left;
    margin-bottom: 20px;
}

#vertinav ul {
    list-style: none;
    padding: 0;
}

#vertinav li {
    margin-bottom: 10px;
}

#vertinav li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
}

#vertinav li a:hover {
    border-left: 3px solid var(--accent-color);
}

#content {
    width: calc(100% - 210px);
    float: right;
}

p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0 5px 20px 5px;
    text-align: justify;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.currency-table {
    width: 35%;
    border-collapse: collapse;
    margin: 5px 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--currency-text);
}

.divider-line {
    height: 1px;
    background-color: var(--text-color);
    padding: 0;
}

.vertical-divider {
    width: 1px;
    background-color: var(--text-color);
    padding: 0;
}

.currency-table td {
    padding: 1px 2px;
    text-align: left;
}

.currency-label {
    text-align: left;
    font-weight: bold;
}

.currency-date {
    font-weight: bold;
    color: var(--currency-text);
}

.currency-rate {
    color: var(--currency-rate);
}

.currency-today {
    font-weight: bold;
    color: var(--currency-today);
}

.currency-today-rate {
    font-weight: bold;
    color: var(--currency-today);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .footer_text {
        font-size: 9px;
    }

    .navicons {
        margin: 2px 2px;
    }

    #vertinav {
        width: 100%;
        float: none;
    }

    #content {
        width: 100%;
        float: none;
    }
}
