/* Global layout settings */
body, html {
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: auto;
}

/* Styling for canvas */
/*canvas {
    display: block;
    margin: auto;
    border: 1px solid black;
    width: 80vw;
    height: auto;
    max-height: 120vh;
    transition: all 0.3s ease-in-out;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    max-height: none;
    overflow: auto; 
}*/

#canvas-container {
    width: 100vw;
    height: 100vh;
    overflow: auto; /* Enable scrolling */
    position: relative;
}

canvas {
    position: absolute;
}

/* Controls styling */
.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-width: 250px;
}

.controls label,
.controls input {
    margin-bottom: 8px;
}

.fullscreen .controls {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

.hidden-controls {
    display: none;
}

.toggle-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
}

/* Ensure toggle button stays visible in full-screen mode */
.fullscreen .toggle-btn {
    display: block;
}

/*.fullscreen canvas {
    position: absolute;
    top: 0;
    left: 0;
   
	width: 10000px;
	height: 10000px;
	 width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    max-height: none;
    overflow: auto;  Enable scrolling 
}*/
