jQuery(document).ready(function ($) {
    $(document).find('.ays_next.start_button').on('click', function(){
        setTimeout(function(){
            $(document).find('.ays_quiz_modern_light section.ays_quiz_timer_container').find('hr').remove();

            $(document).find('.ays_quiz_modern_light section.ays_quiz_timer_container').css({
                transition: '.5s ease-in-out',
            });
            if($(document).find('.ays_quiz_modern_light .ays-quiz-timer').length > 0){
                $(document).find('.ays_quiz_modern_light .ays_music_sound').css({
                    margin: "32px auto",
                });
                $(document).find('.ays_quiz_modern_light .ays_question_hint').css({
                    'margin-top': '17px',
                });
                $(document).find('.ays_quiz_modern_light .ays-question-counter').css({
                    'margin-top': '40px',
                });
            }
        }, 850);
    });
    /*
    $(document).find('.ays_quiz_modern_light').find('input[name^="ays_questions"]').on('change', function (e) {   
        if($(e.target).parents('.ays-quiz-container').hasClass('ays_quiz_modern_light')){     
            if ($(e.target).parents().eq(4).hasClass('enable_correction')) {
                var checked_inputs = $(e.target).parents().eq(1).find('input:checked');
                if (checked_inputs.prev().val() == 1) {
                    checked_inputs.next().addClass('correct');
                    checked_inputs.parent().addClass('correct_div');
                } else {
                    checked_inputs.next().addClass('wrong');
                    checked_inputs.parent().addClass('wrong_div');
                }
                if (checked_inputs.attr('type') === "radio") {
                    if ($(this).prop('checked')) {
                        $(this).parents('.ays-quiz-answers').find('.checked_answer_div').removeClass('checked_answer_div');
                        $(this).parents('.ays-field').addClass('checked_answer_div');
                    }
                    $(e.target).parents('div[data-question-id]').find('input[name^="ays_questions"]').attr('disabled', true);
                    $(e.target).parents('div[data-question-id]').find('input[name^="ays_questions"]').off('change');
                }else if(checked_inputs.attr('type') === "checkbox"){
                    if ($(this).prop('checked')) {
                        $(this).parents('.ays-field').addClass('checked_answer_div');
                    }else{
                        $(this).parents('.ays-field').removeClass('checked_answer_div');
                    }
                    $(e.target).attr('disabled', true);
                    $(e.target).off('change');
                }
            }else{
                var checked_inputs = $(e.target).parents().eq(1).find('input[name^="ays_questions"]');
                if (checked_inputs.length === 1) {
                    if (checked_inputs.attr('type') === "radio") {
                        if ($(this).prop('checked')) {
                            $(this).parents('.ays-quiz-answers').find('.checked_answer_div').removeClass('checked_answer_div');
                            $(this).parent().addClass('checked_answer_div');
                        }
                    }else if(checked_inputs.attr('type') === "checkbox"){
                        if ($(this).prop('checked')) {
                            $(this).parents('.ays-field').addClass('checked_answer_div');
                        }else{
                            $(this).parents('.ays-field').removeClass('checked_answer_div');
                        }
                    }
                }
            }
        }
    });
    */
});
