@font-face {
    font-family: 'KG Blank Space Solid';
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url('https://dziaugsmoteka.lt/wp-content/uploads/2022/09/KGBlankSpaceSolid.eot');
    src: url('https://dziaugsmoteka.lt/wp-content/uploads/2022/09/KGBlankSpaceSolid.eot?#iefix') format('embedded-opentype'), url('https://dziaugsmoteka.lt/wp-content/uploads/2022/09/KGBlankSpaceSolid.woff2') format('woff2'), url('https://dziaugsmoteka.lt/wp-content/uploads/2022/09/KGBlankSpaceSolid.woff') format('woff'), url('https://dziaugsmoteka.lt/wp-content/uploads/2022/09/KGBlankSpaceSolid.ttf') format('truetype');
}

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    padding-top: 80px;

    max-width: 120vw;
    overflow-x: hidden;
    min-height: calc(100vh - 60px + 15px);

    background: linear-gradient(#F6F4EE, #EBEAED);

    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    font-size: 18px;
    font-weight: normal;
}

body p{
    margin: 0;
}

/* BUTTONS */
.button {
    font-family: "KG Blank Space Solid", Sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    fill: #FFFFFF;
    color: #FFFFFF;
    background-color: #01acc6;
    border: 5px solid white;
}

.button,
#answer--text{
    border-radius: 20px;
}

.button .wp-block-button__link{
    background-color: transparent;
    border-radius: initial;
}

/* HEADER AND SCORES */
body.page #wpadminbar{
    display: none;
}

header {
    width: 100%;
    height: 60px;

    position: fixed;
    top: 0;

    display: flex;

    align-items: center;
    justify-content: space-between;
    padding: 0 10px;

    font-family: 'KG Blank Space Solid';
    
    background-color: white;
    border-bottom: 1px #e5e5e5 solid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

header .score--container{
    text-align: right;
}

header .score--container span{
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

header .score--container .score{
    transition: 890ms all ease-in;
}

header .score--container .score.plus,
header .score--container .score.minus {
    transform: scale(1.7);
    transition: 350ms all ease-in;
}

header .score--container .score.plus{
    color: green;
}

header .score--container .score.minus{
    color: red;
}

/* CONTENT */
.current-screen{
    padding: 20px;
    user-select: none;
}

.current-screen > * + *{
    margin-top: 20px;
}

.current-screen img{
    max-width: 100%;
    height: auto;
}

/* TOOLBAR */
.toolbar--container{
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
}

.toolbar--container.active{
    bottom: 15px;
}

.toolbar--container .answer{
    width: 100%;
    font-family: 'KG Blank Space Solid';
    padding: 1.1em 1em;
}

.toolbar--container .answer:not(.active),
.toolbar--container .or-text:not(.active){
    display: none;
}

.toolbar--container .or-text{
    text-align: center;
    font-weight: 900;
    font-size: 12px;
    margin: 6px;
    letter-spacing: 2px;
}

#answer--text{
    border: 5px solid #b7b7b7;
    transition: 0.2s border-color ease-in;
    font-size: 18px;
}

#answer--text:focus{
    border-color: #DD5B5B;
    outline: none;
}

/* READER TOAST */
.reader--container{
    width: calc(100vw - 8px);
    left: 4px;
    background: white;
    border-radius: 44px;
    padding: 10px;
    text-align: center;
}

.reader--container h3{
    margin-bottom: 5px;
    font-size: 22px;
}

.reader--container.active{
    box-shadow: 0 0 100px 0px #00000085;
    bottom: 4px;
}

/* BOTTOM ITEMS */
.toolbar--container,
.reader--container{
    position: fixed;
    bottom: -444px;
    z-index: 1569;
    transition: 0.3s all ease-out;
}


/* WEBAPP ADJUSTMENTS */
@media all and (display-mode: standalone) {
    .toolbar--container.active{
        bottom: 30px;
    }
}

/* ————————————————————————————————————— */

.overlay{
    display: block;
    position: fixed;
    z-index: 1;
    content: '';
    width: 100vw;
    height: 1px;
    bottom: 0;
    left: 0;
    transition: 0.15s background-color, backdrop-filter ease-in-out;
    backdrop-filter: blur(0px);
}

body:has(.reader--container.active) .overlay{
    height: 100dvh;
    background-color: #220f0f68;
    backdrop-filter: blur(4px);
}

#reader{
    width: 300px;
    height: 300px;
    transition: 0.25s all;
    margin: 15px auto;
    border-radius: 15px;
}

#reader video{
    aspect-ratio: 1/1;
    border-radius: 15px;
}

#reader #qr-shaded-region{
    border-radius: 15px;
}

#confetti{
    position: absolute;
    top: 0;
    left: 0;

    z-index: -1;
    width: 100vw;
    height: 100dvh;
}

/* DEMO PLAYING SANDBOX */
.standalone,
.photo-permissions{
    display: none;
}

@media all and (display-mode: standalone) {
    body{
        padding-top: 40px;
        min-height: calc(100vh);
    }
}