#levelSelector .popupInner {
    flex-direction: column;
}

#levelBoxes {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
}

.levelBox {
    width: calc(100% / 3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.levelName {
    width: 100%;
    font-family: 'Bebas Neue';
    font-size: 22px;
    text-align: center;
}
.levelBook {
    text-transform: none !important;
    font-family: 'PT Sans','sans-serif';
    font-size: 12px;
    margin: 5px;
    font-weight: bold;
}
.levelScore span {
    margin: 0 5px;
}

.levelBox .levelPreview {
    display: block;
    margin: 0 auto;
    position: relative;
    margin-bottom: 35px;
}

.levelPreview .lock {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -30px;
    pointer-events: none;
}

.levelBox .levelPreview img {
    filter: none;
    transition: all 2s;
}

.levelBox .levelPreview.previewLocked img, .levelBox[data-scene=coming_soon] .levelPreview img {
    filter: saturate(0.5) brightness(0.5);
}

#finalQuizLevelBox {
    width: 100%;
}

.finalQuizBtn {
    width: 165px;
}

.levelBox .btn.btnLocked {
    cursor: url('../images/ico_lock_cursor.png'), no-drop;
}
.levelBox .btn.btnLocked:hover {
    transform: scale(1);
}

.levelBox .btn .lock, #finalQuizLevelBox .btn .lock {
    width: 16px;
    height: 16px;
    position: absolute;
    right: 32px;
    top: 20px;
}

.lock {
    position: relative;
}

.lock:before, .lock:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    transition: 1s all;
}

.lock:before {
    z-index: 1;
    background-image: url('../images/ico_lock-open.png');
    margin-top: -50%;
}
.lock.opened {
    animation: disappearLock 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

.lock.opened:before {
    animation: openLock 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

.levelAchievements {
    bottom: -35px;
    height: 40px;
    position: absolute;
    background: rgb(128 34 31 / 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    left: 0px;
    right: 0px;
    flex-direction: column;
}

@keyframes openLock {
    0% {
        margin-top: -50%;
    }
    100% {
        margin-top: -75%;
    }
}

@keyframes disappearLock {
    0% {
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}



.lock:after {
    z-index: 2;
    background-image: url('../images/ico_lock.png');
}