/* ===== 제비뽑기 게임 전용 스타일 ===== */

#game {
    width: 600px; /* Set to 600px as requested */
    margin: 0 auto;
}

.settings {
    text-align: center;
    margin-bottom: 20px;
}

#lots-inputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.settings .buttons {
    margin-bottom: 15px;
}

.lot-input-group {
    margin-bottom: 10px;
    width: 280px;
}

.lot-input-group label {
    font-weight: bold;
    color: #555;
    font-size: 15px;
}

.settings .lot-option {
    width: 200px;
    height: 42px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background: white;
    border-radius: 3px;
    box-sizing: border-box;
    margin-left: 10px;
}

/* Common button styles from other games */
.bok-button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    line-height: 1.2;
    height: 42px;
    box-sizing: border-box;
}

.bok-button:hover {
    background-color: #e0e0e0;
}

.start-button-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

#game-board {
    margin-top: 20px;
}

.lots-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center the lots */
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding-top: 5px; /* For hover effect */
    padding-bottom: 10px; /* For scrollbar */
}

.lot {

    width: 40px;

    height: 200px;

    perspective: 600px;

    cursor: pointer;

}



.lot-inner {

    position: relative;

    width: 100%;

    height: 100%;

    transition: transform 0.6s;

    transform-style: preserve-3d;

}



.lot.flipped .lot-inner {

    transform: rotateY(180deg);

}



.lot-front,

.lot-back {

    position: absolute;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 5px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.3);

    font-size: 16px;

    font-weight: bold;

}



.lot-front {

    background: #deb887; /* Wooden color */

}



.lot:hover .lot-front {

    box-shadow: 0 4px 8px rgba(0,0,0,0.4);

}

.lot:not(.flipped):hover .lot-inner {
    transform: translateY(-2px);
}



.lot-back {

    background: #f0f0f0; /* Light gray for previously revealed */

    color: #333;

    transform: rotateY(180deg);

    writing-mode: vertical-rl;

    text-orientation: mixed;

    padding: 10px;

    box-sizing: border-box;

}



.lot.just-revealed .lot-back {

    background-color: #ffcc99; /* Light Orange for just-revealed */

    color: #3a2b1f;

}
