/* UTILS START */

.row {
    display: flex;
    justify-content: space-between;
}

.column {
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.btn {
    background-color: #8b008b;
    display: block;
    border-radius: 5px;
    border: none;
    color: white;
    padding: 12px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 1px;
}

.btn:active {
    background-color: #800080;
}

/* UTILS END */

/* CHART START */

#chart {
    position: relative;
}

.chart-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.indicator-canvas {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
}

.chart-wrapper-container {
    border: 1px solid #000000;
}

/* CHART END */

/* RESIZE START */

.chart-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    touch-action: none;
}

/* causes stutters when resizing, idk why??? */
.chart-wrapper-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.chart-resize-handle {
    width: 100%;
    height: 0px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    position: relative;
    z-index: 1;
}

.chart-resize-handle > :nth-child(1) {
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    position: absolute;
    background-color: #292842;
}

.chart-resize-handle > :nth-child(2) {
    top: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    position: absolute;
    opacity: 0.2;
}

.chart-resize-handle > :active:nth-child(2) {
    background-color: #8a8a98;
}

.chart-resize-handle > :hover:nth-child(2) {
    background-color: #8a8a98;
}

/* RESIZE END */

/* LOADER START */

#save-overlay,
#load-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

#save-overlay #save-overlay-text,
#load-overlay #load-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/* LOADER END */

/* BID ASK START */

.main-chart-container {
    position: relative;
}

.bid-ask-container {
    position: absolute;
    top: 5px;
    left: 330px;
    width: 200px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
    text-align: center;
}

.bid-ask-container .bid {
    border: 1px solid red;
    border-radius: 5px;
    padding: 5px;
    color: red;
    width: 35%;
}

.bid-ask-container .spread {
    padding: 5px;
    color: white;
    width: 30%;
}

.bid-ask-container .ask {
    border: 1px solid blue;
    border-radius: 5px;
    padding: 5px;
    color: blue;
    width: 35%;
}

/* BID ASK END */

/* TOOLTIP START */

.tooltip {
    position: absolute;
    top: 0px;
    left: 0px;
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

.tooltip-toggle {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
}

/* TOOLTIP END */

/* UTILS START */

.d-flex {
    display: flex;
}

.d-inline {
    display: inline;
}

.justify-between {
    justify-content: space-between;
}

.p-2 {
    padding: 2px;
}

.mr-2 {
    margin-right: 2px;
}

.border-top {
    border-top: 1px solid;
    border-color: #8a8a98;
}

/* UTILS END */
