#styleLabel {
  display: block;
  text-align: right;
  font-size: 12px;
  margin-top: -10px;
}

#canvas-wrapper,
#styled-wrapper {
  width: 300px;
  height: 350px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 25px auto 0;
  position: relative;
}

#canvas-wrapper.active,
#styled-wrapper.active {
  display: flex;
}

#canvas,
#qrStyledContainer {
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  border: 1px solid #CCC;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1;
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14px, 5vw, 20px);
  font-weight: 700;
  text-align: center;
  color: #000;
  background-color: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 5px;
  z-index: 2;
  pointer-events: none;
  max-width: 90%;
  word-wrap: break-word;
}

body.dark-mode .centered-text {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 600px) {
  .container {
    margin: 120px auto 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }
}

@media (max-width: 400px) {
  #canvas-wrapper,
  #styled-wrapper {
    width: 100%;
    height: auto;
  }

  canvas,
  #qrStyledContainer {
    width: 100% !important;
    height: auto !important;
  }
}
