
body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button, input[type=number], input[type=text] {
    appearance: none;
    border: none;
    outline: none;
    color: #ffffff;
    background-color: #000000;
    border-bottom: 2px solid #505050;
    font-size: 1rem;
    padding: 5px;
    margin-right: 5px;
    transition: 0.3s;
    text-align: center;
}

button {
    cursor: pointer;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    width: 50px;
}

button:hover, input[type=number]:focus, input[type=text]:focus {
    border-bottom: 2px solid #808080;
}

input[type=range] {
    -webkit-appearance: none; 
    appearance: none;
    height: 8px;
    background-color: #404040;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb, input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer; 
}

.canvas-container {
    position: fixed;
    top: 0;
    right: 0;
    margin-top: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: end;
    z-index: 2;
}

.canvas-container canvas {
    border: 1px solid #505050;
}

.canvas-buttons {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    position: sticky;
    top: 0;
}

.perf-container {
    position: fixed;
    bottom: 0;
    right: 0;
    margin-bottom: 0;
    margin-right: 0;
    z-index: 3;
}

.perf-table {
    width: max-content;
    margin-top: 15px;
    font-size: 0.85rem;
}

.perf-table th {
    padding-bottom: 10px;
}

.perf-table td {
    border-top: 1px solid #505050;
    padding: 5px;
}

.main-container {  
    margin-left: 10px;
    margin-right: 510px;
}

.main-container h2 {
    border-top: 1px solid #505050;
    padding-top: 15px;
}

.value-input-container table {
    width: 100%;
}

.value-input-container table tr td:nth-child(2) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.value-input-container table input[type=range] {
    width: 80%;
}

#value-particle-count-input {
    width: 90px;
}

.gradient-preview-container {
    position: relative;
}

.gradient-preview-color-stops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.gradient-preview-color-stop {
    width: 16px;
    height: 104px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    outline: 2px solid #000000;
    position: absolute;
    top: -3px;
    cursor: grab;
}

.gradient-preview-bias-stop {
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: calc(100px - 8px);
    left: -8px;
    cursor: grab;
    z-index: 1;
}

#color-preview {
    width: 100%;
    height: 100px;
    border: 1px solid #808080;
    cursor: pointer;
}

.gradient-color-picker-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.color-picker {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.color-picker-s-v {
    width: 200px;
    height: 200px;
    border: 1px solid #808080;
    margin: 20px;
    min-width: 200px;
    cursor: pointer;
}

.color-picker-s-v-cursor {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    outline: 2px solid #000000;
    position: relative;
    cursor: grab;
}

.color-picker-column-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-picker-preview {
    width: 200px;
    height: 50px;
    border: 1px solid #808080;
    margin: 20px;
}

.color-picker-h {
    width: 200px;
    height: 20px;
    border: 1px solid #808080;
    background: linear-gradient(90deg, #ff0000, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 66%, #ff00ff 83%, #ff0000);
    margin: 20px;
    cursor: pointer;
}

.color-picker-h-cursor {
    width: 8px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    outline: 2px solid #000000;
    position: relative;
    top: -4px;
    cursor: grab;
}

.color-picker-hex-input {
    margin: 20px !important;
    font-family: monospace;
}

.colors-seperator {
    width: 2px;
    background-color: #808080;
    margin: 20px 40px 20px 40px;
}

#gradient-stop-edits-container {
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.gradient-stop-edit {
    border-left: 2px solid #808080;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 20px;
    margin-bottom: 5px;
}

.gradient-stop-edit-color {
    width: 50px;
    height: 30px;
    border: 1px solid #808080;
    margin-right: 20px;
    cursor: pointer;
}

.gradient-stop-bias-label {
    margin-right: 10px;
}

.hidden {
    display: none;
}

.color-picker-column-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-picker-column-3 button {
    margin: 20px;
    margin-left: 0;
}

.attractor-button {
    padding: 8px;
    margin-right: 10px;
}

.attractor-button.active {
    padding-bottom: 5px;
    border-bottom: 5px solid #707070;
}