/* Flexbox container to align content and ad side by side */
.summary-container, .quiz-container {
    margin: 16px auto;
    max-width: 65%;  
    clear: both; 
    margin-top: 24px !important;
}

/* Clearfix for floating elements */
.summary-container::after, .quiz-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Main content block for summary and quiz */
.summary-content-block, .quiz-content-block {
    box-sizing: border-box;
    overflow: hidden; 
}

.quiz-content label {
    margin-bottom: 18px;
}
.quiz-content label input{
    margin-right: 4px;
}

/* Center alignment for summary content */
.summary-content {
    text-align: center;
}

/* Ad block styling */
.ad-content {
    background-color: #fff;
    text-align: center;
    justify-content: center;
    margin: auto;
    max-width: 50%;
    overflow: hidden;
    
}
.summary-content-block{
    flex: 1;
}
.topbottom-class > .ad-content{
    width: 100%;
}
@media screen and (max-width: 320px) {
    
    .ad-content *{
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
.ad-content img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add responsiveness for smaller screens */
@media (max-width: 768px) {
    .summary-container, .quiz-container {
        flex-direction: column; /* Stack content vertically on smaller screens */
        align-items: center; /* Center-align everything */
        max-width: 100%; /* Allow container to take full width on mobile */
    }

    .summary-content-block, .quiz-content-block {
        max-width: 100%; /* Ensure content block does not exceed container width */
        margin-right: 0; /* Remove right margin */
    }
    
}

/* Summary type buttons at the bottom, center-aligned */
.summary-controls {
    display: flex;
    justify-content: center; /* Center-align the buttons */
    margin-bottom: 20px;
}

.summary-controls label {
    margin: 0 10px; /* Spacing between buttons */
}

/* Style the radio buttons */
.summary-controls input[type="radio"] {
    margin-right: 5px;
}

/* Style for 'Check Answer' button */
.check-answer {
    background-color: #4CAF50; /* Green background */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.check-answer:hover {
    background-color: #45a049; /* Darker green on hover */
}

.check-answer:active {
    background-color: #3e8e41; /* Even darker green when clicked */
}

/* Feedback message style */
.feedback {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* Add responsiveness for smaller screens */
@media (max-width: 500px) {
    .summary-controls {
        flex-direction: column; 
    }

    .check-answer {
        width: 100%; /* Make the button full width on mobile */
    }
}


/* 
Custom css to overide the previuos structure to add the heading
*/

.summery-content-wrapper{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.summary-heading{
    margin: 0px !important;


}
.quiz-heading{
    margin: 0px !important;

}

.summary-heading h4{
    margin-top: 0;
}
.quiz-heading h4{
    margin-top: 0;
}

.quiz-content-wrapper {
	display: flex;
	flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.summary-badge-container {
    display: flex;
    justify-content: center;
}

/*
** Conditional layout rendering based ont leftright and top bottom.
below on is for the top bottom
*/
.topbottom-class{

    flex-direction: column;

}

.topbottom-class > .summary-content-block{

    margin-right: 0;

}

.topbottom-class > .quiz-content-block{

    margin-right: 0;
    
}



/* for mobile device */
@media screen and (max-width: 991px) {

    .summery-content-wrapper{
        flex-direction: column;

    }
    

    .quiz-content-wrapper{

        flex-direction: column;
    
    }
    

}
@media screen and (max-width: 1200px) {
    .summary-container, .quiz-container {
        max-width: 80%; 
    }
    
}
@media screen and (max-width: 767px) {
    .summary-container, .quiz-container {
        max-width: 100%; 
    }
    
}


/* input style */
.quiz-option-list input{
    display: none;
}
.quiz-option-list{
    width: 100%;
    position: relative;
}
.quiz-option-list p{
    border: 1px solid;
    padding: 8px 14px;
    width: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.quiz-option-list.checked {
    padding: 12px 16px;
}

.quiz-option-list input[type="radio"]:checked + p {
    background-color: #f8f9fa ; 
    color: #000;
    border-color: transparent; 
}

.quiz-option-list.correct-answer input[type="radio"]:checked + p {
    background-color: #9feb8e ; 
    color: #000 ; 
}
.quiz-option-list.incorrect-answer input[type="radio"]:checked + p {
    background-color: #fca7a1 ; 
    color: #000 ; 
}
.quiz-option-list.correct-answer p {
    background-color: #9feb8e ; 
    color: #000 ; 
    border: transparent;
}
.quiz-option-list.incorrect-answer p {
    background-color: #fca7a1 ; 
    color: #000 ;
    border: transparent; 
}

.list-icon1{
    position: absolute;
    top: 0px;
    right: 0px;
    display: none;
}
.correct-answer .list-icon1{
    position: absolute;
    top: 50%;
    right: 6px;
    display: flex;
    transform: translateY(-50%);
}
.correct-answer .list-icon1 svg path{
    fill: #000!important;
    stroke: #000 !important;
}
.correct-answer .list-icon1 svg{
    width: 28px ;
    height: 28px ;
}
.list-icon2{
    position: absolute;
    top: 0px;
    right: 0px;
    display: none;
}
.incorrect-answer .list-icon2 {
    position: absolute;
    top: 50%;
    right: 6px;
    display: flex;
    transform: translateY(-50%);
}
.incorrect-answer .list-icon2 svg path{
    fill: #000 !important;
    stroke: #000 !important;
}
.incorrect-answer .list-icon2 svg{
    width: 28px ;
    height: 28px ;
}


/* plugin heading */
.quiz-plugin-name {
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    background: #20B7D3;
    padding: 8px 21px;
    display: inline-flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.quiz-plugin-name h2{
    margin: 0px !important;
}


.title-animation{
    position: absolute; 
    z-index: 10; 
    width: 25%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.5); 
    right: 0; 
    bottom: 0;
    top: 0; 
    transform: rotate(45deg);
    opacity: 0; 
    transition: transform 1s, opacity 1s;


}
.quiz-plugin-name:hover .title-animation{
    transform: translate(-600%, -100%) rotate(45deg);
    opacity: 1;     
}
.link-text a {
    text-decoration: none;
}
.section-heading-icon svg{
    width: 70px;
    height: auto;
}
.quiz-section-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}
.quiz-section-heading-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-plugin-heading-text{
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 0px 24px;
}
.quiz-heading-bg{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    z-index: -1;
    left: 0;
}
.feedback{
    display: none;
}

/* layout direction */
.deraction-row{
    flex-direction: row;
}
.deraction-row-reverse{
    flex-direction: row-reverse;
}
.quiz-section-heading-icon img{
    width: 100%;
    height: auto;
    max-width: 70px;
    max-height: 70px;
    margin: 0px;
    border-radius: 0px !important;
}
.quiz-option-list p{
    margin: 0px;
}
.quiz-option-list{
    display: block;
}

.quiz-content-block .quiz-content .question {
    margin-bottom: 14px !important;
}
.ad-content{
    display: flex;
    align-items: center;
}
/* summary plugin header section */
.summary-plugin-name {
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    background: #20B7D3;
    padding: 8px 21px;
    display: inline-flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.summary-plugin-name h2{
    margin: 0px !important;
}
.summary-plugin-name svg path{
    fill: #fff !important;
    stroke: #fff !important;
}

.title-animation{
    position: absolute; 
    z-index: 10; 
    width: 25%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.5); 
    right: 0; 
    bottom: 0;
    top: 0; 
    transform: rotate(45deg);
    opacity: 0; 
    transition: transform 1s, opacity 1s;


}
.summary-plugin-name:hover .title-animation{
    transform: translate(-600%, -100%) rotate(45deg);
    opacity: 1;     
}
.summary-link-text a {
    text-decoration: none;
}

.summary-section-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-section-heading-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.summary-plugin-heading-text{
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 0px 24px;
}
.summary-heading-bg{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    z-index: -1;
    left: 0;
    background-color: red;
}
.sammary-section-heading-icon img{
    width: 100%;
    height: auto;
    max-width: 70px;
    max-height: 70px;
    margin: 0px;
    border-radius: 0px !important;
}
