/* spinner */
.sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #fff;
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
.sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }

@keyframes sk-chase {
    100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot {
    80%, 100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    } 100%, 0% {
          transform: scale(1.0);
      }
}

#wait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000A;
    display: flex;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

/* end spinner */


#vote-elements .upk-item.selected{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#vote-elements .upk-item {
    transition: opacity 0.5s ease, max-height 0.5s ease; /* Pridáva animáciu pre opacity a max-height */
    opacity: 1; /* Plná viditeľnosť */
    max-height: 200px; /* Predpokladaná maximálna výška dlaždic, prispôsob podľa potreby */
    overflow: hidden; /* Zabezpečí, aby obsah mimo max-height nebol viditeľný */
    cursor: pointer !important;
}

#vote-elements .upk-item.collapse {
    opacity: 0; /* Urobí dlaždicu neviditeľnou */
    max-height: 0; /* Zabezpečí, že dlaždica zmenší svoju výšku na 0 */
    padding: 0 !important; /* Odoberie vnútorný priestor */
    margin: 0 !important; /* Minimalizuje vonkajší priestor */
    display: none;
}

#vote-elements .upk-alex-grid .upk-alex-wrap.with-selection {
    grid-row-gap: 0px !important;
    grid-column-gap: 0px !important;
}

.remove-selection {
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#vote-details label {
    width: 100%;
}

#vote-details .remove-selection {
    display: inline-block;
    border: 1px solid black;
    padding: 5px 10px;
    border-radius: 3px;
}


