/* dark.css - 전체 다크테마 스타일 */

/* 기본 body 배경, 텍스트 */
body, #nt_body {
    background-color: #000000 !important;
    color: #ddd !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 링크 */
a {
    color: #bb86fc;
    text-decoration: none;
}

a:hover, a:focus {
    color: #d0aaff;
    text-decoration: underline;
}

/* 헤더, 푸터 배경 */
header, footer {
    background-color: #1f1f1f !important;
    color: #ccc;
}

/* 입력 폼 */
input, textarea, select {
    background-color: #222 !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}

input::placeholder, textarea::placeholder {
    color: #888 !important;
}

button {
    background-color: #333 !important;
    color: #eee !important;
    border: 1px solid #555 !important;
    cursor: pointer;
}

button:hover, button:focus {
    background-color: #444 !important;
}

/* 표 */
table {
    background-color: #1c1c1c !important;
    color: #e0e0e0 !important;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #333 !important;
    padding: 0.5rem;
}

/* 구분선 */
hr {
    border-color: #444 !important;
}

hr.hr::after {
    background-color: #9a66cc; !important;
}

/* 본문 컨테이너 */
.nt-container {
    background-color: transparent !important;
}

/* 사이드 네비게이션 (LNB) */
#nt_lnb {
    background-color: #121212 !important;
    color: #ddd !important;
    border-right: 1px solid #333;
    padding-top: 0rem;
}

#nt_lnb a {
    color: #bbb !important;
    text-decoration: none;
}

#nt_lnb a:hover,
#nt_lnb a:focus {
    color: #bb86fc !important;
    text-decoration: underline;
}

#nt_lnb .nt-container {
    background-color: transparent !important;
}

#nt_lnb ul.float-left li,
#nt_lnb ul.float-right li {
    margin-bottom: 0.5rem;
}

#nt_lnb .dropdown a {
    cursor: pointer;
}

#nt_lnb h3.sr-only {
    color: transparent !important;
}

/* 네비게이션, 메뉴 바 */
nav, .navbar, .menu {
    background-color: #1f1f1f !important;
}

/* 컨텐츠 제목 스타일 */
h1, h2, h3, h4, h5, h6 {
    color: #bb86fc !important;
}

/* 위젯 제목, 게시판 제목 등 */
.h3.f-lg.en a,
.h3.f-lg.en {
    color: #bb86fc !important;
}

/* 리스트 아이템 */
.na-list li {
    color: #ccc !important;
}

/* 버튼 셋업 스타일 */
.btn-wset a.btn-setup {
    color: #888 !important;
    background-color: transparent !important;
    border: none !important;
}

.btn-wset a.btn-setup:hover {
    color: #bb86fc !important;
}

/* 캐러셀 컨트롤 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* 배너 */
.basic-banner .item .img-item img {
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
}

.basic-banner .item .img-item img:hover {
    transform: scale(1.05);
}

/* 알림 배지 */
.nt-noti-label b {
    background-color: #bb86fc !important;
    color: #000 !important;
}

/* 기타 텍스트 밝기 조절 */
.text-muted {
    color: #888 !important;
}

/* 스크롤바 (크롬 계열) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

/* 추가적으로 필요하면 여기에 확장 */

/* 예시: 링크 포함 위젯 리스트 등 세부 조정은 별도 요청해 주세요 */
#nt_title {
    background-color: #121212 !important; /* 다크 배경 */
    color: #bbb !important;              /* 밝은 회색 텍스트 */
    padding-bottom: 0.5rem;              /* 원래 pb-2 유지 */
}

#nt_title .page-title {
    color: #bb86fc !important;           /* 포인트 컬러 */
}

#nt_title a {
    color: #bb86fc !important;           /* 링크 색상 */
    text-decoration: none;
}

#nt_title a:hover,
#nt_title a:focus {
    color: #d0aaff !important;
    text-decoration: underline;
}

/* 빵부스러기(breadcrumb) 배경도 투명 유지 */
#nt_title .breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}


.wrapper {
    background-color: #121212 !important;
}


/* 사이드 메뉴, 일반 메뉴 링크 색상 */
#nt_lnb a,
#nt_lnb li a,
nav a,
.menu a {
    color: #ddd !important; /* 밝은 회색으로 변경 */
}

/* 호버 시 강조 */
#nt_lnb a:hover,
#nt_lnb li a:hover,
nav a:hover,
.menu a:hover {
    color: #bb86fc !important; /* 밝은 보라색 계열로 강조 */
}


/* 글쓰기 페이지 다크테마 최적화 */

/* 리스트 그룹 배경 및 테두리 */
.list-group-item {
    background-color: #121212 !important;
    color: #ddd !important;
    border-color: #333 !important;
}

/* 제목 input */
input.form-control,
textarea.form-control,
.custom-file-input ~ .custom-file-label,
.input-group-text {
    background-color: #222 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* placeholder */
input::placeholder,
textarea::placeholder {
    color: #888 !important;
}

/* 버튼 기본 */
.btn-basic {
    background-color: #333 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* 버튼 hover */
.btn-basic:hover,
.btn-basic:focus {
    background-color: #444 !important;
    color: #fff !important;
}

/* custom-checkbox 라벨 */
.custom-control-label span {
    color: #ddd !important;
}

/* 파일 업로드 input label */
.custom-file-label {
    background-color: #222 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* input-group-append 버튼 아이콘 색상 */
.input-group-append .btn i {
    color: #bb86fc !important;
}

/* input-group-text 라벨 색상 */
.input-group-text {
    background-color: #333 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* 파일 업로드 table background */
#variableFiles {
    background-color: #121212 !important;
}

/* table 내부 border 제거 또는 어두운색 */
#variableFiles td {
    border: none !important;
}


/* 반응형 영상 wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    padding-top: 25px;
    height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}


.list-thumb img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}



.hidden-thumbnail {
    display: none;
}



.img-wrap {
    overflow: hidden;
}


.custom-thumb .img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율, 필요시 조절 */
    background-color: #000000;
}

.custom-thumb .img-wrap .img-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.custom-thumb .img-wrap .img-item img.img-render {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #000000;
}


.bg-light {
    background-color: #222222 !important; /* 배경을 어두운 회색으로 변경 */
}

.border-top {
    border-top: 1px solid #444444 !important; /* 테두리를 어두운 회색으로 변경 */
}

.text-muted {
    color: #cccccc !important; /* 글자색을 밝은 회색으로 변경 */
}


.text-muted {
    color: #cccccc !important; /* 글자색을 밝은 회색으로 변경 */
}


.bg-primary-mobile {
	background-color: #1f1f1f !important;
}


/* 사이트 링크 버튼 스타일 */
.sitelink-button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitelink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f34079 40%, #fc894d);
  color: #fff;
  font-family: "Codec cold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  box-sizing: border-box;
}

.sitelink-button:hover {
  background: linear-gradient(135deg, #fc894d, #f34079);
  transform: translateY(-2px);
}

@media screen and (max-width: 769px) {
  .sitelink-button-wrap {
    display: none;
  }
}


.bg-white {
  background-color: #1f1f1f !important;
}


.rank-medal-wrap {
  position: absolute;
  top: 5px;
  left: 20px;
  z-index: 5;
  pointer-events: none; /* 클릭 무시 */
}

.rank-medal {
  width: 70px !important;
  height: auto !important;
  pointer-events: none; /* 이미지 자체 클릭 무시 */
  z-index: 6; /* 랭크 메달이 이미지 위로 올라오도록 */
}

@media (max-width: 767px) {
  .rank-medal {
    width: 40px !important;
  }
  .rank-medal-wrap {
    left: 10px !important;
  }
}

.owl-carousel {
  position: relative; /* 필수 */
}

.owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;

  pointer-events: none; /* 네비 전체에 기본 클릭 무시 */
}

.owl-prev, .owl-next {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;

  pointer-events: auto; /* 버튼 영역만 클릭 가능 */
}



@media (max-width: 576px) {
  .widget-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.rainbow-banner {
  display: none; /* 기본은 숨김 */
  background-color: #f1f1f;
  border: 1px solid #f1f1f;
  padding: 5px 0 5px 0;
  font-size: 17px;
  height: 40px;
  text-align: center;
  max-width: 1400px; /* 원하는 최대 너비로 조정 */
  margin: 0 auto;
}

.rainbow-text {
  background: repeating-linear-gradient(90deg, violet, indigo, blue, green, yellow, orange, red, violet);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 4s linear infinite;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 모바일 반응형 대응 및 모바일에서만 표시 */
@media (max-width: 768px) {
  .rainbow-banner {
    display: block; /* 모바일에서만 표시 */
    font-size: 15px;
    height: auto; /* 높이 자동 조정 */
    padding: 12px 0 14px 0;
  }

  .rainbow-text img {
    height: 25px;
  }
}
