body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

p5-loading,
.p5-loading {
  display: none !important;
}

body > p {
  display: none !important;
}

@font-face {
  font-family: 'xxQueen';
  src: url('assets/fonts/xxQueen-basic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.nav p { color: white; margin: 0; }

.github-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1c1c1c;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  z-index: 1000;
}

.github-btn:hover {
  background: #444;
}

@font-face {
    font-family: "Clash Display";
    src: url("assets/fonts/ClashDisplay-Variable.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.nav {
  font-family: 'xxQueen', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

#options-toolbar {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 240px;
  border-radius: 12px;
  background: rgba(20,22,26,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  color: #fff;
  font-family: sans-serif;
  font-size: 13px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  max-height: 40px;
  opacity: 0.85;
  padding: 5px;
  z-index: 1000;
}

#options-toolbar.open {
  max-height: 500px;
  opacity: 1;
}

#options-toolbar .toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(20,22,26,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: regular;
  font-size: 14px;
}

#options-toolbar .arrow {
  transition: transform 0.3s ease;
}

#options-toolbar.open .arrow {
  transform: rotate(90deg);
}

#options-toolbar .toolbar-content {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#options-toolbar label {
  display: block;
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 4px;
  color: #ddd;
}

#options-toolbar select,
#options-toolbar input[type=color],
#options-toolbar input[type=range],
#options-toolbar button {
  width: 100%;
  border-radius: 6px;
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s;
}

#options-toolbar select:hover,
#options-toolbar input[type=color]:hover,
#options-toolbar input[type=range]:hover {
  background: rgba(255,255,255,0.12);
}

#options-toolbar button {
  background: #0ac8ff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

#options-toolbar button:hover {
  background: #0ff;
}

#options-toolbar .record-button {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background-color: #ff4b4b;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

#options-toolbar .record-button.active {
  background-color: #4bff4b;
}

input[type=range] {
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ac8ff;
  cursor: pointer;
  border: none;
}

input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ac8ff;
  cursor: pointer;
  border: none;
}

input[type=color] {
  padding: 0;
  height: 32px;
  cursor: pointer;
  border: none;
}

#options-toolbar select:focus,
#options-toolbar input:focus,
#options-toolbar button:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
}