* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #EEF0F7;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  background-color: #fff;
  width: 600px;
  min-height: 450px;
  max-height: 90vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  line-height: 1.5;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.185);
  overflow: hidden;
}
.container::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(to bottom right, #FF9EC4, #FFD07E);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  z-index: -1;
}
.container-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #fff;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #2E4052;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
}
.qr-container {
  position: relative;
  width: 250px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container img {
  width: 250px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}
.container img.loading {
  opacity: 0.3;
}
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.spinner-circle {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #6589FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner p {
  margin-top: 15px;
  color: #1A2250;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.container-text {
  padding: 10px 40px 10px 10px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}
.container-text h2 {
  font-size: 1.2rem;
  color: #1A2250;
}
.container-text p {
  font-size: 14px;
  color: #3B4169;
  margin: 10px 0;
}
.container-text input,
.container-text select,
.container-text button,
.container-text textarea {
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 3px;
}
.container-text input,
.container-text textarea {
  border: 2px solid #DADDEC;
  margin: 5px 0 10px;
  font-size: 1rem;
  color: #656880;
}
.container-text textarea {
  resize: vertical;
  min-height: 60px;
  font-family: monospace;
}
.container-text button {
  background-image: linear-gradient(to right, #89CAFF, #6589FF);
  display: block;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 20px #89caff94;
  transition: box-shadow 0.3s ease-in-out;
  margin-top: 5px;
}
.container-text button:hover {
  box-shadow: none;
}
#create-link {
  background-image: linear-gradient(to right, #FFB347, #FFCC33);
  box-shadow: 0 5px 20px rgba(255, 179, 71, 0.4);
}
#copy-link {
  background-image: linear-gradient(to right, #90EE90, #32CD32);
  box-shadow: 0 5px 20px rgba(50, 205, 50, 0.4);
}
#link-container {
  margin-top: 15px;
}
.container-text span {
  display: block;
  text-align: center;
  margin: 20px 0 0;
  color: #BABDCB;
  font-size: 12px;
}