/* Mechanical web page style only*/
@import url('https://cdn.jsdelivr.net/npm/sweetalert2@11.7.0/dist/sweetalert2.min.css');

.mech_content {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px auto;
    
}

.mech_leftside_div{
    flex: 2;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 5px;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    
}
.mech_rightside_div {
    flex:1;
    border-radius: 5px;
    margin: 5px;
    
}

.mech_leftside_div h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    background-color: rgb(27, 218, 84);
    padding: 10px;
    text-align: justify;
}

.subjectlist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
}

.subject_name {
    flex: 1 1 calc(40% - 20px);
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin: 10px;
    font-size: 20px;
    font-weight: 700;
}

.subject_name:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #02ec88;
}

.subject_name a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    width: 100%;
}

.folderlogo, .subject_name img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/*<------------------------------------>
Particular subject Style
<--------------------------------------->

/* Section Button Styling*/
.section{
    margin : 10px 0px 10px 10px;
}
/* Section button css with active and completed class*/

/* Style for section buttons */
.section_btn {
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-weight: 700;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* Style for active section button */
.section_btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Style for completed section button */
.section_btn.completed {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Hover effect for section buttons */
.section_btn:hover {
    background-color: #f0f0f0;
}
.mech_container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    margin: 10px auto;
    box-sizing: border-box;
}
.mech_content_left{
    flex: 2;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 800px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.mech_content_right {
    flex:1;
    /*background-color: #d19999;*/
    padding: 10px;
    margin-left: 10px;
}

.mech_content_right:empty {
   display: none;
}

.mech_content_left h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #06258b;
    text-align: justify;
}

.advertisement {
    background-color: #748faa;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.advertisement:empty {
    display: none;
}

#questionsContainer {
    margin: 10px 0;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.page button {
   
    color: rgb(22, 21, 21);
    border: 2px solid #218838;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 600;
}
.page .page-number{
    background-color: #ccc;
}

.page button:hover:not(.active):not(:disabled) {
    background-color: #218838 /* Darker green shade on hover */
}

.page .pagination-button.active {
    background-color: #155724; /* Darker green for active button */
    color: #fdffff;
}

.page .pagination-button:disabled {
    background-color: #6c757d; /* Gray shade for disabled buttons */
    cursor: not-allowed;
}

.page .prev,
.page .next {
    background-color: #28a745; /* Same green shade */
    color:#ffffff;
}
.page .prev {
    margin-right: 20px;
}
.page .next {
    margin-left: 20px;
}
.page .prev:disabled,
.page .next:disabled {
    background-color: #cbd2d8; /* Gray shade for disabled prev/next buttons */
    cursor: not-allowed;
}

.question_container {
    border-bottom: 1px solid #242424;
    padding: 10px;
    margin-bottom: 10px;
}

.question {
    background-color: #9afffa;
    padding:10px 5px 10px 5px;
    display: flex;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 5px;
}

.options {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    background-color:none;
}

.option {
    padding: 10px;
    box-sizing: border-box;
    border: none;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    background-color: none;
    font-size: 19px;
}

.view_answer,.discuss_button, #postButton{
    padding: 10px;
    background-color: rgba(246, 248, 112, 0.863);
    color: darkred;
    font-weight: 700;
    margin: 5px 0px 5px 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;

}
#commentContainer{
    box-sizing: border-box;
    border: 1px solid rgb(156, 155, 155);
    background-color: #e2fffe;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#commentElement{
    white-space: pre-wrap;
    padding: 5px 10px 5px 10px;
    margin-left: 10px;
}
.comment-fname{
    color: #0a06f5;
    font-weight: 600;
}
.comment_textarea{
    display: block;
    width: 90%;
    height: 50px;
    margin: 10px;
    padding: 10px;
}

.answer_container{
    margin: 20px 10px 20px 10px;
    text-align: justify;
    max-width: 100%; /* Prevents it from exceeding parent width */
    overflow: hidden; /* Prevents content from breaking layout */
    word-wrap: break-word; /* Ensures long equations wrap */
/*    display: block; /* Ensures it behaves properly inside flex/grid containers */
}
#answer_div{
    margin-left: 20px;

}
#answer{
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #02ec88;
}

.hidden{
    /* initally answer div is hidden*/
   display: none;
   margin-left: 20px;
   padding: 10px; 
  
}

.mech_content_right:empty {
    display: none;
 }
  

 .swal2-popup {
    font-size: 18px;  /* Default font size */
    width: 30%;       /* Default width */
    max-width: 400px; /* Max width */
}
.swal2-title {
    font-size: 28px;  /* Default font size */
}




/* Responsive Design */
@media screen and (max-width: 1200px) {
    .mech_container {
        flex-direction: column;
        align-items: center;
    }
    .mech_content_left,
    .mech_content_right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .mech_content_left{
        max-width: 800px
    }
    .mech_content_right {
        margin: 0;        
    }
    .section_btn {
        padding: 10px 15px;
        margin: 5px;
        font-size: 18px;
    }
    .question{
        font-size: 18px;
        padding:10px 5px 10px 5px;
    }
    .option{
        font-size: 17px;
        padding:10px 5px 10px 5px;
    }
    .prev, .next{
        font-size: 14px;
        padding: 8px 12px;
    }
    .page button{
        font-size: 14px;
        padding: 8px 12px;
    }
    .mech_content_left h2{
        font-size: 20px;
    }
    .page{
        margin-top: 10px;
    }
    .mech_content {
        flex-direction: column;
        align-items: center;
    }
    .mech_leftside_div,
    .mech_rightside_div {
        flex: 1 1 100%;
    }
    .subject_name {
        flex: 1 1 100%;
    }
    .mech_rightside_div{
        width: 100%;
    }
    .section_btn {
        padding: 10px 15px;
        margin: 8px;
        font-size: 14px;
    }
   
    .subject_name{
        font-size: 18px;
        margin-bottom: 10px;
        padding: 5px 10px 5px 10px;
    }
    .options{
        margin-bottom: 10px;
    }
    .swal2-popup {
        font-size: 14px;  /* Smaller font size */
        width: 50%;       /* Adjust modal width */
    }
    .swal2-title {
        font-size: 20px;  /* Default font size */
    }

}

@media screen and (max-width: 768px) {
    .mech_container {
        flex-direction: column;
        align-items: center;
    }
    .mech_content_right {
        flex: 1 1 100%;
        margin: 0;
    }
    .section_btn {
        padding: 8px 15px;
        margin: 5px;
        font-size: 14px;
    }
    .subject_name {
        flex: 1 1 100%;
    }
    .mech_rightside_div{
        width: 100%;
    }
    .question{
        font-size: 18px;
        padding:8px 4px 8px 4px;
    }
    .option{
        font-size: 17px;
        padding:8px 4px 8px 4px;
    }
    .page{
        margin-top: 10px;
    }
    .page button{
        font-size: 14px;
        padding: 8px 12px;
    }
    .prev, .next{
        font-size: 14px;
        padding: 8px 12px;
    }
    .mech_content_left h2, .mech_leftside_div h2{
        font-size: 20px;
    }
    .subject_name{
        font-size: 18px;
        margin-bottom: 0px;
        padding: 5px 10px 5px 10px;
    }
    .options{
        margin-bottom: 10px;
    }
    .swal2-popup {
        font-size: 14px;  /* Smaller font size */
        width: 50%;       /* Adjust modal width */
    }
    .swal2-title {
        font-size: 20px;  /* Default font size */
    }
}