body {
    margin: 0;
    height: 100vh;
    background: black;
    overflow: hidden;
    position: relative; /* nutné pro absolutně pozicované děti */
    font-family: Roboto;
    color: white;
}

.landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* aby kliku nebylo blokováno */
}

.hide{
    display: none !important;
}

.cover{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 11;
}

#baseImage {
    z-index: 1;
}

#snowImage {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.02s linear;
    pointer-events: none;
    will-change: opacity; /* zrychlení GPU při prolínání */
}

#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5; /* nad obrázky, pod klikou */
}


.snowflake {
    position: fixed;
    top: -50px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    will-change: transform; /* zrychlení animace vloček */
}

@keyframes fall {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(var(--drift)) translateY(110vh) rotate(360deg); }
}

.crank-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.crank {
    width: 400px;
    height: 400px;
    transform-origin: 50% 50%;
    cursor: grab;
}

.crank:active {
    cursor: grabbing;
}

.pfHist{
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 5vh;
    font-size: 20px;
}

.obalNahledy {
    display: flex;
    width: 100%;
    overflow: auto;
    /*margin-top: 80px;*/
    height: 60vh;
}

.obalNahledy img {
    padding: 0 10px;
}

h1{
    font-size: clamp(3vh, 5.5vw, 7vh);
    text-align: center;
    padding: 3% 5%;
    margin: 0px;
}


a{
    color: white;
    
}

.tooltip{
    z-index: 9;
}

.help{
    position: absolute;
    top: 55%;
    left: 50.5%;
    width: 200px;
}


.obalLoader{    
    position: absolute;
    top: 50%;
    left: 50%;
}


#counter{
    font-size: 10vh;
    font-weight: bold;
    width: 100%;
    display: flex;
    position: absolute;
    z-index: 15;
    margin: 0px auto;
    justify-content: center;
    opacity: 0.7;
}

.loader {
    display: block;
    position: relative;
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin-left: -50%;
    margin-top: -50%
}
/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media (orientation: portrait) {
.crank {
    width: 30vh;
    height: 30vh;
}

.help{
    width: 350px;
}

.pfHist{
    font-size: 5vw;
}

}