* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #ffe2e2;
}

.container {
  width: 400px;
  /* padding top-bottom:25px and left-right:35px */
  padding: 25px 35px;
  position: absolute;
  top: 50%;
  left: 50%;
  /* to make the content center from top and left right */
  transform: translate(-50%, -50%);
  background-color: #f6f6f6;
  border-radius: 10px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.container p {
  font-weight: 600;
  /* 1 rem means 16px */
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: #8785a2;
}

.container input {
  width: 100%;
  height: 50px;
  border: 2px solid #8785a2;
  outline: 0;
  margin: 10px 0 20px;
  border-radius: 5px;
  padding-left: 10px;
  color: #8785a2;
  font-weight: 500;
  font-size: 15px;
  background-color: #ffc7c7;
}

.container button {
  width: 100%;
  height: 50px;
  background: #8785a2;
  color: #ffe2e2;
  border-radius: 5px;
  font-size: 15px;
  border: 0;
  outline: 0;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  font-weight: 500;
  cursor: pointer;
}

#img-box {
  width: 200px;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s;
}

#img-box img {
  width: 100%;
  padding: 10px;
}

#img-box.show-img {
  max-height: 300px;
  margin: 10px auto;
  border: 1px solid #8785a2;
}

.error {
  animation: shake 0.1s linear 10;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(3px);
  }
}
