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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 600px;
    position: relative;
}

.question {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #2c3e50;
}

.question-counter {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

.btn-yes {
    background-color: #007bff;
    color: white;
}

.btn-yes:hover {
    background-color: #0056b3;
}

.btn-no {
    background-color: #28a745;
    color: white;
}

.btn-no:hover {
    background-color: #218838;
}

.btn-validate {
    background-color: #007bff;
    color: white;
}

.btn-validate:hover {
    background-color: #0056b3;
}

.btn-back {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
    flex: none;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.btn-restart {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
    flex: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.btn-back:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.btn-restart:hover {
    background-color: #dc3545;
    color: white;
}

.btn-back:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.result-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.result-card p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.result-card img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.score-badge {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-export {
    background-color: #17a2b8;
    color: white;
    margin-left: 10px;
}

.btn-export:hover {
    background-color: #138496;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .quiz-card {
        padding: 20px;
        width: 90vw;
        max-width: 500px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        min-width: auto;
    }
}