/* splashscreen */
#loading{
    outline: none;
    border: none;
    background: #00000082;
    height: 100%;
    width: 100%;
    padding-top: 131px;
    font-size: 0px;
    justify-content: center;
    align-items: center;
    display: flex;
}

#loading h1{
    font-size: 40px;
    color: #dbdbdb;
    font-weight: 500;
}

.loader{
    border: 5px solid #dbdbdb;
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s ease-in-out infinite;
    margin-right: 15px;
}

/* Loading Overlapping Zones */
#loading_overlapping{
    display: none;
    top: 180px;
    z-index: 500;
    position: fixed;
    text-align: -webkit-center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


#top-option-section{
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right : 5px;
}

.letter{
    display: inline-grid;
    text-align: center;
    margin-right: 5px;
    margin-top: 5;
    margin-top: 5px;
}


.letter a div {
    color: #424242;
}

.letter a:hover {
    color: darkblue !important;
} 


.letter a > img{
    min-width: 100px;
    max-width: 150px;
    padding: 5px;
}

.selected_letter > img{
    background-color: lightpink;
    border: medium solid rgb(204, 0, 0);

}

.correction_letter{
    background: #c3c2c2;
    padding-top: 2px;
}

#focus_correction_box{
    background: none;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 25px;
    margin-bottom: 5px;
    display: block;
}

#annot_message{
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
}


#focus_correction_box .annot_selector_category{
    margin-bottom: 6px;
}

.filters{
    display: inline-table;
}

.filter{
    display: inherit;
}

.delete_img{
    position: absolute;
}


.myClass{
    margin: 5px;
}


.btns-bb{
    display: flex;
    width: 100%;
}
.btn-bb{
    border-radius: 7px;
}

.btn-save-bb{
    flex: 2;
    width: fit-content;
    margin-right: 10px;
}

.btn-delete-bb{
    flex: 1;
    width: fit-content;
}

#bbs-viewer-box{
    width: 100%;
    height: 100%;
    background-color: lightgray;
    padding-bottom: 22px;
}

.out_category_top{
    position: relative;
    min-height: 100px;
    max-height: 120px;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 3px;
}

#out_category_top_info{
    display: flex;
    position: absolute;
    bottom: 0;
    width: calc(100% - 10px);
}
#out_category_head{
    flex: 1;
}
#out_category_head_overl{
    flex: 1;
}

#current_selected{
    text-align: center;
}

.out_category{
    overflow-y: scroll;
    height: calc(100% - 100px);
    background: white;
    min-height: 250px;
    max-height: 70vh;
}


#bb-viewer-focus-box{
    width: 19%;
    flex-grow: 1;
    background-color: lightgray;
    min-width: 40px;
    display: inline-block;
}

#bb-viewer-focus-box img{
    width: 90%;
}

#img_focus_box{
    max-height: 63vh;
    overflow: auto;
    padding-bottom: 12px;
    text-align: center;
}

#selector_category{
    border-radius: 7px;
    margin-left: -4px;
    width: calc(100% + 7px);
}

.annot_selector_category{
    width: 100%;
    height: 30px;
    margin-bottom: 3px;
    padding-left: 5px;
    border-radius: 7px;

}

.content-box{
    margin-bottom: 10px;
    border: solid darkgray 1px;
    width: 100%;
}

#top-full-img{
    display: flex;
    align-items: start;
    min-height: 34px;
    padding-left: 5px;
    padding-top: 5px;
    margin-bottom: 5px;
    background: lightgray;
}

.checkboxes_row_full_img{
    margin-left: 3px;
}
 #load_bb_image_button{
    min-width: 105px;
    max-width: 160px;
}

#labelled_img{
    margin-right: 1%;
    margin-left: 1%;
    max-height: 1000px;
    overflow: hidden;
    margin-bottom: 8px;
}

#full_image{
    width: 98%;
    max-height: 700px;
}

.bb-label{
    opacity: 0.70 !important;
    border-color: darkgray !important;
    font-size: 10px;
    left: 0px;
    display: none;
}

.marker-div{
    background: rgb(250, 250, 250) !important;
}

.leaflet-marker-icon{
    background: rgb(250, 250, 250) !important;
    border: rgb(30, 30, 30) solid 1px;
    text-align: center;
    font-size: 18px;
    display: none !important;
}


.bb-viewer-box-main{
    display: flex;
    flex-wrap: wrap;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
  }
  
  /* Style the buttons inside the tab */
  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #ccc;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    width: 80%;
    resize: horizontal;
    overflow: auto;
    min-height: 372px;
    min-width: 200px;
    /*display: inline-block;
    max-height: 80vh;*/
  }



/* Functions bar ----------------------------- */

#functions-bar {
    width: 100%;
    background-color: lightgray;
    padding-left: 5px;
    padding-top: 2px;
}

.icon-function {
    display: inline-block;
    height: 30px;
    width: 30px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 5px;
}

.icon-function-new {
    background: url('../assets/icons/new_bb.png');
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: center;
}

.tooltip-funcs {
    position: relative;
    text-align: center; 
    transition: all 0.3s ease;
    width: 30px;
  }
  
.tooltip-funcs .tooltip-funcs-text {
    visibility: hidden;
    width: 120px;
    background-color: #4b4b4b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 15px;
    white-space: nowrap;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
  }
  
.tooltip-funcs:hover .tooltip-funcs-text {
    visibility: visible;
  }

#functions-bar a, #functions-bar a:active, #functions-bar a:focus {
    outline: none;
 }



/* --- Extra info Table  --- */

.styled-table {
    border-collapse: collapse;
    margin: 0px 0;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #f3f3f3;
}

.styled-table th,
.styled-table td {
    padding: 2px 12px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

#extra-info-bb{
    overflow-x: auto;
}



