/* 배경 애니메이션 */
body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: sans-serif;
  color: white;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 별 떨어짐 */
.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 0;
}

.star {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall 2s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* 컨테이너 스타일 */
.container {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* 버튼 스타일 */
button {
  background-color: #4caf50;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.05);
  background-color: #66bb6a;
  box-shadow: 0 0 8px #fff;
}

/* 결과 영역 */
#result {
  margin-top: 30px;
  display: flex;
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: flex-start; /* 세로는 위쪽 정렬 */
  gap: 60px;
  opacity: 1;
  transition: opacity 1s ease;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

/* 좌우 컬럼 */
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  /* margin: 0 auto;  제거 */
}

/* 각 그룹 박스 */
.group {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 10px;
  width: 120px;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* 좌석 번호 박스 */
.box {
  background: #4caf50;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center; /* 가로 중앙 */
  align-items: center;     /* 세로 중앙 */
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;     /* 줄바꿈 방지 */
  overflow: hidden;        /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* 넘칠 때 ... 표시 (선택사항) */
  user-select: none;       /* 선택 방지 (선택사항) */
}

/* 그룹 등장 애니메이션 클래스 */
.group.hidden {
  opacity: 0;
  transform: scale(0.8);
}

.group.fade-in {
  animation: groupFadeIn 0.6s ease forwards;
}

@keyframes groupFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}