/* Personality Quiz Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body {
    background-color: #004183;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Welcome Popup Styles */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.welcome-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.welcome-header {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.welcome-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.welcome-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-body {
    padding: 25px;
    text-align: center;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.welcome-body p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.welcome-features {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #004183;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.feature span:last-child {
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #333;
    font-weight: 500;
}

.start-quiz-btn {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 5px 15px rgba(0, 65, 131, 0.3);
}

.start-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 65, 131, 0.4);
}

/* Personality page specific styles */
.personality-container {
    max-width: 800px;
    margin: 120px auto 40px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

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

@keyframes pulse {
    0% { 
        transform: translateY(-2px) translateZ(0) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: translateY(-2px) translateZ(0) scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 65, 131, 0.3);
    }
    100% { 
        transform: translateY(-2px) translateZ(0) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.personality-title {
    text-align: center;
    color: #004183;
    font-size: 2.5rem;
    margin: 0;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
}

.language-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    height: auto;
    white-space: nowrap;
    background: #004183;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Progress Section */
.progress-section {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #004183;
    font-weight: 600;
    font-size: 1.1rem;
}

.instructions-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #004183;
}

.instructions-section h3 {
    color: #004183;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.scale-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.scale-info span {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
    min-width: 120px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Cards Container */
.cards-container {
    margin-bottom: 30px;
    min-height: 400px;
    position: relative;
}

/* Question Card Styles */
.question-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: cardSlideIn 0.5s ease-out;
}

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

.card-header {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-number {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.card-progress {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.card-content {
    padding: 30px;
}

.question-text {
    font-size: 1.4rem;
    color: #004183;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}

.rating-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rating-option:hover {
    background: #e4f0f2;
    border-color: #004183;
    transform: translateX(5px);
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option input[type="radio"]:checked + .rating-label {
    color: #004183;
    font-weight: 600;
}

.rating-option input[type="radio"]:checked ~ .rating-label {
    color: #004183;
    font-weight: 600;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #333;
    transition: all 0.3s ease;
}

.rating-number {
    background: #004183;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.rating-text {
    font-size: 1.1rem;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    background: #004183;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.nav-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 65, 131, 0.3);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    text-align: center;
    font-size: 1.8rem;
    color: #004183;
    margin-top: 2rem;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.result h2 {
    color: #004183;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.personality-type {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 65, 131, 0.3);
}

.personality-type h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.personality-type p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.category-scores {
    margin-bottom: 30px;
}

.category-scores h3 {
    color: #004183;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.score-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category {
    font-weight: 600;
    color: #333;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.score {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.result a {
    display: block;
    margin-top: 10px;
    color: #004183;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: color;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.result a:hover {
    color: #0056b3;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .personality-container {
        margin: 100px 1rem 1rem 1rem;
        padding: 1.5rem;
    }
    
    .personality-title {
        font-size: 2rem;
    }
    
    .welcome-content {
        width: 95%;
        margin: 15px;
        max-width: 350px;
    }
    
    .welcome-header h2 {
        font-size: 1.3rem;
    }
    
    .welcome-body {
        padding: 18px;
    }
    
    .welcome-features {
        gap: 10px;
    }
    
    .feature {
        padding: 12px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .rating-option {
        padding: 12px;
    }
    
    .rating-text {
        font-size: 1rem;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .welcome-content {
        width: 98%;
       
        margin: 10px;
        max-width: 300px;
    }
    
    .welcome-header h2 {
        font-size: 1.1rem;
    }
    
    .welcome-body {
        padding: 15px;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .welcome-body p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .welcome-features {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .feature {
        padding: 10px;
        gap: 10px;
    }
    
    .personality-container {
        margin: 90px 0.5rem 0.5rem 0.5rem;
        padding: 1rem;
    }
    
    .personality-title {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .rating-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .results-content {
        width: 95%;
        margin: 20px;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .results-body {
        padding: 20px;
    }
    
    .results-body h3 {
        font-size: 1.5rem;
    }
    
    .results-actions {
        gap: 10px;
    }
    
    .view-full-btn, .share-btn, .retake-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .welcome-content {
        width: 99%;
        margin: 5px;
        max-width: 280px;
    }
    
    .welcome-header h2 {
        font-size: 1rem;
    }
    
    .welcome-body {
        padding: 12px;
    }
    
    .welcome-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .welcome-body p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .welcome-features {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .feature {
        padding: 8px;
        gap: 8px;
    }
}

/* Results Popup Styles */
.results-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results-popup.show {
    opacity: 1;
}

.results-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.results-popup.show .results-content {
    transform: scale(1);
}

.results-header {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.results-header h2 {
    margin: 0;
    font-size: 2rem;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.results-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-body {
    padding: 30px;
    text-align: center;
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.results-body h3 {
    color: #004183;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
}

.results-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.popup-category-scores {
    margin-bottom: 30px;
}

.popup-category-scores h4 {
    color: #004183;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}

.popup-score-grid {
    display: grid;
    gap: 12px;
}

.popup-score-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.popup-score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-category {
    font-weight: 600;
    color: #333;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
}

.popup-score {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
    text-align: center;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.view-full-btn, .share-btn, .retake-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.view-full-btn {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
}

.view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 65, 131, 0.3);
}

.share-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.retake-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.retake-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Donation Modal Styles */
.donate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-modal.show {
    opacity: 1;
}

.donate-modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.donate-modal.show .donate-modal-content {
    transform: scale(1);
}

.donate-header {
    background: linear-gradient(135deg, #004183 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donate-header h2 {
    margin: 0;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.donate-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-body {
    padding: 30px;
}

.donate-body p {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #333;
}

.donate-options {
    display: grid;
    gap: 20px;
}

.donate-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.donate-option h3 {
    color: #004183;
    margin-bottom: 10px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-transform: uppercase;
}

.donate-option p {
    margin-bottom: 15px;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #666;
}

.donate-link {
    display: inline-block;
    background: #004183;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-family: 'NavbarFont', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.donate-link:hover {
    background: #0056b3;
}





