/* 기본 스타일 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  /* 배경 애니메이션에 스크롤이 생기지 않도록 */
  position: relative;
  background-color: #1e1e1eb6;
  /* 기본 배경색 어둡게 설정 */
}

/* 파티클 배경 */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* 배경으로 설정 */
}

/* 로그인/등록 래퍼 */
/* 중앙 정렬용 래퍼 */
.logo-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  gap: 20px;
  /* 위아래 간격 조정 */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-50px);
    /* 위에서 아래로 */
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-box {
  background: rgba(30, 30, 30, 0.85);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 350px;
  text-align: center;
  color: #ffffff;

  /* 애니메이션 추가 */
  animation: fadeInUp 1.2s ease-out;
}

.logo-box:hover {
  transform: scale(1.2);
  transition: transform 0.7s ease-in-out;
}

/* 입장하기 버튼 스타일 */
.enter-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 55px;
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
}

/* 버튼 호버 효과 */
.enter-button:hover {
  background: linear-gradient(135deg, #ff9900, #ff6600);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255, 140, 0, 0.5);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/homepage/images/introbg.png');
  /* ← 배경 이미지 경로 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  /* 투명도 50% */
  z-index: -1;
  /* 내용보다 뒤에 깔리도록 */
}

.top-message,
.bottom-message {
  color: #fff;
  font-size: 1.2rem;
  max-width: 1000px;
  line-height: 1.6;
  opacity: 0.95;
}
.top-message {
  font-weight: 800;
  font-size: 2.3rem;
  margin-bottom: 50px;
}

.bottom-message {
  font-size: 1.1rem;
  margin-top: 50px;
}

.homepage-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.homepage-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff99007e;
  color: #ffffff94;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.homepage-button:hover {
  background-color: #e07f00ab;
}

/* 앱 설치 유도 모달 전체 배경 */
#installModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* 모달 콘텐츠 박스 */
#installModal .install-modal-content {
  max-width: 400px;
  margin: 100px auto;
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

/* 설치 버튼 */
#installModal .install-button {
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 닫기 버튼 */
#installModal .close-button {
  background: none;
  border: none;
  color: gray;
  margin-top: 15px;
  cursor: pointer;
}
