body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #121212;
  color: #ffffff;
}

#tile-form {
  margin-bottom: 20px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#color-pickers {
    display: flex;
    gap: 5px;
}

#tile-form label, #tile-form input, #tile-form select {
  margin-right: 10px;
}

#algorithm-selector label {
    font-weight: normal;
}

#previews {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  text-align: center;
  flex-wrap: wrap;
}

#tile-preview, #tile-preview-zoomed, #tile-preview-tiled {
  border: 2px solid #ccc;
  background-color: #1e1e1e;
  border-radius: 0px;
  background-repeat: repeat; /* For tiled preview */
  image-rendering: pixelated; /* Ensures sharp pixels in previews */
}

#tile-preview {
    background-size: cover; /* Scale down the final image to the original size box */
}

#tile-preview-tiled {
    width: 128px;
    height: 128px;
}

#tile-canvas {
  display: none;
}

button, #randomize-colors-btn, select {
  background-color: #6200ea;
  color: white;
  padding: 10px 15px;
  border: 1px solid #3700b3;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
#randomize-colors-btn {
    background-color: #03dac6;
    color: #121212;
    border: 1px solid #018786;
}
select {
    padding: 8px;
}

button:hover {
  background-color: #3700b3;
}
#randomize-colors-btn:hover {
    background-color: #018786;
}

h1, h2, h3 {
  margin-bottom: 10px;
  font-weight: 500;
}
h3 {
    font-size: 16px;
    color: #ccc;
    margin-top: 0;
}

a {
  color: #bb86fc;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
}

a:hover {
  text-decoration: underline;
}