#shramba {
    background-color: #3c3c3c;
}

.shelf-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    width: 100vw;
}

.shelf {
    position: relative;
    width: 80vw;
    height: auto;
    z-index: 100;
    padding: 12vh 0;
}

.first-shelf {
    margin-top: 40vh;
}

.shelf-fill {
    position: relative;
    width: 100%;
    height: 0.8vh;
    background-color: black;
    z-index: 100;
}

.jar, .box {
    position: absolute;
    top: 12.5vh;
    width: 7.8vw;
    height: auto;
}

#green-jar-185 {
    top: 12.5vh;
    width: 7.2vw;
    margin-left: 60%;
}

#jar-red-top-right {
    margin-left: 75%;
}

.box-with-ingridients {
    position: absolute;
    top: 12.5vh;
    width: 16vw;
    height: auto;
    margin-left: 20%;
}

#box-137 {
    margin-left: 10%;
}

#box-egg {
    margin-left: 42%;
}

#box-139 {
    width: 14vw;
    height: auto;
    top: 12.5vh;
    margin-left: 40%;
}

#nova-zaloga-box {
    top: 5.5vh;
    width: 12vw;
    height: auto;
    rotate: 30deg;
    margin-left: 60%;
}

#jar-bottom-right {
    margin-left: 80%;
}

#box-vedno-sveze {
    width: 12vw;
    height: auto;
    margin-left: 5%;
}

#jar-158 {
    margin-left: 20%;
}

.jar img, .box img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

@keyframes fillUp {
    0% { height: 0%; }
    100% { height: var(--fill-level); }
}

.jar .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 95%;
    height: 0;
    overflow: hidden;
    transition: height 2s ease-out;
    margin-left: 2%;
    align-content: center;
    background: var(--fill-color);
    z-index: 1;
}

@keyframes jarWobble {
    25% { transform: rotate(0deg) scale(1); }
    31% { transform: rotate(-2deg) scale(1.01); }
    37% { transform: rotate(2deg) scale(1.02); }
    45% { transform: rotate(-1deg) scale(1.01); }
    50% { transform: rotate(0deg) scale(1); }

    75% { transform: rotate(0deg) scale(1); }
    81% { transform: rotate(-2deg) scale(1.01); }
    87% { transform: rotate(2deg) scale(1.02); }
    93% { transform: rotate(-1deg) scale(1.01); }
    100% { transform: rotate(0deg) scale(1); }
}

.pulsingJar.pulsingWobble {
    animation: jarWobble var(--duration) ease infinite;
}

.pulsingBox.pulsingWobble {
    animation: jarWobble var(--duration) ease infinite;
}

#shramba-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    font-family: "Outfit", sans-serif;
}

#shramba-popup.active {
    display: flex;
    pointer-events: auto;
}

#shramba-popup-wrapper {
    pointer-events: auto;
}

#shramba-popup-wrapper {
    position: relative;
    width: auto;
    max-width: 900px;
    height: auto;
    background: #fff8f0;
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 40px;
    box-shadow:
            0 0 20px rgba(255, 166, 0, 0.4),
            0 0 40px rgba(255, 105, 180, 0.4),
            0 0 60px rgba(135, 206, 250, 0.3);
    color: #222;
    font-size: 1.2rem;
    text-align: center;
    z-index: 10001;
}

#shramba-popup-content {
    line-height: 1.8;
    color: #333;
    text-align: justify;
    max-height: 80vh;
    overflow-y: scroll;
    padding: 20px;
}

@keyframes popupEntrance {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

#shramba-popup.active #shramba-popup-wrapper {
    animation: popupEntrance 0.4s ease-out;
}

#shramba-popup-content::-webkit-scrollbar {
    width: 10px;
}

#shramba-popup-content::-webkit-scrollbar-track {
    background: #ffe6f0;
    border-radius: 10px;
}

#shramba-popup-content::-webkit-scrollbar-thumb {
    background: #f8a3c4;
    border-radius: 10px;
    border: 2px solid #ffe6f0;
}

#shramba-popup-content::-webkit-scrollbar-thumb:hover {
    background: #f48bb8;
}

.close-btn-shramba {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3em;
    font-weight: bold;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn-shramba:hover {
    color: #35AF60;
    transform: scale(1.6) rotate(8deg);
}

.arrow-ekipa {
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    bottom: 1%;
    animation: bounce 2s infinite;
    display: none; /* Hide navigation arrows on main site */
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    cursor: none;
}

@media only screen and (max-width: 768px) {
    #shramba-popup-wrapper {
        font-size: 0.9rem;
        padding: 60px 20px 20px 20px;
    }

    .shelf-container {
        gap: 0;
    }

    .shelf {
        width: 90vw;
        padding: 5rem 0;
    }

    .shelf-fill {
        height: 0.5vh;
    }

    .jar, .box {
        top: 5.1rem;
        width: 12vw;
    }

    #green-jar-185 {
        top: 5.1rem;
        width: 12vw;
    }

    .box-with-ingridients {
        top: 5.1rem;
        width: 25vw;
        margin-left: 16%;
    }

    #box-137 {
        margin-left: 5%;
    }

    #box-139 {
        width: 20vw;
        top: 5.1rem;
    }

    #jar-158 {
        margin-left: 23%;
    }

    #nova-zaloga-box {
        top: 1rem;
        width: 20vw;
        margin-left: 55%;
    }

    #box-vedno-sveze {
        width: 16vw;
        margin-left: 2%;
    }
}