/* Quiz Component Styles */

.quiz-component {
    width: 100%;
    height: 100%;
    color: white;
    background-color: #151515;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Beginning Screen Styles */
.quiz-beginning-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.neoskola-logo-image {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.quiz-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.quiz-question-count {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ccc;
}

.quiz-description {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin-bottom: 50px;
    line-height: 1.5;
}

.quiz-actions {
    display: flex;
    gap: 20px;
}

.start-quiz-button,
.next-episode-button,
.retry-quiz-button,
.view-certificate-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Focus styles for TV navigation */
.start-quiz-button.focused,
.next-episode-button.focused,
.retry-quiz-button.focused,
.view-certificate-button.focused {
    background-color: #E50914;
    border-color: #E50914;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

/* Locked certificate quiz screen */
.locked-certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    text-align: center;
}

.locked-image {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.locked-certificate-text {
    font-size: 18px;
    line-height: 1.5;
}

/* Questions Screen Styles */
.quiz-questions-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background-color: #E50914;
    transition: width 0.3s ease;
}

.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.question-text {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.question-image {
    max-width: 250px;
    max-height: 200px;
    border-radius: 8px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover,
.option:focus {
    border-color: #666;
}

.option.selected {
    border-color: #E50914;
    background-color: rgba(229, 9, 20, 0.1);
}

.option-marker {
    width: 32px;
    height: 32px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.option.selected .option-marker {
    background-color: #E50914;
}

.option-text {
    font-size: 18px;
    flex: 1;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
}

.prev-question-button,
.next-question-button,
.submit-quiz-button {
    background-color: transparent;
    color: white;
    border: 2px solid #666;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.prev-question-button:hover,
.next-question-button:hover,
.submit-quiz-button:hover,
.prev-question-button:focus,
.next-question-button:focus,
.submit-quiz-button:focus {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.submit-quiz-button {
    background-color: #E50914;
    border-color: #E50914;
}

.submit-quiz-button:hover,
.submit-quiz-button:focus {
    background-color: #f51f2a;
    border-color: #f51f2a;
}

/* Result Screen Styles */
.quiz-result-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.result-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.result-boxes-container {
    display: flex;
    gap: 25px;
    margin-bottom: 60px;
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    padding: 20px;
    border-radius: 10px;
    background-color: #262626;
}

.result-icon {
    margin-bottom: 15px;
}

.result-image {
    width: 40px;
    height: 40px;
}

.result-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
}

.result-count {
    font-size: 24px;
    font-weight: bold;
}

.result-actions {
    display: flex;
    gap: 20px;
}

/* Certificate Modal */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.certificate-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
}

.certificate-image {
    max-width: 100%;
    max-height: 100%;
}

.close-certificate-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #E50914;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .result-boxes-container {
        flex-wrap: wrap;
        justify-content: center;
    }

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