/* 기본 폰트 / 배경 */
body {
  font-family: 'Nanum Gothic', sans-serif;
  background: #f8f4f0;
  color: #333;
  margin:0; padding:0;
}

/* 컨테이너 */
.container {
  max-width: 500px;
  margin: 30px auto;
  text-align: center;
  padding: 16px;
}

/* 공통 버튼 스타일 (.btn) */
.btn {
  padding: 8px 16px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  background: #a3d9a5;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.btn:hover { transform: translateY(-3px); background: #8bc98b; }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* 장르 버튼 */
.genre-buttons { margin: 20px 0; }
.genre-btn { background: #f5b76e; color: #fff; }
.genre-btn:hover { background: #e89c4d; }

/* 하드모드 버튼 */
.secret-btn { background: #f06292; color: #fff; }
.secret-btn:hover { background: #e34b7a; }

/* 유저 정보 */
.user-info { font-weight: bold; margin: 10px 0; }

/* 추가 메뉴 버튼 */
#extraMenuBtn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1500;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
}

/* 모달 */
.modal {
  display: none;
  position: fixed;
  z-index: 1400;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* 실제 팝업 박스 */
.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 18px 18px 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  position: relative;
  animation: fadeInScale 220ms ease-out;
}

/* 닫기 버튼 (우상단) */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: #555;
  cursor: pointer;
}
.modal-content .close:hover { color: #ff5252; }

/* 내부 버튼들(모달 안) */
.modal-content button {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  background: #a3d9a5;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
}
.modal-content button:hover { background: #8bc98b; transform: translateY(-3px); }

/* 게임 리스트 스타일 */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.game-list button { width: 200px; }

/* popup-buttons (추가메뉴 내부) */
.popup-buttons { display:flex; flex-direction:column; gap:12px; margin-top:10px; }

/* 애니메이션 */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* 반응형(작은 화면) */
@media (max-width:480px){
  #extraMenuBtn { right: 12px; bottom: 12px; padding: 10px; }
  .modal-content { padding: 14px; width: 95%; }
  .game-list button { width: 100%; }
}

/* 구글 로그인 버튼 스타일 */
#btnOpenLogin {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  background-image: url('https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 20px;
  padding-left: 40px;
  transition: background-color 0.2s ease;
}

#btnOpenLogin:hover {
  background-color: #f0f0f0;
}
