body {
    /* dvh, а не vh: на телефоні vh — висота без адресного рядка, і футер з'їжджав за край */
    height: 100dvh;
}
.bg-main-color {
    background-image: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(0, 0,0,0.25) 50%,  rgba(255,255,255,1) 100%);
}

.canvas-height {
    min-height: calc(100dvh - 2*68px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.canvas-height > form
{
    width: 100%;
}
footer {
    height: 68px;
}
.f-root {
    height: 100%;
}
.h100 {
    height: 100%;
}
.linker-form {
    width: 80%;
    margin: 0 auto
}
.has-error{
    color: #FF0000;
}
.legal-text {
    font-size: 0.8rem !important;
}
.link-row{
    display: flex;
    flex-wrap: wrap;
}

.link-row > label, .link-row > .action-btn
{
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-row > input {
    flex: 1;
}
.validation-errors {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linker-link{
    padding-top: 0.25rem;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    flex: 0 0 auto;
    width: 100%;
    overflow-wrap: anywhere;
    font-size: 1.5em;
}

@media (max-width: 767px)
{
    .link-row > label, .link-row > .action-btn, .link-row > input {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}
@media (max-width: 280px)
{
    .linker-link {
        font-size: 1.7em;
    }
}
@media (max-width: 369px) and (min-width: 281px)
{
    .linker-link {
        font-size: 2.3em;
    }
}

@media (max-width: 398px) and (min-width: 370px)
{
    .linker-link {
        font-size: 2.4em;
    }
}
@media (max-width: 436px) and (min-width: 399px)
{
    .linker-link {
        font-size: 2.6em;
    }
}
@media (max-width: 468px) and (min-width: 437px)
{
    .linker-link {
        font-size: 2.8em;
    }
}

#qrcode canvas {
    width: 148px;
    height: 148px;
}
/* щільний код (generator.js) — більшим, щоб модулі лишались читабельними для камери */
#qrcode.qrcode-dense canvas {
    width: min(296px, calc(100vw - 2rem));
    height: auto;
}

/* header: logo | title | language switcher. The side columns are equal, so the title stays centred
   on the page; on a narrow screen it is pushed aside instead of being overlapped. */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 0.5rem;
    height: 68px;
    padding: 0 1.5rem;
}
.site-header > .navbar-brand {
    justify-self: start;
}
.site-header .logo {
    height: 50px;
}
.lang-switcher {
    justify-self: end;
}
.flag {
    height: 1.125rem;
    width: auto;
    vertical-align: -0.2em;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
@media (max-width: 575.98px) {
    .site-header {
        padding: 0 0.75rem;
    }
}
