
/* 전체화면 모드를 위한 스타일 */
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  min-height: 100%;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* 스탠드얼론 모드에서 추가적인 스타일 */
body.standalone-mode {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* 모바일에서 주소창을 숨기기 위한 스타일 */
@media screen and (max-width: 768px) {
  .body-fix-osahan-footer {
      padding-bottom: 70px; /* 푸터 높이 만큼 여유 공간 */
      overscroll-behavior-y: contain;
  }
  
  /* 스크롤 시 보이는 부분 */
  .home {
      height: 100vh;
      height: calc(var(--vh, 1vh) * 100);
      overflow-y: auto;
      overscroll-behavior-y: contain;
  }
  
  /* 푸터 고정 */
  .fix-osahan-footer {
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 999;
  }
}

/* profile modal */
.modal-backdrop{
  z-index: 100;
}
/* Profile container */
.profile {
    margin: 0;
  }
  
  /* Profile sidebar */
  .profile-sidebar {
    padding: 20px 0 10px 0;
    background: #fff;
  }
  
  .profile-userpic img {
    float: none;
    margin: 0 auto;
    width: 50%;
    height: 50%;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    border-radius: 50% !important;
  }
  
  .profile-usertitle {
    text-align: center;
    margin-top: 20px;
  }
  
  .profile-usertitle-name {
    color: #5a7391;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 7px;
  }
  
  .profile-usertitle-job {
    text-transform: uppercase;
    color: #5b9bd1;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .profile-userbuttons {
    text-align: center;
    margin-top: 10px;
  }
  
  .profile-userbuttons .btn {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 15px;
    margin-right: 5px;
  }
  
  .profile-userbuttons .btn:last-child {
    margin-right: 0px;
  }
      
  .profile-usermenu {
    margin-top: 30px;
  }
  
  .profile-usermenu ul li {
    border-bottom: 1px solid #f0f4f7;
  }
  
  .profile-usermenu ul li:last-child {
    border-bottom: none;
  }
  
  .profile-usermenu ul li a {
    color: #93a3b5;
    font-size: 14px;
    font-weight: 400;
  }
  
  .profile-usermenu ul li a i {
    margin-right: 8px;
    font-size: 14px;
  }
  
  .profile-usermenu ul li a:hover {
    background-color: #fafcfd;
    color: #5b9bd1;
  }
  
  .profile-usermenu ul li.active {
    border-bottom: none;
  }
  
  .profile-usermenu ul li.active a {
    color: #5b9bd1;
    background-color: #f6f9fb;
    border-left: 2px solid #5b9bd1;
    margin-left: -2px;
  }
  
  /* Profile Content */
  .profile-content {
    padding: 20px;
    background: #fff;
    min-height: 460px;
  }



  .floating-footer {
    position: fixed;
    bottom: 53px;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}



.scroll-container {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

.scroll-container::-webkit-scrollbar {
  /* WebKit */
  width: 0;
  height: 0;
}

.button-container {
  display: inline-flex;
  padding: 10px 0;
}

.scroll-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s;
}
a.scroll-button{
  color:#555;
}

.scroll-button.active {
  background-color: #023047;
  color: white;
}


/* 글쓰기 */

.write-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.write-content {
  background-color: white;
  border-radius: 5px;
  width: 100%;
  max-width: 800px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.write-header {
  padding: 5px;
  border-bottom: 1px solid #dee2e6;
}

.write-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 스크롤바 스타일링 (선택사항) */
.write-body::-webkit-scrollbar {
  width: 10px;
}

.write-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.write-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.write-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#writeButton, #editorButton{
  /* 우측 아래 fixed */
  position: fixed;
  bottom: 70px;
  right: 10px;
  z-index:1;
  width:100px;
}

.card-title{
  /* 한줄만 elipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.line2{
  /* 세줄만 elipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

}
.line3{
  /* 세줄만 elipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

}

p{
  padding:0px !important;
  margin:0px !important;
}