body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 10px;
  background-color: #f5f5f5;
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
}

.error {
  border-left: 4px solid #f44336;
  padding: 10px;
  margin: 20px 0;
}

.success {
  padding: 10px;
  margin: 20px 0;
}

/* Responsive layout for form groups */
.form-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-group {
  flex: 1 1 300px;
  margin: 0 10px 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#result {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.image-preview {
  max-width: 100%;
  margin-top: 10px;
  padding: 5px;
  display: flex;
  justify-content: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.result-image {
  max-width: 100%;
  margin-top: 20px;
  padding: 5px;
}

.loading {
  text-align: center;
  color: #4CAF50;
  cursor: pointer;
  font-weight: bold;
  margin: 20px 0;
}

.loading.hidden {
  display: none;
}

.loading:after {
  content: '.';
  animation: dots 3s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    content: '..';
  }
  40% {
    content: '...';
  }
  60% {
    content: '....';
  }
  80%, 100% {
    content: '.';
  }
}

.hidden {
  display: none;
}

.browse-info {
  text-align: center;
  color: #4CAF50;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

.error-message {
  text-align: center;
  width: 100%;
}

.centered-flex {
  display: flex;
  justify-content: center;
}

.clothes-description {
  font-weight: bold;
  color: #2c5aa0;
  text-transform: capitalize;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .form-container {
    flex-direction: column;
  }

  .form-group {
    margin: 0 0 10px 0;
  }

  body {
    padding: 5px;
  }

  .container {
    width: 95%;
    padding: 10px;
  }
}