/* General Styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f4f8;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: #ffffff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  gap: 40px; /* Space between the sections */
}

.section {
  flex: 1;
}

/* Upload Section */
.uploader label {
  display: block;
  font-weight: bold;
  color: #555;
  margin-bottom: 10px;
}

input[type="file"] {
  display: block;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #007bff;
  background-color: #e9f5ff;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  color: #007bff;
}

input[type="file"]::file-selector-button {
  background-color: #007bff;
  color: #ffffff;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background-color: #0056b3;
}

/* Image Preview Section */
.preview-container {
  margin: 0 20px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

canvas {
  border-radius: 10px;
  border: 1px solid #ddd;
  max-width: 100%;
  height: auto;
}

/* Resize Options */
.resize-options {
  margin: 0;
}

.resize-options label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
  color: #555;
}

input[type="number"],
select {
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #007bff;
  background-color: #e9f5ff;
  font-size: 14px;
  margin-top: 5px;
}

/* Buttons */
button {
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

button#resizeBtn {
  background-color: #28a745;
  color: #ffffff;
}

button#resizeBtn:hover {
  background-color: #218838;
}

button#downloadBtn {
  background-color: #007bff;
  color: #ffffff;
}

button#downloadBtn:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 12px;
  color: #888;
}

/* Media Queries for Responsive Design */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .section {
    max-width: 100%;
  }
}
#loadingIndicator {
    margin-top: 20px;
    font-weight: bold;
    color: #007bff;
    display: none; /* Hidden by default */
}
