body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(80, 80, 80);
    text-align: center;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

#canvasHolder {
    display: inline-block;
    height: 100%;
    margin: 0;
    padding: 0;
}

#planetCreationStarted {
    display: none;
}

#planetCreationStarted > * {
    margin: 8px 0;
}

#planetCreationText {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    text-align: center;
    font-weight: bold;
    color: #00f0ff;
    letter-spacing: 1px;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#planetForm {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 55vh;
    background: rgba(15, 15, 30, 0.85);
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    border-right: 2px solid #00f0ff;
    border-bottom: 2px solid #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(8px);
    font-weight: bold;
    color: #00f0ff;
    letter-spacing: 1px;
    text-align: left;
}

.formElement {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
}

input[type="range"] {
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #00f0ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f0ff;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #333;
    border-radius: 3px;
    box-shadow: 0 0 6px #00f0ff55 inset;
}

input[type="checkbox"] {
    accent-color: #00f0ff;
    transform: scale(1.3);
    cursor: pointer;
}

/* Optional: glowing border on hover */
.formElement:hover {
    border-left: 2px solid #00f0ff;
    transition: 0.2s;
}

input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 50%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
    margin: 0 10px;
    margin-bottom: 5px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
    cursor: pointer;

    /* Hides the slider so custom styles can be added */
    background: transparent; 
    border-color: transparent;
    color: transparent;
}
input[type=range]::-webkit-slider-thumb {
    border: none;
    height: 15px;
    width: 15px;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
}
input[type=range]::-moz-range-track {
    height: 5px;
}
    input[type=range]::-webkit-slider-runnable-track {
    background: #776D67;
    height: 2px;
}
    input[type=range]::-moz-range-track {
    background: #776D67;
    height: 2px;
}

#colorSlider {
    width: 90%;
}
#colorSlider::-ms-track {
    background: transparent;
}
#colorSlider::-webkit-slider-runnable-track {
    background-image: linear-gradient(to right, rgb(255, 0, 0), rgb(255, 255, 0), rgb(0, 255, 0), rgb(0, 255, 255), rgb(0, 0, 255), rgb(255, 0, 255), rgb(255, 0, 0));
    height: 5px;
}
#colorSlider::-moz-range-track {
    background-image: linear-gradient(to right, rgb(255, 0, 0), rgb(255, 255, 0), rgb(0, 255, 0), rgb(0, 255, 255), rgb(0, 0, 255), rgb(255, 0, 255), rgb(255, 0, 0));
    height: 5px;
}

.col {
    display: inline;
}

@media (max-width: 960px) {
    .col {
        display: block;
        margin-top: 10px;
    }
}