body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}
#container {
  display: flex;
  height: 100vh;
}
#left-panel {
  flex: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  padding: 20px;
  border-right: 2px solid #ddd;
  gap: 24px;
}
#canvas-controls {
  margin-bottom: 10px;
}
#canvas-controls input[type="file"] {
  display: inline-block;
  margin-right: 8px;
}
#canvas-controls button {
  font-size: 1.3em;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  border: 1px solid #bbb;
  transition: background 0.2s, border 0.2s;
}
#canvas-controls button.active {
  background: #b3e5fc;
  border-color: #0288d1;
}
#canvas-controls button:hover {
  background: #d0f0ff;
}
#pencil-tool, #eraser-tool {
  background: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 4px;
}
#pencil-tool.active, #eraser-tool.active {
  background: #b3e5fc;
  border-color: #0288d1;
}
#skeleton-tomb-buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#skeleton-tomb-buttons button {
  font-size: 0.95em;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #bbb;
  background: #f5f5f5;
  cursor: pointer;
  min-width: 90px;
  margin-bottom: 4px;
}
#draw-canvas {
  border: 1px solid #888;
  background: #fff;
  cursor: crosshair;
  flex-shrink: 0;
}
#side-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
#skeleton-image-container {
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 120px;
  min-width: 120px;
  max-width: 180px;
  max-height: 180px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fafafa;
}
#skeleton-image-container img {
  max-width: 160px;
  max-height: 160px;
  display: block;
}
#right-panel {
  flex: 1;
  background: #f9f9f9;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.markdown-section {
  margin-bottom: 18px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.markdown-section h3 {
  margin-top: 0;
}
.markdown-section ul {
  list-style: none;
  padding: 0;
}
.markdown-section li {
  margin-bottom: 6px;
}
#audio-section {
  margin-top: auto;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
#credits {
  text-align: center;
  margin: 18px 0 8px 0;
  font-size: 0.95em;
  color: #555;
}
#credits a {
  color: #0288d1;
  text-decoration: none;
}
#credits a:hover {
  text-decoration: underline;
}
#config-toggle-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px 0 20px;
}
#toggle-config {
  font-size: 1.5em;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
#toggle-config:hover {
  background: #e0e0e0;
}
#config-section {
  position: fixed;
  top: 80px;
  left: 70px;
  width: 320px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s, transform 0.4s;
  background: #fff;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-bottom: 10px;
  z-index: 1200;
}
#config-section.visible {
  max-height: 500px;
  opacity: 1;
  padding: 18px 20px;
  transform: translateY(0) scale(1);
}
#config-section label {
  margin-right: 8px;
}
#toggle-dark {
  background: #222;
  color: #fff;
}
#toggle-dark.active {
  background: #444;
  color: #ffe082;
}
#dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 40, 0.55);
  backdrop-filter: blur(8px);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}
#dark-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.question-text.checked {
  text-decoration: line-through;
  color: #aaa;
  opacity: 0.7;
}
.floating-controls {
  position: fixed;
  top: 80px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1300;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 10px 6px;
  border: 1px solid #ddd;
}
.floating-controls button {
  margin: 0;
  width: 44px;
  height: 44px;
  font-size: 1.3em;
  border-radius: 50%;
  background: #e0e0e0;
  border: 1px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border 0.2s;
}
.floating-controls button.active {
  background: #b3e5fc;
  border-color: #0288d1;
}
.floating-controls button:hover {
  background: #d0f0ff;
}
#toggle-theme {
  font-size: 1.2em;
  background: #222;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid #bbb;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}
#toggle-theme.active {
  background: #ffe082;
  color: #222;
}
body.dark-theme {
  background: #181a1b;
  color: #e0e0e0;
}
body.dark-theme #container,
body.dark-theme #right-panel,
body.dark-theme #left-panel,
body.dark-theme #config-section,
body.dark-theme #config-toggle-bar {
  background: #23272a !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
}
body.dark-theme .floating-controls {
  background: rgba(40,40,50,0.98);
  border-color: #333;
}
body.dark-theme .floating-controls button,
body.dark-theme #toggle-theme {
  background: #333;
  color: #ffe082;
  border-color: #555;
}
body.dark-theme .floating-controls button.active {
  background: #0288d1;
  color: #fff;
}
body.dark-theme #skeleton-image-container {
  background: #23272a;
  border-color: #333;
}
body.dark-theme .markdown-section {
  background: #23272a;
  color: #e0e0e0;
  border-color: #333;
}
body.dark-theme #audio-section {
  background: #23272a;
  color: #e0e0e0;
  border-color: #333;
}
body.dark-theme #credits {
  color: #aaa;
}
body.dark-theme .question-text.checked {
  color: #666;
}
.hidden {
  display: none !important;
}
#banner {
  width: 100vw;
  background: #23272a;
  color: #ffe082;
  text-align: center;
  padding: 24px 0 10px 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  letter-spacing: 2px;
}
#banner h1 {
  font-size: 2.5em;
  margin: 0 0 4px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  letter-spacing: 3px;
}
#banner p {
  font-size: 1.1em;
  margin: 0;
  font-weight: 400;
}
body.dark-theme #banner {
  background: #181a1b;
  color: #ffe082;
}
body.dark-theme #left-panel {
  background: #23272a;
}
body.dark-theme #draw-canvas {
  background: #222;
}
body.dark-theme #skeleton-image-container {
  background: #23272a;
  border-color: #333;
} 
#audio-dropdown {
  margin: 12px 0;
  position: relative;
}
#toggle-audio-dropdown {
  background: #0288d1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
#toggle-audio-dropdown:hover {
  background: #015a8c;
}
#skeleton-tomb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 12px 8px;
  margin-top: 2px;
  position: absolute;
  left: 0;
  z-index: 10;
  min-width: 260px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s, transform 0.3s;
}
#skeleton-tomb-buttons.hidden {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
}
body.dark-theme #skeleton-tomb-buttons {
  background: #23272a;
  border-color: #333;
  color: #ffe082;
}
body.dark-theme #toggle-audio-dropdown {
  background: #333;
  color: #ffe082;
}
body.dark-theme #toggle-audio-dropdown:hover {
  background: #0288d1;
  color: #fff;
} 
#audio-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 2px;
}
#audio-track {
  font-weight: bold;
  font-size: 1.05em;
  color: #0288d1;
}
#audio-time {
  font-size: 0.98em;
  color: #666;
  margin-left: 2px;
}
#audio-eq {
  display: flex;
  align-items: flex-end;
  height: 16px;
  margin-top: 2px;
  gap: 2px;
}
#audio-eq .bar {
  width: 4px;
  height: 10px;
  background: #0288d1;
  border-radius: 2px;
  margin-right: 2px;
  animation: eq-bounce 1s infinite;
  opacity: 0.7;
}
#audio-eq .bar:nth-child(2) { animation-delay: 0.2s; }
#audio-eq .bar:nth-child(3) { animation-delay: 0.4s; }
#audio-eq .bar:nth-child(4) { animation-delay: 0.6s; }
.eq-hidden { display: none !important; }
@keyframes eq-bounce {
  0%, 100% { height: 8px; }
  50% { height: 16px; }
}
body.dark-theme #audio-track { color: #ffe082; }
body.dark-theme #audio-time { color: #ffe082; }
body.dark-theme #audio-eq .bar { background: #ffe082; } 

.cargar-btn {
  display: inline-block;
  background: #e0e0e0;
  border: 1px solid #bbb;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
}
#partida-input {
  display: none;
}

#icon-picker {
  margin-top: 1em;
}
.icon-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.insert-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
}
.insert-icon:hover {
  border-color: #888;
}



footer {
  margin-top: 3em;
  padding: 1em;
  font-size: 0.9em;
  color: #888;
  text-align: center;
  border-top: 1px solid #ddd;
}
footer a {
  color: inherit;
  text-decoration: underline;
}
