@import url('palette.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  /** DARK THEME SURFACE COLORS */
  --color-surface-950: var(--color-stone-950);
  --color-surface-900: var(--color-stone-900);
  --color-surface-800: var(--color-stone-800);
  --color-surface-700: var(--color-stone-700);
  --color-surface-600: var(--color-stone-600);
  --color-surface-500: var(--color-stone-500);
  --color-surface-400: var(--color-stone-400);
  --color-surface-300: var(--color-stone-300);

  /* FONT SIZES (source: Tailwind) */
  --font-size-xs: 0.75rem; /* 12px */
  --line-height-xs: 1rem; /* 16px */

  --font-size-sm: 0.875rem; /* 14px */
  --line-height-sm: 1.25rem; /* 20px */

  --font-size-md: 1rem; /* 16px */
  --line-height-md: 1.5rem; /* 24px */

  --font-size-lg: 1.125rem; /* 18px */
  --line-height-lg: 1.75rem; /* 28px */

  --font-size-xl: 1.25rem; /* 20px */
  --line-height-xl: 1.75rem; /* 28px */

  --font-size-2x: 1.5rem; /* 24px */
  --line-height-2x: 2rem; /* 32px */

  --font-size-3x: 1.875rem; /* 30px */
  --line-height-3x: 2.25rem; /* 36px */

  --font-size-4x: 2.25rem; /* 36px */
  --line-height-4x: 2.5rem; /* 40px */

  --font-size-5x: 3rem; /* 48px */
  --line-height-5x: 1;

  --font-size-6x: 3.75rem; /* 60px */
  --line-height-6x: 1;

  --font-size-7x: 4.5rem; /* 72px */
  --line-height-7x: 1;

  --font-size-8x: 6rem; /* 96px */
  --line-height-8x: 1;

  --font-size-9x: 8rem; /* 128px */
  --line-height-9x: 1;

  --font-primary: 'Inter', sans-serif;
}

body {
  margin: 0;
}

main {
  margin-top: 1.25rem;
  width: 90%;
}

p, h1, h2 {
  margin: 0;
}

input {
  background: none;
  outline: none;
  border: none;
  margin: 0;
  padding: 0;
}

button {
  background: none;
  outline: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Utilities */

.hidden {
  display: none !important;
}

.radius {
  border-radius: 0.5rem;
}

.radius::before {
  border-radius: 0.5rem;
}

.radius-xl {
  border-radius: 0.75rem;
}

.radius-xl::before {
  border-radius: 0.75rem;
}

.children-radius > :first-child{
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.children-radius > :last-child{
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Containers */

.row-container {
  display: flex;
}

.column-container {
  display: flex;
  flex-direction: column;
}

/* Container Utilities */

.center-align {
  align-items: center;
}

.center-justify {
  justify-content: center;
}

.space-between {
  justify-content: space-between;
}

.thin-spacer {
  border-bottom: 1px solid var(--color-surface-700);
}

.thin-spacer-above {
  border-top: 1px solid var(--color-surface-700);
}

/* Margin */

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-5 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

/* Padding */

.p2 {
  padding: 0.5rem;
}

.p3 {
  padding: 0.75rem;
}

.p4 {
  padding: 1rem;
}

.p5 {
  padding: 1.25rem;
}

.pt-0 {
  padding-top: 0;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

/* Sizing Utilities */

.full-width {
  width: 100%;
}

.h-6 {
  height: 1.5rem;
}

/* Font Family */

.font-primary {
  font-family: var(--font-primary);
}

/* Text Size */

.text-xs {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: 400;
}

.text-sm {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-xs);
  font-weight: 400;
}

.text-md {
  font-size: var(--font-size-md);
  line-height: var(--line-height-xs);
  font-weight: 500;
}

.text-xl {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-xl);
  font-weight: 700;
}

.text-4x {
  font-size: var(--font-size-4x);
  line-height: var(--line-height-4x);
  font-weight: 900;
}

/* Text Color */

.text-white {
  color: white;
}

.text-gray {
  color: var(--color-surface-400);
}

.text-blue {
  color: var(--color-blue-500)
}

.text-red {
  color: var(--color-red-500)
}

/* Text Utilities */

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Button */
.btn {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.circle-btn {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.circle-btn::before {
  border-radius: 50%;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

/* Button Color */

.btn:disabled {
  cursor: default;
}

.btn:disabled::before {
  background: var(--color-surface-400); 
}

.btn-green {
  color: var(--color-green-500);
}

.btn-green::before {
  background: var(--color-green-800);
  opacity: 0.5;
}

.btn-amber {
  color: var(--color-amber-500);
}

.btn-amber::before {
  background: var(--color-amber-800);
  opacity: 0.5;
}

.btn-blue {
  color: white;
}

.btn-blue::before {
  background: var(--color-blue-500);
  opacity: 0.9
}

.btn-indigo {
  color: var(--color-indigo-500);
}

.btn-indigo::before {
  background: var(--color-indigo-800);
  opacity: 0.5;
}

/* Progress */

.progress-container {
  height: 4px;
  width: 90%;
  background: var(--color-surface-500);
  border-radius: 1rem;
}

.progress {
  height: 4px;
  width: 0%;
  border-radius: 1rem;
}

.progress-blue {
  background: var(--color-blue-500);
}

.progress-red {
  background: var(--color-red-500);
}

/* Slider */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: var(--color-surface-300);
  height: 4px;
  border-radius: 1rem;
}

input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none; /* Override default look */
   appearance: none;
   margin-top: -9.5px; /* Centers thumb on the track */
   background-color: white;
   height: 1.5rem;
   width: 1.5rem;
   border-radius: 50%;
}

.slider-container {
  display: grid;
  grid-template-columns: 1fr 12fr 1fr;
  justify-items: center;
}

.slider-ticks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-items: center;
  margin-left: 14px;
  margin-right: 14px;
}

.slider-ticks > * {
  display: flex;
  justify-content: center;
  width: 0px;
}

.slider-ticks > *::before {
  content: "";
  position: absolute;
  margin-top: 1.2rem;
  height: 10px;
  width: 2px;
  background-color: var(--color-surface-300);
}

.switch-slider {
  --switch-size: 3rem;
  width: calc(var(--switch-size) * 2.5);
}

.switch-slider[type="range"]::-webkit-slider-runnable-track {
  height: var(--switch-size);
  border-radius: var(--switch-size);
  background-color: var(--color-surface-600);
}

.switch-slider[type="range"]::-webkit-slider-thumb {
   margin-top: 0px; /* Centers thumb on the track */
   background-color: white;
   height: var(--switch-size) ;
   width:var(--switch-size) ;
   border-radius: 50%;
}

.switch-slider[switch-state="-1"]::-webkit-slider-runnable-track {
  background-color: var(--color-rose-500);
}

.switch-slider[switch-state="1"]::-webkit-slider-runnable-track{
  background-color: var(--color-green-500);
}

/* Background */

.bg-black {
  background-color: black;
}

.bg-surface {
  background-color: var(--color-surface-800);
}

.children-bg-surface > * {
  background-color: var(--color-surface-800);
}

/* For Google Material Icons */

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

.symbol-small {
  font-variation-settings:
  'opsz' 14;
}
