::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }

@font-face {
	font-family: 'Pretendard';
	font-weight: 400;
	font-display: swap;
	src: local('Pretendard Regular'), url('../fonts/Pretendard/woff2/Pretendard-Regular.woff2') format('woff2'), url('../fonts/Pretendard/woff/Pretendard-Regular.woff') format('woff');
  /* src: local('Pretendard Regular'), url('../fonts/Pretendard/woff/Pretendard-Regular.woff') format('woff'); */
}

@font-face {
  font-family: 'BMEULJIRO';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/BMEULJIRO/BMEULJIROTTF.ttf') format('truetype');
}

.pretendard {
  font-family: 'Pretendard';
}

.bmeuljiro {
  font-family: 'BMEULJIRO';
}

body {
  font-family: 'Pretendard';
}
/*
 * Sidebar
 */
 /* h1 {
  border-left: solid 15px #212529;
  padding-left: 10px;
}  */

/* 모바일일 때 */
@media (hover: none) and (pointer: coarse) { 
 
  .btn:hover, .btn:focus {
    color: #6c757d;
    background-color: inherit;
    border-color: #6c757d;
  }

  .dark_button:hover, .dark_button:focus {
    color: inherit;
  }
  
}

.navbar {
 padding-top: 0;
 padding-bottom: 0;
}

/* topbar 로고 */
.navbar-brand,
.navbar-brand:focus,
.navbar-brand:hover {
  color: inherit;
}

/* 다크 모드 스위치 스타일 재정의*/
.form-check-input:checked {
  background-color: #222529;
  border-color: inherit;
}

.dark-switch {
  cursor: pointer;
}

/* 다크 모드 버튼 스타일 */
.dark_button {
  color: inherit;
  font-weight: 600;
  border-radius: 50px;
  border-width: 0px;
  padding: 7px 9px 4px 9px;
  margin: 0px 0px 6px 0px;
}

/* 포인터(pointer) 장치 종류 확인
  coarse: 터치 스크린에 사용되는 손가락 처럼 부정확한 포인터 장치일 때
  fine: 마우스처럼 정확한 포인터 장치일 때
  none: 포인터가 없는 장치일 때
*/
@media (hover: hover) and (pointer: fine) { 
  .dark_button:hover {
    color: inherit;
    background-color: rgba(147, 147, 147, 0.5);
  }
}

/* 햄버거 슬라이드 메뉴 */
.dropdown-menu {
  color: inherit;
  /* background: #3f3f3f; */
}

.dropdown-item:hover, .dropdown-item:focus {
  /* color: inherit !important; */
  background-color: #a1a1a2 !important;
}
.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  /* background-color: #0d6efd; */
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #1e2125;
  background-color: #e9ecef;
}

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  /* left: 0; */
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

/* .post-content {
  height: calc(100vh - 167px);
} */

.sidebar-sticky {
  position: relative;
  top: 0;
  /* height: calc(100vh - 112px); */
  /* height: calc(100vh - 178px); */
  /* height: calc(100vh - 167px); */
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar-sticky .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar-sticky .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar-sticky .nav-link.active {
  color: #007bff;
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link.active {
  color: #007bff;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* .nav-item a:active {
  background-color:#007bff;
  color:#fff;
} */

/* 상단 category */
.top_category {
  width: auto;
  display: flex;
  /* 요소들의 총 넓이가 부모 넓이 보다 클 때 가로 방향으로 아이템 연속 정렬 */
  flex-wrap: nowrap; 
  overflow-x: scroll; /* 가로 스크롤 */
  align-items: center;
  padding: 0px 8px 13px 8px;
  margin: 0px 0px 0px 0px;
  /* display: none; */
}

.category_chip {
  border-radius: 5px;
  margin: 8px 4px 0px 4px;
  width: auto;
  cursor: pointer;
}

.category_chip_text{
  font-size: 1rem;
}


/* light mode 스타일 */
[data-bs-theme="light"] {
  .category_chip {
    background-color: #e2dede;
  }

  /* 포인터(pointer) 장치 종류 확인
  coarse: 터치 스크린에 사용되는 손가락 처럼 부정확한 포인터 장치일 때
  fine: 마우스처럼 정확한 포인터 장치일 때
  none: 포인터가 없는 장치일 때
  */
  @media (hover: hover) and (pointer: fine) { 
    .category_chip:hover {
      background-color: #E5E5E5;
    }

    .category_selected:hover {
      background-color: #4f4e4e;
      color: #e2dede;
    }
  }

  .category_selected {
    background-color: #4f4e4e;
    color: #e2dede;
  }
  /* 모바일일 때 */
  /* @media (hover: none) and (pointer: coarse) { 
    .btn:hover, .btn:focus {
      color: inherit;
      background-color: #FFFFFF;
    }
    
  } */
}

/* dark mode 스타일 */
[data-bs-theme="dark"] {
  .category_chip {
    background-color: #272727;
  }

  /* 포인터(pointer) 장치 종류 확인
  coarse: 터치 스크린에 사용되는 손가락 처럼 부정확한 포인터 장치일 때
  fine: 마우스처럼 정확한 포인터 장치일 때
  none: 포인터가 없는 장치일 때
  */
  @media (hover: hover) and (pointer: fine) { 
    .category_chip:hover {
      background-color: #3F3F3F;
    }

    .category_selected:hover {
      background-color: #e2dede;
      color: #0d0d0d;
    }
  }

  .category_selected {
    background-color: #e2dede;
    color: #0d0d0d;
  }

 
  
}

.subject:hover {
  background-color:#f8f9fa;
}

.list_card {
  background: rgba(147, 147, 147, 0.08);
  border: solid rgba(147, 147, 147, 0.5);
  border-top-width: 0px;
  border-right-width: 0px;
  border-left-width: 0px;
  border-bottom-width: 0.5px;
  border-radius: 0;
}

.account-info {
  font-size:.75rem;
}

.fold {
  color : grey;
  text-decoration : underline;
}

.fold:hover {
  color : darkslategrey;
  text-decoration : underline;
}

.sub_menu {
  /* color:#575757; */
  font-size:.75rem;
  /* font-weight: bold; */
}

/* 포스트 정보 스타일 */
.info_text {
  font-size:.75rem;
}

.sub_menu:hover {
  /* color:#007bff; */
  font-weight: 400;
}

.selected {
  /* background-color:#cccccc; */
  font-weight:600;
}

.share_link {
  margin: auto;
  padding: 30px 10px 40px 10px;
  text-align: center;
  background-color: inherit;
}

.share_img {
  /* width: 3.125rem; */
  width: 2.125rem;
  cursor: pointer;
  /* margin: 0 1.2rem; */
  margin: 0 0.7rem;
}

/* 숨김 처리된 댓글 */
.hidden_comment {
  display: none;
}

/* 댓글 비밀번호 확인창 */
.comment_pw_check {
  display: none;
}

/* 댓글 비밀번호 확인창 */
.comment_pw_check {
  display: none;
}

/* 수정 댓글 저장 버튼*/
.comment_modify_save_btn {
  display: none;
}

/*말줄임*/
.text-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	display: -webkit-box;
  line-clamp: 1;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	line-height: 20px;
	height: 20px;
  /* margin-bottom: 10px; */
}

.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 30%;
  font-size: 12px;
  color: inherit;
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.swiper-pagination-bullet-active {
  /* color: #fff; */
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
}

.nav_box { 
  /* display: flex; */
  height: 63px;
  /* justify-content: space-between;  */
  /* align-itrems: center;  */
  font-weight: bold; 
  font-family: "NEXON Lv2 Gothic Bold"; 
  font-size: 1.5rem; 
  /* margin: 5px; */
}

#hamburger { 
  width: 35px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.hamburger_icon {
  position : relative;
  z-index: 401;
}
#hamburger_slide_close {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.hamburger_slide_close_top {
  text-align: right;
  cursor: pointer;
}

.hamburger_slide_icon {
  width: 35px;
}

/* 슬라이드 메뉴 이외의 영역 이벤트 제어를 위한 영역 */
#dimmed { 
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  background-color:rgba(0, 0, 0, 0.5);
}

/* 뒷 배경 스크롤 락 */
.scrollLock { overflow: hidden; }

/* 햄버거 메뉴 회전 */
.btnRotate {
  transform: rotate(-90deg);
  /* transition: all 0.3s ease-in-out; */
}

.btnRotate_slide_close {
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 0.5s;
  animation-name: rotate;
  animation-duration: 2s;
}

@-webkit-keyframes rotate {
  0% { transform: rotate(-45deg); }
  25% { transform: rotate(45deg); }
  50% { transform: rotate(-45deg); }
  75% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

@keyframes rotate {
  0% { transform: rotate(-90deg); }
  /* 25% { transform: rotate(-45deg); } */
  50% { transform: rotate(-45deg); }
  /* 75% { transform: rotate(45deg); } */
  100% { transform: rotate(0deg); }
}

/* 높이 가운데를 중심으로 왼쪽<-->오른쪽 2회 흔드는 애니메이션 */
@-webkit-keyframes shaking {
  0% { transform: rotate(-45deg); }
  25% { transform: rotate(45deg); }
  50% { transform: rotate(-45deg); }
  75% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

@keyframes shaking {
  0% { transform: rotate(-45deg); }
  25% { transform: rotate(45deg); }
  50% { transform: rotate(-45deg); }
  75% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

.nav_side_menu {
  position: fixed;
  top: 0;
  right: -300px;
  z-index: 400;
  width: 300px;
  height: 100%;
  padding: 10px 10px 15px 20px;
  box-sizing: border-box;
  transition: right 0.3s ease-in-out;
  background-color: #343a40;
}

.nav_side_menu.on {
  right: 0;
}

/* icon container */
.comment_icon_div {
  margin: 0 0 3px 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
}



/* trash_body */
.trash {
  width: 100%;
  height: 70%;
  content: url( "/img/trash_body.svg" );
  margin:0 auto;
}

.trash_cap_wrap {
  margin-bottom: 20px;
}

/* trash_cap */
.trash_cap {
  position: absolute;
  cursor: pointer;
  width: 16px;
  margin-bottom: 20px;
  content: url( "/img/trash_cap.svg" );
  -webkit-transform: rotate(-0deg);
  -ms-transform: rotate(-0deg);
  transform: rotate(-0deg);
  transition: transform 250ms;
  /* 2d animation 변화 기준점 설정 :  x-axis y-axis;  % 또는 px값으로 설정이 가능한다.*/
  transform-origin: 0 5px;
}

.trash_cap:active{
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  transition: transform 250ms;
}

[data-bs-theme="light"] {
  .trash {
    content: url( "/img/trash_body.svg" );
  }

  .trash_cap {
    content: url( "/img/trash_cap.svg" );
  }

  /* 포인터(pointer) 장치 종류 확인
  coarse: 터치 스크린에 사용되는 손가락 처럼 부정확한 포인터 장치일 때
  fine: 마우스처럼 정확한 포인터 장치일 때
  none: 포인터가 없는 장치일 때
  */
  @media (hover: hover) and (pointer: fine) { 
    .comment-icon:hover {
      color : #0d6efd
    }

    .trash:hover {
      content: url( "/img/trash_body_hover.svg" );
    }
  
    .trash_cap:hover {
      content: url( "/img/trash_cap_hover.svg" );
    }
  }
  
}

[data-bs-theme="dark"] {
  .trash {
    content: url( "/img/trash_body_dark.svg" );
  }

  .trash_cap {
    content: url( "/img/trash_cap_dark.svg" );
  }

  /* 포인터(pointer) 장치 종류 확인
  coarse: 터치 스크린에 사용되는 손가락 처럼 부정확한 포인터 장치일 때
  fine: 마우스처럼 정확한 포인터 장치일 때
  none: 포인터가 없는 장치일 때
  */
  @media (hover: hover) and (pointer: fine) { 
    .comment-icon:hover {
      color : #0d6efd
    }

    .trash:hover {
      content: url( "/img/trash_body_hover.svg" );
    }
  
    .trash_cap:hover {
      content: url( "/img/trash_cap_hover.svg" );
    }
  }
}
/* 댓글에 대한 댓글 등록 요소 스타일 */
.comment_reply {
  display: none;
  background-color: inherit;
}

/* 댓글에 대한 댓글 내용 영역 스타일 */
.comment_reply_content {
  background-color: inherit;
}

/* scrollbar customize */
body::-webkit-scrollbar {
  width: 8px;  /* 세로축 스크롤바 길이 */
  height: 8px;  /* 가로축 스크롤바 길이 */
}

div::-webkit-scrollbar {
  width: 8px;  /* 세로축 스크롤바 길이 */
  height: 4px;  /* 가로축 스크롤바 길이 */
}

textarea::-webkit-scrollbar {
  width: 8px;  /* 세로축 스크롤바 길이 */
  height: 8px;  /* 가로축 스크롤바 길이 */
}

body::-webkit-scrollbar-track {
  background-color: transparent;
}

div::-webkit-scrollbar-track {
  background-color: transparent;
}

textarea::-webkit-scrollbar-track {
  background-color: transparent;
}
/* body::-webkit-scrollbar-track-piece {
  background-color: gray;
} */
body::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: gray;
}

div::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: gray;
}

textarea::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: gray;
}

body::-webkit-scrollbar-button {
  /* background-color: darkblue; */
  width: 0;
  height: 0;
}

div::-webkit-scrollbar-button {
  /* background-color: darkblue; */
  width: 0;
  height: 0;
}

textarea::-webkit-scrollbar-button {
  /* background-color: darkblue; */
  width: 0;
  height: 0;
}

/* Top, Left 방향의 이동버튼 */
/* body::-webkit-scrollbar-button:start {
  background-color: red; 
} */
/* Bottom, Right 방향의 이동버튼 */
/* body::-webkit-scrollbar-button:end {
  background-color: orange; 
} */
/* ::-webkit-scrollbar-button:vertical:increment {
}
::-webkit-scrollbar-button:vertical:decrement {
} */
/* 우측 하단의 코너 부분 */
/* body::-webkit-scrollbar-corner {
  background-color: violet; 
/* } */
/* body::-webkit-resizer {
  background-color: green;
} */

/* 타이틀 이미지 스타일 */
.title_img {
  padding-top : 66px;
  /* border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px; */
}

/* 이미지 요소 스타일 */
.img-fluid {
  border: solid 0.5px lightgray;
}

.img-fluid-title {
  max-width: 100%;
  height: auto;
  border: solid 0.5px lightgray;
}

/* 동일 주제 포스트 목록 */
.sibling_posts {
  list-style : none;
  margin : 0;
  padding : 0;
}

/* 반응형 뷰 처리를 위한 미디어 쿼리 */
/* 브라우저 폭 sm 미만 */
@media all and (max-width: 575px) {
  .nickname_input {
    margin-left: 4px;
  }

  body{
    -ms-overflow-style: none;
    }
    
   ::-webkit-scrollbar {
     display: none;
   }
}

/* 브라우저 폭 sm 이상 */
@media all and (min-width: 576px) {

}

/* 브라우저 폭 md 이상 */
@media all and (min-width: 768px) {
  .post-info-start {
    padding-right : 15%;
  }
  .post-info-end {
    padding-left : 5%;
  }

  .nickname_input {
    margin-left: 8px;
  }

}
/* 브라우저 폭 lg 이상 */
@media all and (min-width: 992px) {
  .post-info-start {
    padding-right : 15%;
  }
  .post-info-end {
    padding-left : 5%;
  }

  /* 햄버거 메뉴 아이콘 */
  /* .hamburger_icon_div {
    display : none;
  } */

}

/* 브라우저 폭 xl 이상 */
@media all and (min-width: 1200px) {
  .post-info-start {
    padding-right : 15%;
  }
  .post-info-end {
    padding-left : 5%;
  }

}

/* 브라우저 폭 xxl 이상 */
@media all and (min-width: 1400px) {
  .post-info-start {
    padding-right : 15%;
  }
  .post-info-end {
    padding-left : 5%;
  }

}

