body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

h1 {
  color: #ff7700;
  text-align: center;
}

.container {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-section {
  text-align: center;
  padding: 30px;
  border: 2px dashed #ccc;
  border-radius: 5px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#fileInput {
  display: none;
}

.btn {
  background-color: #ff7700;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn.secondary {
  background-color: transparent;
  border: 1px solid #ff7700;
  color: #ff7700;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e56b00;
}

.output-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.output-item {
  display: flex;
  flex-direction: row;
  gap: 1em;
  justify-content: center;
}

.output-item div {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

canvas {
  border: 1px solid #ddd;
  margin: 10px 0;
  max-width: 100%;
  height: auto;
}

#preview-section {
  display: none;
  margin-top: 20px;
  text-align: center;
}

#original-preview {
  max-width: 200px;
  max-height: 400px;
  border: 1px solid #ddd;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #ff7700;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error {
  color: red;
  text-align: center;
  margin: 10px 0;
  display: none;
}

.instructions {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#output-container {
  display: none;
}

.upload-section.drag-over {
  background-color: #f0f8ff;
  border-color: #ff7700;
}

.username-section {
  text-align: center;
}

.username-section p {
  color: #666;
  font-weight: bold;
  margin: 10px 0;
}

#usernameInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  margin-right: 10px;
}

#show_roblox_template_wrapper {
  /* TODO: One day bring this back, maybe in another way, we will see... */
  display: none;
}