
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    font-size: 13px !important;
    font-family: Arial, sans-serif !important;
}
body {
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}
#container{
    min-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box; 
}

#position {
    width: 130px;          /* 고정 너비 설정 */
    white-space: normal;   /* 자동 줄바꿈 허용 */
    word-break: break-word; /* 단어 단위 줄바꿈 */
  }
.title-link {
    text-decoration: none; /* ë°‘ì¤„ ì œê±° */
    color: inherit; /* ë¶€ëª¨ ìš”ì†Œì˜ ìƒ‰ìƒ ìƒì† */
    font-weight: bold; /* ì œëª©ì²˜ëŸ¼ ë³´ì´ë„ë¡ ê¸€ìž êµµê²Œ */
    cursor: default; /* ë§ˆìš°ìŠ¤ í¬ì¸í„°ë¥¼ ê¸°ë³¸ ìƒíƒœë¡œ ë³€ê²½ */
}

.title-link:hover, .title-link:focus {
    color: inherit; /* í˜¸ë²„ ë° í¬ì»¤ìŠ¤ ìƒíƒœì—ì„œë„ ìƒ‰ìƒ ìœ ì§€ */
    text-decoration: none; /* ë°‘ì¤„ ìœ ì§€ ì œê±° */
}

/* -------------------brush-------------------*/
g.piebrush .extent {
    fill: rgba(255, 255, 255, 0.3);
      stroke: black;
  stroke-width: 3px;
}

.resize {
  cursor: move;
  stroke: black;
  stroke-width: 1px;
}

.extent {
  fill-opacity: 1;
  cursor: hand;
}

.e {
  fill: rgb(4, 4, 4);
  cursor: move;
}

.w {
  fill: rgb(4, 4, 4);
  cursor: move;
}

/* -------------------content------------------*/
.main_container {
    display: flex;
    gap: 10px;
    width: 90%;
    margin: auto;
    justify-content: center;
}
/* text */
h5{
    margin-bottom: 0px !important;
    font-size: 14px !important; 
}
h6{
    margin-bottom: 0px !important;
    font-size: 13px  !important;
}
button{
    font-size: 13px  !important;
}
p{
    font-size: 13px  !important;
}
table{
    font-size: 13px  !important;
}
input{
    font-size: 13px  !important;
}
select{
    font-size: 13px  !important;
}
.option_box label{
    font-size: 13px  !important;
}
g{
    font-size: 13px;
}
foreignObject{
    font-size: 13px !important;
}
/* left */
.left_container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width:650px;
  max-width:650px;
}
.option_box{
    flex: 1;
    margin-left:5px;
}
.option_box_none{
    display: none;
}
.option_box:last-child {
  flex: 0 0 auto; 
}
.option_bar{
  display: flex;
  align-items:center;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 2px;
  height: 140px;
  width:100%;
}
.option_bar button{
    height: 28px;
    display: flex; 
  justify-content: center;
  align-items: center; 
  font-size: 13px  !important;
}
.option_bar input{
    height: 28px;
    font-size: 13px  !important;
    
}
.option_bar select{
    height: 28px;
    font-size: 13px  !important;
}
.option_bar h6{
    margin:auto;
}
.handler{
    display: flex; 
    justify-content: center; 
    align-items: center;
    flex-direction: column; 
    text-align: center;
    margin:auto;
    gap:3px;
}
.handler-box{
    margin: auto;
}
.moveHandler-box{
    display: flex; 
    margin-bottom:10px;
}
.searchHandler-box{
    display: flex; 
    margin:0;
}

.search-position{
    margin: 0px !important;
}
.search-gene{
    margin: 0px !important;
}
#navigate-position{
    width:350px;
}
.opt-hand-right{
    margin-left: 10px;
}

/* right */
.info_container{
    display: flex;
    flex-direction: column;
    width: 700px;
    max-width: 700px;
    margin-top: 0; 
    position: relative; 
  }
.option_bar_half{
  display: flex;
  align-items:center;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.option_bar_half input{
    height:28px;
    padding-top:2px;
    font-size: 13px  !important;
}
.option_bar_half select{
    height:28px;
    padding-top:2px;
    font-size: 13px  !important;
}
.option_box button{
    height: 35px !important;
    width: 35px !important;
    display: flex; 
  justify-content: center;
  align-items: center; 
  font-size: 13px  !important;
}
#cnvType{
    width:100px;
}

/* -------------------chart -------------------*/
.chart {
  display: flex; 
  justify-content: flex-start; 
  position: relative;
  height: 650px;
  width: 650px;
}

#canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
}

.svg-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  width: 100%;
  height: 100%;
}

.legend {
  x: 375;
  y: 400;
  z-index: 30;
  text-align: center;
  position: absolute;
  font-size: 13px;
}

yTick1 text{
  pointer-events:none;
}
yTick2 text{
  pointer-events:none;
}



/* --------------------------------------*/

.char_container{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* annotation tack option */
#endBt_left::before,
#startBt_left::before {
  content: "\25C0"; 
  margin-right: 5px;
}

#startBt_right::before,
#endBt_right::after {
  content: "\25B6"; 
  margin-left: 5px;
}

.button-container button {
    flex-grow: 1;
}
#selectAllDUP{
    background-color: rgba(105, 179, 162, 0.5);

}
#selectAllDEL{
    background-color: rgba(255, 0, 0, 0.5);
}
#selectAllCNV{
    background-color: #ced4da;
}
#selectNoneCNV{
    background-color: #ced4da;
}
#JumpToGene{
    background-color: #ced4da;
}


/* ------------------ table ------------------ */
#cnv_gene_table{
    margin-left:10px;
    border-bottom: 1px solid #ccc; 
    overflow-y: auto;
    width: 100%;
}
th{
    position: sticky;
    top: -3px;  
    z-index: 10; 
}
#cnv_gene_table th {
    background-color: #fff;
  }
  #cnv_gene_table .row-integrated {
    background-color: rgba(141, 126, 196, 0.5);
  }
  #cnv_gene_table .row-dup {
    background-color: rgba(105, 179, 162, 0.5);
  }
  #cnv_gene_table .row-del {
    background-color: rgba(255, 0, 0, 0.5);
  }
  .table-container{
    height: 200px; 
    resize: vertical;
    overflow-x: hidden;
    border-top:#000;
    border-bottom:#000;
    margin-bottom: 5px;
  }
  
  #cnv_gene_table th,
#cnv_gene_table td {
  text-align: center;
  border-bottom: 1px solid #ccc;
  white-space: nowrap; 
  padding: 2px 5px;
  table-layout: auto; 
  font-size: 13px;
}
/* ------------------ table end ------------------ */

#gProfiler_query {
    display: flex;
    justify-content: space-between;
    align-items: center; 
}
#gProfiler_query button{
    height: 28px;
}

#type-filter-dropdown {
  display: none; 
  position: absolute; 
  z-index: 2050; 
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); 
}

.dropdown-item {
  width: auto;
  font-size: 13px;
}
.dropdown-item label, .dropdown-item span{
    font-size: 13px;
}
#disease-list button{
    height: 28px;
}

/* ADD */
.no-pointer-events {
    pointer-events: none !important;
}
.selected-chr {
    stroke: rgb(255, 0, 0) !important;
    stroke-width: 3px;
}
.unSelected-chr {
    opacity: 0.3 !important;
}
#track-list{
    overflow-y: auto;
    max-height: 445px; 
    margin-bottom: 0;
}
#track-list_userdata{
    overflow-y: auto;
    max-height: 270px; 
    margin-bottom: 0;
}
ul{
    padding-left:0;
    position: relative;
}


.suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    background: white;
    z-index: 1000;
    width: 240.17px;
    top: 100%; 
    left: 0; 
}
.suggestions div {
    padding: 8px;
    cursor: pointer;
}
.suggestions div:hover {
    background-color: #eee;
}

/*------------------------------*/

/* Flex container for items within drag-area-big */
.container {
    display: flex;
    width: 100%;
}
.drag-area-big{
    align-items: center;
    margin-bottom: 10px;
    height: auto;
    position: relative;
    display:flex;
}
.drag-handle{
    background-color: #17becf;
    align-items: center;
}
.geneAnnotation{
    align-items: center;
    background-color: #ced4da;
}
#GeneAnnot{
    width: 500px;
}
#DGVAnnot{
    width: 500px;
}

.drag-handle-flex{
    display:flex;
    justify-content: center;
    align-items: center;   
    vertical-align: middle; 
    text-align:center;
    height:61px;
}
.drag-handle-flex > p{
    width:130px;
    text-align:center;
    vertical-align: middle; 
    margin: 0; 
    padding-top:12px;
    padding-bottom:12px;
    font-size: 13px; 
    line-height: 1.2;
}

.drag-handle-flex > span{
    padding:0;
    padding-top:3px;
}
.linear_svg{
    width: 500px;
    border: 0.5px solid #ced4da;
    z-index: 5;
}
.drag-handle-flex > i {
    position: absolute; 
    left: 5px;
    top: 50%; 
    transform: translateY(-50%);
    z-index: 2;
    font-size: 14px; 
    cursor: grab;
}


.deleteSpan{
    width:30px;
    align-items: center;
    font-size: 15px;
    flex-direction: column; 
    display: flex;
    text-align: center;
    justify-content: center; 
    margin-left: 0px;
    margin-right: 0px;
}
.viewSpan{
    width:20px !important;
    height:60px;
    align-items: center;
    padding:0px;
}

.deleteSpan > button{
    display: flex;
    width:30px !important;
    height:30px !important;
    background-color: white;
    border:none;
    padding:7px;
}
.viewSpan > button{
    margin-bottom:1px;
    margin-left:1px;
    background-color: white;
    padding:0px;
}
#gene_allDIV .viewSpan{
    width:20px !important;
} 
#submitBtn,#submitBtnAdd{
    border:none;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
}
.drag-list > li{
    list-style:none;
}

/*---------------------------------------*/
#example-btn-div{
    margin-left:auto;
}
#example-btn-div button{
    margin-left:auto;
}
#download-btn-div{
    margin-left:auto;
}
#download-btn-div button{
    height: 28px;
}
#download-modal {
    background-color: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 480px; 
    height: 284px;
    overflow-y: auto;
    font-size: 13px;
}
#upload-modal {
    background-color: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 400px; 
    height: 418px;
    overflow-y: auto;
    font-size: 13px;
}
#download-form{
    margin-top:5px;
}
#download-modal h3 {
    margin-top: 0;
}
.modal-footer button{
    height: 28px;
}
#download-modal form {
    display: flex;
    flex-direction: column;
}
.modal-dialog{
    margin:0;
}


/*---------------------------------------*/

.selected-track {
    border-left: 5px solid #6c757d; /* This adds a red bar on the left side */
    padding-left: 5px; /* Adjust padding to compensate for the border */
    background-color: transparent;
}
.unselected-track {
    border-left: 5px solid transparent; /* This adds a red bar on the left side */
    padding-left: 5px; /* Adjust padding to compensate for the border */
    background-color: transparent;
}
#selectButtonGroup{
    display: flex;
    align-items: center;
    justify-content: space-between; 
}
#selectButtonGroup button{
    height: 28px;
}
#selectButtonGroup_2{
    display: flex;
    align-items: center;
    justify-content: space-between; 
}
#selectButtonGroup_2 button{
    height: 28px;
}
#selected-gene-count{
    margin-left: auto; 
}
/*---------------------------------------*/

.blink-border {
    position: relative;
    animation: border-blink 0.5s linear 3; 
}

@keyframes border-blink {
    0% {
        box-shadow: 0 5px 0px 0px rgba(128, 128, 128, 0); 
    }
    50% {
        box-shadow: 0 5px 10px 0px rgba(128, 128, 128, 0.8);
    }
    100% {
        box-shadow: 0 5px 0px 0px rgba(128, 128, 128, 0); 
    }
}


.selected-venn > path {
    stroke: black;
    stroke-width: 2px;
    fill-opacity: 0.6;
}
#venn-legend > li {
    list-style:none;
}
#dynDropdown-venn{
    max-height: 80px; 
    overflow-y: auto;
}

.download_inner_container{
    margin-left:30px;
    max-height: 100px;
    overflow-y: auto;
    margin-bottom:10px;
    border: #000;

}
.list-group-flush > li {
    height:28px;
}
.list-group-flush > li > input {
    margin-right:10px;
}
.custom-shadow {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    padding: 5px;
}

.lollipop-pins line { stroke: grey; stroke-width: 1px; }

#tooltip_diseases {
    position: absolute;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9); 
    color: #333; 
    padding: 4px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    font-size: 12px;
    width: 150px;
    pointer-events: none;
    display:none;
}

/*  */
.disease-checkboxes li span,
.merged-diseases li span {
    max-width: 300px; 
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    font-size:13px;
}

.disease-checkboxes li,
.merged-diseases li {
    max-width: 600px;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    font-size:13px;
}

#dropdownMenuButton{
    max-width: 600px;
    height: 28px;
    overflow: hidden;
    white-space: nowrap;
    margin-top:5px;
}

#other-element {
    padding-right: 0px; 
}
/* banner */
.bottom-banner {
    position: fixed;
    left: 0;
    top:0;
    bottom:auto;
    width: 100%;
    background-color: rgba(248, 249, 250, 0.93);
    color: #212529;
    text-align: center;
    padding: 15px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}

.bottom-banner p {
    margin: 0;
    font-size: 15px;
}

.bottom-banner button {
    background-color: transparent;
    border: grey;
    color: #212529;
    font-size: 16px;
    cursor: pointer;
}

.bottom-banner button:hover {
    color: black;
}

/* Gene search in Table */

#table-gene-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    z-index: 2300;
    display: none;
    min-width: 200px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.suggestion-item {
    padding: 8px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}

pre { 
	margin: 6px; padding: 6px; 
	color: #aaa; background-color: #222;
	white-space: pre; text-shadow: 0 1px 0 #000;
	border-radius: 4px; border-bottom: 1px solid #555;
	box-shadow: 0 1px 5px rgba(0,0,0,0.4) inset, 0 0 20px rgba(0,0,0,0.2) inset;
	font: 16px/24px 'Courier New', Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
}

.custom-radio-group input[type="radio"] {
    display: none;
  }

  .custom-radio-group label {
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
  }
  .custom-radio-group input[type="radio"] + span {
    color: gray; /* 기본은 회색 */
    font-weight: normal;
    text-decoration: none;
  }

  .custom-radio-group input[type="radio"]:checked + span {
    color: black;
    font-weight: bold;
    text-decoration: underline;
  }
