/* 전체 CSS*/
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap');

body,
html {
    margin: 0;
    color: white;
    background-color: white;
    font-size: medium;
    font-family: 'Nanum Gothic', sans-serif;
    overflow-x: hidden;
    white-space: normal;
    word-break:break-all;
}

body::-webkit-scrollbar {
	width: 5px;
}

body::-webkit-scrollbar-thumb {
	background-color: #2f3542;
}

body::-webkit-scrollbar-track {
	background-color: grey;
}

a {
    text-decoration: none;
    color: dodgerblue;
}
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
    color: hotpink;
    
}

.ads {
    text-align:center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.comment_in img {
    display: none;
}
.rp_admin img {
    display: none;
}
.rp_general img {
    display: none;
}

/* 헤더 CSS */
header {
    display:flex; 
    align-items: center;
    
    justify-content: space-between;

    height: 6vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    font-size: large;
    background-color: #2F3336;
    z-index: 5;
    border-top: 2px solid black;
    border-bottom: 2px solid black;

}

header a {
    text-decoration: none;
    color: white;
}

#header-menu {
    display: inline;
}

header #header-menu a {
    margin: 0 10px;
    font-size: medium;
}

.cursor {
	position: relative;
}
.cursor	i {
	position: absolute;
	width: 10px;
	height: 3px;
	background-color: white;
	left: 0px;
	top: 90%;
	animation-name: blink;
	animation-duration: 800ms;
	animation-iteration-count: infinite;
	opacity: 1;
}

.cursor input:focus + i {
	display: none;
}

@keyframes blink {
	from { opacity: 1; }
	to { opacity: 0; }
}



/* */
#container_and_sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    margin-top: 6vh;
    margin-bottom: 5vh;
}

#openbtn {
    display: none;
}

#sidebar-mobile {
    display:none;
}

/* 사이드바 CSS */

.sidenav {
    width: 352px;
    background-color: #212426;
    border-left: 2px solid black;
    display: block;
    height: 88vh;
    position: fixed;
    right: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    cursor: default;
}

.sidenav::-webkit-scrollbar {
	width: 5px;
}

.sidenav::-webkit-scrollbar-thumb {
	background-color: #2f3542;
}

.sidenav::-webkit-scrollbar-track {
	background-color: grey;
}



.sidenav a {
    color: white;
}

.sidenav a:hover {
    color: hotpink;
}

.sidebar-title {
    background-color: #2F3336;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 10px 20px;

}

.sidebar-body {
    padding: 20px;
}


#sidebar_category .sidebar-body > ul {
    padding-left: 0;
    margin: 0;
    list-style: none; 
}

#sidebar_category .sidebar-body > ul > li::before {
    content: "\f0b1";
    font-family:"Font Awesome 5 Free";
    font-weight: 900;
    color: dodgerblue;
    margin-right: 5px;
}


#sidebar_category .sidebar-body > ul > li > ul {
    padding-left: 20px;
    list-style: none;
}


#sidebar_category .sidebar-body > ul > li > ul > li::before {
    content: "\f07c";
    font-family:"Font Awesome 5 Free";
    font-weight: 900;
    color: yellow;
    margin-right: 5px;
}


#sidebar_category .sidebar-body > ul > li > ul > li > ul {
    padding-left: 20px;
    list-style: none;
}

#sidebar_category .sidebar-body > ul > li > ul > li > ul > li::before {
    content: "\f07b";
    font-family:"Font Awesome 5 Free";
    font-weight: 900;
    color: yellow;
    margin-right: 5px;
}

.sidebar_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.main_grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

#sidebar_notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar_notice ul > li {
    list-style: none;
}


#sidebar_rep ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#sidebar_rep ul > li {
    list-style: none;
}

#sidebar_recent_post ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#sidebar_recent_post ul > li {
    list-style: none;
}


#sidebar_recent_hot ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#sidebar_recent_hot ul > li {
    list-style: none;
}


/* 콘테이너 CSS */
#container {
    width: 100%;
    height: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#container #article {
    color: black;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

#container #notice {
    color: black;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

#container #protect {
    color: black;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

#container #category {
    color: black;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.main-title {
    background-color: #2F3336;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 10px 20px;
    text-align: justify;
    font-size: x-large;
}

.main-title a {
    color: white;
}

.main-title a:hover {
    color: hotpink;
}

.main-category {
    margin-left: 20px;
    color: gray;
    font-size: medium;

}

.main-category a {
    text-decoration: none;
    color: gray;
}

.main-category a:hover {
    text-decoration: none;
    color: gray;
}

.main-time {
    
    display: inline;
    float: right;
    right: 0;
    top: 0;
    background-color: red;
    color: white;
    padding: 5px 10px;
}

.main-contents {
    text-align: justify;
    line-height: 1.5;
}


#container #protect input {
    border: solid 1px black; 
    background: transparent; 
    color:black; 
    outline: none; 
}


#container #comment a {
    color: black;
}

#container #comment a:hover {
    color: hotpink;
}

#container #comment #commentWrite {
    margin-top: 20px;
    margin-bottom: 30px;
    color: black;
}

#container #comment #commentWrite input {
    border: solid 1px black; 
    background: transparent; 
    color:black; 
    outline: none; 
}

#container #comment #commentWrite textarea {
    margin-top: 20px;
    border: solid 1px black; 
    background: transparent; 
    color: black; 
    outline: none; 
}

#container #comment #commentList {
    color: black;
    text-align: justify;
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

#container #comment #commentList > ol {
    list-style: none;
    padding-left: 0;
}

#container #comment #commentList > ol > li {
    list-style: none;
    padding-left: 0;
    border-bottom: solid 1px black;
    padding-top: 5px;
    padding-bottom: 5px;

}

#container #comment #commentList > ol > li > ul > li {
    list-style: none;
    padding-left: 0;
    border-top: solid 1px black;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
}



#container #guest {
    /* padding: 20px; */
}

#container #guest a {
    color: black;
}

#container #guest a:hover {
    color: hotpink;
}

#container #guest #respond {
    margin-top: 20px;
    margin-bottom: 30px;
    color: black;
}

#container #guest #respond input {
    border: solid 1px black; 
    background: transparent; 
    color:black; 
    outline: none; 
}

#container #guest #respond textarea {
    margin-top: 20px;
    border: solid 1px black; 
    background: transparent; 
    color:black; 
    outline: none; 
}


#container #guest #guest_list {
    text-align: justify;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    color: black;
}

#container #guest #guest_list > ol {
    padding-left: 0;
    list-style: none;
    margin: 0;

}

#container #guest #guest_list > ol > li {
    padding-left: 0;
    list-style: none;
    margin: 0;
    border-bottom: solid 1px black;
    padding-top: 5px;
    padding-bottom: 5px;

}

#container #guest #guest_list > ol > li > ul > li {
    list-style: none;
    padding-top: 5px;
    border-top: solid 1px black;
    padding-bottom: 5px;
    margin-top: 5px;
}


.another_category { 
    /*포스팅 본문 내에서 카테고리 내 다른 글 안보이게 하기. 깔끔하게 만들기 위해서.*/
    /* display: none; */
}



#container #category a {
    color: black;
}

#container #category a:hover {
    color: hotpink;
}


#container #category #category_in_list > ul {
    list-style: none;
    padding-left: 0;
}

#container #category #category_in_list > ul > li {
    border-bottom: solid 1px black;
    margin-bottom: 5px;
    text-align: justify;
}


#container #tags {
    text-align: justify;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

#container #tags > ul {
    padding-left: 0;
}
#container #tags > ul > li {
    list-style: none;
    display: inline;
}


#paging a {
    text-decoration: none;
    font-size: large;
    color: dodgerblue;
}

#paging a:hover {
    text-decoration: none;
    color: hotpink; 
}

#paging .selected {
    color: hotpink;
    text-decoration: none;
    font-weight: bold;
}


#copy {
    color: black;
}

#copy a {
    color: black;
}

/*푸터 CSS*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 6vh;
    width: 100%;

    background-color: #2F3336;
    border-top: 2px solid black;
    border-bottom: 2px solid black;

    display:flex; 
    align-items: center;
    
    z-index: 15;
    
}

footer a{
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: none;
    color: #8CDCFE; 
}

@media (max-width:800px){


    #container_and_sidebar {
        display: block;
        margin-top: 6vh;
        margin-bottom: 6vh;
    
    }

    #sidebar {
        display: none;
    }

    #sidebar-mobile {
        display: block;
        
    }

    #header-menu {
        display: none;
    }

    #openbtn {
        display: inline;
    }

    .sidenav-mobile {
        height: 88vh;
        width: 0;
        position: fixed;
        z-index: 10;
        right: 0;
        top: 6vh;
        overflow-x: hidden;
        overflow-y: visible;
        transition: 0.5s;
        padding: 0;
        background-color: #212426;
        border-top: 2px solid black;
        margin-bottom: 6vh;

    }

    .sidenav-mobile a {
        color: white;
    }
    
    .sidenav-mobile a:hover {
        color: hotpink;
    }


    

}