html, body, main, div.container-fluid {
    height: 100%;
}

:root {
    --background-color: #fff;
    --highlight-color: #0088FF;
    --primary-color: #6E757C;
    --primary-color-highlight: #636b72;
}

button:focus {
    outline: none;
}

.highlight-color {
    color: var(--highlight-color);
}

#top-panel {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10px;
    border-bottom: 1px solid black;
    padding-bottom: 10px;
}

#top-left-panel {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    max-width: 300px;
}

#axes-input {
    margin-top: 3px;
}

#top-right-panel {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

#settings-panel-content {
    height: 420px;
}

.global-table {
    width: 100%;
}

.global-table td:first-child {
    padding-left: 0px;
}

#global-misc {
    margin-bottom: 10px;
}

#global-misc div {
    height: 20px;
}

#backdrop-color-input {
    height: 20px;
    width: 50px;
    margin-left: 10px;
    border: 1px dotted black;
}

#backdrop-opacity-input {
    height: 30px;
    width: 60px;
    margin-left: 10px;
}

#download-svg-buttons {
    display: inline-block;
}

#download-as-svg {
    min-width: 170px;
    max-width: 50%;
}

#download-svg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#download-svg-prompt {
    position: relative;
    background-color: var(--background-color);
    border: 2px solid black;
    border-radius: 5px;
    padding: 20px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#download-svg-close {
    position: absolute;
    top: 20px;
    right: 10px;
}

#download-svg-button-container {
    display: flex;
    justify-content: space-evenly;
}

.padded-container {
    margin: 7px;
}

.stretch-button {
    align-self: stretch;
}

#json-loader {
    display: none;
}

#multi-composite-loader {
    display: none;
}

.axis-limit-input {
    width: 60px;
    margin-left: 3px;
}

#symmetric-y-checkbox {
    margin-left: 10px;
}

.checkbox-label {
    margin-left: 5px;
}

#bed-loader {
    width: 100%;
    overflow-x: auto;
    margin-top: 3px;
}

input[type=file] {
    display: none;
}

#bed-loader-label {
    margin-left: 5px;
}

#lines-label {
    margin-left: 5px;
}

#nlines-label {
    margin-right: 3px;
}

.bed-text-input {
    width: 250px;
    height: 100px;
    border: 1px solid #BBBBBB;
    white-space: nowrap;
    overflow: auto;
    margin-bottom: 3px;
}

[placeholder]:empty::before {
    content: attr(placeholder);
    color: #555555; 
}

[placeholder]:empty:focus::before {
    content: "";
}

#main-plot {
    flex-basis: 50%;
    overflow: hide;
    float: right;
}

#main-plot-placeholder {
    height: 100%;
    min-height: 450px;
    flex-basis: 50%;
    overflow: hide;
    float: right;
    text-align: center;
    padding-top: 100px;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px dashed black;
}

#plot-placeholder-text {
    font-size: 48px;
}

.plot-text {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.plot-label:hover {
    cursor: pointer;
    fill: #6D98E6;
}

.blank-plot-label:hover {
    cursor: pointer;
    stroke: #6D98E6;
}

.draggable-reference-line {
    cursor: grab;
}

#nucleosome-rect {
    cursor: grab;
    fill: #BBB;
    stroke: #777;
    stroke-width: 1;
}

.nucleosome-marker {
    cursor: grab;
    fill: #FFFC61;
    stroke: #000;
    stroke-width: .5;
}

#settings-tabs {
    display: flex;
    flex-flow: row nowrap;
    margin-right: 10px;
}

.settings-tab {
    width: 150px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.selected-tab {
    filter: brightness(.8);
    cursor: default !important;
}

.hidden {
    display: none;
}

.not-hidden {
    display: table-row !important;
}

.settings-section {
    width: 450px;
    box-sizing: border-box;
    max-height: 420px;
    overflow-y: auto;
    padding: 14px 12px;
    background-color: var(--background-color);
    border: 1px solid #e0e3ea;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.settings-panel-intro {
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.settings-section-title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
}

.settings-header-description {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    font-size: .8em;
    color: var(--primary-color);
}

#preset-dropdown {
    margin-bottom: 5px;
}

#slider-settings {
    width: 100%;
}

input[type=range] {
    appearance: none;
    width: 100px;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.setting-text {
    width: 50px;
}

.slider-container {
    min-width: 120px;
    position: relative;
}

.global-slider {
    position: absolute;
    top: 21px;
    margin-left: 10px;
}

.double-slider::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    outline: 0;
}

.double-slider::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 10;
    -moz-appearance: none;
}

.ref-line-section {
    width: 100%;
    margin-top: 12px;
}

.ref-line-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

.ref-line-header-title {
    font-weight: 600;
    font-size: 1.05em;
}

.ref-line-table {
    width: 100%;
    border-collapse: collapse;
}

.ref-line-column-header {
    display: flex;
    font-size: 9px;
    font-weight: 600;
    color: #777;
    padding: 0 2px 4px;
    border-bottom: 1px solid #ddd;
}

.ref-line-column-header span {
    box-sizing: border-box;
    padding: 0 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.ref-line-row {
    border-top: 1px solid #ddd;
}

.ref-line-row:first-child {
    border-top: none;
}

.ref-line-line-settings {
    width: 100%;
    font-size: 12px;
}

.ref-line-line-settings td {
    box-sizing: border-box;
    padding: 4px 4px;
    vertical-align: middle;
    text-align: center;
}

.ref-line-pos-col {
    width: 60px;
}

.ref-line-pos-input {
    width: 50px;
}

.ref-line-color-col {
    width: 36px;
}

.ref-line-color-input,
.ref-line-font-color-input {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.ref-line-width-col {
    width: 55px;
}

.ref-line-width-input {
    width: 35px;
}

.ref-line-style-col {
    width: 38px;
    position: relative;
}

.ref-line-style-svg {
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease;
}

.main-line-style-svg:hover {
    background-color: #f0f4fc;
    border-color: #d7e1f5;
}

.ref-line-style-selector {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: max-content;
    max-width: 170px;
    padding: 6px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.ref-line-style-selector .ref-line-style-svg:hover {
    background-color: #f0f4fc;
    border-color: #c9d6ee;
}

.ref-line-style-selector .ref-line-style-svg.selected {
    background-color: #e4ecfb;
    border-color: #6D98E6;
}

.ref-line-remove-col {
    width: 28px;
}

.font-size-col {
    width: 68px;
}

.font-size-input {
    width: 45px;
}

.font-color-col {
    width: 36px;
}

.text-orientation-col {
    width: 34px;
}

.text-orientation-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f7f7f7;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 14px;
    user-select: none;
}

.text-orientation-toggle:hover {
    background-color: #ebebeb;
}

.text-orientation-toggle.vertical {
    transform: rotate(-90deg);
}

.label-offset-col {
    width: 68px;
}

.label-offset-input {
    width: 45px;
}

.remove-icon {
    /* &:extend(.fa, .fa-times-circle, .fa-2xl, .fa-solid); */
    cursor: pointer;
    color: red;
}

.add-row-icon {
    /* &:extend(.fa, .fa-circle-plus, .fa-2xl, .fa-solid); */
    cursor: pointer;
    margin-top: 5px;
    color: green;
}

.nucleosome-position-section {
    width: 100%;
}

#ref-line-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ref-line-help-prompt {
    position: relative;
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
    padding: 20px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#ref-line-help-close {
    position: absolute;
    top: 20px;
    right: 10px;
}

.ref-line-help-image-placeholder {
    width: 100%;
    min-height: 80px;
    margin-bottom: 15px;
    border: 1px dashed gray;
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nucleosome-position-input {
    margin-top: 5px;
}

.ref-line-help-image {
    width: 100%;
    margin-bottom: 15px;
    display: block;
}

.ref-line-help-image-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ref-line-help-image-row .ref-line-help-image {
    width: 50%;
    margin-bottom: 0;
}
.nucleosome-marker-section {
    width: 100%;
    margin-top: 10px;
}

.nucleosome-marker-input {
    margin-top: 5px;
}

.mol-viz-section {
    padding-top: 15px;
}

.panel-action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    color: var(--background-color);
    background-color: var(--primary-color);
    cursor: pointer;
}

.panel-action-button:hover {
    background-color: var(--primary-color-highlight);
}

#source-code-and-documentation {
    padding-top: 5px;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#github-logo-label {
    font-size: 12px;
    cursor: pointer;
}

.progress-bar-label {
    margin-right: 5px;
}

.progress-bar_ {
    max-width: 80px;
    margin-right: 5px;
}

#bottom-panel {
    display: flex;
    min-height: 40vh;
}

#target-selector {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    border-right: 1px solid black;
    min-width: 200px;
    padding-right: 10px;
    overflow-y: auto;
}

.load-targets-button {
    margin-left: 5px;
    margin-bottom: 10px;
}

#load-targets-input {
    display: none;
}

.target-search-bar {
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-bottom: 10px;
}

.inactive {
    display: none;
}

.target-list-container {
    width: 100%;
    overflow-x: auto;
}

ul.target-list {
    max-height: 200px;
    width: max-content;
    min-width: 100%;
    overflow-y: auto;
    list-style-type: none;
    padding-left: 0;
    border-top: 1px solid black;
}

ul.target-list li {
    line-height: 1em;
    padding-top: 2px;
    border-bottom: 1px solid black;
}

.target-checkbox {
    margin-right: 5px;
}

.loading-circle {
    border: 1px solid #f3f3f3;
    border-radius: 50%;
    border-top: 1px solid #3498db;
    width: 12px;
    height: 12px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    display: inline-block;
    margin-right: 5px;
}

#import-json-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.import-json-label {
    margin-bottom: 20px;
    font-size: 72px;
    color: #FFFFFF;
}

.loading-circle.large {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #3498db;
    width: 400px;
    height: 400px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

#composite-table {
    width: 100%;
    margin-top: 10px;
    padding-left: 5px;
}

#composite-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#composite-table thead {
    overflow: auto;
    font-size: 16px;
    height: 50px;
    width: 100%;
    background: #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}

#composite-table th, td {
    padding: 8px 16px;
}

#composite-table th {
    text-align: center;
    border-top: 1px solid black;
    border-bottom: .5px solid black;
}

#normalization-select {
    font-size: 10px;
    display: inline-block;
    margin-left: 10px;
}

#normalization-dropdown {
    background-color: white;
}

#normalization-dropdown-label {
    font-size: 10px;
    margin-right: 5px;
}

#composite-table th:first-child {
    border-left: 1px solid black;
}

#composite-table th.name-col {
    text-align: left;
}

#composite-table th.upload-col {
    text-align: left;
}

#composite-table th:last-child {
    border-right: 1px solid black;
}

#composite-table tbody {
    width: 100%;
}

#composite-table tr {
    cursor: grab;
    height: 50px;
    width: 100%;
    background: #FFFFFF;
}

#composite-table tr.placeholder-row {
    cursor: default;
    height: 30px;
    width: 100%;
    border: 1px solid black;
}

#composite-table tr.sticky {
    position: sticky;
    z-index: 1;
}

#composite-table td {
    text-align: center;
    border-top: .5px solid black;
    border-bottom: .5px solid black;
}

#composite-table tr:last-child td {
    border-bottom: 1px solid black;
}

#composite-table td:first-child {
    border-left: 1px solid black;
}

#composite-table td.name-col {
    text-align: left;
}

#composite-table td.upload-col {
    text-align: left;
}

#composite-table td:last-child {
    border-right: 1px solid black;
}

#composite-table tr.mouse-highlight td {
    border-top: .5px solid #8888FF;
    border-bottom: .5px solid #8888FF;
}

#composite-table tr:last-child.mouse-highlight td {
    border-bottom: 1px solid #8888FF;
}

#composite-table tr.mouse-highlight td:first-child {
    border-left: 1px solid #8888FF;
}

#composite-table tr.mouse-highlight td:last-child {
    border-right: 1px solid #8888FF;
}

.file-drag-highlight td {
    background-color: #CCCCCC;
}

.drag-col {
    color: gray;
}

.name-div {
    min-width: 5px;
    max-width: 400px;
    border: 1px solid #BBBBBB;
    box-shadow: 0px 0px 1px #BBBBBB;
    cursor: text;
}

.color-col {
    padding-left: 10px;
}

input[type=color] {
    border: none;
    background-color: var(--background-color);
    padding: 0px;
}

.scale-col {
    min-width: 155px;
}

.normalization-factor-display {
    display: inline-block;
    padding-left: 5px;
    font-size: 12px;
    color: #50C878;
}

input[type=range] {
    appearance: none;
    width: 100px;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.scale-slider {
    position: relative;
    top: -3px;
    margin-left: 10px;
    margin-top: 10px;
}

.opacity-col {
    min-width: 110px;
}

.actions-col {
    vertical-align: middle;
}

.actions-col-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.swap-container {
    display: grid;
    width: 30px;
    cursor: pointer;
}

.swap-icon {
    grid-area: 1 / 1;
    width: 100%;
}

.swap-icon svg {
    width: 100%;
}

.hide-container {
    display: grid;
    width: 30px;
    cursor: pointer;
}

.hide-icon {
    grid-area: 1 / 1;
    width: 100%;
    text-align: center;
}

.sticky-container {
    display: grid;
    width: 30px;
    cursor: pointer;
}

.sticky-icon {
    grid-area: 1 / 1;
    width: 100%;
    text-align: center;
}

.hidden {
    display: none;
}

.not-hidden {
    display: table-row !important;
}


.upload-button {
    width: 35px;
    height: 30px;
    position: relative;
    text-align: center;
}