@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto&display=swap');

:root {
  --main-color: #898DD9;
	--second-color: #f7f7f7;
  --border-color: #ebebeb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Pretendard', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
 	background-color: #f3f5f7;
  color: #666;
  font-size: 8px;
	-ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

/* reset */
ul,ol,li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
	width: 100%;
	max-width: 700px;
	min-height: 100vh;
	height: 100%;
	margin: 0 auto;
	background-color: white;
	display: flex;
	flex-direction: column;
}

#entry0Comment {
	width: 100%;	
}

.article-wrap + .paging {
	display: none;
}

#tt-body-page .contents {
	padding: 0;
}

#tt-body-page .paging {
	display: none;
}

.link_tit, .c_cnt, .postbtn_ccl {
	display: none!important;
}

figure.imageblock.alignCenter {
    margin: 0 auto 5px;
}

.container_postbtn .postbtn_like {
	border: none!important;
}

.wrap_btn_share, .txt_like, .btn_subscription {
	display: none!important;
}

.container_postbtn .btn_post .ico_like {
	margin: 3px 0 0 0!important;
}

.container_postbtn .btn_post .txt_like {
	font-family: 'Poppins', 'Pretendard', sans-serif!important;
}

.entryNotice .container_postbtn {
	display: none;
}

/* guest */
.guestbook {
	width: 100%;
	padding: 1%;
}

textarea {
	width: 100%;
	height: 100px;
	resize: none;
	border: none;
	background-color: var(--second-color);
	border-radius: 0;
	outline: none;
	font-family: 'Poppins', 'Pretendard', sans-serif;
  color: #666;
	padding: 8px;
	font-size: 8px;
}

.btn-submit input {
	float: right;
	outline: none;
	background: none;
	padding: 5px 10px;
	border: none;
	font-family: 'Poppins', 'Pretendard', sans-serif;
	font-size: 8px;
	color: #666;
	font-weight: normal;
}

.guest-info {
	margin-bottom : 10px;
}

.guest-info input {
	width: 100px;
	height: 20px;
	border: 1px solid #ebebeb;
	font-size: 8px;
	font-family: 'Poppins', 'Pretendard', sans-serif;
	color: #666;
	padding: 0 3px;
	margin-right: 6px;
}

.guest_general .message {
	width: 46%;
	max-width: 500px;
	height: auto;
	background-color: var(--main-color);
	color: #fff;
	border-radius: 22px 22px 22px 3px;
	padding: 11px 18px;
	margin: 10px 20px 10px 0;
}

.guest_secret .message {
	width: 46%;
	max-width: 500px;
	height: auto;
	background-color: var(--main-color);
	color: #fff;
	border-radius: 22px 22px 22px 3px;
	padding: 11px 18px;
	margin: 10px 20px 10px 0;
}

.guest_admin {
	text-align: right;
}

.guest_admin .name,.date {
	display: none;
}

.guest_admin .message {
	width: 46%;
	max-width: 500px;
	height: auto;
	padding: 11px 18px;
	padding: 11px 18px;
	margin: 10px 0 10px auto;
	color: #000;
	background-color: var(--second-color);
	border-radius: 22px 22px 3px 22px;
	text-align: left;
}

.secretBtn {
	display: inline-block;
}

.secretBtn input {
	display: none;
}

.secretBtn input:checked + label {
	font-weight: bold;
}

/* tag */
.taglog {
	padding: 10px;
}

.taglog ul {
	display: flex; 
	flex-wrap: wrap;
}

.taglog ul li a {
	display: inline-block;
	background-color: var(--second-color);
	color: #666;
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 5px 10px;
	border-radius: 8px;
	transition: all .3s ease-in-out;
}

.taglog ul li a span:before {
	content: "#"
}

.tagTrail {
	width: 100%;
	padding: 0 20px;
	color: #999;
}

.tagTrail a {
	transition: all .5s ease-in-out;
	font-weight: bold;
}

.tagTrail a:hover {
	color: var(--main-color);
	font-weight: bold;
}

.tagTrail {
	display: flex; 
	flex-wrap: wrap;
	padding: 16px;
}

.tagTrail:not a {
	display: none;
}

.tagTrail a:before {
	content: "#"
}

/* article */
.article p {
	text-align: center;
}

.titleWrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
}

.titleWrap h2 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 85%;
	font-size: 10px;
}

.titleDate {
	color: #999;
}

.category a {
	display: block;
	color: #0071DB;
	padding: 5px 10px;
	border-radius: 8px;
}

.article p {
	padding: 0 20px;
}

.entryNotice {
	width: 100%;
}

/* header */
#header {
	width: 100%;
	max-width: 700px;
	background-color: white;
	z-index: 9999;
	position: fixed;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 60px;
	padding: 0 16px;
}

#header .left {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#header .left ul {
	width: 100px;
	display: flex;
}

.shadow {
	border-bottom: 1px solid var(--second-color);
}

.btn-home {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 34px;
	padding:0 12px;
	color: #fff;
	background-color: var(--main-color);
	border-radius: 24px;
	font-weight: 700;
	margin-right: 2%;
}

/* profile */
.profile {
  position: relative;
  width: 100px;
  height: 55px;
  border-radius: 30px;
  transition: all .4s ease-in-out;
  cursor: pointer;
	margin-right: -5px;
}

.profile .icon {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
}

.profile .icon svg {
  fill: #999;
}

.profile-inner {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.profile-img {
  position: relative;
  width: 34px;
  height: 34px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.profile-img::after {
  content:"";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
}

/* dropdown */
.dropdown-list {
	z-index: 99;
	opacity: 0;
  pointer-events: none;
  position: absolute;
  border-radius: 8px;
  transition: all .4s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--border-color);
  width: 100px;
  top: 65px;
  font-size: 8px;
	background-color: white;
}

.profile.active .dropdown-list {
  opacity: 1;
  pointer-events: all;
}

.category_list > li {
  padding: 5px 5px;
  overflow: hidden;
  white-space: nowrap;
}

.category_list  li a {
  padding: 4px 4px;
  display: block;
  transition: all .4s ease-in-out;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-list li a:hover {
  background-color: var(--main-color);
  color: white;
}

.sub_category_list li {
	padding:0!important;
}

.sub_category_list li a:before {
	content:"-"
}

.dropdown-list li a:hover {
  background-color: var(--main-color);
  color: white;
}

/* search */
.search {
  position: relative;
  width: 120px;
  height: 36px;
	margin-left: 2%;
}

.search input {
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
  border-radius: 8px;
  padding: 0 10px 0 25px;
  font-size: 10px;
  font-family: 'Poppins', 'Pretendard', sans-serif;
  color: #666;
	background-color: #f7f7f7;
	color: #666;
	border-radius: 20px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  fill: #999;
}

/* list */
.contents {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	padding: 1%;
	margin-top: 60px;
}

.post-item {
	float: left;
	width: 25%;
	padding: 1%;
}

.post-item a {
	display: block;
	text-decoration: none;
}

.post-item a:hover .title,
.post-item a:focus .title {
	text-decoration: underline;
}

.post-item .thum {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	background-color: #f8f8f8;
}

.post-item .thum img {
	width: 100%;
	height: auto;
}

.post-item .title {
	display: block;
	overflow: hidden;
	max-width: 98%;
	margin-bottom: 4px;
	padding-top: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.4;
}

.post-item .excerpt {
	display: block;
	overflow: hidden;
	max-width: 95%;
	margin-bottom: 15px;
	text-overflow: ellipsis;
	font-size: 0.8125em;
	line-height: 1.5rem;
	color: #999;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.post-item .meta {
	display: block;
	font-size: 0.75em;
	color: #999;
}

.post-item .meta span:before {
	content: "";
	display: inline-block;
	width: 2px;
	height: 2px;
	margin: 0 8px 0 5px;
	background-color: #d2d2d2;
	vertical-align: middle;
}

.post-item .meta span:first-child:before {
	content: none;
}

.post-item.protected .thum:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 47px;
	margin: -24px 0 0 -17px;
	background: url(./images/ico_package.png) no-repeat 0 -120px;
	background-size: 120px auto;
}

.thum-title {
	display: block;
	width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  /* 말줄임 적용 */
	font-size: 10px;
	font-weight: bold;
	letter-spacing: -0.5px;
}

.article-wrap {
	width: 100%;
}

/* paging */
.paging {
	width: 100%;
	text-align: center;
	padding: 20px 0;
}

.paging .numbox {
	display: flex;
	align-items: center;
	justify-content: center;
}

.paging .num {
	width: 15px;
	height: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.paging .selected {
	font-weight: bold;
	color: var(--main-color);
}

/* protect */
.protect-thum {
	width: 100%;
}

.entryProtected {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 80px 0;
}

.entryProtected input {
	width: 100px;
	background: none;
	outline: none;
	border: none;
	border-bottom: 1px solid var(--border-color);
	margin-left: 10px;
	padding: 5px;
}

/* copyright */
.copyright {
	position: fixed;
	bottom: 10px;
	right: 10px;
	font-size: 8px;
}

@media (max-width: 700px) {
  .wrap {
    border: none;
  }
	#header {
		padding: 0 2%;
	}
}