body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  padding: 0;
  margin: 0;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2#title, h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 32px;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
}

input[type="file"] {
  margin: 16px 0;
  padding: 12px 20px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

input[type="file"]:hover {
  cursor: pointer;
  background: #222;
  border-color: #444;
}

.button {
  margin: 16px 8px;
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid #333;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  cursor: pointer;
  background: #222;
  border-color: #444;
  transform: translateY(-1px);
}

#canvas {
  margin: 24px 0 16px 0;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

.scroll-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 12px 0;
  width: 100%;
  max-width: 500px;
}

#scaleRange, #zoomRange {
  width: 300px;
  margin: 0 12px;
  accent-color: #666;
  background: #1a1a1a;
  border-radius: 4px;
  height: 4px;
}

#scaleValue, #zoomValue {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-left: 8px;
  min-width: 60px;
}

.toggle-color {
  cursor: pointer;
  min-width: 100px;
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 10px 16px;
  margin: 4px;
  border: 1px solid #333;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
  background-clip: padding-box;
}

.toggle-color.active {
  border: 1px solid #666;
  transform: translateY(-1px);
}

#colors, #colors-paid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0;
  justify-content: center;
  width: 100%;
  max-width: 850px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #333;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#color-list {
  margin-top: 24px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #333;
  width: 250px;
  flex: wrap;
}

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

#width, #height, #area, #pixels_amount {
  margin: 8px;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

label {
  font-weight: 500;
  color: #fff;
  margin-right: 8px;
}

::-webkit-scrollbar {
  width: 8px;
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

@media (max-width: 1000px) {
  #colors, #colors-paid, #color-list {
    width: calc(100% - 32px);
    padding: 16px;
    margin: 16px;
  }
  
  body {
    font-size: 14px;
  }
  
  h2#title, h2 {
    font-size: 2rem;
    padding: 0 16px;
  }
  
  .button {
    margin: 8px;
  }
}

#lang-select {
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  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: 140px;
  transition: all 0.2s ease;
}

#lang-select:hover, #lang-select:focus {
  background: #222;
  border-color: #444;
  outline: none;
}

/* FAQ Styles */
.faq {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.faq-container {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #444;
  transform: translateY(-1px);
}

.faq-item h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.faq-item p {
  color: #cccccc;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.lang_select {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 16px;
  top: 16px;
}