* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #dfe9f3, #ffffff);
  color: #333;
  min-height: 100vh;
}

.heading {
  text-align: center;
  margin: 2rem 0;
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.entire-sketch-area {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #f4faff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.sketch-area {
  display: grid;
  width: 650px;
  height: 650px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #e6e6e6;
  transition: all 0.3s ease-in-out;
}

.sketch-area:hover {
  transform: scale(1.01);
}

.grid-box {
  border: 1px solid #e1e1e1;
  background: #fafafa;
  transition: background 0.2s ease-in-out;
}

.grid-box:hover {
  background: #cce7ff;
}

.slider-handler {
  position: relative;
  width: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grid-slider {
  transform: rotate(270deg);
  width: 150px;
  /* accent-color: #007bff; */
}

.slider-value {
  position: absolute;
  left: -50px;
  font-weight: 500;
  color: #333;
}

.controls-btns {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 1.5rem auto;
  flex-wrap: wrap;
  gap: 1rem;
}

button {
  padding: 0.7rem 1.2rem;
  border-radius: 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-3px);
}

#red-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  color: white;
}

#red-btn:hover {
  background: linear-gradient(135deg, #ff3b3b, #c21d1d);
}

#erase-btn {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: #333;
}

#erase-btn:hover {
  background: linear-gradient(135deg, #c2c2c2, #8d8d8d);
  color: white;
}

#clear-all-btn {
  background: linear-gradient(135deg, #3a8ef6, #0056ff);
  color: white;
}

#clear-all-btn:hover {
  background: linear-gradient(135deg, #0044cc, #003399);
}

.color-picker {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: 2px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-picker:hover {
  transform: scale(1.1);
  border-color: #3a8ef6;
}

.btns {
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 1rem 0;
}
