* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#fireworksCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #001122 0%, #000000 100%);
    cursor: crosshair;
}

.instructions {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-align: center;
    pointer-events: none;
    z-index: 100;
}

.instructions p {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    display: flex;
    gap: 15px;
}

.crowd-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.crowd-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.crowd-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.show-button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.show-button:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.show-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.show-button:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

.show-button.running {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Settings Panel Styles */
.settings-trigger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 103;
}

.settings-button {
    background: linear-gradient(135deg, #555, #333);
    border: none;
    color: white;
    padding: 15px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button:hover {
    background: linear-gradient(135deg, #666, #444);
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 104;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    z-index: 105;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.settings-panel.active {
    left: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-content {
    padding: 20px 25px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #3498db;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 8px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.setting-item label {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.setting-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0 0 0;
    flex: 1;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: all 0.4s ease;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.4s ease;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #3498db !important;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(25px);
}

/* Hover effects for toggle switches */
.toggle-switch:hover .slider {
    background-color: #666;
}

.toggle-switch:hover input:checked + .slider {
    background-color: #2980b9 !important;
}

/* Volume Sliders */
.volume-slider {
    width: 100px;
    margin-right: 10px;
}

.volume-slider {
    appearance: none;
    height: 5px;
    background: #555;
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Select Dropdown */
.setting-select {
    background: #555;
    color: white;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.setting-select:hover {
    background: #666;
}

/* Custom Sounds Button in Settings */
.custom-sounds-button {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.custom-sounds-button:hover {
    background: linear-gradient(135deg, #26d0ce, #2a9d8f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.status-indicator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.status-indicator.active {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
} 