* {
    margin: 0;
    padding: 0;
    font-family: 'Candara',arial,sans-serif;
}

body {
    background:rgb(16, 20, 30, 1);
    color: rgb(170, 170, 170);
    overflow: hidden;
}

p {
    font-size: 14px;
}

a {
    font-weight: bold;
    color: rgb(149, 162, 236);
}

a:hover {
    color:rgb(224, 229, 255);
}

svg {
    fill:rgb(149, 162, 236);
}

.clickable-svg {
    padding: 8px;
    border-radius: 20px;
}

.clickable-svg:hover {
    background: rgba(149, 162, 236, 0.2);
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

#placeholder {
    float: right;
    margin-top: 20px;
    visibility: hidden;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    z-index: 5;
}

#display {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    z-index: 3;
}

#maximize-button {
    width: 25px;
    height: 25px;
    padding: 3px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
}

#particle-canvas {
    z-index: 1;
}

#vector-canvas {
    position: absolute;
    z-index: 2;
}

#grid-canvas {
    position: absolute;
    z-index: 3;
}


#menu {
    width: 340px;
    max-width: 340px;
    height: 100vh;
    border-radius: 5px;
    background: rgba(25, 32, 49, 0.9);
    box-shadow: -5px -5px 20px black;
    float: left;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
    user-select: none;
    transition: 0.5s;
}

#menu h1 {
    color: rgb(214, 214, 214);
    font-size: 30px;
    padding-left: 30px;
    margin-bottom: 10px;
}

#menu h2 {
    font-size: 18px;
    margin: 5px 0 10px;
}

#handle {
    left: -4px;
    width: 10px;
    height: 100vh;
    float: left;
    cursor: w-resize;
}

#minimize-button-container {
    width: 100%;
    display: flex;
    align-items: right;
    position: relative;
    overflow: visible;
}

#minimize-button {
    width: 25px;
    height: 25px;
    padding: 3px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.heading {
    width: 320px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(149, 162, 236, 0.5);
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.instructions {
    width: 320px;
    margin: 30px 20px 20px;
}

.instructions p {
    padding-left: 10px;
}

.settings {
    width: 90%;
    height: 35px;
    margin-top: 15px;
    padding-left: 30px;
    border-left: 2px solid rgb(149, 162, 236);
    overflow: hidden;
    transition: 0.5s;
}

.settings:hover {
    background: linear-gradient(to right, rgba(48, 59, 88, 0.8), rgba(25, 32, 49, 0.8));
    transition: 0.5s;
}

.settings.expanded {
    height: fit-content;
}

.settings.expanded:hover {
    background: transparent;
}

.settings-title {
    display: inline-block;
}

.settings .clickable-svg {
    float: right;
    margin-right: 10px;
    display: none;
}

.settings.expanded .clickable-svg {
    display: block;
}

#velocity-field h2 {
    display: inline-block;
}

#change-velocity-field {
    width: 320px;
    height: auto;
    border-left: 2px solid rgb(149, 162, 236);
    padding: 5px 0 10px 30px;
    margin-left: 2px;
    box-sizing: border-box;
    transition: 0.5s;
}

#change-velocity-field:hover {
    background: linear-gradient(to right, rgba(48, 59, 88, 0.8), rgba(25, 32, 49, 0.8));
    transition: 0.5s;
}

#change-velocity-field #velocity-field-controls{
    height: 0;
    overflow: hidden;
}

#change-velocity-field.expanded:hover {
    background: transparent;
}

#change-velocity-field.expanded #velocity-field-controls{
    height: auto;
}

#velocity-field-display-container{
    overflow-x: scroll;
    overflow-y: hidden;
}

#velocity-field-display-container::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
  
#velocity-field-display-container::-webkit-scrollbar-track {
    background: transparent;
}
  
#velocity-field-display-container::-webkit-scrollbar-thumb {
    background-color: rgba(149, 162, 236, 0.7);
}

#velocity-field-display {
    font-size: 18px;
    padding-bottom: 5px;
}

input[type=text] {
    width: 100%;
    height: 30px;
    border: 1px solid rgba(149, 162, 236, 0.5);
    padding: 10px;
    margin: 14px 0;
    font-size: 14px;
    color:rgb(214, 214, 214);
    background: rgba(149, 162, 236, 0.1);
    box-sizing: border-box;
}

input[type=text]:hover {
    background: rgba(149, 162, 236, 0.2);
}

input[type=text]:focus {
    outline: none;
    background: rgba(149, 162, 236, 0.2);
}

#velocity-field-input {
    width: 95%;
}

#normal-tooltip {
    display: block;
}

#normal-tooltip.hidden {
    display: none;
}

#error-tooltip {
    display: block;
}

#error-tooltip.hidden {
    display: none;
}

.error-img {
    width: 20px;
    height: 20px;
    display: inline-block;
}

#input-error-message {
    vertical-align: top;
    margin-left: 5px;
    display: inline-block;
}

.settings-container {
    height: fit-content;
    width: 320px;
    overflow: hidden;
}

.control-panel {
    margin-top: 20px;
}

.control {
    width: 320px;
    height: 28px;
    border-left: 2px solid rgb(149, 162, 236);
    padding-left: 30px;
    margin-top: 10px;
    margin-left: 2px;
    box-sizing: border-box;
    overflow: hidden;
    transition: 0.5s;
}

.control:hover {
    color: rgb(214, 214, 214);
    height: 100px;
    transition: 0.5s;
    background: linear-gradient(to right, rgba(48, 59, 88, 0.8), rgba(25, 32, 49, 0.8));
}

.control.on-off:hover {
    height: 75px;
}

.control.radio-3:hover {
    height: 155px;
}

/*Sliders*/

.slide-container {
    width: 100%;
    margin-top: 10px;
  }

.slide-container p {
    margin-left: 10px;
    font-size: 16px;
    display: inline-block;
}

.slide-container #vector-density-display {
    font-size: 14px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60%;
  height: 2px;
  outline: none;
  display: inline-block;
  background: rgb(149, 162, 236);
}

.slider:hover {
    background: linear-gradient(to right, rgb(149, 162, 236), white);
}

#color-offset {
    background: linear-gradient(to right, 
    rgb(255,0,0) 0%, 
    rgb(255,154,0) 10%, 
    rgb(208,222,33) 20%, 
    rgb(79,220,74) 30%, 
    rgb(63,218,216) 40%, 
    rgb(47,201,226) 50%, 
    rgb(28,127,238) 60%, 
    rgb(95,21,242) 70%, 
    rgb(186,12,248) 80%, 
    rgb(251,7,217) 90%, 
    rgb(255,0,0) 100%);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 7.5px;
  background: white;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 7.5px;
  background: white;
  cursor: pointer;
}

/*Checkboxes*/

.switch-container {
    height: 30px;
    line-height: 25px;
}

.switch-label {
    height: 100%;
    margin: 0 5px 0 5px;
    font-family: 'Candara';
    display: inline-block;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 50px;
    height: 25px;
    margin-top: 10px;
}

.on-off .switch {
    margin-top: 0;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgb(170, 170, 170);
    border-radius: 20px;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 2px;
    top: 2px;
    bottom: 4px;
    border-radius: 50%;
    background-color: rgb(170, 170, 170);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .switch-slider {
    border: 2px solid rgb(216, 216, 216);
}


input:checked + .switch-slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
    background-color: white;
    /* box-shadow: 
    0 0 2px 2px rgba(227, 228, 251, 0.5),
    0 0 4px 4px rgba(209, 224, 247, 0.7),
    0 0 7px 7px rgba(148, 166, 245, 0.5); */
}

/*The radio buttons*/

/* The radio-container */
.radio-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-top: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    border: 2px solid #eee;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .radio-checkmark {
    background-color: rgb(47, 57, 77);
}

/* When the radio button is checked, add a blue background */
.radio-container input:checked ~ .radio-checkmark {
    background-color: rgb(82, 83, 161);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-container input:checked ~ .radio-checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio-container .radio-checkmark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

#notes p {
    font-size: 12px;
    margin-top: 12px;
}

.modal-container {
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    opacity: 1;
    pointer-events: auto;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 999;
    transition: 0.3s;
}

.modal-container.hidden {
    pointer-events: none;
    opacity: 0;
}

.modal {
    width:340px;
    max-width: 95%;
    padding: 20px;
    color: rgb(170, 170, 170);
    background-color: rgba(19, 24, 37, 0.9);
    border-radius: 5px;
    border: 1px solid rgba(149, 162, 236, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.modal h1 {
    color: rgb(214, 214, 214);
    margin: 0;
}

.modal p {
    font-size: 14px;
    margin: 14px 0 14px;
    text-align: left;
}

.modal .content-container {
    width: 100%;
    padding: 0 10px 16px;
    background: rgba(25, 32, 49, 0.9);
    text-align: justify;
    overflow-y: scroll;
    box-sizing: border-box;
}

#instructions-container {
    max-height: 35vh;
}

#operations-container div:last-child {
    margin-left: 3px;
    margin-right: 0;
}

.modal .input-container {
    position: relative;
}

.modal input[type=text] {
    margin: 0;
}

.modal .error-img {
    position: absolute;
    margin: 4px 5px;
    right: 10px;
}

.modal .error-img.hidden {
    opacity: 0;
}

.modal-button {
    color: #fff;
    background-color: rgb(71, 163, 134);
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    padding: 8px 20px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.close-modal-button{
    font-size: 16px;
    padding: 10px 25px;
    margin: 10px auto 0;
    display: block;
}

#preset-modal-container .modal{
    width: 1020px;
    /* width: 702px; */
    /* width: 385px; */
}

#preset-container{
    max-height: 60vh;
}

.preset{
    width: 300px;
    height: 180px;
    margin: 16px 8px 0;
    border: 1px solid rgba(48, 59, 88, 0.8);
    border-radius: 5px;
    transition: 0.2s;
    background-size: contain;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.preset:hover {
    box-shadow: 0 0 1px 1px rgb(149, 162, 236);
}

.preset-info{
    height: 55px;
    width: 100%;
    position: relative;
    bottom: 10px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(19, 24, 37, 0.9), transparent);
}

.preset-info p.equation {
    margin-left: 15px;
    float: left;
}

svg.preset-check{
    width: 130px;
    position: relative;
    left: 30%;
    top: 3%;
    -webkit-filter: drop-shadow(0 0 5px black);
    filter: drop-shadow(0 0 5px black);
}

svg.preset-check path{
    stroke-width: 3;
    stroke: rgb(149, 162, 236);
    stroke-dasharray: 34px;
    stroke-dashoffset: 34px;
}

.active svg.preset-check path{
    stroke-dashoffset: 0;
    transition: 0.5s;
}

#mistake-container {
    max-height: 60vh;
}

#limitations-container {
    max-height: 55vh;
}

.shaded-column {
    width: 257px;
    margin: 1px;
    padding: 8px;
    background: rgba(149, 162, 236, 0.1);
    display: inline-block;
    text-align: center;
}

.shaded-column p {
    font-size: 12px;
    margin: 0;
}

.shaded-column.two-column {
    width: 117px;
}

.shaded-column.three-column {
    width: 71px;
}

.modal ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }
  
.modal ::-webkit-scrollbar-track {
    background: rgba(149, 162, 236, 0.2);
  }
  
.modal ::-webkit-scrollbar-thumb {
    background-color: rgba(149, 162, 236, 0.7);
  }

.modal .close-button-align {
    width: 100%;
    height: 0;
    display: flex;
    align-items: right;
    position: relative;
}


.modal .close-button-container {
    width: 35px;
    height: 35px;
    position: absolute;
    top: -15px;
    right: -15px;
}