@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}
/* General styling */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

canvas {
  border: 2px solid #333;
  margin-top: 20px;
  width: 90%;
  max-width: 800px;
  height: auto;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Toolbox styling */
.toolbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.toolbox button, .toolbox input[type="color"] {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.toolbox button {
  background-color: #007bff;
  color: white;
}

.toolbox button:hover {
  background-color: #0056b3;
}

.toolbox #increase, .toolbox #decrease {
  font-size: 20px;
  width: 40px;
  background-color: #4CAF50;
}

.toolbox #increase:hover, .toolbox #decrease:hover {
  background-color: #388e3c;
}

.toolbox input[type="color"] {
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Responsive brush size display */
#size {
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
  color: #555;
}

/* Download and clear buttons */
#download, #clear {
  background-color: #FF5722;
  color: white;
}

#download:hover, #clear:hover {
  background-color: #E64A19;
}

/* Developer credit styling */
.developer-credit {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}

/* Responsive styling */
@media (max-width: 768px) {
  .toolbox button, .toolbox input[type="color"] {
      padding: 8px;
      font-size: 14px;
  }

  #size {
      font-size: 16px;
  }

  canvas {
      width: 95%;
  }
}

@media (max-width: 480px) {
  .toolbox {
      gap: 5px;
  }

  .toolbox button, .toolbox input[type="color"] {
      padding: 6px;
      font-size: 12px;
  }

  #size {
      font-size: 14px;
  }
}
