body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
}
/* 로딩 화면 전체 */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
   background-color: #f1f1f1;
}

.list thumbnail{
  width: 100px;
}

.all{
   max-width: 500px;
   margin: 0 auto;
   padding: 20px 25px;
   box-sizing: border-box;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

ul,ol,li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board{
  margin-top: 10px;
  display: flex;
  align-items: center;
  padding: 10px;
}

.board-profile {
  width: 60px; /* div의 너비 */
  height: auto; /* 높이를 자동 조절 */
  overflow: hidden; /* div를 넘어가는 이미지는 숨김 */

}

.board-profile img {
  width: 100%; /* div의 너비에 맞게 조정 */
  height: auto; /* 비율 유지 */
  border-radius: 100%;
}

.board-text {
  padding: 10px;
  margin-left: 5px;
}

.name{
  margin-bottom: 3px;
  letter-spacing: 1px
}

.username{
  font-size: 13px;
}

.listTitle{
   width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 0 33px 0 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.left-group {
  display: flex; /* 왼쪽 그룹을 가로로 정렬 */
  align-items: center; /* 세로 가운데 정렬 */
  gap: 10px; /* 요소 간 간격 */
}

.left {
  position: relative;
  display: flex; /* 수평 플렉스 레이아웃 */
  align-items: center; /* 세로 가운데 정렬 */
  justify-content: space-between; /* 양쪽 끝에 정렬 */
  
}

.left a {
  display: block;
	font-weight: 400;
	font-size: 10px;
	color: #666;
	letter-spacing: -.5px;
	padding: 9px 5px;
}


.menuList {
  width: 100%;
  height:0;
  background: #f7f8fa;
  border-radius: 9px;
	border: 0.5px solid rgba(0,0,0,0);
	background: rgba(255, 255, 255, 0);
  white-space: nowrap;
  overflow-x: auto;
  font-size: 13px;
  box-sizing: border-box;
  transition: all 0.4s;
  padding-left: px;
  padding-right: px;
  opacity: 0;
}

.menuList.active {
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  opacity: 1;
  margin-top: 5px;
}


.menuTitle {
	color: #31302e;
	margin-bottom: 15px;
	font-size: 10px;
}

.tt_category li {
  display: row;
}
.tt_category li > a.link_tit {
  display: none;
}
.sub_category_list{
  display: none;
}

/* 카테고리 리스트 스타일 */
ul.category_list {
  list-style: none; /* 기본 목록 스타일 제거 */
  padding: 0; /* 내부 여백 제거 */
  margin: 0; /* 외부 여백 제거 */
  display: flex; /* 플렉스 컨테이너로 설정 */
  gap: 10px; /* 항목 간 간격 */
}

/* 개별 항목 스타일 */
ul.category_list > li {
  display: inline-block; /* 가로 배치 */
}

/* 링크 스타일 */
ul.category_list > li > a.link_item {
  text-decoration: none; /* 밑줄 제거 */
  color: #333; /* 텍스트 색상 */
  padding: 5px 10px; /* 내부 여백 */
  background-color: #ffffff;
  border-radius: 7px;
}

.c_cnt {
  display: none;
}


.profile-container {
  align-items: center; /* 세로 가운데 정렬 */
  justify-content: space-between; /* 왼쪽과 오른쪽 요소를 양 끝에 정렬 */
  border-radius: 10px;
  margin: 0px 0px 0px 0px;
}
.profile .menuBtn {
  display: flex;
  align-items: center; /* 세로 가운데 정렬 */
  margin-right: 10px; /* 오른쪽 간격 조정 */
}

.profile a {
  font-size: 15px;
}
.menuBtn i{
    color: #666;
    justify-content: center;
}

button {
  background-color: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.search {
  width: 150px;
  height: 30px;
   display: flex; /* 검색창을 가로로 정렬 */
  align-items: center; /* 세로 가운데 정렬 */
  margin-left: auto; /* 왼쪽 그룹과 최대 간격 확보 */
}
.search input {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 0 33px 0 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.search button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 20px;
  height: 20px;
}
.search img {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.notice {
  display: none;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 10px 20px;
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.02);
}

.notice a{
  padding: 0px 10px;
  background-color: rgb(0, 0, 0);
  color: #fff;
  border-radius: 10px;
  margin-left: 5px;
  
}

.notice-title{
  font-size: 13px;
  font-weight: bold;
  padding: 3px 0px;
}

.notice div {
  font-size: 12px;
  list-style: decimal;
  line-height: 1.6;
}

.title-notice {
  font-weight: bold;
  font-size: 15px;
}

.content-notice{
  line-height: 10px;
  font-size: 13px;
}

/*etc*/

.etc .wrapper .first a .text {
  position: absolute;
  left: 6%;
  bottom: 7%;
  max-width: 100%;
  font-size: 16px;
  transition: all 0.2s;
  border-radius: 100px;
  background-color: rgba(255, 255, 255 ,0.8);
  color:black;
  font-size: 9.5px;
  padding: 4px 12px;
}

.etc .wrapper a img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}


.etc .wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.etc .wrapper a{
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: none;
}

.etc .wrapper a:nth-of-type(1),
.etc .wrapper a:nth-of-type(2),
.etc .wrapper a:nth-of-type(3) {
  display: block;
}
.etc {
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 10px 20px 15px 20px;
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.02);
}

.etc-title{
  font-size: 12px;
  font-weight: bold;
  padding: 3px 0px 7px 0px;
}



.image-box {
  display: flex; /* 가로로 배치 */
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center; /* 세로 중앙 정렬 */
  margin-top: 25px;
}
.box {
  width: 62px; /* 기본 크기 */
  height: 62px;
  padding: 5px;
  border-radius: 10px;
}

.articleTitle{
    font-size: 13px;
    font-weight: bold;
    background-color: #fff;
    display: inline-block;
    flex-shrink: 0;
    padding: 8px 18px;
    margin-top: 10px;
    margin-left: 6px;
    margin-bottom: 10px;
    border-radius: 12px 12px 0px 0px;
}

.container_postbtn {
    display: none !important;
}
.tt_box_namecard {
    display: none !important;
}
.tt-comment-cont {
  display: none !important;
}

.article{
    padding: 10px;

}

.paging {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 10px;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
  margin-bottom: 30px;
}

#tt-body-index .paging {
  display: none;
}

.numbox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.paging .no-more-prev,
.paging .no-more-next{
  color: #ccc;
}

.paging .numbox {
  display: flex;
  column-gap: 10px;
}

.paging .numbox .num span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background-color: white;
  display: flex;
}

.paging .numbox .num .selected {
  background-color: rgb(139, 139, 139);
  color: white;
}

/* 추가된 부분 */




.wrapper {
  max-width: 500px;
  margin: 30px auto;
  padding: 10px;
}

.item {
  display: flex;
  margin-bottom: 20px;
}

.item .chat {
  flex: 1;
}

.item .profile img{
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.item .name {
  font-size: 12px;
  margin-bottom: 5px;
}

.item .chatcontents {
  display: flex; 
  justify-content: flex-start;
  align-items: flex-end;
}

.item .chatcontents .time {
  white-space: nowrap;
}

.item .contents {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  width: auto;
}

.item .time {
  font-size: 10px;
  color: rgb(190, 190, 190);
  margin-left: 10px;
}

.text-content{
  font-size: 12px;
}

.item .media-content {
  width: 100%;
  border-radius: 3px 15px 15px 3px;
}

.item .media-content:last-child {
  width: 100%;
  border-radius: 3px 15px 15px 15px;
}

.item .text-content {
  display: flex;
  align-items: flex-end;
}



.item .text-content .t {
  border-radius: 0px 12px 12px 12px ;
  background-color: white;
  padding: 10px 13px;
}

.item .text-content.multi:last-child .t{
  border-radius: 3px 20px 20px 20px;
}

.item .text-content.multi .t {
  border-radius: 3px 20px 20px 3px;
  background-color: #7846FF;
  color: #e2d6ff;
}

.item .text-content .time{
  
}

.item audio::-webkit-media-controls-play-button,
.item audio::-webkit-media-controls-panel {
  background-color: white;
  color: #000;  
}

.item .audio-wrapper .file-name {
  color: white;
  text-decoration: none;
  background-color: black;
  border-radius: 100px;
  padding: 6px 18px;
  width: fit-content;
  display: flex;
  align-items: center;
  line-height: 1;empty-cells: ;
  transition: all 0.4s;
  font-size: 12px;
  position: relative;
}

.item .audio-wrapper .file-name .time {
  position: absolute;
  bottom: 0;
  left: calc(100%);
}

.item .audio-wrapper .file-name:hover {
  background-color: white;
  color: black;
}

.item .audio-wrapper .file-name img {
  width: 20px;
  filter: invert(1);
  margin-right: 7px;
  transition: all 0.4s;
}

.item .audio-wrapper .file-name:hover img {
  filter: none;
}

.item .audio-wrapper audio {
  width: 330px;
  max-width: 100%;
}

.popular {
  display: none;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 10px 20px 15px 20px;
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
}

.popular-title {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 0px 7px 0px;
}

.popular .wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.popular .wrapper a{
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: none;
}
.popular .wrapper a:nth-of-type(1),
.popular .wrapper a:nth-of-type(2),
.popular .wrapper a:nth-of-type(3) {
  display: block;
}

.popular .wrapper a .text {
  position: absolute;
  left: 6%;
  bottom: 7%;
  max-width: 100%;
  font-size: 16px;
  transition: all 0.2s;
  border-radius: 100px;
  background-color: rgba(255, 255, 255 ,0.8);
  color:black;
  font-size: 9.5px;
  padding: 4px 12px;
}
@media (max-width: 390px) {
  .popular .wrapper a .text {
    font-size: 9px; /* 폰트 사이즈를 9px로 변경 */
  }
}
@media (max-width: 350px) {
  .popular .wrapper a .text {
    font-size: 7px; /* 폰트 사이즈를 9px로 변경 */
  }
}
.popular .wrapper a img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}



.post-list-wrapper {

}

#tt-body-index .post-list-wrapper {
  display: none;
}

.post-list-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 15px;
  margin-right: 10px;
  display: flex;            
  align-items: center;       
  justify-content: flex-start;
  gap: 5px;
}

.post-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  
}

.post-item {
  aspect-ratio: 1;
  position: relative;
  overflow:hidden;
}

.post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.post-item-title {
  position: absolute;
  bottom: 6%;
  left: 7%;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  font-size: 12px;
  display:flex;
  line-height: 1;
}

.prev-next {
  display:flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 30px;
  margin-bottom: 30px;
}

.prev-next a {
  background-color: white;
  border-radius: 15px;
  padding: 5px 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease; /* Smooth transition for opacity */
  font-size: 12px;
}

.prev-next a:hover {
  opacity: 1; /* Full opacity on hover */
}

#tt-body-category .post-list {
  display: grid;
}

#tt-body-index .popular {
  display: block;
}

#tt-body-index .notice {
  display: block;
}

#tt-body-category .board {
  display: none;
}

#tt-body-category .etc {
  display: none;
}

#tt-body-page .etc {
  display: none;
}

#tt-body-guestbook .etc {
 display: none;
}

#tt-body-tag .etc {
  display: none;
}

#tt-body-search .board {
  display:none;
}

#tt-body-search .etc {
  display:none;
}




