body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #f8f8f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2#title, h2 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #00eaff;
  text-shadow: 0 2px 12px #222, 0 0px 2px #00eaff;
}

input[type="file"] {
  margin: 20px 0;
  padding: 14px 24px;
  background: linear-gradient(90deg, #00eaff 0%, #2d89ef 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 8px #0006;
  transition: background 0.2s, transform 0.2s;
}

input[type="file"]:hover {
  cursor: pointer;
  background: linear-gradient(90deg, #2d89ef 0%, #00eaff 100%);
  transform: scale(1.05);
}

.button {
  margin: 20px 10px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #00eaff 0%, #2d89ef 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 8px #0006;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  cursor: pointer;
  background: linear-gradient(90deg, #00eaff 0%, #2d89ef 100%);
  box-shadow: 0 0px 17px #00eaff88;
  transform: scale(1.07);
}

#canvas {
  margin: 30px 0 10px 0;
  border-radius: 18px;
  box-shadow: 0 4px 32px #00eaff44, 0 1px 8px #0008;
  background: #222;
  border: 2px solid #00eaff;
  transition: box-shadow 0.2s;
}

.scroll-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 10px 0;
}

#scaleRange, #zoomRange {
  width: 350px;
  margin: 0 15px;
  accent-color: #00eaff;
  background: #222;
  border-radius: 8px;
  height: 8px;
}

#scaleValue, #zoomValue {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00eaff;
  margin-left: 10px;
}

.toggle-color {
  cursor: pointer;
  min-width: 110px;
  border-radius: 20px;
  font-size: 1.1rem;
  padding: 12px 18px;
  margin: 7px 7px 7px 0;
  border: 3px solid #222;
  box-shadow: 0 2px 8px #0006;
  font-weight: 600;
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  background-clip: padding-box;
}

.toggle-color.active {
  border: 3px solid #00eaff;
  box-shadow: 0 0px 12px #00eaff88;
  transform: scale(1.05);
}

#colors, #colors-paid {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  margin-bottom: 10px;
  margin-top: 10px;
  justify-content: space-evenly     ; /* Alterado para distribuir os botões */
  width: 850px;
  background: #232526;
  border-radius: 18px;
  padding: 18px 12px;
  box-shadow: 0 2px 12px #0008;
}

#colors-paid {
  margin-top: 0;
  margin-bottom: 20px;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
}

#color-list {
  margin-top: 30px;
  background: #232526;
  border-radius: 18px;
  padding: 18px 12px;
  box-shadow: 0 2px 12px #0008;
  width: 250px;
  flex: wrap;
}

#color-list:empty {
  display: none;
}

#width, #height, #area, #pixels_amount {
  margin: 12px;
  font-size: 1.1rem;
  color: #00eaff;
  font-weight: 600;
  letter-spacing: 1px;
}

label {
  font-weight: 600;
  color: #00eaff;
  margin-right: 8px;
}

select#lang-select:focus {
  border: 2px solid #fff;
}

::-webkit-scrollbar {
  width: 12px;
  background: #232526;
}

::-webkit-scrollbar-thumb {
  background: #00eaff88;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  #colors, #colors-paid, #color-list {
    width: 98vw;
    padding: 8px 2vw;
  }
  body {
    font-size: 18px;
  }
  h2#title, h2 {
    font-size: 2rem;
  }
}

#lang-select {
  background: #222;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #00eaff;
  box-shadow: 0 2px 8px #0006;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  min-width: 150px;
}

#lang-select:hover, #lang-select:focus {
  background: #1a1a1a;
  border-color: #00eaff;
  border: 2px solid #00eaff !important;
  box-shadow: 0 0 10px #00eaff88;
  outline: none;
}