/* 
 * Financial Savings Quiz - Main Stylesheet
 * Contains styles for all pages: main quiz, privacy policy, and terms of use
 */

/* Common styles for all pages */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
}

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

h2 {
    color: #3498db;
    margin-top: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

p, ul, ol {
    margin-bottom: 15px;
}

ul, ol {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.container, .quiz-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Back link (used in privacy policy and terms of use pages) */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Quiz specific styles */
.question-container {
    margin-bottom: 20px;
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
}

.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Question transition animations */
.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.options {
    margin-left: 20px;
}

.option {
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

.option input {
    margin-right: 10px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #2980b9;
}

#results {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    border-radius: 5px;
    width: 5%;
    transition: width 0.3s ease;
}

#start-screen {
    text-align: center;
}

#quiz-screen {
    display: none;
}

/* Results page styling */
.responses-list {
    text-align: left;
}

.response-item {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.answer-text {
    margin-bottom: 8px;
    font-weight: 500;
}

.explanation {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

/* Information sections for CNPJ page */
.info-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    margin-left: 15px;
} 