/* General Reset */
body, html, canvas {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background-color: black;
}

/* Header Styling */
header {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
    border-bottom: 1px solid #333;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 100px);
    padding: 10px;
}

#simulation-container {
    flex: 1;
    width: 100%;
    position: relative;
}

#galaxy-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Controls Styling */
#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background-color: #111;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
}

#controls div {
    margin-bottom: 15px;
}

label {
    font-size: 1rem;
    margin-right: 10px;
}

input[type="range"] {
    appearance: none;
    width: 300px;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: #e6c200;
}

input[type="range"]:focus::-webkit-slider-thumb {
    outline: 2px solid #ffd700;
}

button {
    background-color: #ffd700;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease;
}

button:hover {
    background-color: #e6c200;
}

button:active {
    background-color: #ccb200;
    transform: scale(0.95);
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

.tooltip {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

#bayesian-output {
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 20px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #111;
    border-top: 1px solid #333;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    input[type="range"] {
        width: 200px;
    }

    button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 2rem;
    }
}