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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: aquamarine;
}

section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-transform: capitalize;
}

.pre-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pre-img-box {
  border: 2px outset #000;
  height: 50vh;
  width: 40%;
  min-width: 340px;
  background-color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.pre-img {
  /* width: 100%;
  height: 100%; */
  display: none;
  
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

span {
  font-size: 1.2rem;
  font-weight: 400;
}

input[type="file"] {
  display: none;
}

.choose-photo-label {
  display: inline-block;
  width: 40%;
  min-width: 340px;
  background-color: white;
  border-radius: 5px;
  border: 2px outset #000;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.choose-photo-label:hover {
  background-color: #eee;
}

.upload-button {
  display: inline-block;
  width: 40%;
  min-width: 340px;
  background-color: rgb(38, 202, 16);
  color: white;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  border: 2px outset #000;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.upload-button:hover {
  background-color: rgb(31, 189, 10);
}

#loader {
  display: none;
  justify-content: center;
  align-items: center;
}

.loader {
  margin: 2px 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #333;
  animation: loaderAnimation 0.5s infinite ease-in-out;
  
}

.loader:nth-child(odd) {
  animation-delay: 0.25s;
  opacity: 0.3;
  transform: scale(0.4);
}

@keyframes loaderAnimation {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
