:root{
    --background : #F3F4F5;
    --warm-background : #f8f8f7;
    --dark-green: #015757;
    --dark-aqua: #008b8b;
    --aqua-light: #89c9c8;
    --salmon: #FA8072;
    --light-coral: #F08080;
    --purple: #7c5d86;
    --lilac: #708fdd;
    --gold: rgb(255, 215, 0);
    --basis: rgb(19, 41, 61);
}
body{
    width: 100vw; height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
.gray-background{
    background-color: #F3F4F5;
}
.background_0{
    background: linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 100%);
}
#container{ 
    overflow: hidden;
    width: 100vw; height: 100vh;
    display: block;
    border: 0;
}
a{
    font-size: small;
    color: var(--basis);
}
canvas{
    width: 100vw; height: 100vh;
    overflow: hidden;
    background-color: inherit; 
    z-index: -1;
    display: block;
}
#container2D{ 
    background-color: #fff;
    position: absolute;
    overflow: hidden;
    display: block;
    margin: 0 auto;   
    border: 0;
    transform-origin: 0 0 0;
}
.center{ 
    position: absolute;
    overflow: hidden;
    display: block;
    margin: 0 auto;  
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}
#canvas{
    position: absolute;
    overflow: hidden;
    background-color: inherit; 
    z-index: -1;
    display: block;
}
.err{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%); 
}
.bottom-left-box{
    bottom: 0%;
    width: 240px; height: 40%;
    left: 15px;
}
.bottom-box{
    bottom: 0%;
    width: 50%; height: 50px;
    left: 50%;
    margin-right: -50%;
    transform: translate(-45%, -45%); 
}
.big-bottom-box{
    bottom: 0%;
    width: 100%; height: 40px;
}
.extra-right-bottom-bttns-box{
    bottom: 20px;
    width: 200px;
    height: 56px;
    right: -126px;
    display: inline-block;
}
.bottom-bttns-box{
    bottom: 2%;
    width: 200px; height: 50px;
    right: -1%;
    display: inline-block;
}
.vertical-bttns-box{
    bottom: 0%;
    width: 50px; height: 200px;
    right: 2%;
    float: left;
}
.vertical-up-bttns-box{
    top: 1%;
    width: 50px; height: 200px;
    right: 2%;
    float: left;
}
.right-bottom-bttns-box{
    right: -18px;
    bottom: 15px;
    width: 200px; height: 50px;
}
.right-box{
    right: 10px;
    top: 6px;
    width: 180px;
}
#ui-container{
    font-family: 'Caveat', cursive;
    text-shadow: 0px 0px 2px white;
    font-size: 15pt;
    position: absolute;
    padding: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#ui-container-up{
    font-family: 'Caveat', cursive;
    text-shadow: 0px 0px 2px white;
    position: absolute;
    padding: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    left: 50%;
    top: -10px;
    
    width: 630px;
    height: 10px;
    transform-origin: 0 0 0;
    font-size: 16pt;


    left: 50%;
    bottom: 0%;
    transform: translate(-50%, 0%);
    transform-origin: center center;
}
#ui-container-center{
    font-family: 'Caveat', cursive;
    text-shadow: 0px 0px 2px white;
    font-size: 15pt;
    position: absolute;
    padding: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    width: 630px;
    height: 10px;
    position: absolute;
    font-size: 16pt;

    left: 50%;
    bottom: 0%;
    transform: translate(-50%, 0%);
    transform-origin: center center;
}
.general-control{
    font-family: 'Caveat', cursive;
    font-size: 15pt;
    position: absolute;
    padding: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.big-control{
    width: 135%;
    position: absolute;
    left: -15%;
    font-family: 'Lora', serif;
}
.control{
    padding-bottom: 6px;
    width: 180px;
    float: left;
}
.positive-control{
    padding-bottom: 6px;
    float: left;
}
.check-control{
    width: 200px;
    padding-bottom: 6px;
    float: left;
}
.control-color{
    width: 100px;
    float: left;
}
.control-label{
    width: 90px;
    float: left;
}
input[type="range"]{
    outline: 0;
    display: inline-block;
    -webkit-appearance: none;
    background: transparent;
    background:#c6d3d3;
    border-radius: 2em;
    opacity: 0.85;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
input[type=range]:focus {
    outline: none;
}  
input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;
  
    /* Hides the slider so custom styles can be added */
    background: transparent; 
    border-color: transparent;
    color: transparent;
}
.in-line{
    width: 85px; height: 4px;
}
.bottom {
    width: 100%; height: 5px;
}
.big-in-line{
    width: 80%; height: 5.5px;
}
@media screen and (max-width: 550px) {
    .big-in-line{
        height: 7px !important;
    }
    .big-in-line::-webkit-slider-thumb{
        height: 20px !important; width: 20px !important;
    }
    .big-in-line::-moz-range-thumb {
        height: 18px !important; width: 18px !important;
    }
}
input[type="range"]:hover {
    opacity: 1;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    /*box-shadow: 0px 8px 8px rgba(0,0,0,0.25);*/
}
.simpleS{
    right: 0px;
    font-size: 13pt !important;
}
.simple-slider{
    width: 85px; height: 4.2px; 
    box-shadow: 1px 1px 2px #d8d5d5;
}
.simple-slider::-webkit-slider-thumb {
    border: 1px solid #d8d5d5;
    border-radius: 50%;
    height: 12px; width: 12px;
    background: white;
}
.simple-value{
    font-size: 12.5pt;
    text-shadow: 0px 0px 2px white;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 4px;
}
.game{
    width: 190px;
    right: 0px;
    font-size: 10pt !important;
    font-family: "Press Start 2P", cursive !important;
}
.game-slider{
    width: 85px; height: 4.2px; 
}
.game-slider::-webkit-slider-thumb {
    border: 2px solid black;
    border-radius: 0%;
    height: 8px; width: 8px;
    background: black;
}
.game-value{
    font-family: "Press Start 2P", cursive !important;
    font-size: 8pt !important;
    width: 40px;
    padding-left: 5px;
    position: relative;
    text-align: left;
    display: inline-block;
}
.in-line::-webkit-slider-thumb {
    border: .5px solid rgb(129, 129, 129);
    border-radius: 50%;
    height: 12px; width: 12px;
    background: linear-gradient(45deg, var(--dark-green), var(--background), var(--purple));
    cursor: pointer;
}
.in-line::-moz-range-thumb {
    /*box-shadow: 0px 2px 2px rgba(0,0,0,0.25);*/
    height: 9px; width: 9px;
    border-radius: 50%;
    border: .5px solid rgb(129, 129, 129);
    background: linear-gradient(45deg, var(--dark-green), var(--background), var(--purple));
    margin-top: 10px;
    cursor: pointer;
}
input[type=range]::-ms-thumb {
    height: 9px; width: 9px;
    border-radius: 50%;    
    border: .5px solid rgb(129, 129, 129);
    background: linear-gradient(45deg, var(--dark-green), var(--background), var(--purple));
    margin-top: 10px;
    cursor: pointer;
}
.big-in-line::-webkit-slider-thumb{
    border-radius: 50%;
    height: 15px; width: 15px;
    border: 1.4px solid #cacaca;
    background: white;
}
.big-in-line::-moz-range-thumb {
    border-radius: 50%;
    height: 13px; width: 13px;
    border: 1px solid #cacaca;
    background: white;
}
.bottom::-webkit-slider-thumb{
    border-radius: 50%;
    height: 10px; width: 18px;
    border: 1px solid var(--gold);
    background: rgb(252, 251, 243);
}
input[type="range"]:focus{
    outline: none;
}
input[type="range"]:disabled{
    color: gray;
    cursor: not-allowed;
}
.label{
    text-align: right;
    text-shadow: 0px 0px 2px white;
    display: inline-block;
    width: 45px;
    padding-right: 6px;
    z-index: -1;
    pointer-events: none;
}
.center-up-label{
    position: absolute;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 15pt;
    top: 0%;
    width: 100%;
}
.simple-label{
    text-align: right;
    text-shadow: 0px 0px 2px white;
    display: inline-block;
    width: 100%;
    padding-right: 6px;
    z-index: -1;
    pointer-events: none;
}
.in-line-label{
    padding-right: 6px;
    display: inline-block;
}
.slider-value{
    font-size: 80%;
    text-shadow: 0px 0px 2px white;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 4px;
}
.bottom-label{
    font-family: 'Caveat', cursive;
    font-size: 16px;
    text-align: center;
    text-shadow: 0px 0px 2px white;
    width: 100%;
    font-size: 14pt;
    padding-bottom: 4px;
}
.bottom-slider-value{
    font-size: 16.5px;
    text-shadow: 0px 0px 2px white;
    position: absolute;
    padding-bottom: 6.5px;
    text-align: center;
    display: inline-block;
    right: 38%;
    bottom: 42%;
}
input[type="checkbox"]{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: 0;
    text-shadow: 0px 0px 2px white;
    cursor: pointer;
}
input[type="checkbox"]::before {
    width: 16px; height: 16px;
    border: var(--lilac)solid 2px;
    box-shadow: white 0 0 2px;
    display: inline-block;
    box-sizing: border-box;
    border-radius: 0.2em;
    line-height: 13px;
    text-align: center;
    vertical-align: middle;
    content: '';
    transition: 0.2s;
    margin-left: 3.4em; margin-bottom: -1px;
}
input[type="checkbox"]:checked::before{
    content: '✔';
    background-color: var(--lilac);
    color: white;
}
input[type="checkbox"]:disabled{
    color: gray;   
}
div[obscure-mode="true"]{
    color: white;
    text-shadow: black 0 0 2px !important;
}
div[obscure-mode="false"]{
    color: black;
    text-shadow: white 0 0 2px;
}
#right-options{
    text-shadow: 0px 0px 2px white;
    font-size: 14pt;
    position: absolute;
    right: 0%;
    top: 7%;
}
.checkbox-label{
    position: absolute;
    padding-top: 2px;
    padding-left: 6px;
}
.math-label{
    position: absolute;
    font-size: 12pt;
    text-align: center;
    text-shadow: 0px 0px 2px white;
    padding: 15px 0px 0px 15px;
    z-index: 10;
    pointer-events: none;
}
input[type="color"] {
	-webkit-appearance: none;
    -moz-appearance: none;
	width: 35px; height: 20px;
    border-radius: 2px;
    border: gray solid 1px;
    margin-left: 5px;
    background-color: white;
    cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 1px;
}
input[type="color"]::-webkit-color-swatch {
    border-style: none;
    border-radius: 1px;
    padding: 1px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 1px; 
    border-style: none;
    border-radius: 1px;
}
input[type="color"]::-moz-color-swatch {
    border-style: none;
	width: 29px; height: 16px;
    border-radius: 1px;
    padding: 1px;
    margin-left: -2px;
    margin-top: -3px;
}
input[type="color"]:disabled{
    cursor: not-allowed;
}
.katex-box{
    position: absolute;
    font-size: 12pt;
    text-shadow: 0px 0px 2px white;
    z-index: 100;
    pointer-events: none;
}
.reset-block{
    position: absolute;
    bottom: 2%;
    right: 30px;
}
.basic-bttn{
    outline: none;
    height: 45px; width: 45px;
    font-size: 13pt;
    border-radius: 50%;
    border: none;
    font-family: 'Caveat', cursive;
    background-color: var(--lilac);
    color: white;
    text-align: center;
    margin: 3px;
}
.basic-bttn-s{
    height: 40px; width: 40px;
    font-size: 11pt;
}
.basic-bttn:hover{
    cursor: pointer;
}
.basic-bttn:active{
    background-color: #a0b9f7;;
    color: white;
}
.basic-bttn:disabled{
    background-color: #d3d1d1;;
    color: white;
    cursor: not-allowed;
}
.signed-bttn{
    height: 45px; width: 45px;
    padding-bottom: 10px;
    padding-left: 4px;
    font-size: 23pt;
}
.negative-bttn{
    outline: none;
    height: 50px; width: 50px;
    font-size: 13pt;
    border-radius: 50%;
    border: none;
    font-family: 'Caveat', cursive;
    text-align: center;
    margin: 3px;
    background-color: var(--aqua-light);
    color: white;
}
.negative-bttn:active{
    background-color: #c1e6e1;
    color: white;
}
.negative-bttn:hover{
    cursor: pointer;
}
.negative-bttn:disabled{
    background-color: #d3d1d1;;
    color: white;
    cursor: not-allowed;
}
.green-bg{
    background-color: #9ACD32;
}
.blue-bg{
    background-color: #4994D0;
}
.author{
    position: absolute;
    color:rgb(122, 122, 122);
    font-family: sans-serif;
    font-size: 12pt;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.author-small{
    position: absolute;
    color:rgb(122, 122, 122);
    font-family: sans-serif;
    font-size: 10pt;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
select {
    position: relative;
    font-family: 'Lora', serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance:none;
    font-size: 11pt;
    width: 125px; height: 27px;
    left: 50px;
    top: 5px;
    border: 1.5px #dfdfdf solid;
    border-radius: 5px;
    padding-left: .5em;
    margin-bottom: .5em;
    background-position: top 0px right 1px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSdibGFjaycgaGVpZ2h0PScyNCcgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMjQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz48cGF0aCBkPSdNMCAwaDI0djI0SDB6JyBmaWxsPSdub25lJy8+PC9zdmc+);
    background-repeat: no-repeat;
}
select:disabled{
    color: gray;
    cursor: not-allowed;
}
/*Matrices*/
.matrix{
    top: 16%;
    position: absolute;
    border: 2px solid rgba(0, 0, 0, 0);
}
.matrix::before, .matrix::after{
    content : '';
    top: -4px;
    position: absolute;
    width: 10px;
    height: inherit;
    border: 2px solid #000;
}
.matrix::before{
    left: -4px;
    border-right: none;
}
.matrix::after{
    right: -2px;
    border-left: none;
}
.element{
    width: 32px; height: 26px;
    border: 4.5px solid rgba(0, 0, 0, 0);
    float: left;
    margin: 4px;
    padding-top: 4px;
    text-align: center;
    font-size: 14pt;
}