.grid-cell {
  transition: all 0.1s ease;
}

.file-input {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.control-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.control-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.grid-container {
  perspective: 1000px;
  position: relative;
}

.grid-cell {
  transform-style: preserve-3d;
}

.spectrum-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Make sure the canvas has proper styles */
#spectrumCanvas, #rightSpectrumCanvas {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

.right-spectrum-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 768px) {
  .spectrum-container, .right-spectrum-container {
    display: none;
    /* Hide on mobile */
  }
}

/* Add these styles for the new UI elements */

/* Transitions for showing/hiding control panel */
#controlsContainer {
  transition: all 0.3s ease;
}

#controlsContainer.hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#controlsContainer:not(.hidden) {
  max-height: 2000px;
  opacity: 1;
}

/* Play overlay styles */
#playOverlay {
  transition: opacity 0.5s ease;
}

#miniControls {
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

#miniControls.hidden {
  transform: translateY(100%);
}

#hamburgerButton {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#hamburgerButton:hover {
  transform: translateY(-2px);
}

#settingsPanel {
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

/* Add a scrollbar styling for the settings panel */
#settingsPanel::-webkit-scrollbar {
  width: 6px;
}

#settingsPanel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

#settingsPanel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#settingsPanel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.menu-prompt {
  position: fixed;
  top: 12px;
  right: 60px;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  animation: fadeInOut 5s forwards;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}