/* Basic Body & Typography */
body {
    font-family: Arial, sans-serif;
    background: #f6f7fb;
    margin: 0;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: #222;
    margin: 0 0 10px 0;
}

/* Links */
a {
    color: #2b6ef6;
    text-decoration: none;
    margin-right: 10px;
}

/* Buttons */
button, .nav-btn {
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled, .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Container */
.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Question */
.question-block {
    margin-bottom: 30px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.question-text {
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
    font-weight: 400;
}

/* Rating System */
.rating-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    min-width: 100px;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.rating-option:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.rating-option.selected {
    transform: translateY(-8px) scale(1.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a67d8;
    box-shadow: 0 15px 30px rgba(102,126,234,0.4);
}

.rating-emoji {
    font-size: 2.5em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.rating-option:hover .rating-emoji {
    transform: scale(1.2);
}

.rating-option.selected .rating-emoji {
    transform: scale(1.3);
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.rating-option.selected .rating-text {
    color: black;
    font-weight: 700;
}

.rating-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.rating-option:hover .rating-bar {
    background: #cbd5e0;
    height: 6px;
}

.rating-option.selected .rating-bar {
    background: rgba(255,255,255,0.3);
    height: 6px;
}

.rating-option.selected .rating-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Selected Answer Display */
.selected-answer-display {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.nav-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #6c757d;
    color: white;
}

.prev-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Third-party Images - Fully Responsive */
.thirdpartyImages {
   width: 250px;
   height: auto;
    text-align: center;
    margin: 20px 0;
}

.thirdpartyImages img {
    width: 250px;
    height: auto;
    max-width: 400px; /* optional max size */
    display: inline-block;
}

/* Section Titles */
.section-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-container {
        gap: 10px;
        padding: 10px;
    }

    .rating-option {
        min-width: 90px;
        padding: 12px 8px;
    }

    .rating-emoji {
        font-size: 2em;
    }

    .rating-text {
        font-size: 12px;
    }

    .nav-btn {
        width: 100%;
        font-size: 1em;
    }

    .question-text {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .rating-option {
        min-width: 70px;
        padding: 10px 6px;
    }

    .rating-emoji {
        font-size: 1.8em;
    }

    .rating-text {
        font-size: 11px;
    }
}
