#production-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    overflow: hidden;
}

#production-line .box {
    width: 100px;
    height: 100px;
    background-color: #f1c40f;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.station > span {
    margin-top: 10px;
}

.bowl {
    width: 80px;
    height: 80px;
    background: #e0f7fa;
    border: 2px solid #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 2px;
    padding: 4px;
    border-radius: 80px;
}

.matchstick {
    width: 4px;
    height: 20px;
    background:  #f9e2a2;
    border-radius: 2px;
    position: relative;
}

.matchstick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: red;
    border-radius: 2px;
}

.dice-img {
    width: 60px;
    height: 60px;
    margin-top: 10px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateZ(0deg);
    transition: transform 1s ease-out;
    cursor: pointer;
}

.dice-img.disabled {
    opacity: 40%;
    cursor: default;
}

.dice-roll {
    animation: rollDice 2s infinite ease-in-out;
}

.roll-all {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0073b1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.roll-all:hover {
    background-color: #005f8d;
}

.roll-all-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

@keyframes rollDice {
    0% {
        transform: rotateX(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(360deg) rotateZ(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateZ(180deg);
    }
    75% {
        transform: rotateX(90deg) rotateZ(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateZ(360deg);
    }
}
  