/* ---------- GLOBAL ---------- */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  width: 100%;
  height: 100%;
}

main {
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ---------- UI CONTAINER ---------- */
#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  font-family: "Poppins", sans-serif;
}

/* ---------- REMIX BUTTON ---------- */
#remixBtn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 14px;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  transition: 0.2s;
}

#remixBtn:hover {
  transform: scale(1.05);
}

/* ---------- PANEL ---------- */
#panel {
  margin-top: 10px;
  padding: 16px;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #000;
  display: none;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#panel label {
  font-size: 14px;
  font-weight: 500;
}

#panel input,
#panel select {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 14px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #888;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* Buttons inside panel */
#closeBtn,
#resetBtn {
  width: 100%;
  padding: 8px;
  cursor: pointer;
  background: #eee;
  border: 1px solid #666;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  margin-bottom: 8px;
  transition: 0.2s;
}

#closeBtn:hover,
#resetBtn:hover {
  background: #ddd;
  transform: scale(1.03);
}

/* ---------- THEME SWATCH GRID ---------- */
#themeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

/* Theme card */
.themeOption {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #999;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  user-select: none;
  transition: 0.2s;
}

.themeOption:hover {
  transform: scale(1.05);
  border-color: #333;
}

.selectedTheme {
  border: 2px solid #000;
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
}

.swatchBG,
.swatchText {
  width: 100%;
  height: 16px;
  border-radius: 4px;
}

.swatchBG {
  margin-bottom: 4px;
}

#buttonContainer button {
  display: block;
  width: 100px;        /* adjust as needed */
  padding: 8px 16px;
  background: white;
  border: 1px solid #000;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: 0.2s;
}

#buttonContainer button:hover {
  transform: scale(1.05);
}
