.box {
    .richText {
        &.quiz-container {
            p {
                font-size: 1rem;
                color: #002844;
            }
        }
    }
}

#quiz-counter {
    color: #002844;
    font: normal normal normal 18px/26px Poppins;
    width: 900px;
}
#quiz-wrapper {
    width: 100%;
    padding-bottom: 80px;

    .quiz-question-wrapper {
        display: none;
        width: 900px;

        &.correct-answer {
            .quiz-answer {
                border-radius: 24px;
                padding: 20px;
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                align-self: stretch;
            }

            .quiz-options {
                & > li {
                    & > label {
                        &.active {
                            color: rgb(27, 94, 31);
                            font-weight: bold;
                        }
                    }
                }
            }
        }

        &.wrong-answer {
            .quiz-answer {
                border-radius: 24px;
                padding: 20px;
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                align-self: stretch;
            }

            .quiz-options {
                & > li {
                    & > label {
                        &.active {
                            color: rgb(183, 28, 28);
                            font-weight: bold;
                        }
                    }
                }
            }
        }

        &.active {
            display: block;
        }

        h3 {
            line-height: 24px;
        }
        
        p {
            color: #002440;
            font-size: 17px;
            font-style: normal;
            font-weight: 400;
            line-height: 16px; /* 94.118% */
        }

        .quiz-question {
            font: normal normal 600 19px/27px Poppins;
            letter-spacing: 0.51px;
            color: #002844;
        }

        .quiz-options-quiz {
            list-style-type: none;
            padding-left: 0;
            margin-top: 30px;
            line-height: 24px;
        
            .quiz-control {
                display: block;
                position: relative;
                padding-left: 30px;
                margin-bottom: 10px;
                padding-top: 10px;
                cursor: pointer;
                font: normal normal normal 17px/24px Poppins;
                color: #002844;
                
                &.not-selected {
                    &:hover {
                        font-weight: normal !important; // Remove hover effect for not-selected labels
                    }
                }
                
                input {
                    position: absolute;
                    z-index: -1;
                    opacity: 0;
                
                    &:focus {
                        & ~ .quiz-control-indicator {
                            &:hover {
                                content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/hover.svg") !important;
                                position: absolute;
                                z-index: 100;
                            }
                        }
                    }
                
                }
                
                input[type="checkbox"] {
                    &:checked {
                        & ~ .quiz-control-indicator {
                            content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/picked.svg") !important;
                            position: absolute;
                            z-index: 100;
                            pointer-events: none;
                
                            &:after {
                                display: block;
                            }
                        }
                    }
                }
                
                input[type="radio"] {
                    &:checked {
                        & ~ .quiz-control-indicator {
                            content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/picked.svg") !important;
                            position: absolute;
                            z-index: 100;
                            pointer-events: none;
                
                            &:after {
                                display: block;
                            }
                        }
                    }
                }
                
                input:checked + span {
                    font-weight: 600 !important;
                }
                
                input:disabled + span {
                    font-weight: normal !important;
                }
                

                @media (min-width: 769px) {
                    input:checked:hover + span + .quiz-control-indicator {
                        content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/hoverForPicked.svg") !important;
                    }
                
                    input:checked:hover + span {
                        font-weight: bold !important;
                    }
                }

                span {
                    color: #002440;
                    font-family: Poppins;
                    font-size: 17px;
                    font-style: normal;
                    line-height: 16px;
                    margin-left: 10px;
                    display: flex;
                    line-height: 20px;
                    margin-top: -3px;
                    
                    &:hover {
                        font-weight: bold;
                    }
                }
                
                input:checked + .quiz-control-indicator + span {
                    font-weight: bold !important;
                }
                
                &:hover {
                    font-weight: bold;
                    
                    .quiz-control-indicator {
                        content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/hover.svg") !important;
                        position: absolute;
                        z-index: 100;
                    }
                    
                }
                
                
                
            }

            .quiz-control-indicator {
                border-radius: 20% !important;
                position: absolute;
                top: 5px;
                left: 0;
                height: 24px;
                width: 24px;
                
                &:hover {
                    content: url("/etc/designs/zg/impfakademie-2/desktop/img/icons/quiz/hover.svg") !important;
                    position: absolute;
                    z-index: 100;
                }

                &:after {
                    box-sizing: unset;
                    content: '';
                    position: absolute;
                    display: none;
                }
                
            }

            .quiz-control:hover input ~ .quiz-control-indicator,
            .quiz-control-checkbox {
                .quiz-control-indicator {
                    border-radius: 20% !important;

                    &:after {
                        
                        background: #936ABC !important;
                        transition: background 250ms;
                    }

                    &::before {
                        content: '';
                        display: block;
                        position: absolute;
                        left: 0;
                        top: 0;
                        width: 4.5rem;
                        height: 4.5rem;
                        margin-left: -1.3rem;
                        margin-top: -1.3rem;
                        background: #936ABC;
                        border-radius: 3rem;
                        opacity: 0.6;
                        z-index: 99999;
                        transform: scale(0);
                    }
                }

                input {
                    &:disabled {
                        & ~ .quiz-control-indicator {
                            &:after {
                                background: #7b7b7b;
                            }
                        }
                        
                    }
                    
                    &:checked {
                        & > span {
                            font-weight: bold !important;
                        }
                    }
                }
            }

        }

        .quiz-answer {
            display: flex;
            border-radius: 24px;
            padding: 20px;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
            align-self: stretch;
            margin-top: 30px;
            margin-bottom: 0 !important;

            .explanation-title {
                color: #002440;
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 16px;
                padding: 0;
                margin-bottom: 0 !important;
            }

            .explanation-description {
                color: #002440;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                padding: 0;
                width: -webkit-fill-available;
                overflow-wrap: break-word;

                a {
                    text-decoration: none;
                }
            }
        }

        .button {
            display: inline-block;
            margin: 0;
            padding: 16px 24.77px 18px 25px;
            font: normal normal normal 16px/24px Poppins;
            background: #936ABC;
            border: 4px solid #936ABC;
            color: #fff;
            -webkit-border-radius: 1.79px;
            -moz-border-radius: 1.79px;
            border-radius: 40px;
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
            line-height: 16px;
            margin-top: 30px;
            
            
        }
    }
}

#quiz-error {
    display: flex;
    border-radius: 24px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    align-self: stretch;
    border: 1px solid #DD4B4A;
    background: #F9CDD0;
    margin-top: 30px;
    width: 900px;

            .error-title {
                color: #002440;
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: normal;
                padding: 0;
                margin-bottom: 0 !important;
            }

            .error-description {
                color: #002440;
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                padding: 0;

                a {
                    text-decoration: none;
                }
            }
}


#quiz-result {
    
    width: 585px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 30px 40px 40px 40px;
    border-radius: 24px;
    background: #FFF;
    margin: auto;
    
    h2 {
        color: #002440;
        font-family: Poppins;
        font-size: 21px;
        font-style: normal;
        font-weight: 700;
        line-height: 16px;
        
    }

    p {
        line-height: 16px;
        padding-top: 10px;
        color: #002440;
        font-family: Poppins;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }
}

@media (max-width: 950px) {
    #quiz-counter {
        width: auto !important;
    }
    
    #quiz-error {
        width: auto !important;
    }
    
    .quiz-question-wrapper {
        width: auto !important;
    }
    #quiz-error {
        .error-title {
            margin-left: 0 !important;
        }
    }
}



@media (min-width: 768px) {
    #quiz-wrapper {
        .quiz-question-wrapper {
            .button {
                &:hover {
                    background: #BF93E9;
                    border: 4px solid #BF93E9;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .box {
        .richText {
            &.quiz-container {
                width: 75%;
                display: inline-block;
                margin-top: 10px !important;
            }
        }
    }
    
    #quiz-wrapper {
        #quiz-result {
            p span {
                font-size: 1rem !important;
            }
        }
    }
}

@media (max-width: 650px) {
    #quiz-wrapper {
        #quiz-result {
            width: auto;
        }
    }
}