:root {
  --bg-primary-color: #e3f2fd;
  --bg-secondary-color: #d1d5db;
  --primary-color: #1e2939;
  --secondary-color: #8b5cf6;

  /* 
   * Fluid Type Scale — clamp(MIN, FLUID, MAX)
   * Scales smoothly from 320px → 1440px viewport
   * Base: 16px → 18px
  */
  --text-xs: clamp(0.64rem, 0.55rem + 0.46vw, 0.78rem); /* ~10px → 14px */
  --text-sm: clamp(0.8rem, 0.71rem + 0.46vw, 0.89rem); /* ~13px → 16px */
  --text-base: clamp(1rem, 0.93rem + 0.36vw, 1.13rem); /* ~16px → 18px */
  --text-md: clamp(1.13rem, 1.01rem + 0.58vw, 1.38rem); /* ~18px → 22px */
  --text-lg: clamp(1.27rem, 1.09rem + 0.88vw, 1.73rem); /* ~20px → 28px */
  --text-xl: clamp(1.42rem, 1.15rem + 1.38vw, 2.16rem); /* ~23px → 35px */
  --text-2xl: clamp(1.6rem, 1.19rem + 2.07vw, 2.7rem); /* ~26px → 43px */
  --text-3xl: clamp(1.8rem, 1.22rem + 2.92vw, 3.38rem); /* ~29px → 54px */
  --text-4xl: clamp(2.03rem, 1.22rem + 4.07vw, 4.22rem); /* ~32px → 68px */
  --text-5xl: clamp(2.28rem, 1.17rem + 5.54vw, 5.28rem); /* ~36px → 84px */
}

/* Soft CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

body {
  line-height: 1.5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

/* Custom Styles */
body {
  background-color: var(--bg-primary-color);
  color: var(--primary-color);
  display: flex;
}

.sidebar {
  display: flex;
  flex: 0 1 15%;
  flex-direction: column;
  height: 100vh;
  background-color: #fff;
  padding: 25px;
  gap: 2rem;
}

.sidebar > * {
  width: 100%;
}

.sidebar h1 {
  margin-bottom: 30px;
}

.sidebar p,
div {
  margin-bottom: 10px;
}

.sidebar input {
  width: 100%;
  border: 2px solid var(--bg-secondary-color);
  border-radius: 5px;
}

.sidebar input:hover,
.sidebar button:hover {
  cursor: pointer;
}

#quick-col-container {
  display: flex;
  flex-flow: row wrap;
  gap: 5%;
}

.quick-color {
  width: 20%;
  background-color: #1e2939;
  aspect-ratio: 1;
  border-radius: 5px;
  flex-grow: 1;
  border: 2px solid var(--bg-secondary-color);
}

.quick-color:hover {
  cursor: pointer;
}

.mode-btn {
  color: var(--secondary-color);
  font-weight: 900;
  font-size: var(--text-base);
  width: 100%;
  padding: 10px;
  background-color: var(--bg-primary-color);
  border: 2px solid var(--bg-secondary-color);
  border-radius: 5px;
}

.mode-on {
  border: 2px solid #34f409;
}

#bottom-els {
  margin-top: auto;
}

#eraser-btn {
  color: var(--primary-color);
  margin-bottom: 10px;
}

#clear-btn {
  color: var(--bg-primary-color);
  background-color: #f13333;
  border: none;
}

#board-wrapper {
  display: flex;
  flex-flow: row wrap;
  background-color: #fff;
  width: 50%;
  aspect-ratio: 1.33 / 1;
  margin: auto;
  border: var(--bg-secondary-color) 5px solid;
}

.block {
  background-color: #fff;
  margin: 0;
  box-sizing: border-box;
  flex-grow: 1;
}
