/* Replace all existing CSS with this new set of styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    overflow: hidden;
}

#main-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

#controls {
    width: 300px;
    padding: 15px;
    background-color: #2a2a2a;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between sections */
}

.control-section {
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
}

h2 {
    text-align: center;
    margin-top: 0;
    color: #00aaff;
}

h3 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    color: #ccc;
}

.control-group, .control-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.control-group-row {
    gap: 10px;
}

.control-group label {
    font-size: 14px;
}

input[type="number"], input[type="color"], select {
    width: 80px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 5px;
}

select {
    width: 100%;
}

input[type="range"] {
    flex-grow: 1;
    margin: 0 10px;
}

button, .button-like-label {
    width: 100%;
    padding: 8px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    margin-bottom: 5px;
}

button:hover, .button-like-label:hover {
    background-color: #005fa3;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#removePlanetBtn {
    width: 40px; /* Small remove button */
    flex-shrink: 0;
    background-color: #c9302c;
}

#removePlanetBtn:hover {
    background-color: #a52825;
}

progress {
    width: 100%;
    margin-top: 10px;
}

.control-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.control-group-checkbox label {
    margin-left: 8px;
    font-weight: normal;
}

#canvas-container {
    flex-grow: 1;
    position: relative; /* Needed for the overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

canvas {
    display: block; /* Removes any default spacing */
    max-width: 100%;
    max-height: 100%;
}

#stereo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
    z-index: 10;
}

#stereo-overlay .view-border {
    position: absolute;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

#stereo-overlay .view-border:first-child {
    left: 0;
}

#stereo-overlay .view-border:last-child {
    left: 50%;
}