/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 800px;
}

h1 {
    font-size: 24px;
    color: #4caf50;
    margin-bottom: 20px;
}

/* 버튼 스타일 */
button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* 로딩 애니메이션 */
.loading {
    font-size: 24px;
    font-weight: bold;
    color: #4caf50;
    margin-top: 20px;
    animation: fadeInOut 1s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 결과 스타일 */
#result {
    margin-top: 20px;
}

.row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.group-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.group-boxes {
    display: flex;
    gap: 10px;
}

/* 자리 번호 박스 */
.box {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 애니메이션 효과 */
.box.show {
    opacity: 1;
    transform: scale(1);
}
