#planet-creator-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(25, 25, 25, 0.387);
    width: 40%;
    height: 98%;
    color: white;
    font-family: Arial, sans-serif;
}

.modal-content {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
}

.planet-form {
    padding: 1rem;
    background-color: rgba(69, 69, 69, 0.387);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 82%;
    margin: 0 auto;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.info-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    position: relative;
}
.info-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

span {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

.range-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.range-slider {
    border: 0;
    color: rgb(212, 212, 212);
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    width: clamp(110px, 14vw, 160px);
    height: auto;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.range-group p {
    text-shadow: 0px 2.5px 0px #060606 !important;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem) !important;
}

.range-slider::-webkit-slider-runnable-track {
    background: rgb(128, 128, 128);
    height: 7px;
    border-radius: 0;
}

.range-slider::-moz-range-track {
    background: rgb(128, 128, 128);
    height: 7px;
    border-radius: 0;
    border: none;
}

.range-slider:hover {
    background-color: rgb(212, 212, 212);
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: rgb(212, 212, 212);
    border-radius: 0;
    margin-top: -5.5px;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: rgb(212, 212, 212);
    border-radius: 0;
    border: none;
}

.range-slider:hover::-webkit-slider-thumb {
    background: rgb(25, 25, 25);
    margin-top: -5.5px;
}

.range-slider:hover::-moz-range-thumb {
    background: rgb(25, 25, 25);
}

p {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    min-width: 2.8rem;
    text-align: center;
}

#planet-texture {
    border: 0;
    color: rgb(212, 212, 212);
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    width: clamp(140px, 14vw, 170px);
    text-align: center;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#planet-texture:hover {
    background-color: rgb(212, 212, 212);
    color: rgb(25, 25, 25);
}

#planet-texture::file-selector-button {
    display: none;
}

#planet-texture::-webkit-file-upload-button {
    display: none;
}

#planet-texture::-ms-browse {
    display: none;
}

#btn-clear-tex {
    border: 0;
    color: rgb(212, 212, 212);
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    min-width: 4.5rem;
    outline: none;
}

#btn-clear-tex:hover {
    background-color: rgb(212, 212, 212);
    color: rgb(25, 25, 25);
}

#planet-name {
    border: 0;
    color: rgb(212, 212, 212);
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    min-width: clamp(180px, 28vw, 350px);
    width: 100%;
    max-width: 350px;
    text-align: left;
    outline: none;
}

#planet-name:hover {
    background-color: rgb(212, 212, 212);
    color: rgb(25, 25, 25);
}

#planet-name::placeholder {
    color: rgb(150, 150, 150);
    text-align: center;
}

select {
    border: 0;
    color: rgb(212, 212, 212);
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    min-width: clamp(180px, 28vw, 350px);
    max-width: 350px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4d4d4'><polygon points='0,5 16,5 8,11'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 11px;
    outline: none;
}

select:hover {
    background-color: rgb(212, 212, 212);
    color: rgb(25, 25, 25);
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23191919'><polygon points='0,5 16,5 8,11'/></svg>");
}

label {
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    text-shadow: 0px 2.5px 0px #060606;
    cursor: default;
    pointer-events: none;
}

.close {
    width: clamp(2rem, 3vw, 3rem);
    font-size: clamp(1.4rem, 2vw, 2rem);
    user-select: none;
}
.close:hover {
    background-color: rgb(212, 212, 212);
    color: rgb(25, 25, 25);
}

.form-buttons {
    width: 82%;
    height: auto;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.form-buttons button {
    font-size: clamp(1.4rem, 2.3vw, 2.3rem);
    width: 49%;
    padding: 0.9rem;
}

#planet-color {
    border: 0;
    background-color: rgb(25, 25, 25);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    padding: 0.6rem;
    width: clamp(60px, 7vw, 90px);
    height: clamp(35px, 5vw, 45px);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
}

#planet-color:hover {
    background-color: rgb(212, 212, 212);
}

#planet-color::-webkit-color-swatch {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

#planet-color::-moz-color-swatch {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

#planet-color::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 0;
}

#planet-color::-moz-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 0;
}

@media (max-width: 1024px) {
    #planet-creator-modal {
        width: 50%;
    }
    
    .planet-form {
        width: 90%;
        gap: 1.3rem;
    }
}

@media (max-width: 768px) {
    #planet-creator-modal {
        width: 60%;
        height: 97%;
    }
    
    .planet-form {
        width: 95%;
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .range-group {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    #planet-name,
    select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #planet-creator-modal {
        width: 95%;
        right: 2.5%;
        height: 96%;
        top: 2%;
    }
    
    .modal-content {
        gap: 0.4rem;
    }
    
    .planet-form {
        width: 98%;
        gap: 0.8rem;
        padding: 0.6rem;
    }
    
    .form-buttons {
        width: 98%;
        min-height: 50px;
    }
}

@media (max-width: 360px) {
    .planet-form {
        gap: 0.6rem;
    }
}