* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary-color: #fe7743;
  --secondary-color: #efeeea;
  --third-color: #273f4f;
  --basic-color: #000000;
}

body {
  width: 100%;
  min-height: 100vh;
  background: var(--basic-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.container {
  width: 350px;
  padding: 20px 35px;
  margin: 40px auto 20px;
  /* position: absolute; */
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  background: var(--secondary-color);
  border-radius: 10px;
}
.container p {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}
.container #qrText {
  width: 100%;
  height: 40px;
  border: 1px solid var(--third-color);
  outline: 0;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}
.container button {
  width: 100%;
  height: 40px;
  background: var(--primary-color);
  color: var(--basic-color);
  border: 0;
  outline: 0;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  margin: 20px 0;
  font-weight: 500;
  border-radius: 5px;
}
#imgBox {
  width: 200px;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
}
#imgBox img {
  width: 100%;
  padding: 10px;
}
#imgBox.show-img {
  max-height: 300px;
  margin: 10px auto;
  border: 1px solid var(--basic-color);
}
.qr-display {
  display: none;
}
.download-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.error {
  animation: shake 0.1s linear infinite;
}
.footer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  width: 90%;
  font-size: 12px;
  margin: auto;
  text-align: center;
  font-weight: 400;
  color: var(--primary-color);
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(0);
  }
  75% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}
