/* ===================================== */
/* FONT FACES */
/* ===================================== */

@font-face {
  font-family: 'TT Hoves Pro Medium';
  src: url('./font/TT_Hoves_Pro_Medium.woff2') format('woff2');
  font-weight: normal;
}

/* @font-face {
  font-family: 'TT Hoves Pro Regular';
  src: url('./font/TT_Hoves_Pro_Medium.woff2') format('woff2');
  font-weight: normal;
} */

/* ===================================== */
/* ROOT VARIABLES */
/* ===================================== */

:root {
  --color-primary: var(--color-black);
  --color-accent: var(--color-grey);
  --color-accent-grey: var(--color-grey2);
  --color-accent-variant: var(--color-lightgrey);
  --color-background: var(--color-white);
  --color-brand: var(--color-lime);

  --color-black: #1f1f1f;
  --color-grey: #a0a0a0;
  --color-grey2: #dedede;
  --color-lightgrey: #efefef;
  --color-white: #fcfcfc;
  --color-lime: #aff7a1;
}

/* ===================================== */
/* RESET + GLOBAL ELEMENTS */
/* ===================================== */

a {
  color: inherit;
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'TT Hoves Pro Medium', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================== */
/* SVG + TEXT EFFECTS */
/* ===================================== */

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  font-weight: bold;
  text-transform: uppercase;
  filter: url(#gooey);
  display: block;
  text-align: center;
  white-space: pre;
  line-height: 1;
  z-index: 1;
}

.text-container span {
  display: inline-block;
  position: relative;
  transition: filter 0.3s ease-out;
}

svg {
  width: 0;
  height: 0;
}

.hide-cursor {
  cursor: none !important;
}

/* ===================================== */
/* MAIN LAYOUT CONTAINER */
/* ===================================== */

#container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--color-black);
  z-index: 1;
}

/* ===================================== */
/* MAIN PANEL UI */
/* ===================================== */

.main-container {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 250px;
  border: 6px solid var(--color-brand);
  background-color: var(--color-accent);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  border-radius: 20px;
  z-index: 1000;
}

/* ===================================== */
/* MINI BOX INPUTS */
/* ===================================== */

textarea.mini-box {
  border: none; /* Remove default border */
  outline: none; /* Remove outline when focused */
  background-color: var(--color-grey2);
  resize: none; /* Disable manual resizing corner */
  width: 100%;
  height: 100%;
  padding: 6px 10px; /* Add some internal padding */
  box-sizing: border-box; /* Let padding work as intended */
  border-radius: 6px; /* Match the mini-box corner radius */
  font-size: 14px; /* Inherit styling from your UI */
  font-family: inherit; /* Keep fonts consistent */
  color: var(--color-black);
}

.mini-box {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  background-color: var(--color-grey2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 6px;
  font-size: 14px;
}

.mini-box input[type='color'] {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 6px;
}

/* Removes the default color picker border on WebKit browsers */
.mini-box input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.mini-box input[type='color']::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Firefox */
.mini-box input[type='color']::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

/* ===================================== */
/* SECTION + COLLAPSE UI */
/* ===================================== */

.section {
  background-color: var(--color-lightgrey);
  padding: 10px;
  border-radius: 8px;
}

.collapse-circle {
  width: 24px;
  height: 24px;
  background-color: var(--color-brand);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}

.collapse-circle img {
  width: 14px;
  height: 14px;
  display: block;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label,
.speed-value,
.tool-note {
  color: var(--color-grey);
  font-size: 1rem;
}

/* ===================================== */
/* GRID + TOGGLES + SLIDERS */
/* ===================================== */

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid-item {
  display: flex;
  flex-direction: column;
}

.toggle-row,
.speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-accent);
  border-radius: 20px;
  transition: 0.4s;
  box-shadow: none;
}

.slider:before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: none;
}

.switch input:checked + .slider {
  background-color: var(--color-brand);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.speed-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 4px;
  outline: none;
  margin: 0 12px;
  box-shadow: none;
}

.speed-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-brand);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: none;
}

.speed-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
}

.speed-bar::-moz-range-track {
  background: var(--color-accent);
  height: 6px;
  border-radius: 4px;
  box-shadow: none;
}

.row-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-row {
  display: flex;
  gap: 6px;
}

.tool-note {
  margin-top: 14px;
  margin-bottom: 4px;
  text-align: center;
  color: var(--color-lightgrey);
}

.main-container.collapsed .content-area {
  display: none;
}

/* ===================================== */
/* HEADER STYLES */
/* ===================================== */

.header {
  display: flex;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  position: fixed;
  align-items: center;
  overflow: hidden;
  background: var(--color-accent);
  border-radius: 8px;
  height: 52px;
  transition: width 0.4s ease-in-out;
  z-index: 1001;
}

.header-logo {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-variant);
  border: 6px solid var(--color-accent);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 3;
}

.header-logo img {
  display: block;
  height: 24px;
}

.inside {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.inside ul {
  display: flex;
  list-style: none;
  margin: 0px;
  padding: 0px;
}

.header-item {
  font-family: 'TT Hoves Pro Medium', sans-serif;
  font-size: 1.5rem;
  color: var(--color-accent-variant);
  margin-right: 10px;
  margin-left: 25px;
  transform: translateY(1px);
}

.header-button {
  display: flex;
  padding-right: 15px;
  padding-left: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hamburger img {
  display: block;
  width: 25px;
  height: 25px;
}
