:root {
    --bg-color: #5C2318;
    --container-bg: #eec481;
    --text-color: #4f332b;
    --primary-color: #953623;
    --secondary-color: #f13704;
    --accent-color: #ebcc99;
    --border-color: #eec481;
    --link-color: #ebcc99;
    --link-hover: #eec481;
    --button-bg: #4f332b;
    --button-hover: #953623;
    --card-bg: #5C2318;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --modal-bg: #f5e6c8;
    --input-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
    --bg-color: #011616;
    --container-bg: #002626;
    --text-color: #ead4b2;
    --primary-color: #15472D;
    --secondary-color: #ead4b2;
    --accent-color: #ead4b2;
    --border-color: none;
    --link-color: #ead4b2;
    --link-hover: #15472D;
    --button-bg: #15472D;
    --button-hover: #011616;
    --card-bg: #15472D;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --modal-bg: #011616;
    --input-bg: #011616;
}

body {
    font-family: 'Times New Roman', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow-color);
    border: 2px solid var(--border-color);
}


.race-btn {
    padding: 15px;
    background-color: var(--button-bg);
    color: #f5e6c8;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.race-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px var(--shadow-color);
}

/* стиль для теста */
.question {
    margin-bottom: 30px;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.option-btn {
    padding: 12px;
    width: 100%;
}

.progress-container {
    width: 100%;
    background-color: var(--container-bg);
    border-radius: 5px;
    margin-top: 20px;
    height: 20px;
    position: relative;
}

#progress-bar {
    height: 100%;
    background-color: var(--button-bg);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-weight: bold;
}

.race-card {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: var(--link-color);
}

.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    background-color: var(--button-hover);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--bg-color);
    padding: 15px 0;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.link {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.link:hover,
.link.active {
    color: var(--link-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
}