.modal-trigger {
    cursor: pointer;
}

.sim-modal {
    visibility: hidden;
    opacity: 0;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.7);

    transition: 0.2s;
}


.sim-modal.active {
    visibility: visible;
    opacity: 1;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}


.sim-load-candles {
    position: relative;
    background: var(--bsx-bg-dark);
    border-radius: 8px;
    padding: 20px;
    max-width: 1320px;
    min-width: 1110px;
    height: 600px;
    overflow: hidden;
}



#sim-candle-container {
    width:          100%;
    height:         100%;
    display:        flex;
    flex-direction: row;
    flex-wrap:      nowrap;
    gap:            5px;
    background:     var(--bsx-bg-dark);
    overflow:       hidden;
}

.sim-candle-sidetext-container {
    width:          28%;
    min-width:      280px;   /* prevents collapse */
    height:         100%;
    display:        flex;
    flex-wrap:      wrap;
    flex-direction: column;
    gap:            2px;
    padding:        .1rem;
    margin-left:    1rem;
    margin-top:     1rem;
}

.sim-chart-container {
    width:          65%
    display:        flex;
    max-height:     550px;
    padding:        1rem;
    background:     var(--bsx-bg-dark);
    position:       relative;
    margin-bottom:  2rem;     
    
}


.sim-sidetext-item {
    display:         flex;
    justify-content: space-between;
    padding:         2px 2px;
    font-size:       12px;
}

.sim-st-label { text-align: left;  font-size: var(--bsx-text-sm); }
.sim-st-val   { font-size: var(--bsx-text-sm); font-weight: 500; text-align: right; margin-right: 10px; }



.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
}


.sim-exit {
    display: block;
    font-size: 14px;
    padding: 8px 5px;
    height: 35px;
    width: 100%;
    text-align: center !important;
    background-color: #21201e;
    border: 1px solid #edcb82;
    border-radius: 8px;
    color: #f1eee7;
    margin-top: 1rem;
}

.sim-exit:hover {
    border-color: #d850c6;
    background-color: #030204;
    color: red;
}
