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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.titulo h1 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    padding: 1rem;
    border-radius: 10px;
}

.titulo p {
    text-align: right;
    color: rgb(69, 69, 69);
}

.section {
    margin-bottom: 2rem;
}

h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #2980b9;
}

.question {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

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

.question p {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.options {
    display: flex;
    flex-direction: column;
}

.options label {
    display: flex;
    align-items: center;
    margin: 0.3rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.options label:hover {
    background-color: #e8f4f8;
    transform: translateX(5px);
}

.options input[type="radio"] {
    margin-right: 0.5rem;
}

.submit-btn, .action-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover, .action-btn:hover {
    background-color: #2980b9;
    transform: scale(1.02);
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-actions .action-btn {
    flex: 1;
    background-color: #2ecc71;
}

.result-actions .download-btn {
    background-color: #3498db;
}

.result-actions .icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.result-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.buttonmodal {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 98%;
    height: 80%;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px;
    background-color: #333;
    color: white;
    text-align: right;
    font-size: 20px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
}

.close {
    cursor: pointer;
    font-size: 24px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
}

.score-section p {
    font-size: 1.1rem;
    font-weight: bold;
}

.chart-container {
    max-width: 400px;
    margin: 1rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.result-interpretation {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.result-interpretation h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.result-interpretation ul {
    padding-left: 1.5rem;
}

.zero-score-questions, .result-interpretation, .score-section, .chart-container {
    page-break-inside: avoid;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    .options {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
    }

    .score-section {
        flex-direction: column;
        text-align: center;
    }

    .score-section p {
        margin-bottom: 0.5rem;
    }
}

/* Improved focus and accessibility */
input[type="radio"]:focus + label {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Subtle scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}