body {
  font-family: Arial, sans-serif;
  max-width: 60rem;
  margin: 0 auto;
  background-color: #f5f5f5;
}

#wrapper {
  background: white;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 1rem rgba(0, 0, 0, 0.1);
}

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

a {
  color: #4977a8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.controls {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}


#loadImageBtn {
  background-color: #007bff;
  color: white;
}

#loadImageBtn:hover {
  background-color: #0056b3;
}

.filter-btn {
  background-color: #28a745;
  color: white;
}

.filter-btn:hover {
  background-color: #1e7e34;
}

.filter-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.image-container {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.image-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

.image-box h3 {
  margin: 0 0 1rem 0;
  color: #555;
}

canvas {
  border: 2px solid #ddd;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

#fileInput {
  display: none;
}

.status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.status.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
  flex-shrink: 0;
}

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

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

button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
