/* June 29, 2024 */

#controls_container {
    user-select: none;
    margin-bottom: 0.4rem;
    margin-bottom: 0;
    width: 100%;
    width: fit-content;
    /* padding: 0 1rem; */
}
#controls_container {
    background-color: transparent;
    /* position: fixed; */
    /* position: relative; */
}

/* #controls_container > div {border: 1px dashed #dd2466;} */
/* #controls_container > div {
    padding: 0 5px;
    padding: 5px 5px;
} */

/* #controls_container h3 {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.4;
    border-bottom: 2px solid black;
    width: 100%;
    
    margin-bottom: 0.7rem;
} */


/* #gridline_editor_tools {} */
/* #image_editor_tools {} */


/* UNCOMMENT LATER [s.ToDelete] */
/* #controls_container {background-color: transparent;} */


#controls_container {
    z-index: 999;
    position: fixed;
}

#controls_container {
    display: flex;
    flex-direction: column;
    /* border: 1px solid blue; */
}

/* #controls_container button:hover {
    background-color: #555;
    color: #eee;
    transition: background-color 0.3s, color 0.3s;
} */





#gridline_editor_tools {
    width: 200px;
    max-width: 200px;
}

/* image_grid_editor */
#gridline_editor_tools {
    background-color: #eee;
    background-color: #f4f4f4;
    padding-left: 5rem;
    /* padding: 2px 8px 12px 15px; */
    border: 1px solid black;
    border-left: none;

    z-index: 999;

    position: fixed;

    width: auto;
    width: 200px;
    width: 230px;
}



#gridline_editor_header {
    display: inline-block;
    display: flex;
    /* display: inline-flex; */
    justify-content: space-between;
    align-items: center;
    align-items: end;
    align-items: start;
    /* align-content: end; */
/* border: 1px solid red; */
/* padding: 5px; */
/* margin-bottom: 5px; */
    /* padding-bottom: 20px; */
    /* margin-top: 5px; */
}

#gridline_editor_header h3 {
    text-decoration: underline;
    /* border: 1px solid red; */
    /* width: 600px; */
    width: 100%;
    /* max-width: 100%; */
    /* padding-right: 10px; */
}



#gridline_editor_tools {
    padding: 2px 8px 12px 15px;
    padding: 2px;
    padding-top: 0;
    padding-right: 0;
}
#gridline_editor_header {
    /* border: 1px solid red; */
    /* border-right: none; */
    
    /* padding-right: 0;
    padding-top: 0;
    padding-bottom: 0; */
    /* padding-top: 0; */

    position: relative;
    width: 100%;

    padding: 0;
    /* height: 18px; */

    /* overflow-x: hidden; */

}

#gridline_editor_header .side_module {
    /* border: 1px solid blue; */

    /* z-index: 999; */
    /* overflow-x: hidden; */

    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;

    position: absolute;
    top: 0;
    right: 0;
    /* align-items: flex-start; */

    /* height: 26px; */
}

#gridline_editor_header .side_module {
    right: -30px;
    top: -1px;
    background-color: #f4f4f4;
    /* border-top: 1px solid black; */
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    /* right: -31px; */
    width: 30px;

    /* top: calc(10px + 36px); */
    /* top: 0px; */
    /* top: 36px; */
    top: 10px;

    width: 40px;
    height: 40px;
    height: 30px;
}
#controls_container {
    top: 36px;
}

#gridline_editor_header {height: 100%; width: 100%;}
#gridline_editor_header .side_module {
    right: unset;
    top: unset;
    /* top: 100%; */
    /* top: calc(100% + 2px); */
    right: 20px;
    right: 30px;
    /* right: 50%; */
    /* transform: translateX(50%); */

    right: unset;
    left: 0;
    left: -3px;
    border-left: none;
    /* padding-left: 1px; */

    bottom: 100%;
    bottom: calc(100% - 2px);
    /* bottom: calc(100% - 3px); */
    transform: translateY(100%);
    padding-left: 1px;
    padding-bottom: 1px;
}



#gridline_editor_header #modal_close_x_id {
    /* border: 1px solid black; */

    font-size: 18px;

    cursor: pointer;
    /* text-align: end; */
    /* display: inline-block; */
    /* margin-right: -8px; */
    /* margin-right: -10px; */
    /* margin-top: -4px; */

    /* padding: 5px; */
    /* padding-top: 2px; */

    /* align-self: flex-start; */
    /* vertical-align: top; */

    display: flex;
    justify-content: center;
    align-items: center;
    align-items: flex-end;
    align-items: center;

    /* width: 26px;
    height: 26px; */

    /* width: 36px;
    height: 32px; */

    height: 26px;


    width: 36px;
    width: 30px;
    line-height: 1;
    /* padding-left: 1px; */

    z-index: 999;
/* padding-top: 1px; */

    height: 40px;

    width: 40px;
    /* width: 60px; */
    width: 100%;
    height: 100%;
}


#gridline_editor_tools .container_main {
    padding: 2px 8px 12px 15px;
    padding: 2px 30px 22px 26px;
    /* margin-top: 20px; */
}




.user_select_titles {
    font-size: 15px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.4px;
}


#grid-lines-input {
    /* margin-bottom: 14px; */
    /* margin-bottom: 20px; */
    /* padding: 20px 0; */
    padding: 14px 0;
}

/* #grid-lines-input > div > div { margin-bottom: 5px; } */
/* .line_styling_wrapper {border: 1px solid red;} */
.line_styling_wrapper {margin-bottom: 5px;}

#grid-lines-input select, 
select {
    padding: 2px 5px;
    cursor: pointer;
    text-align: center;
}
#grid-lines-input select {
    width: 80px;
}

#container-label_line_colors { padding-left: 14px; }
#container-grid_line_thickness { padding-left: 12px; }

#container-label_line_colors select { padding-left: 14px; }
#container-grid_line_thickness select { padding-left: 12px; }
#gridline_opacity_container select {padding-left: 12px;}



#gridlines_styling_label_container {
    margin-bottom: 10px;
}






/* #line-col_amount_input { */
#col-row_amount_container {
    /* border: 1px solid red; */
    padding: 14px 0;
    border-top: 1px solid rgba(50,50,50,0.8);
    border-bottom: 1px solid rgba(50,50,50,0.8);

    /* width: 90%; */

    display: flex;
    flex-direction: column;
    align-items: end;
    align-items: center;

    padding-bottom: 20px;
    padding: 20px 0;
    padding: 14px 0;
    padding-bottom: 16px;
}
#grid_dimensions_label_container {
    /* border: 1px solid black; */
    width: 100%;
    margin-bottom: 10px;
    margin-top: 5px;
}
/* #grid_dimensions_label {} */



/* .gridline_tool {border: 1px solid green;} */

/* .gridline_tool {width: 90%;} */
.gridline_tool {width: 100%;}

/* #grid_tools_2 { */
#col_amount_container {
    padding-bottom: 5px;
}
#row_amount_container {
    padding-left: 25px;
    padding-left: 21px;
    /* width: 100%; */
    /* align-self: flex-end; */
}






.line_color {
    padding: 3px 0;
    cursor: pointer;
}
select option {
    cursor: pointer;
}



#line_black { background-color: #000; color: #f4f4f4; }
#line_red { background-color: #d60000; color: #f4f4f4; }
#line_green {
    background-color: #31D100;
    background-color: #29af00;
    color: #f4f4f4;
    /* padding: 3px 0; */
}
#line_yellow { background-color: #FBFB00; }
#line_white { background-color: #fff; }
/* #line_ { background-color: #; color: #f4f4f4; } */





















/* Zoom Tools */

#img_display_viewing_tools {
    margin-top: 1rem;
    margin-top: 1.2rem;
}


#nav_zoom_tools {
    margin-bottom: 0.5rem;
}

#nav_zoom_tools img {
    max-width: 26px;
    pointer-events: none;
    vertical-align: middle;
}


#nav_zoom_tools button {
    user-select: none;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    border: 1px solid black;
    /* border: none; */
}






#img_fit_to_screen_box {
    /* display: inline-block; */
    text-align: center;
    /* width: 100%; */

    min-height: 2rem;

    /* display: inline-flex; */
    /* align-items: center; */
}
#btn_img_fit_to_screen {
    /* display: inline-block; */
    width: 80%;
    padding: 8px 0;
    font-size: 0.4rem;
    font-size: 0.8rem;
    font-size: 0.84rem;
}



#nav_zoom_btns {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    font-size: 22px;
    margin-bottom: 0.4rem;
}

#nav_zoom_reset {
    border: 1px solid black;
    display: inline-block;
    width: 100%;
    height: auto;
}


/* #nav_zoom_btns .zoom {font-size: 22px;} */
#nav_zoom_btns .zoom_reset {
    font-size: 15px;
    /* font-size: 10px; */
}




/* #nav_zoom_out, #nav_zoom_in {
    flex-basis: 3;
}
#nav_zoom_reset { flex-basis: 1; } */

#nav_zoom_out, #nav_zoom_in {
    width: 40%;
    padding: 3px 0;

    width: 100%;
    padding: 6px 0;
}
#nav_zoom_reset { width: 35%; }
/* #nav_zoom_reset {height: 90%; display: inline-block; padding: 5px 0; align-self: center;} */



/* #gridline_editor_tools .container_main {
    display: flex;
    flex-direction: column;
} */

#copyright_notice {
    font-size: 12px;
    /* padding: 15px 0; */
    /* padding-top: 15px; */
    /* border: 1px solid blue; */
    width: 100%;
    
    /* align-self: flex-end; */
    /* justify-self: flex-end; */

    /* margin-top: 8px; */
    margin-bottom: 8px;

    text-align: center;


}
#copyright_notice p {transform: scale(0.8);}

#copyright_notice {display: none;}




#editor_mobile_menu {display: none;}
#gridline_editor_header .side_module {display: none;}


#editor_mobile_menu {
    /* border: 1px solid red; */
    /* display: flex; */
    align-items: center;
}



/* @media only screen and (max-width: 1100px) and (max-height: 500px) { */
@media only screen and ((max-width: 1100px) and (max-height: 500px)) {
/* @media only screen and ((max-width: 1100px) and (max-height: 500px)) and ((max-width: 500px) and (max-height: 1100px)) { */

    /* #gridline_editor_header .side_module {display: inline-block;} */
    #gridline_editor_header .side_module {display: none;}


    /* #gridline_editor_header { height: 30px; } */

    #gridline_editor_tools .container_main {
        /* padding: 2px 30px 22px 26px; */ /* Original */
        padding: 2px 24px 22px 20px;
        margin-top: 25px;
        /* margin-top: 30px; */
        padding-bottom: 8px;

        margin-top: 16px;
    }

    #editor_mobile_menu {
        display: flex;
        /* border: 1px solid red; */
        /* margin-top: 1rem; */
        width: 100%;
        /* margin-bottom: 14px; */
        gap: 10px;

        /* border-bottom: 1px solid red; */

    }

    #img_display_viewing_tools.mobile_inactive {display: none;}
    #grid-lines-input.mobile_inactive, #col-row_amount_container.mobile_inactive {display: none;}
    /* .mobile_inactive { display: none; } */

    #editor_mobile_menu p {opacity: 0.88; padding: 0 2px; font-size: 94%;}
    #editor_mobile_menu .active {
        /* display: inline-block; */
        opacity: 1;
        font-size: 100%;
        /* text-decoration: underline; */
        /* border-bottom: 1px solid black; */

        border: 1px solid black;
        padding: 0 5px;
        padding: 2px 7px;
    }

}




/* @media only screen and (max-width: 500px) and (max-height: 1100px) { */
@media only screen and ((max-width: 500px) and (max-height: 1100px)) {

    #gridline_editor_header .side_module {display: inline-block;}

    #editor_mobile_menu {display: none;}


    #gridline_editor_tools .container_main {
        /* padding: 2px 30px 22px 26px; */ /* Original */
        padding: 2px 24px 22px 20px;
        padding: 2px 24px 22px 24px;

        margin-top: 25px;
        /* margin-top: 30px; */
        margin-top: 16px;
        margin-top: 0;
        margin-top: 6px;

        /* padding-bottom: 8px; */

        
    }


}