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

.test-container {
    background-color: rgb(250, 206, 145);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer:hover {
    background-color: #f0f0f0;
}

.answer.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    transform: translateX(10px);
}

.answer.wrong {
    border-color: #f44336;
    background-color: #ffebee;
    animation: shake 0.5s;
}

.answer.correct {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    animation: pulse 0.5s;
}

.next-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
    display: none;
}

.next-btn:hover {
    background-color: #45a049;
}

.result {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

.progress-bar {
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.loader { 
    text-align: center; 
    padding: 20px; 
    font-size: 18px; 
    color: #666; 
}

.error-message { 
    background-color: #ffebee; 
    color: #c62828; 
    padding: 15px; 
    border-radius: 5px; 
    margin: 20px 0; 
    text-align: center; 
}

.retry-btn { 
    background-color: #2196F3; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-top: 10px; 
}

.retry-btn:hover { 
    background-color: #1976D2; 
}

@keyframes shake { 
    0%, 100% { transform: translateX(0); } 
    20%, 60% { transform: translateX(-5px); } 
    40%, 80% { transform: translateX(5px); } 
}

@keyframes pulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
    100% { transform: scale(1); } 
}