* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.8rem;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.3rem;
}

h3 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.1rem;
}

/* Upload Section */
.upload-section, .url-section {
  display: inline-flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  gap: 10px;
  width: calc(50% - 10px);
}

.url-section {
  float: right;
}

#imageUpload {
  padding: 6px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  max-width: 200px;
}

#imageUrl {
  padding: 6px 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  max-width: 200px;
}

button {
  padding: 6px 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Controls */
.controls {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.control-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.control-group label {
  flex: 0 0 170px;
  font-weight: 500;
  font-size: 0.9rem;
}

.control-group input[type="range"] {
  width: 70%;
  margin: 0 10px;
  height: 4px;
}

.control-group span {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.9rem;
}

.control-group.checkbox {
  display: flex;
  align-items: center;
}

.control-group.checkbox input {
  margin-right: 10px;
}

.control-group.checkbox label {
  flex: 1;
}

#applyFilter {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 15px;
  font-size: 0.95rem;
}

/* Image Container */
.image-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.image-box {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.image-box img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  display: block;
}

/* Description */
.description {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.description p {
  margin-bottom: 8px;
}
.warning-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  padding: 10px;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #856404;
}

.warning-box h4 {
  margin-top: 0;
  margin-bottom: 5px;
  color: #856404;
  font-size: 0.9rem;
}
/* Footer */
footer {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Clear float after the upload sections */
.controls {
  clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .upload-section, .url-section {
    width: 100%;
    float: none;
    margin-bottom: 10px;
  }
  
  .image-container {
    flex-direction: column;
  }
  
  .control-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .control-group label {
    margin-bottom: 5px;
  }
  
  .control-group input[type="range"] {
    width: 100%;
    margin: 0 0 5px 0;
  }
  
  #imageUpload, #imageUrl {
    max-width: 100%;
  }
}
