body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #fdfbf7;
    font-family: sans-serif;
}

.card {
    position: relative;
    z-index: 2;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

button {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.confetti-btn {
    background-color: #ff6b6b;
    color: white;
    font-size: 16px;
}

/* 공통 컨테이너 (클래스명 예: .container) */
.container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 40px;          /* 요청하신 30~40px 범위 적용 */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    text-align: center;
}

.container h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 24px;
    color: #111;
}

.form-group {
    display: flex;
    flex-direction: column; /* 세로로 차곡차곡 쌓이게 설정 */
    gap: 12px;              /* input과 버튼 사이 간격 */
    align-items: stretch;   /* 너비를 가득 채우거나 맞춤 */
}

.input-code {
    width: 100%;
    padding: 14px 16px;     /* 입력창 높이와 여백을 주어 사이즈 키우기 */
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.input-code:focus {
    border-color: #666;
}

/* .check-btn 스타일 */
.check-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #f1f3f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.check-btn:hover {
    background-color: #e4e6eb;
}

/* footer(공통) - 화면 맨 아래 고정 및 폰트 사이즈 10px */
.footer {
    position: fixed;        /* 화면 하단에 고정 */
    bottom: 20px;           /* 하단에서 약간 띄우기 */
    font-size: 10px;        /* 폰트 사이즈 10px */
    color: #777;
    text-align: center;
    width: 100%;
}


/* ballons */
/* 풍선들이 움직일 배경 영역 (화면 전체를 채우도록 설정) */
.balloon-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* 내용물 뒤로 가도록 설정 */
  pointer-events: none; /* 마우스 클릭이 풍선을 뚫고 아래로 전달되게 함 */
}

/* 개별 풍선 디자인 및 애니메이션 설정 */
/* 배경 풍선 컨테이너 */
.balloon-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* 카드(중앙 박스)보다 뒤에 오도록 하되 배경보다는 위로 설정 */
  pointer-events: none;
}

/* 개별 풍선 스타일 */
.balloon {
  position: absolute;
  bottom: -100px;
  width: 45px;
  height: 55px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: floatUp 6s ease-in infinite;
  opacity: 0.85;
}

/* 풍선 꼭지와 끈 느낌 */
.balloon::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 4px;
  height: 6px;
  background-color: inherit;
  border-radius: 0 0 2px 2px;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 22px;
  width: 1px;
  height: 12px;
  background-color: #b2bec3;
}

/* 위로 둥실둥실 올라가는 애니메이션 */
@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

/* 
cake
*/
/* 케이크 전체 컨테이너 (중앙 정렬용) */
.cake {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 50px auto;
}

/* 받침대 접시 */
.plate {
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 240px;
  height: 15px;
  background-color: #dfe6e9;
  border-radius: 10px;
}

/* 케이크 아랫단 시트 */
.layer-bottom {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 200px;
  height: 50px;
  background-color: #e17055; /* 빵 시트 색상 */
  border-radius: 10px 10px 0 0;
}

/* 케이크 중간단 (크림 또는 잼) */
.layer-middle {
  position: absolute;
  bottom: 65px;
  left: 20px;
  width: 160px;
  height: 45px;
  background-color: #fab1a0;
  border-radius: 8px 8px 0 0;
}

/* 케이크 윗단 (아이싱) */
.layer-top {
  position: absolute;
  bottom: 110px;
  left: 40px;
  width: 120px;
  height: 40px;
  background-color: #ffeaa7;
  border-radius: 10px 10px 5px 5px;
}

/* 촛대(초) */
.candle {
  position: absolute;
  bottom: 150px;
  left: 95px;
  width: 10px;
  height: 30px;
  background-color: #74b9ff;
  border-radius: 3px;
}

/* 촛불 불꽃 (애니메이션 추가) */
.flame {
  position: absolute;
  top: -15px;
  left: -2px;
  width: 14px;
  height: 18px;
  background-color: #ffeaa7;
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.6s infinite alternate;
}

/* 불꽃이 흔들리는 효과 */
@keyframes flicker {
  0% { transform: scale(1); background-color: #fdcb6e; }
  100% { transform: scale(1.15); background-color: #e17055; }
}


/* 
garland
*/
/* 가랜드 전체 줄 컨테이너 */
.garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0 15px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 10;
}

/* 줄(실) 표현용 가상요소 */
.garland::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #b2bec3; /* 줄 색상 */
}

/* 개별 삼각형 깃발 디자인 */
.flag {
  width: 35px;
  height: 45px;
  /* 삼각형 모양 만들기 (clip-path 활용) */
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  /* 바람에 살짝 흔들리는 애니메이션 */
  animation: swing 3s ease-in-out infinite alternate;
}

/* 살짝 살랑살랑 흔들리는 효과 */
@keyframes swing {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}

/* 
팝업 모달
*/
/* 화면 전체를 어둡게 덮는 반투명 배경 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* 팝업 창 본체 (지금 만드신 카드랑 비슷한 감성으로!) */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #ff7675;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}