body,html {
    width:100%;
    height:100%;
}
/*
Basics
*/
#qrimg {
    height: auto;
    width: 5px;
}
* {
    box-sizing: border-box;
}
/* Zoom level of the background slideshow, animated with the photos (see @keyframes bgphoto):
   the photos go in pairs, two zoomed in, two normal, so every second transition zooms out or in */
@property --bgzoom {
    syntax: '<number>';
    inherits: false;
    initial-value: 1;
}
html {
    margin: 0 auto;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Slideshow photos fill the screen (3:2 photos: as wide as the screen, or 1.503x its height if
       that is more) and are cropped evenly around the centre; --bgzoom zooms in from there */
    background-position: center center;
    background-size: calc(max(100vw, 150.3vh) * var(--bgzoom)) auto;
    background-repeat: no-repeat;
    overflow: hidden;
    animation-name: bgphoto;
    animation-duration: 128.57s; /* 15 photos, ~8.6 s each (was 60 s for 7) */
    animation-iteration-count: infinite;
}
.btn-container {
    position: fixed;
    bottom:0px;
    width:100%;
    left:0px;
    display:flex;
    justify-content: space-between;
}
#ftimer {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    gap: 18px;
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    padding: 8px 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    z-index: 2;
    margin: 0 !important;
    width: fit-content !important;
    bottom: auto !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

#ftimer #containertimetable {
    color: #38bdf8;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    user-select: none;
    margin: 0 !important;
    float: none !important;
}

#ftimer #time {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    user-select: none;
    margin: 0 !important;
    float: none !important;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}
body::after{
    position:absolute; 
    width:0; 
    height:0; 
    overflow:hidden; 
    z-index:-1;
    content:url(media/bg.webp)
            url(media/bg-riaditelna.webp)
            url(media/bg2.webp)
            url(media/bg-zborovna.webp)
            url(media/bg3.webp)
            url(media/bg-ucebna-anj.webp)
            url(media/bg4.webp)
            url(media/bg-schodisko.webp)
            url(media/bg5.webp)
            url(media/bg-chemicke-laboratorium.webp)
            url(media/bg6.webp)
            url(media/bg-skolska-televizia.webp)
            url(media/bg9.webp)
            url(media/bg-prednaskova.webp)
            url(media/bg-telocvicna.webp)
}
@keyframes bgphoto{
    0%{
        background-image: url(media/bg.webp);
        --bgzoom: 1.333;
    }
    6.67%{
        background-image: url(media/bg-riaditelna.webp);
        --bgzoom: 1.333;
    }
    13.33%{
        background-image: url(media/bg2.webp);
        --bgzoom: 1;
    }
    20%{
        background-image: url(media/bg-zborovna.webp);
        --bgzoom: 1;
    }
    26.67%{
        background-image: url(media/bg3.webp);
        --bgzoom: 1.333;
    }
    33.33%{
        background-image: url(media/bg-ucebna-anj.webp);
        --bgzoom: 1.333;
    }
    40%{
        background-image: url(media/bg4.webp);
        --bgzoom: 1;
    }
    46.67%{
        background-image: url(media/bg-schodisko.webp);
        --bgzoom: 1;
    }
    53.33%{
        background-image: url(media/bg5.webp);
        --bgzoom: 1.333;
    }
    60%{
        background-image: url(media/bg-chemicke-laboratorium.webp);
        --bgzoom: 1.333;
    }
    66.67%{
        background-image: url(media/bg6.webp);
        --bgzoom: 1;
    }
    73.33%{
        background-image: url(media/bg-skolska-televizia.webp);
        --bgzoom: 1;
    }
    80%{
        background-image: url(media/bg9.webp);
        --bgzoom: 1.333;
    }
    86.67%{
        background-image: url(media/bg-prednaskova.webp);
        --bgzoom: 1.333;
    }
    93.33%{
        background-image: url(media/bg-telocvicna.webp);
        --bgzoom: 1;
    }
    100%{
        background-image: url(media/bg.webp);
        --bgzoom: 1.333;
    }
}
div {
    text-align: center;
}
.weatherwidget-io {
    width: 125px;
    pointer-events: none;
    position: absolute;
    float: right;
}
.iframebase {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 48.5%;
    margin-top: 1px;
    z-index: 1;
}
.iframeweb {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding:8px;
    right: 0;           /* Zmeniť podľa displeja */
    width: 100%;
    height: 90%;
    border: none;
    z-index: 1;
}
/*
Modálne
*/
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4); 
}
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    border-radius: 16px;
}
.modal-content-jpg-l-1 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-left: 90px;
    margin-top: 70px;
    left: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}
.modal-content-jpg-l-2 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-left: 90px;
    margin-top: 270px;
    left: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}
.modal-content-jpg-l-3 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-left: 90px;
    margin-top: 470px;
    left: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}

.modal-content-jpg-r-1 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-right: 90px;
    margin-top: 70px;
    right: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}
.modal-content-jpg-r-2 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-right: 90px;
    margin-top: 270px;
    right: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}
.modal-content-jpg-r-3 {
    background-color: #fefefe;
    position: absolute;
    margin: 0;
    margin-right: 90px;
    margin-top: 470px;
    right: 0;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid #888;
    width: 75px;
    height: 130px;
    border-radius: 16px;
}

#modaljedlopdf {
    height: 500px;
    width: 100%;
}

/*
Oznamy
*/
.ann-flex {
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    position: static;
    -ms-user-select: none;
    user-select: none;
    margin-top: 30px;
}
.ann-item {
    width: 17em;
    background-color: white;
    border-radius: 20px;
    text-align: center;
    display: inline-block;
    padding-right: 5px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.ann-item-advent {
    width: 10em;
    height:10em;
    text-align: center;
    display:flex;
    justify-content: center;
    align-content: center;
    padding:0;
    background-color: red;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.ann-item > h2 {
    text-align: center;
    font-size: larger;
    font-weight: normal; 
}
.ann-item > h5 {
    text-align: center;
    font-weight: normal; 
}
#ann1pdf,#ann2pdf,#ann3pdf {
    height: 600px;
    width: 100%;
}
.sann-item {
    width: 8em;
    background-color: white;
    border-radius: 20px;
    text-align: center;
    display: inline-block;
    padding-right: 5px;
}
.sann-item > h2 {
    text-align: center;
    font-size: larger;
    font-weight: normal; 
}
.sann-item > h5 {
    text-align: center;
    font-weight: normal; 
}

/*
Interactive Navigation & Action Buttons
*/
.redi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    height: 52px;
    min-width: 140px;
    background-color: #04AA6D; /* Classic GAV green */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.redi-button:hover {
    background-color: #059862;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}

.redi-button:active {
    background-color: #038a58;
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.redi-button.highlight-button {
    background-color: #05b876;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 14px rgba(4, 170, 109, 0.4);
}

.redi-button.highlight-button:hover {
    background-color: #00c853;
    box-shadow: 0 6px 18px rgba(4, 170, 109, 0.5);
}

.redi-buttons-left {
    display: flex;
    gap: 10px;
    align-items: center;
    user-select: none;
}

.redi-buttons-right {
    display: flex;
    gap: 10px;
    align-items: center;
    user-select: none;
}

/*
Navbar Bottom Bar (White Theme)
*/
.navbar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    margin: auto;
    padding: 4px;
    width: fit-content;
    z-index: 2;
    bottom: 0px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.navbar a {
    color: #334155;
    text-align: center;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar a:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.active {
    background-color: #04AA6D;
    color: #ffffff !important;
}

.navbar .icon {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    font-size: 15px;
    font-weight: 600;
    border: none;
    outline: none;
    color: #334155;
    padding: 10px 18px;
    background-color: transparent;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown:hover .dropbtn, .dropdown .dropbtn:hover, .dropdown.open .dropbtn {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    width: max-content; /* as wide as the longest item, so no item breaks into two lines */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    z-index: 10;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    bottom: calc(100% + 8px);
    left: 0;
    padding: 6px;
    overflow: hidden;
}

/* Invisible bridge so mouse hover is never broken across the 8px gap */
.dropdown-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-content a {
    color: #1e293b;
    padding: 9px 14px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

/* Icons share one width, so the item names line up */
.dropdown-content a > i:first-child {
    width: 1.25em;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}
@media screen and (max-width: 600px) {
    .navbar a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .navbar a.icon {
        float: right;
        display: block;
    }
}
@media screen and (max-width: 600px) {
    .navbar.responsive {position: relative;}
    .navbar.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .navbar.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .navbar.responsive .dropdown {float: none;}
    .navbar.responsive .dropdown-content {position: relative; width: auto;}
    .navbar.responsive .dropdown-content a {white-space: normal;}
    .navbar.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}



img {
    padding-top: 10px;
    pointer-events:none;
}
.imggav {
    padding: 0;
    margin-top: 90px;
    margin-bottom: 0;
    transform: translateY(-5%);
    animation: floater 6.5s infinite;
    transition: ease 1.5s;
    pointer-events:none;
    user-select: none;
}
@keyframes floater {
    0%{transform: translateY(-5%);transition: ease 1.5s;}
    50%{transform: translateY(5%);transition: ease 1.5s;}
}


/* Info Icon */
#info-icon {
    position: fixed;
    bottom: 88px;
    right: 24px;
    background-color: #04AA6D;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#info-icon:hover {
    background-color: #059862;
    color: #ffffff;
    transform: scale(1.05);
}

/* Modal Styling */
#infoModal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 12px;
}

#infoModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#infoModal .close:hover,
#infoModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Subpages navbar & button helpers */
.center2, .btn-container-nav {
    justify-content: center;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 3;
    position: fixed;
    bottom: 20px;
    width: fit-content;
}
.btn-skrt-pos {
    position: fixed;
    bottom: 20px;
    left: 15px;
    z-index: 3;
}

/* ==========================================================
   KIOSK PIN ACCESS MODAL (Main Index Style)
   ========================================================== */
#pinModal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 24px 20px;
    border: 1px solid #888;
    max-width: 360px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
    text-align: center;
}

#pinModal .close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

#pinModal .close:hover,
#pinModal .close:focus {
    color: #000;
    text-decoration: none;
}

.pin-keypad-btn {
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 10px;
    height: 46px;
    font-size: 20px;
    font-weight: bold;
    color: #202124;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.12s;
}

.pin-keypad-btn:hover {
    background-color: #f1f3f4;
    border-color: #bdc1c6;
}

.pin-keypad-btn:active {
    background-color: #e8eaed;
    transform: scale(0.95);
}

/* ==========================================================
   EMBEDDED WINDOWS (Fotky jedál, Rozvrhy)
   Same blurred, fading backdrop as the Obsadzovník. The page inside the transparent iframe
   draws its own floating cards and opening animation (it gets a "kiosk-window-open" message).
   ========================================================== */
.kiosk-frame-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: kioskFrameFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-frame-backdrop.active {
    display: block;
}

.kiosk-frame-backdrop iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    padding: 0;
    background: transparent;
}

@keyframes kioskFrameFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* While a full-screen window is open the home screen is only seen blurred behind it: pause its
   background slideshow and floating logo so the blur is not recomputed every frame (flicker) */
html.kiosk-window-open,
html.kiosk-window-open .imggav {
    animation-play-state: paused;
}

.pin-modal-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #182238;
    border: 1px solid #24324f;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
    color: #f1f5f9;
    text-align: center;
    box-sizing: border-box;
    animation: pinModalPop 0.2s ease-out;
}

@keyframes pinModalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pin-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pin-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
}

.pin-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.pin-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.pin-modal-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1.25rem 0;
}

.pin-modal-alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.825rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    text-align: center;
}

.pin-kiosk-input {
    width: 100%;
    background: #0e1626;
    border: 1px solid #24324f;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 2rem;
    letter-spacing: 0.75rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pin-kiosk-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.pin-kiosk-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.kiosk-key-btn {
    background: #131b2e;
    border: 1px solid #24324f;
    border-radius: 10px;
    padding: 0.85rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
}

.kiosk-key-btn:hover {
    background: #1e2b47;
    border-color: #3b5078;
}

.kiosk-key-btn:active {
    background: #0284c7;
    transform: scale(0.95);
}

.kiosk-key-btn.key-action {
    color: #94a3b8;
    font-size: 1.15rem;
}

.pin-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.pin-modal-cancel-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pin-modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.pin-modal-verify-btn {
    flex: 2;
    padding: 0.75rem;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pin-modal-verify-btn:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}



/* Christmas logo (js/snow.js, admin "Vianočné logo"): media/gavxms2.png has the size of media/gav.png
   and floats the same way; it sits 8 px lower so the Santa hat stays clear of the date/time bar, and
   gives the 8 px back below, so nothing else on the screen moves */
.imggav.imggav-xmas {
    margin-top: 98px;
    margin-bottom: -8px;
}

/* Jesenná téma: falling leaves (js/snow.js), after Apple's "Falling Leaves" WebKit sample.
   A leaf waits above the screen and falls (faster and faster) until it is out of the screen at the
   bottom, while its picture swings like a pendulum hung one leaf above it. */
#kiosk-leaves {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#kiosk-leaves > div {
    position: absolute;
    top: calc(var(--leaf-size) * -2);
    width: var(--leaf-size);
    height: var(--leaf-size);
    animation-name: leafDrop;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in;
    will-change: transform;
}

#kiosk-leaves img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0; /* the global img padding */
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    transform-origin: 50% -100%;
}

html.kiosk-window-open #kiosk-leaves > div,
html.kiosk-window-open #kiosk-leaves img {
    animation-play-state: paused;
}

@keyframes leafDrop {
    0% { transform: translateY(0); }
    /* From two leaves above the screen to two below it: even swung up, the leaf is out of sight */
    100% { transform: translateY(calc(100vh + var(--leaf-size) * 4)); }
}

@keyframes leafSwing {
    0% { transform: rotate(-50deg); }
    100% { transform: rotate(50deg); }
}

@keyframes leafSwingFlipped {
    0% { transform: scale(-1, 1) rotate(50deg); }
    100% { transform: scale(-1, 1) rotate(-50deg); }
}

/* Vianočná téma: snow (js/snow.js). Each layer repeats its picture of flakes and is one picture
   taller than the screen; it moves down by exactly one picture and starts again, which looks the same,
   so the snow never ends. */
#kiosk-snow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#kiosk-snow > div {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--snow-tile) * -1);
    bottom: 0;
    background-repeat: repeat;
    background-size: var(--snow-tile) var(--snow-tile);
    animation: snowFall 60s linear infinite;
    will-change: transform;
}

html.kiosk-window-open #kiosk-snow > div {
    animation-play-state: paused;
}

@keyframes snowFall {
    0% { transform: translateY(0); }
    100% { transform: translateY(var(--snow-tile)); }
}
