@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
  margin: 0px;
  padding: 0px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 55%, #fad0c4 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 1.5rem;
  margin: 1rem;
  border-radius: 5px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.35);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.qrCodeView {
  padding: 25px;
  margin-bottom: 15px;
  border: 2px dashed #555;
  text-align: center;
  color: #55b7f9;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  align-items: center;
  justify-content: center;
}

.qrCodeView i {
  font-size: 55px;
  padding: 3rem;
  cursor: pointer;
}

.qrCodeView p {
  font-size: 1.2rem;
  margin-top: 15px;
}

.qrCodeView img,
.qrCodeView video,
.qrTextDetails {
  display: none;
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
}

.qrTextDetails textarea {
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
  padding: 10px 15px;
  outline: none;
  font-size: 16px;
  resize: none;
  border: 1px solid #999;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.qrTextDetails .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qrTextDetails button {
  width: 45%;
  height: 45px;
  background: #55b7f9;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

#stopScan {
  display: none;
  position: relative;
  top: 2px;
  left: 5px;
  color: crimson;
  cursor: pointer;
}

img,
video {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
    margin: 0.5rem;
  }

  .qrCodeView {
    padding: 15px;
  }

  .qrCodeView i {
    font-size: 45px;
    padding: 2rem;
  }

  .qrTextDetails textarea {
    height: 120px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 1rem;
    margin: 0;
  }

  .container h2 {
    font-size: 1.2rem;
  }

  .qrCodeView {
    padding: 10px;
  }

  .qrCodeView i {
    font-size: 40px;
    padding: 1.5rem;
  }

  .qrCodeView p {
    font-size: 1rem;
  }

  .qrTextDetails .btn {
    flex-direction: column;
    gap: 10px;
  }

  .qrTextDetails button {
    width: 100%;
  }
}
