@charset "utf-8";
/* CSS Document */


main {margin: 0 auto;
    text-align: center;
		margin-top:110px;
}

/* 본문 */

.posts {width: 800px;
    padding: 20px;
    margin: 0 auto;
}

article {justify-content: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
	width: 800px;
	font-size: 12px;
}

article p {
margin: 0;
margin-bottom: -20px;
font-size: 12px;
color: #31495e;
}


article h2 {justify-content: center;
    margin: 0 0 10px;
    font-size: 20px;
	color: #6684a5;
}

small2 {justify-content: center;
    font-size: 12px;
	color: #232323;
	background-color: #dee5eb;
	padding: 8px 20px;
	border-radius: 8px;
}

small {font-weight: 700;
	color:#fff;
	background-color: #a4c2dd;
	padding: 8px;
	border-radius: 8px;
}

.button {font-size: 12px;
	padding: 8px 16px;
	color: #fff;
	background-color:#d9e7f6;
	border: 1px solid #d0ddec;
	text-decoration: none;
	transition: 0.3s ease;
}

.button:hover {
	color: #fff;
	background-color:#afbac7;
}

.contentss {
margin-top: 50;
font-size: 12px;
text-align: left;
line-height: 1.8;
width: 100%;
}

.contentss a {
text-decoration: none;
color: #61778e;
transition: background-color 0.3s;
}

.contentss a:hover {
text-decoration: none;
color: #fff;
background-color: #61778e;
}


/* 글목록 */

.post-list {
	width: 80%;
	margin: 0 auto;
}

.post-list ul {justify-content: center;
    list-style: none; 
    padding: 0;
    margin: 0;
}

.post-list li {
    position: relative;
    padding-left: 30px; 
}

.post-list li::before {
    content: "\f005"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    position: absolute;
    left: 0;
    top: 0;
    color: #b3cdf0; 
	font-size: 12px;
}

.post-list li:first-child::before {
    top: 10px; 
}

.post-list ul li {justify-content: center;
    margin: 10px 0;
	text-align: left;
	border-bottom: 1px solid #dddddd;
	padding-bottom: 10px;
}


.post-list ul li:first-child {
    border-top: 1px solid #dddddd; 
	padding-top: 10px;
}

.post-list ul li a {
    text-decoration: none; /* 밑줄 제거 */
    color: #707070; /* 기본 텍스트 색상 */
    font-size: 16px; /* 텍스트 크기 */
    transition: color 0.3s ease, font-size 0.3s ease;
}

.post-list ul li a:hover {
    color: #b3cdf0; /* 호버 시 텍스트 색상 */
    font-size: 16px; /* 호버 시 텍스트 크기 */
	font-weight: 900; 
}


/* 페이지네이션 */


.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
	font-size: 10px;
}

.pagination a {
	font-size: 10px;
    margin: 0 5px;
    padding: 7px 15px;
    text-decoration: none;
    border: 1px solid #d0ddec;
    color: #a1c1e5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a.active {
    background: #a1c1e5;
    color: white;
    border-color: #a1c1e5;
}

.pagination a:hover {
    background-color: #a1c1e5;
    color: white;
	font-weight: 700;
}




/* 코멘트 */

.comments {margin: 0 auto;
    margin-top: 20px;
    padding: 10px;
    background-color: #d6e0ea;
    border: 1px solid #ddd;
    border-radius: 5px;
	width: 80%
}

.comments ul {
    list-style: none;
	text-align: left;
	padding: 8px 16px;
}

.comments button {
    font-size: 12px;
	padding: 5px;
	color: #585858;
	background-color:#d9e7f6;
	border: 1px solid #d0ddec;
	text-decoration: none;
	transition: 0.3s ease;
}

.comments li strong {color: #91a9bf;
	font-size: 15px;
	padding: 3px 5px;
	
}

.comments li {
	font-size: 13px;
	border-bottom: 1px solid #c6d6e2;
	padding: 10px 0;
}

.comments li data {
	font-size: 10px;
	background-color: #dde9f2;
	padding: 3px 12px;
	justify-content: center;
	color: #525252;
	border-radius: 8px;
}

.comments p {
    margin: 5px 0;
    font-size: 14px;
}

.comment-form {
    margin-top: 10px;
}

.comment-form textarea {
    width: 80%;
    height: 50px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
	font-family: roboto;
	font-size: 12px;
	background-color: transparent;
}

.comment-form input {
    width: 80%;
    height: 20px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
	font-family: roboto;
	font-size: 12px;
	background-color: transparent;
}

.comment-form button {
	width: 82%;
    padding: 8px 16px;
    background-color: #d9e7f6;
    color: white;
    border-radius: 4px;
	border: 1px solid #d6e0ea;
    cursor: pointer;
    transition: background-color 0.3s;
	margin-top:-20px;
}

.comment-form button:hover {
    background-color: #b8ccdd;
}


@media (max-width: 1024px) {
	
		main {width:  90%}
	
    .posts,
    article {
        width: 100%;
    }

    .post-list {
        width: 95%;
		margin-left: 20px;
    }
	
	.post-list li {
    padding-left: 30px; 
}

    .comments {
        width: 95%;
		margin-left: -10px;
    }

    .comment-form textarea,
    .comment-form input,
    .comment-form button {
        width: 95%;
		margin-left: -10px;
    }
}

@media (max-width: 1024px) {
    .posts,
    article {
        width: 95%;
        margin: 0 auto; /* 중앙 정렬 */
    }

    .post-list {
        width: 100%;
        margin-left: 0; /* 불필요한 왼쪽 여백 제거 */
    }
	
		.post-list li {
    padding-left: 30px; 
}

    .comments {
        width: 95%;
        margin: 0 auto; /* 중앙 정렬 */
		margin-left: -10px;
    }

    .comment-form textarea,
    .comment-form input,
    .comment-form button {
        width: 100%; /* 부모 요소에 맞게 조정 */
		margin-left: -10px;
    }
}

@media (max-width: 768px) {
    .posts,
    article {
        width: 100%;
        padding: 20px;
        margin: 0 auto;
    }

    .comments {
        width: 100%;
        padding: 10px;
		margin-left: -10px;
    }

	.post-list li {
    padding-left: 30px; 
}

    .comment-form textarea,
    .comment-form input,
    .comment-form button {
        width: 100%;
		margin-left: -10px;
    }
}

@media (max-width: 480px) {
    .posts,
    article {
        width: 100%;
        padding: 5px;
    }

    .comments {
        width: 100%;
        padding: 5px;
		margin-left: -10px;
    }

    .post-list li a {
        font-size: 14px; /* 글자 크기 조정 */
    }

    .comment-form textarea,
    .comment-form input,
    .comment-form button {
        font-size: 10px;
        padding: 5px;
        width: 100%; /* 부모 요소에 맞게 조정 */
		margin-left: -10px;
    }
}
