body { margin: 0; overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #000000; /* Change the background color as needed */ } #canvasContainer { aspect-ratio: 1 / 1; height: 100vh; position: relative; overflow: hidden; transition: width 0.5s ease; /* Smooth transition */ float: left; object-fit: contain; } 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 */ }