﻿body.noscroll {
    overflow: hidden;
}

html.noscroll {
    height: initial;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9);
    box-sizing: border-box;
}

#SourceImage {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    /*position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.ModalCloseButton {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #1d2023;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    position: fixed;
    top: 15px;
    right: 35px;
    cursor: pointer;
}

.ModalCloseButton svg {
    margin: 10px;
    fill: currentcolor;
    width: 20px;
    height: 20px;
}

#ChartBoxContainer {
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    background-color: #111214;
    padding: 15px 15px 50px 15px;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    height: 60%;
    max-height: 400px;
}

#ChartBoxTitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

#ChartBox {
    position: relative;
    height: 100%;
    width: 100%;
}

.ProgressSpinner {
    display: inline-block;
    position: relative;
    width: 12px;
    height: 12px;
}

.ProgressSpinner.Spacer {
    margin: 0px 10px;
}

.ProgressSpinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    margin: 2px;
    border: 1px solid #6d808b;
    border-radius: 50%;
    animation: ProgressSpinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #6d808b transparent transparent transparent;
}

.ProgressSpinner div:nth-child(1) {
    animation-delay: -0.45s;
}

.ProgressSpinner div:nth-child(2) {
    animation-delay: -0.3s;
}

.ProgressSpinner div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes ProgressSpinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#ChartBoxProgressSpinner {
    display: none;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
    height: 80%;
}

#ChartBoxProgressSpinner .ProgressSpinner {
    width: 24px;
    height: 24px;
}

#ChartBoxProgressSpinner .ProgressSpinner div {
    width: 24px;
    height: 24px;
    border: 2px solid #52595e;
    border-color: #52595e transparent transparent transparent;
}