43 lines
873 B
CSS
43 lines
873 B
CSS
body, html {
|
|
height: 100%;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #000000; /* Change the background color as needed */
|
|
}
|
|
|
|
#canvasContainer {
|
|
aspect-ratio: 1 / 1;
|
|
width: 100vh; /* Initial half-screen size */
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: width 0.5s ease; /* Smooth transition */
|
|
float: left;
|
|
}
|
|
|
|
canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#settingsHolder {
|
|
visibility: hidden;
|
|
position: absolute;
|
|
top: inherit;
|
|
left: inherit;
|
|
width: inherit;
|
|
height: 20%;
|
|
}
|
|
|
|
#settingsHolder:hover .settings {
|
|
opacity: 1;
|
|
}
|
|
|
|
.settings {
|
|
visibility: visible;
|
|
opacity: 0;
|
|
padding: 10px;
|
|
background-color: rgba(25, 25, 25, 0.7); /* Semi-transparent white background */
|
|
transition: opacity 0.3s ease; /* Smooth transition */
|
|
} |