@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&display=swap");

@font-face {
  font-family: "RT Obligat";
  src: url("RT Obligat FREE.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #000;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #000;
}
body {
  background-color: #fff;
  max-width: 100dvw;
  max-height: 100dvh;
  min-width: 100dvw;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}
.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "RT Obligat", sans-serif;
  font-size: 88px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: none;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-rendering: optimizeLegibility;
}

.hero-content.all {
  color: #213625;
}

.hero-content.young {
  color: #373C3C;
}

.hero-content.family {
  color: #323828;
}

.hero-content.active {
  opacity: 1;
  visibility: visible;
}

.segmented-control {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 32px;
  z-index: 99;
}
.seg-item {
  padding: 12px 16px;
  border-radius: 28px;
  cursor: pointer;

  &.active {
    background-color: #f1f1f1;
    color: #000000;
  }
}
.toolbar {
  display: flex;
  flex-direction: column;
  max-width: 280px;
  width: 100%;
  gap: 32px;
  padding: 28px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #fff;
  border-radius: 12px;
  z-index: 99;
}
.color-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slider-tools { 
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar-section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #000;
  margin: 0;
  text-transform: uppercase;
}

.color-swatches {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.color-swatch {
  flex: 1;
  min-width: 0;
  min-height: 30px;
  max-height: 30px;
  cursor: pointer;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  border: none;
  border-radius: 32px;
  padding: 0;
  background: none;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color-swatch::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  height: 100%;
}

.color-swatch::-webkit-color-swatch {
  border: none;
  height: 100%;
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #000;
}

.slider {
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: #e0e0e0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: solid 1.5px rgb(217, 217, 217);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  font-size: 11px;
  font-weight: 500;
  color: #000;
}

.save-button {
  margin-top: 4px;
  padding: 14px 24px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-family: "IBM Plex Mono", monospace;
  width: 100%;
}

.save-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

.save-button:active {
  transform: translateY(0);
}
