:root {
  --navbar-gradient: linear-gradient(to bottom right, #5523b9, #7e3dc8);
  --confirm-button: #5523b9;
  --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --button-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
  --link-radius: 10px;
  --link-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  --link-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.3);
  --external-bg-color: #e74c3c;
  --external-bg-hover: #c0392b;
  --text-color-light: #ffffff;
}

/* 전체 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #080808;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  color: #b9be49;
}

img {
  max-width: 80%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 1px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.65rem;
  margin-bottom: 0.7rem;
}

ol,
ul {
  padding-left: 1rem;
}
ol {
  list-style-position: inside;
}

.container {
  width: 768px;
  max-width: 768px;
  margin: 0px auto;
  padding: 0 20px;
  animation: fadeIn 0.8s ease-out forwards;
}

.content {
  margin: 1rem 0;
}

/* 네비게이션 바 최상위 속성스타일 */
.navbar {
  max-width: 768px;
  background-image: var(--navbar-gradient);
  /* background-color: #fff; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* width: 100%; */
  margin: 0px auto;
  border-radius: 10px;
  animation: fadeIn 0.8s ease-out forwards;
}

/* 페이드인 애니메이션 */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.navbar-logo {
  text-align: center;
}

.navbar-logo p {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
}

.navbar-menu {
  display: flex;
  list-style: none;
  justify-content: center;
}

.navbar-menu li {
  margin-left: 1.5rem;
}

.navbar-menu a {
  color: #333;
  font-weight: 500;
}

.navbar-menu a:hover {
  color: #007bff;
}

/* style-button 에 대한 설정 시작*/
.sb-page-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 15px 0;
}

.sb-link-item {
  padding: 15px 20px;
  background-color: #f8f9fa;

  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  display: block;
  box-shadow: var(--button-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease-in-out,
    background-color 0.5s ease;
  will-change: transform, box-shadow; /* 성능 최적화 */
}

.sb-link-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--button-shadow-hover);
}

.sb-page-link {
  color: rgb(255, 255, 255);
  font-weight: 500;
  font-size: 1.1em;
  margin-bottom: 5px;
}
/* style-button 에 대한 설정 끝*/

.more-btn {
  display: inline-block;
  background: rgb(85, 84, 84);
  margin-top: 15px;
  color: #fff;
  padding: 8px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

/* more-btn의 bounce 애니메이션 */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  .container {
    width: auto; /* 또는 width: 100%; */
    padding: 0 15px; /* 좌우 여백 조정 */
  }

  h1 {
    font-size: 1.8rem; /* 모바일용 h1 폰트 크기 */
    line-height: 1.3; /* 모바일용 h1 줄 간격 */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .navbar {
    max-width: 100%;
    padding: 0.5rem;
    border-radius: 0; /* 모바일에서는 둥근 모서리 제거 또는 유지 */
  }

  .navbar-logo p {
    font-size: 1.5rem; /* 모바일용 로고 폰트 크기 */
  }

  .navbar-menu {
    flex-direction: column; /* 메뉴 세로 정렬 */
    align-items: center; /* 메뉴 가운데 정렬 */
  }

  .navbar-menu li {
    margin-left: 0; /* 세로 정렬 시 왼쪽 마진 제거 */
    margin-bottom: 0.5rem; /* 메뉴 아이템 간 간격 */
  }

  .sb-link-item {
    padding: 12px 18px;
  }

  .sb-page-link {
    font-size: 1em;
  }
}

/* 스티키 버튼 컨테이너 */
.sticky-btn-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

/* 스티키 버튼 스타일 */
.sticky-ext-link {
  display: block;
  background-color: var(--external-bg-color);
  color: var(--text-color-light);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--link-radius);
  box-shadow: var(--link-shadow);
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.sticky-ext-link:hover {
  background-color: var(--external-bg-hover);
  color: var(--text-color-light);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--link-shadow-hover);
}
