body, html {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #000; /* Default background changed to black */
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.controls {
position: absolute;
top: 40px; /* Adjusted top position to be below the toggle button */
left: 10px;
background-color: rgba(50, 50, 50, 0.8);
padding: 15px;
border-radius: 8px;
color: white;
font-family: sans-serif;
z-index: 1;
max-height: calc(100vh - 50px); /* Adjusted max-height based on new top position */
overflow-y: auto;
transition: transform 0.3s ease-in-out; /* Added transition for smooth hide/show */
}
.controls.hidden {
/* Calculate position to move off-screen based on its width */
transform: translateX(calc(-100% - 20px));
}
.top-buttons { /* Container for toggle and help buttons */
position: absolute;
top: 10px; /* Keep buttons at the top */
left: 10px;
z-index: 2; /* Ensure buttons are above canvas and controls */
font-family: sans-serif;
}
.top-buttons button {
background-color: rgba(50, 50, 50, 0.8);
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
margin-right: 5px; /* Space between buttons */
}
.controls label, .controls input, .controls select, .controls button {
display: block;
margin-bottom: 8px;
}
.controls input[type="range"] {
width: 150px;
}
.controls input[type="number"] {
width: 70px;
}
.controls h3 {
margin-top: 0;
margin-bottom: 10px;
border-bottom: 1px solid #fff;
padding-bottom: 5px;
}
.control-group {
margin-bottom: 15px;
padding: 10px;
border: 1px solid #777;
border-radius: 4px;
}
#status {
margin-top: 10px;
font-weight: bold;
}
/* Help Overlay Styles */
.help-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* Dim background */
display: flex;
justify-content: center;
align-items: center;
z-index: 10; /* Above everything else */
visibility: hidden; /* Hidden by default */
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.help-overlay.visible {
visibility: visible;
opacity: 1;
}
.help-content {
background-color: rgba(50, 50, 50, 0.95);
color: white;
padding: 20px;
border-radius: 8px;
max-width: 80%;
max-height: 80%;
overflow-y: auto; /* Enable scrolling for content */
position: relative;
}
.close-help {
position: absolute;
top: 10px;
right: 10px;
font-size: 20px;
cursor: pointer;
color: white;
border: none;
background: none;
}
.copyright{text-align:center; width:100%;margin-top:20px;}
.copyright a{ color:#aaa;}