body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

body.hide-cursor {
    cursor: none;
}

#container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid white;
}

#dvd-logo {
    position: absolute;
    width: 100px;
    height: auto;
}

#controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}

/* Vertical layout by default */
#controls {
    flex-direction: column;
    align-items: stretch;
}

/* Horizontal layout for wider screens */
@media (min-width: 1200px) {
    #controls {
        flex-direction: row;
        align-items: center;
    }
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

/* Override min-width for confetti control */
.control-group:has(input[type="checkbox"]) {
    min-width: auto;
}

/* Make range inputs fill available space in vertical layout */
input[type="range"] {
    flex: 1;
}

#controls select {
    flex: 1;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.control-group:has(select) {
    min-width: 200px;
}

#controls.show {
    opacity: 1;
}

#controls label {
    margin-right: 0;
    white-space: nowrap;
}

#controls input {
    margin-right: 0;
}

#controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0; /* Remove all margins */
}

#controls button {
    padding: 5px 15px;
    border: none;
    border-radius: 3px;
    background: #333;
    color: white;
    cursor: pointer;
    width: 100%;
}

#controls button:hover {
    background: #444;
}

#fullscreen-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

#fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

#fullscreen-btn.show {
    opacity: 1;
}

#fullscreen-btn svg {
    width: 100%;
    height: 100%;
}