/* starfield.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

#warpCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

#controlPanel {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    z-index: 2;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.control {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

input[type="checkbox"] {
    margin-right: 5px;
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#speedValue,
#directionXValue,
#directionYValue {
    font-weight: bold;
    margin-left: 5px;
}

/* Improve contrast for checkbox labels */
input[type="checkbox"] + label {
    display: inline;
    color: #ddd;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    #controlPanel {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
    }

    button {
        width: 100%;
    }
}