* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    /* Firefox */
    padding: -moz-calc(1% + 5px);
    /* WebKit */
    padding: -webkit-calc(1% + 5px);
    /* Opera */
    padding: -o-calc(1% + 5px);
    /* Standard */
    padding: calc(1% + 5px);
    background-color: white;
    color: black;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome, Edge, Opera and Firefox */
}
.dark-mode {
    background-color: black;
    color: white;
}
.slider-container {
    margin-bottom: 20px;
    position: relative;
}
.container-side-by-side {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.container-buttons {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 30%;
    float: right;
}
.credits {
    text-align: center;
    font-size: 12px;
    color: gray;
    margin-top: 20px;
}
.chart {
    position: relative;
    width: 68%;
    max-width: 100%;
    height: 840px;
    z-index: 1;
}
#outputChart .highcharts-axis-labels span,
#outputChart .highcharts-axis-labels div,
#outputChart .highcharts-axis-title,
#outputChart .highcharts-axis-title span,
#outputChart .highcharts-axis-title div,
#outputChart mjx-container,
#outputChart mjx-container svg {
    overflow: visible !important;
    text-overflow: clip !important;
}
.app-download-section {
    margin: auto;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    margin-top: 2cm;
}
.buymeacoffee-section {
    margin: auto;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    margin-top: 1cm;
}
.all-sliders-container {
    margin-top: 0;
    width: 32%;
    max-width: 100%;
    padding: 20px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: center;
}
.slider-label {
    position: absolute;
    left: 0;
    top: -3px;
    text-align: left;
}
.math-slider-label {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1;
    top: -7px;
}
.slider-value {
    position: absolute;
    right: 0%;
    top: 0px;
    width: 24%;
    text-align: right;
    font-size: 18px;
}
.slider {
    margin-top: 38px;
    margin-bottom: 17px;
    width: 100%;
}
button {
    float: right;
}
.reset-button {
    position: absolute;
    right: 0;
    top: 24px;
    width: 90px;
    height: 20px;
    z-index: 2;
}
.dropdown {
    position: absolute;
    right: 0;
    width: 120px;
    top: 48px;
    height: 20px;
    z-index: 2;
}
select {
    text-align-last: center;
    text-align: center;
    -ms-text-align-last: center;
    -moz-text-align-last: center;
}
.dark-mode-button {
    position: absolute;
    margin: auto;
    right: 0;
    width: 90px;
    height: 20px;
    z-index: 2;
}

.toggle-checkbox-wrapper {
    position: relative;
    width: 80px;
    height: 32px;
    float: left;       
}

.toggle-checkbox-wrapper.disabled {
    opacity: 0.45;
}

.toggle-checkbox-wrapper.disabled .check-slider,
.toggle-checkbox-wrapper.disabled .toggle-text {
    cursor: default;
}

.toggle-checkbox {
    display: none;
    position: absolute;
    float: right;
}

.check-slider {
    position: relative;
    float: right;
}

/* ellipsis */
.check-slider::before {
    background: #AAAAAA;
    border-radius: 34px;
    content: '';
    height: 24px;
    position: relative;
    float: right;
    top: 4px;
    width: 40px;
}

/* circle */ 
.check-slider::after {
    background: white;
    border-radius: 50%;
    content: '';
    height: 16px;
    position: relative;
    float: right;
    left: 20px;
    top: 8px;
    transition: 0.4s;
    width: 16px;
}

.toggle-text {
    margin-left: 0px;
    font-size: 14px;
    position: absolute;
    float: left;      
    width: 40px;
    display: inline;
}

.toggle-checkbox:checked + .check-slider::before {
    background-color: #2687F2;
}

.toggle-checkbox:checked + .check-slider::after {
    background-color: white;
    transform: translateX(16px);
}

.toggle-checkbox:checked ~ .check-slider > .toggle-switch.opt1 {
    display: none;
}

.toggle-checkbox:checked ~ .check-slider > .toggle-switch.opt2 {
    display: inline-block;
}

.svgcolor {
    filter: invert(0%) sepia(97%) saturate(0%) hue-rotate(34deg) brightness(89%) contrast(103%);
}

body.dark-mode .svgcolor {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%);
}
.header-text {
}

input[type="range"] {
    -webkit-appearance: none;
    background: #AAAAAA;
    height: 5px;
    border-radius: 50px;
    background-image: linear-gradient(#2687F2, #2687F2);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    pointer-events: auto;
    width: 100%;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #DDDDDD ;
    border-radius: 50%;
    pointer-events: auto;
}
input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: #DDDDDD;
    border: none;
    border-radius: 50%;
    pointer-events: auto;
}

@media (max-width: 700px) {
    .container-side-by-side {
        align-items: flex-start;
    }
    .chart {
        width: 100%;
        height: 45vh;
    }
    .all-sliders-container {
	margin-top: 0px;
        width: 100%;
        height: 35vh;
        overflow: auto;
        justify-content: flex-start;
        align-self: auto;
    }
    .header-text {
	font-size: 30px;
    }
    .container-buttons {
	width: 40%;
    }
}
@media (max-width: 500px) {
    .chart, .all-sliders-container {
	margin-top: 0px;
        width: 100%;
        height: 300px;
    }
    .all-sliders-container {
        justify-content: flex-start;
        align-self: auto;
    }
    .header-text {
	font-size: 25px;
    }
    .container-buttons {
	width: 60%;
    }
}
@media (max-height: 900px) and (min-width: 700px) {
    .chart {
        min-height: 400px;
        height: 84vh;
    }
    .all-sliders-container {
        min-height: 300px;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}
