@font-face {
    font-family: "NotoSans";
    src: url("/assets/NotoSans-Medium.ttf") format("truetype");

    font-weight: normal;
    font-style:  normal;
}

* {
    font-family: "NotoSans";
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: white;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgb(30, 41, 59) 0%, rgb(59, 130, 246) 30%, rgb(236, 72, 153) 70%, rgb(239, 68, 68) 100%), radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.3) 0%, rgba(0, 0, 0, 0) 50%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0) 50%), radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
    backdrop-filter: blur(10px) brightness(40%);
}

#q-box {
    font-size: 27px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3b82f6, #ec4899);
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.4), 0 0 40px rgba(236, 72, 153, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#q-box:hover {
    transform: translateY(-2px) rotate(-5deg);
}

h1 {
    font-size: 40px;
}

p {
    color: #ccc;
    font-size: 15px;
    margin: 10px;
}

button {
    cursor: pointer;
    transition: 0.2s;
}

#input-panel {
    width: calc(min(80%, 500px) - 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.code-input-method {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 80px;
    max-height: 80px;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    border: none;
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.85) 0%,
        rgba(34, 197, 94, 0.02) 100%
    );
    color: white;
    font-size: 17px;
    font-weight: 600;
    transition: 0.2s;
}
.code-input-method:hover {
    filter: brightness(120%);
}

.input-icon {
    height: 40%;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 5px;
    border-radius: 5px;
}

#text-input {
    margin: 0;
    padding: 0;
    width: calc(100% - 5px);
    border: 2px solid;
    border-color: rgba(59, 130, 246, 0.5);
}
::placeholder {
    color: white;
}

#text-icon {
    background: rgba(59, 130, 246, 0.2);
}

#voice-input {
    border: 2px solid;
    border-color: rgba(52, 211, 153, 0.5);
}

#voice-icon {
    background: rgba(52, 211, 153, 0.2);
}

.mic-on {
    filter: invert(14%) sepia(91%) saturate(7486%) hue-rotate(1deg) brightness(108%) contrast(108%);
}

#scan-input {
    border: 2px solid;
    border-color: rgba(251, 191, 36, 0.5);
}

#scan-icon {
    background: rgba(251, 191, 36, 0.2);
}

#qrcode-overlay {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

#qrcode-container {
    min-width: 80%;
}

#qrcode-reader {
    width: 100%;
    height: 100%;
}

video, #qr-shaded-region {
    border-radius: 50px;
}

#qstudio-button {
    padding: 16px 32px;
    padding-bottom: 18px;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
#qstudio-button:hover {
    filter: brightness(80%);
}


.heart {
  --glow-rgb: 255, 107, 107;
  display: inline-block;
  color: #ff5757;
  margin: 30px;
  transform-origin: center;
  filter: drop-shadow(0 0 0 rgba(var(--glow-rgb), 0));
  animation: heart-beat 1.2s ease-in-out infinite;
}
.heart path,
.heart g { fill: currentColor !important; }

@keyframes heart-beat {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 0 rgba(var(--glow-rgb), .55))
      drop-shadow(0 0 0 rgba(var(--glow-rgb), .45));
  }
  25% {
    transform: scale(1.08);
    filter:
      drop-shadow(0 0 10px rgba(var(--glow-rgb), .55))
      drop-shadow(0 0 18px rgba(var(--glow-rgb), .45));
  }
  50% {
    transform: scale(1.16);
    filter:
      drop-shadow(0 0 16px rgba(var(--glow-rgb), .95))
      drop-shadow(0 0 28px rgba(var(--glow-rgb), .85));
  }
  75% {
    transform: scale(1.08);
    filter:
      drop-shadow(0 0 10px rgba(var(--glow-rgb), .55))
      drop-shadow(0 0 18px rgba(var(--glow-rgb), .45));
  }
}