@import url('https://fonts.googleapis.com/css2?family=Finlandica+Headline:ital,wght@0,100..900;1,100..900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jost:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik:ital,wght@0,300..900;1,300..900&family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Finlandica Headline', "Finlandica Headline", sans-serif;
}

html {
  min-height: 100dvh;
  letter-spacing: -.03em;
}

html, body, #app {
    padding: 0;
    margin: 0;
    width: 100dvw;
    height: 100dvh;
}

body {
    background: #303850 linear-gradient(to top, #102030, #204060);
    color: #fff;
    font-size: 6dvw;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.button-wrapper {
    width: 100dwv;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    border-radius: 1000px;
    background: #204060;
    color: #fff;
    border: none;
    padding: 5dvw 10dvw;
}

.btn-scan {
    font-size: 10dvw;
    font-weight: 800;
    text-transform: uppercase;
    color: #579;
    text-shadow: 1px 1px 2px #fff5;
    letter-spacing: -.04em;
    width: 80dvw;
    height: 80dvw;
    border-radius: 10000px;
    background: transparent linear-gradient(to bottom, #fff, #ace);
    border: 3dvw solid #fff;
    box-shadow: 10px 10px 20px #0005;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#app {
    width: 100dwv;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5dvw;
}

#qr-code-full-region {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    width: 90dvw;
    height: 90dvw;
    margin: 5dvw auto;
    border: 2px solid #fff5;
}

.btn:disabled {
    opacity: .5;
}

.printer-alert {
    transition: background-color .2s ease-in-out;
    position: absolute;
    padding: 5dvw;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #900;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0008;
}

.popup-window {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 5px 5px 10px #0005;
    min-width: 90dvw;
    max-width: 90dvw;
}

.popup-content {
    text-align: center;
    color: #333;
    font-size: 8dvw;
}

/**/

#scanner-container {
    position: relative;
    width: 90dvw;
    height: 90dvw;
    aspect-ratio: 1;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Визуальная рамка-прицел для пользователя */
.aim-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 4px dashed #ddd;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}
