.background_green{
    background-color: var(--green) !important;
}
.background_red{
    background-color: var(--red) !important;
}
main{
    padding: 1rem;
}
main h1{
    text-align: center;
}
.fee_payment{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.fee_form{
    min-width: 300px;
    max-width: 700px;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}
.fee_form h2{
    text-align: center;
    margin-bottom: 1rem;
}
.fee_form div{
    display: flex;
    justify-content: space-between;
}
.fee_form div.fee_payment_btn_wrapper{
    justify-content: flex-end;
}
.pay_btn_spinner{
    align-items: center; 
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1rem;
}
.fee_payment_btn, .razorpay-payment-button{
    font-weight: bold;
    color: var(--white);
    background-color: var(--light-black);
    border-radius: 10px;
    padding: .8rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all .25s ease-in-out;
}
.fee_payment_btn:hover, .razorpay-payment-button:hover{
    background-color: var(--black);
    box-shadow: 0 0 5px var(--light-black);
}




.fee_payment_history{
    margin: 1rem 0;
    margin-top: 5rem;
    text-align: center;
    overflow: scroll;
}
.fee_payment_history table{
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin: auto;
    min-width: 300px;
    overflow: scroll;
}
.fee_payment_history table td, .fee_payment_history table th{
    padding: 1rem;
    white-space: nowrap
}
.fee_payment_history table tr:nth-child(2n-1){
    background-color: var(--light-gray);
}

.carousel_image_uploader{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}
.carousel_handler_wrapper{
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
    gap: 1rem;
}
.carousel_handler_card{
    width: fit-content;
    border: 1px solid var(--gray);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    align-items: center;
}
.carousel_handler_image{
    max-width: 250px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.carousel_btn_handler_wrapper{
    display: flex;
    gap: 1rem;
    padding: 10px;
    justify-content: space-evenly;
}
.carousel_handler_btns{
    display: flex;
    gap: 1rem;
    padding: 10px;
    justify-content: space-evenly;
}
.homepage_btn_primary{
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all .25s ease-in-out;
    cursor: pointer;
}
.homepage_btn_primary:disabled{
    background-color: var(--gray);
    border: 2px solid var(--gray);
}
.homepage_btn_secondary{
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all .25s ease-in-out;
    background-color: #fff;
    cursor: pointer;
}
.homepage_btn_secondary:hover{
    background-color: var(--primary);
    color: var(--white);
}
.homepage_btn_blue{
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all .25s ease-in-out;
    background-color: #fff;
    cursor: pointer;
}
.homepage_btn_blue:hover{
    background-color: var(--blue);
    color: var(--white);
}
.addNewBtn_dashboard{
    position: absolute;
    right: 1rem;
    top: 4rem;
}
.notice_preview_container{
    margin: 1rem auto;
}
.notice_preview_container_card{
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 1rem;
    max-width: 250px;
}
.notice_preview_container_card form{
    margin-top: 1rem;
}
.school_notice_board form{
    min-width: 250px;

}
.school_notice_board h2{
    margin: 1rem;
    text-align: center;
}
.school_teacher_management{
    width: fit-content;
    /* margin: auto; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    border: 1px solid var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
}
.school_teacher_management input[type="text"], .school_teacher_management input[type="date"], 
.school_teacher_management input[type="email"], .school_teacher_management select,
.school_teacher_management textarea,
.update_gallery_content input[type="text"],.update_gallery_content textarea{
    height: 35px;
    max-width: 240px;
    width: 100%;
    border: 1px solid var(--blue);
    border-radius: 5px;
    padding: 0.5rem;
}
.school_student_management fieldset{
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid var(--light-gray);
}
.school_student_management fieldset legend{
    font-weight: bold;
}
/* .school_student_management .form_radio_btns_holder{
    margin-top: 5px;
} */
.school_teacher_management [type="radio"]{
    margin: 1rem 5px 1rem 1rem;
}
.school_teacher_management textarea{
    height: 100px;
}
.school_teacher_management label{
    margin: 1rem 0 .5rem 0;
}
.school_teacher_management input[type="submit"]{
    margin-top: 1rem;
}
.last_admission_number_hint{
    border: 1px solid gold;
    width: fit-content;
    padding: 10px 10px;
    border-radius: 10px;
    margin-top: 1rem;
    background: #fff8d3;
    font-size: 14px;
}
.colored_section{
    background-color: #efefef;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 1rem;
}
.teacher_card_handler{
    margin-top: 1rem;
    max-width: 250px;
    padding: 1rem;
}

.gallery_holder{
    margin-top: 8rem;
}
.gallery_grid{
    display: grid;
    justify-items: center;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}
.gallery_card{
    width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    overflow: hidden;
}
.gallery_card_container{
    position: relative;
    border-bottom: 1px solid var(--light-gray);
}
.gallery_card_container img{
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.gallery_card_caption{
    margin-top: 5px;
    padding: 5px;
}
.gallery_card_caption p{
    text-align: center;
    font-weight: bold;
    color: var(--black);
}
.gallery_card_description p{
    padding: 1rem;
}
.gallery_card_action_btn_containers{
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.context_menu{
    position: absolute;
    right: 10px;
    top: 10px;
}
.context_menu_btn{
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all .25s ease-in-out;

}
.context_menu_btn:hover{
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
}
/* .context_menu_btn:hover ~ .context_menu_items{
    display: block;
} */
.context_menu_items{
    display: none;
    position: absolute;
    right: 0;
}
.context_menu_items_display{
    display: block !important;
}
.update_gallery_content{
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding: 5px;
}
.loading_gallery_images{
    display: block;
    height: 100px;
    width: 100px;
    margin: auto;
    font-size: 100px;
    margin-top: 50px;
    color: var(--light-gray);
    display: none;
}
.loading_gallery_images>*{
    animation: myfirst 1s ease-in-out infinite;
}
@keyframes myfirst {
    from   {transform:rotate(0deg)}
    to  {transform:rotate(720deg)}
}

.gallery_card_container{
    cursor: pointer;
}
.gallery_card_container img{
    transition: all .25s ease-in-out;
    overflow: hidden;
}
.gallery_card:hover img{
    transform:scale(110%);
}
.fullScreenImgSlider{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    position: fixed;
    top: 0;
    left:0;
    z-index: 100;
    display: none;
}
.school_student_management{
    margin: auto;
    margin-top: 2rem;
    scroll-padding: 100px;
}
.school_student_management>div, .school_student_management>fieldset>div{
    margin-top: 1rem;
}
.school_student_management .row-2{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.school_student_management .row-2>*{
    width: calc(50% - 1rem);
    min-width: 240px;
}
.school_student_management label{
    display: block;
}
.student_photo_container{
    /* padding: 1rem; */
    position: relative;
    box-sizing: border-box;
    height: 160px;
    border-radius: 10px;
}
.student_photo,.student_photo_display_area{
    width: 140px;
    height: 160px;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid var(--light-gray);
}
.student_photo_display_area{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    background-color: var(--light-gray);
    border: 2px dotted var(--gray);
}
.student_photo_input_file{
    opacity: 0;
    cursor: pointer;
}
.student_list{
    position: relative;
}
.hidden_edit_form{
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,0.8);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    overflow: scroll;
    margin: auto;
    z-index: 99;
}
.hidden_edit_form .gallery_holder{
    background-color: #fff;
    padding: 1rem;
    padding-top: 2rem;
    margin: auto;
    margin-top: 2rem;
    border-radius: 10px;
    max-width: 1000px;
    position: relative;
}
@media screen and (max-width: 320px) {
    .hidden_edit_form{
        padding: 0;
    }
}
.edit_student_form_close_btn{
    height: 30px;
    width: 30px;
    border-radius: 100px;
    border: none;
    font-size: 18px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    background-color: var(--gray);
    color: var(--white);
}
.pagination_btns_container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.show_imgs_in_gallery{
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.95);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.show_imgs_in_gallery .show_imgs_btn_holder button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all .25s ease-in-out;
}
.show_imgs_in_gallery .show_imgs_btn_holder button:hover,
.show_imgs_in_gallery .show_imgs_btn_holder button:focus{
    transform: translateY(-50%) scale(110%);
}
.show_imgs_in_gallery .show_imgs_btn_holder button.left_btn{
    left: 30px;
}
.show_imgs_in_gallery .show_imgs_btn_holder button.right_btn{
    right: 30px;
}

.gallery_imgs_slider_container{
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.gallery_imgs_slider_wrapper{
    display: flex;
    /* transition: all .5s ease-in-out; */
}
.gallery_imgs_slider_wrapper>div{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gallery_imgs_slider_wrapper .image_caption{
    width: 100%;
    background: rgb(32 32 32 / 77%);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    position: absolute;
    bottom: 50px;

}

.show_imgs_in_gallery .close_gallery_image_viewer{
    position: absolute;
    color: #fff;
    font-size: 20px;
    right: 35px;
    top: 35px;
    background-color: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    z-index: 99;
}
.add_fee_cards{
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    flex-wrap: wrap;
}
.add_fee_cards button{
    width: 250px;
    height: 100px;
    background: linear-gradient(#00b09b,#96c93d);
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease-in-out;
}
.add_fee_cards button:hover,.add_fee_cards button:focus{
    transform: scale(1.1);
    box-shadow: 0 0 10px 10px #ddd;
}
.add_fee_cards button:nth-child(2){
    background: linear-gradient(#f12711,#f5af19);
}
.student_list table{
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
}
.student_list table tbody tr {
    /* border: 2px solid var(--primary); */
    border-radius: 10px;
    padding: 1rem;
}
.student_list table tr td,.student_list table tr th{
    padding: 1rem;
    text-align: center;
}
.add_fee_individually_section{
    display: none;
}
.edit_class_fee_btn{
    display: flex;
    justify-content: flex-end;
    max-width: 530px;
    margin: auto;
    margin-top: 1rem;
}