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

html,
body {
  width: 100%;
  height: 100%;
  background: #262a2f;
  font-family: sans-serif;
}

.container {
  width: 90%;
  max-width: 400px;
  padding: 1.5rem 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 10px;
}
.container p {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.container input {
  width: 100%;
  height: 3rem;
  border: 1px solid #494eea;
  outline: 0;
  padding: 0.625rem;
  margin: 0.625rem 0 1.25rem;
  border-radius: 5px;
  font-size: 1rem;
}
.container button {
  width: 100%;
  height: 3rem;
  background: #494eea;
  color: #fff;
  border: 0;
  outline: 0;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  margin: 1.25rem 0;
  font-weight: 500;
  font-size: 1rem;
}

#imgBox {
  width: 60%;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s;
  margin: 0 auto;
}
#imgBox img {
  width: 100%;
  padding: 0.625rem;
}
#imgBox.show-img {
  max-height: 300px;
  margin: 0.625rem auto;
  border: 1px solid #d1d1d1;
}

.error {
  animation: shake 0.1s linear 10;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(0);
  }
  75% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 1.25rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  .container p {
    font-size: 0.85rem;
  }
  .container input,
  .container button {
    height: 2.8rem;
    font-size: 0.95rem;
  }
  #imgBox {
    width: 80%;
  }
}/*# sourceMappingURL=style.css.map */