@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

html,
body {
  font-family: 'Pretendard', 'sans-serif' !important; 
  /* overflow-x: hidden; */ /* Prevent scroll on narrow devices */
}

body {
  padding-top: 50px;
}

b {
  font-weight:700;
}

a.nodec {
  text-decoration: none;
  color:inherit;
}

.link {
  cursor:pointer;
  text-decoration: none; /* 기본 밑줄 제거 */
  border-bottom: 1px dashed #4a7eb7;
  color: #007bff;
}

a.link:hover {
  text-decoration: none;              /* hover 시에도 밑줄 겹침 방지 */
  border-bottom: 1px dashed #2a5d9f;  /* hover 시 더 진한 대시 밑줄 */
  color: #2a5d9f;                     /* hover 시 색상 진하게 */
}

table tr td {white-space: normal; word-break: normal;}
table.table tr th {
  vertical-align: middle; text-align:center;
}
table.table.table thead tr th {
  border-bottom: 2px solid #99B4E4 !important;
}
.tlf {
  width:auto;
  table-layout: fixed
}

[contenteditable]:focus {
    outline: 0px solid transparent;
}

[placeholder]:empty::before {
    content: attr(placeholder);
    color: #555; 
}

[placeholder]:empty:focus::before {
    content: "";
}

a.title {text-decoration: none; color:#000;}

.calc-history-time {
  width: 83px;
  color: #999;
  font-size: 0.9rem;
  display: inline-block;
}

/**********************************************
 * 메뉴, 네이게이션 관련
 * *******************************************/

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 50px; /* Height of navbar */
    bottom: 0;
    left: -200px;
    width: 200px;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #563d7c;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: left, visibility;
  }
  .offcanvas-collapse.open {
    left: 0;
    visibility: visible;
  }
}

li.nav-item {margin-bottom:0;}
.nav-link.dropdown-toggle {white-space: inherit;}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: hidden;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.navbar-dark {background-color:#333;}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }

.lh-100 { line-height: 1; }
.lh-125 { line-height: 1.25; }
.lh-150 { line-height: 1.5; }

.text-cancel { text-decoration: line-through; }

.w-90 {width:90%;}

.cut {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.helper {position:absolute; border:1px solid #999; border-radius:3px; background:RGBA(255,255,255,.9); z-index:5;}
#helper2 {position:absolute; border:1px solid #999; border-radius:3px; background:RGBA(255,255,255,.9); z-index:5; pointer-events: none;}

/* blink effect */
@keyframes blink {
    0%   {opacity: 1;}
    25%  {opacity: 0;}
    50%  {opacity: 1;}
    75%  {opacity: 0;}
    100% {opacity: 1;}
}

.blink {
  position:static;
  animation: blink 1s linear 250ms;
  opacity: 1;
}

.click {cursor:pointer;}
.hiding {display:none;}

#basis header {display: block; margin-top: .5rem; font-weight: bold}
#basis p::before {content: "◾"; display: block; position: absolute; left: -1rem}
#basis p {position: relative; margin-left: 1rem; margin-top: .3rem; margin-bottom: .2rem;}

#basis p.step2::before {content: "▸"; display: block; position: absolute; left: -1rem}
#basis p.step2 {position: relative; margin-left: 1.4rem; margin-top: .0rem; margin-bottom: .2rem;}

/* bootstrap override */
.input-group-text {
  background-color: #7596d3;
  color:#fff;
  border:0;
}

.input-lable-effect {
  background-color: #7596d3;
  color:#fff;
  border-radius: 5px;
  padding:3px 5px;
  margin-right:3px;
}

/* bootstrap extent */
.shadow-xs {box-shadow:0.5px 0.5px 3px #dadada}
.shadow-s {box-shadow:1px 1px 1px #ddd}
.x-scroll {overflow-x:auto; white-space: nowrap}

@media (min-width: 1450px) {
  .d-xxl-block {
      display: block!important;
  }

  .d-xxl-inline {
      display: inline!important;
  }
}

@media (max-width: 991.98px) {
  .d-collapse-inline {
    display: inline !important;
  }
}

@media (max-width: 1119.98px) {
  .table-lg-sm th,
  .table-lg-sm td {
    padding: 0.3rem; /* Bootstrap 4 table-sm의 padding 값 */
  }
}

.text-sm-md {
  font-size: 0.875rem; 
}

@media (min-width: 992px) {
  .text-sm-md {
    font-size: 1rem; 
  }
}

.break-word {word-break: keep-all; overflow-wrap: break-word;}

.copy.url {
  background-position: center;
  transition: background 0.8s;
}
.copy.url:hover {
  background: #ffeeba radial-gradient(circle, transparent 1%, #eee3cd 1%) center/15000%;
}
.copy.url:active {
  background-color: #fff3cd;
  background-size: 100%;
  transition: background 0s;
}

.glaze {
  background-position: center;
  transition: background 0.8s;
}

.glaze:hover {
  background: #fff radial-gradient(circle, transparent 1%, #eee 1%) center/15000%;
}

.glaze:active {
  background-color: #fff;
  background-size: 100%;
  transition: background 0s;
}

#search {width:100px; max-width:40%; border:0px; background-color:RGBA(255,255,255,.1)}
#search::placeholder {color:RGBA(255,255,255,.5);}

.searchLabel {display:none; font-size:0.8rem; color:RGBA(255,255,255,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.searchLabel.dark {color:RGBA(0,0,0,.3);}

#userLayer {position:absolute; width:300px; top:55px; right:10px; background-color:RGBA(30,30,30,.9); color:#fff; display:none;}
#userLayer hr {background:#444;}
#userLayer a {color:#fff;}
#userLayer a:hover {text-decoration:none;}

@media (min-width: 992px) {
  body {
    padding-top:56px; 
  }
  #search {
      display: none;
  }
}

@media (max-width: 991.8px) {
  #userLayer {
    width:200px; top:50px; right:5px; font-size:0.9em;
  }
}

@media (max-width: 380px) {
  #search {
      display: none;
  }
}

#copyUrlButton {
  font-size:1rem; letter-spacing: -1px;
  float:right;
  color:#7596D3;
  margin-top:4px;
}

.sidePromotion {
  width:16%;
  padding-bottom: 10px;
  position:absolute; 
  background:#f9f9f9; 
  right:20px; 
  top:200px; 
  box-shadow:#bbb 1px 1px 2px; 
  text-align:center;
}

.sidePromotion img.banner{ width:70%; margin-top:10px; }
.sidePromotion img.icon{ width:30%; }

@media screen and (max-width: 1800px){
  .sidePromotion { width:8%; }
  .sidePromotion img.icon{ width:70%; }
  .sidePromotion img.banner{ width:90%; }
}

#search {width:100px; max-width:40%; border:0px; background-color:RGBA(255,255,255,.1)}
#search::placeholder {color:RGBA(255,255,255,.5);}

.searchLabel {display:none; font-size:0.8rem; color:RGBA(255,255,255,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.searchLabel.dark {color:RGBA(0,0,0,.3);}

#userLayer {position:absolute; width:300px; top:55px; right:10px; background-color:RGBA(30,30,30,.9); color:#fff; display:none;}
#userLayer hr {background:#444;}
#userLayer a {color:#fff;}
#userLayer a:hover {text-decoration:none;}

@media (min-width: 992px) {
  #search {
      display: none;
  }
}

@media (max-width: 991.8px) {
  #userLayer {
    width:200px; top:50px; right:5px; font-size:0.9em;
  }
}

/* 330픽셀 이하일 때 */
@media (max-width: 330px) {
  #search {
      display: none;
  }
}

.dpSm {display:none;}  
.forMobile {display:none}

@media (max-width: 575.98px) {
  .forMobile {display:block}
  .dpLg {display:none;}
  .dpSm {display:table-cell;}  
}

@media print {
  .forMobile {display:none}
  .dpLg {display:table-cell;}
  .dpSm {display:none;}  
}

.result {display:inline-block;}

@media (max-width: 410px) {
  .result table {font-size:0.8rem;} 
}

.adWrap { min-height:100px; padding:0px}

.intro .nav {display:block !important; overflow-y:auto; white-space: nowrap}
.intro .nav li {display:inline-block; margin-right:10px; font-weight:bold; padding-right:10px; margin-bottom:15px; font-size:1.1rem;}
.intro .nav li a {display:block; text-decoration: none; color:#555;}
.intro .nav li a.active {color:#000;}
.intro .nav li a.active::after {content:""; position:relative; top:4px; display:block; height:3px; width:100%; background-color:#000; margin:0 auto;}

.addNaverMainBtn {display: none}
.addNaverMainBtn.rightop {float: right}

/*********************************************
/* 게시판
*********************************************/
@media (max-width: 576px) {
  .sm-row {margin-left:-15px; margin-right:-15px;}
  .table,.pagination, .modal {font-size:0.9rem;}
  .smaller {font-size:0.7rem;}

  /* 게시판에 있던 CSS인데 꼭 필요한지 모르겠어서 일단 주석처리
  .form-control {
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
  }

  .btn {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
  }
  */
}
.table th {text-align:center;}
.table thead th {vertical-align: middle}
.table td, th {vertical-align: middle}

a.page-link {color:#555;}

.attachFile {display:table; padding:8px 14px; margin:6px 0px; border:1px solid #ddd;}
.attachFile a {color:black; margin:10px;}

#modFloat {display: none}
#modFloat.active {display: block}

.commentDeleteButton {display:none;}
.comment {word-break: break-all;}
.comment:hover .commentDeleteButton {display:inline;}

.speech-bubble {
  position: absolute;
  background: #ededed;
  border-radius: .4em;
  top: 22px;
  left: -30px;
  white-space:nowrap;
  display:none;
  outline: none;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-color: #ededed;
  border-top: 0;
  margin-left: -10px;
  margin-top: -10px;
}

.mw-parser-output img {max-width:100%;}

#updateNotice {
  top: 50px;
  left: 0px;
  visibility: hidden;
  position: fixed;
  width: 100%;
  background: RGBA(80, 119, 227, .85);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
#updateNotice.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  animation: noticeFadein 0.5s, noticeFadeout 0.5s 2.5s;
}

@keyframes noticeFadein {
  from {top: -30px; opacity: 0;}
  to {top: 50px; opacity: 1;}
}

@keyframes noticeFadeout {
  from {top: 50px; opacity: 1;}
  to {top: -30px; opacity: 0;}
}

#historyBox {position: absolute; font-size: 0.8rem; background: RGBA(248,249,250,.9); top: -15px; right: 0px;box-shadow: 1px 1px #ddd; max-width:100%; z-index:10; display:none}
#historyList {margin-top: 5px; width: 0; height: 0; overflow-y: auto;}
#historyList .history {height: 26px}
#historyList .history span {display:inline-block; vertical-align: bottom}

.input-header.checkbox::before {
    font-family: FontAwesome;
    content: "\f0c8";
    position: relative;
    top: 1px;
    margin-left: 2px;
    margin-right: 5px;
}

.input-header.checkbox.checked::before {
    content: "\f14a";
}

.input-header {
    flex: 1 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: .5rem;
}

.input-header.checkbox {
    cursor: pointer;
}

.input-header::after {
    content: "";
    display: block;
    flex: 1 0 auto;
    height: 2px;
    background: #ccc;
    margin: 0 0 0 0.5rem;
}

.skeleton-loader {
  display: inline-block;
  width: 100%;
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
