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


/* body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 65px;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
} */

body.no-scroll {
  overflow: hidden;
  /* 스크롤 방지 */
}

ul,
li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}



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


.card-comments img {
  width: 4rem;
}

/* 상단 네비 바 */
.top-navbar {
  display: flex;
  align-items: center;
  background-color: #c08403;
  padding: 10px 10px;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}


/* 왼쪽 사이드 메뉴바 부분  버튼 */
.menu-btn {
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* 오른쪽 아이콘 버튼 */
.icon-group {
  display: flex;
  align-items: center;
  margin-left: 200px;
  /* 왼쪽에서 200px 떨어짐 */
}

.icon-group a {
  margin-left: 10px;
  color: white;
  text-decoration: none;
  font-size: 20px;
}

/* 사이드바 스타일 */
.side-navbar {
  width: 0;
  height: 100vh;
  position: fixed;
  top: 64px;
  left: 0;
  background-color: #343a40;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 999;
  border-right: 2px solid #555;
}

.side-navbar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  transition: 0.3s;
}

.side-navbar a:hover {
  background-color: #495057;
}

/* 서브메뉴 숨김 */
.submenu {
  display: none;
  padding-left: 20px;
}

/* 사이드바가 펼쳐질 때 */
.side-navbar.open {
  width: 250px;
}

/* 메뉴 버튼 스타일 */
.menu-btn {
  position: fixed;
  top: 5px;
  /* 메뉴와 일치하도록 조정 */
  left: 60px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s;
  z-index: 1000;
  /* 버튼도 body 위에 배치 */
}

.menu-btn:hover {
  background-color: #218838;
}

/* 오른 쪽 사이드 메뉴바 부분 */
.right-menu {
  width: 150px;
  /* 초기 너비 150px */
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #343a40;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
  border-left: 2px solid #555;
}

/* 메뉴가 닫힐 때 (width: 0) */
.right-menu.closed {
  width: 0;
  /* 메뉴 닫힘 */
  border-left: none;
}

/* 버튼이 기본적으로 메뉴 안쪽에 위치하도록 설정 */
.toggle-btn {
  position: fixed;
  top: 50%;
  right: 150px;
  /* 기본 위치를 메뉴 안쪽으로 설정 */
  transform: translateY(-50%);
  background-color: #343a40;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1100;
  transition: 0.3s;
  border-radius: 5px 0 0 5px;
}

/* 버튼이 메뉴 바깥으로 이동할 때 */
.toggle-btn.outside {
  right: 0;
  /* 메뉴가 닫힐 때 버튼을 오른쪽 끝으로 이동 */
}

/* 버튼을 메뉴 내부로 배치하는 클래스 */
.toggle-btn.inside {
  right: 150px;
}

/* 메뉴 펼칠 때 */
.right-menu.open {
  width: 150px;
}

/* 메뉴 내부 항목 */
.right-menu a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: white;
  font-size: 18px;
  text-align: center;
  transition: 0.3s;
}

.right-menu a:hover {
  background-color: #495057;
}