body {
  margin: 0;
  padding: 0;
  background: #121212;
  color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 2em;
  margin-bottom: 10px;
  animation: slideIn 0.7s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

p {
  font-size: 1em;
  margin-bottom: 20px;
  animation: slideIn 0.9s ease-out;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form input[type="file"] {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  padding: 10px;
  background: #1e1e1e;
  border: none;
  border-radius: 6px;
  color: white;
  transition: background 0.3s ease;
}

form input[type="file"]::file-selector-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

form input[type="file"]::file-selector-button:hover {
  background-color: #444;
  transform: scale(1.05);
}

form input[type="submit"] {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

form input[type="submit"]:hover {
  background: #e64444;
  transform: scale(1.05);
}

form input[type="submit"]:active {
  transform: scale(0.95);
}

#img {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

#img img {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

#img img:hover {
  transform: scale(1.05);
}

#cringeMeter {
  margin: 30px auto 0 auto;
  display: block;
}

#cringeReason {
  margin-top: 15px;
  font-size: 1em;
  color: #ff8c8c;
  transition: opacity 0.3s ease;
}

#progressBar {
  width: 100%;
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
  margin: 15px 0;
  display: none;
}

#progress {
  height: 100%;
  width: 0%;
  background: #ff4d4d;
  transition: width 0.3s ease;
}
