@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Ubuntu;
}
.container {
  background: rgb(48, 47, 47);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
}
.frame {
  background: whitesmoke;
  width: 30vw;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
}
.frame input {
  outline: none;
  width: 100%;
  border-radius: 5px;
  background: none;
  height: 7vh;
  padding: 0 10px;
  font-size: 25px;
  margin-top: 10px;
  border: 2px solid black;
}
.frame button {
  width: 100%;
  margin-top: 20px;
  font-size: 18px;
  padding: 10px 10px;
  color: white;
  background: blue;
  border: 1px solid blue;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}
.frame button:hover {
  background: rgb(85, 85, 223);
}
#imgBox {
  width: 200px;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s;
}
#imgBox img {
  width: 100%;
  padding: 10px;
}
#imgBox.show_img {
  max-height: 300px;
  margin: 10px;
  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);
  }
}
