* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.mode-selector {
    margin-bottom: 30px;
}

.mode-buttons, .answer-format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

.question-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.question {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.answer-option {
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.answer-option:hover {
    background-color: #e0e0e0;
}

.answer-option.selected {
    background-color: #4CAF50;
    color: white;
}

.result {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
}

.result.correct {
    background-color: #dff0d8;
    color: #3c763d;
}

.result.incorrect {
    background-color: #f2dede;
    color: #a94442;
}

.stats {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s;
}

@media (max-width: 600px) {
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .mode-buttons, .answer-format-buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

/* Стили для главной страницы */
.welcome-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-text {
    margin-bottom: 30px;
    color: #333;
}

.trainer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.start-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.start-button:hover {
    background-color: #45a049;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.home-link {
    position: absolute;
    left: 0;
    color: #4CAF50;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.home-link:hover {
    color: #45a049;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
    
    .home-link {
        position: static;
    }
}

/* Стили для уведомления о cookies */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-notice-visible {
    transform: translateY(0);
}

.cookie-notice-hiding {
    transform: translateY(100%);
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-notice-content p {
    margin: 0;
    padding: 5px 0;
    flex: 1;
    font-size: 14px;
}

#cookie-notice-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin-left: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#cookie-notice-close:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    #cookie-notice-close {
        margin: 10px 0 0 0;
        width: 100%;
    }
} 