/* ================================================ */
/* levels screen (Inside Game Screen) */
/* ================================================ */

.game-screen {
    background-image:
        url(../images/leveltape.png),
        url(../images/levelbg1.jpg),
        url(../images/levelbg1.jpg);
    background-position:
        center top,
        left top,
        right top;
    background-repeat:
        repeat-y;
    background-size:
        auto auto,
        50% auto,
        50% auto;
    display: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.levels-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 5;
    padding: 60px 0;
}

.level-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 160px;
    height: 180px;
    cursor: url(../images/handcursor.png), auto;
}

.level-item.unlocked:hover {
    transform: scale(1.05);
}

.level-item.locked {
    cursor: not-allowed;
    opacity: 0.8;
}

.level-bg {
    width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: center 0%;
    display: block;
}

.level-bg-lock {
    width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: center 95%;
    display: block;
}

.level-number {
    position: absolute;
    top: 30px;
    font-size: 48px;
    font-weight: bold;
    color: var(--main-font-color);
    font-family: 'gooddogplain', sans-serif;
    z-index: 10;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lock-icon {
    position: absolute;
    bottom: 30px;
    width: 40px;
    height: 40px;
    z-index: 10;
    object-fit: contain;
    pointer-events: none;
}

.level-stars {
    position: absolute;
    bottom: 20px;
    z-index: 10;
    pointer-events: none;
}

.level-item.locked .level-stars,
.level-item.locked .level-number {
    display: none;
}

.star-display {
    width: 80px;
    height: 45px;
    background-image: url(../images/options_stars_bgd.png);
    background-size: 100% 397.4%;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
}

.stars-0 {
    background-position: 0 0%;
}

.stars-1 {
    background-position: 0 31%;
}

.stars-2 {
    background-position: 0 64%;
}

.stars-3 {
    background-position: 0 100%;
}

.game-screen-back-button {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 20;
}