* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  font-size: 62.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  background: #f8edfa;
  margin: 0;
}

h1 {
  font-size: 2rem;
  margin-top: -1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #00aaff, #00ff99);
  -webkit-background-clip: text;
  color: transparent;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Roboto", "Arial", sans-serif;
  color: #5c6f7b;
  text-align: center;
  margin: 0.5rem;
  letter-spacing: 0.1rem;
  font-weight: 500;
  padding: 0.2rem 1.2rem;
}

.img {
  height: 320px;

  padding: 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.45);
}

img {
  object-fit: contain;
  width: 90%;
  height: 90%;
}

.custom-file-input {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: #ffffff;
  background-color: #2554f0;
  cursor: pointer;
  border-radius: 0.4rem;
  font: bold 15px "Quicksand", sans-serif;
  transition: all 0.3s ease;
}

.custom-file-input:hover {
  background-color: #0f54af;
  transform: translateY(-2px);
}

.btn {
  padding: 1rem;
  text-align: center;
}

.btn-container {
  display: flex;
  justify-content: center;
}

button {
  position: relative;
  padding: 0.6rem 1.8rem;
  margin: 1rem;
  border: none;
  outline: inset;
  border-radius: 0.5rem;
  cursor: pointer;
  font: bold 1.2rem "Quicksand", sans-serif;
  color: #ffffff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
  background-color: #00408a;
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn_loading .btn__text {
  visibility: hidden;
  opacity: 0;
}

.btn_loading::after {
  content: " ";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border: 0.4rem solid transparent;
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: loader 1s ease infinite;
}

#removeBgButton:active {
  background: #007a63;
}

footer {
  background-color: #f8edfa;
  color: #5c6f7b;
  text-align: center;
  padding: 10px;
  border-top: 2px solid #ddd;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

@keyframes loader {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

@media screen and (max-width: 760px) {
  body {
    font-size: 45%;
  }
  h1 {
    font-size: 1.8rem;
  }
  button {
    font-size: 1rem;
  }
  .img {
    margin: 16px;
    padding: 0;
  }
}
