body { 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
    background: #000000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
}
canvas { 
    display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    image-rendering: pixelated;
}
#overlay { 
    color: white; 
    z-index: 10; 
    cursor: pointer; 
    font-family: sans-serif; 
    font-size: 24px;
    letter-spacing: 2px;
    border: 2px solid white;
    padding: 20px;
}
#toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    padding: 15px;
    gap: 30px;
    color: white;
    font-family: sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}
#side-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* Centers it vertically */
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px 20px 20px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: sans-serif;
    transition: all 0.3s ease; /* Smooth slide effect */
    z-index: 101;
}
#side-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(50px); /* Slides right when hidden */
}
#side-panel h3 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}
.typeOptions, .settings { flex: 1;}
.typeOptions { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.control { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.settings { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.optionsLabel, .settingsLabel { display: flex; flex-direction: column; align-items: center; gap: 5px;}