.image-maindiv{
    background-image: url(/image/background-image-board.jpeg);
    background-repeat: repeat;
    height: auto;
    min-height: 100%;
}
a{
    text-decoration: none;
}
h3 {
    margin-bottom: 1px;
}
li.category.clicked{
    color: var(--lightblue);
    font-size: 1em;
}
.main {
    display: flex;
    position: relative;
    justify-content: space-between;
    padding: 0 15px 10px;
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 100px;
}

.centered {
    margin: 0 auto;
    width: 1000px;
    max-width: 1000px;
}

.board-header {
    font-size: 1em;
    padding: 0px;
    text-align: center;
    max-width: 975px;
    width: 970px;
    margin: 0 auto;
}
/*.board-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.5em;
    padding: 0px;
    text-align: center;
    max-width: 975px;
}*/
.board-header-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5vw;
}
.visibility{
    visibility: hidden;
}
.board-header-sub {
    display: inline;
    font-size: 0.8em;
    font-weight: bold;
}

.board-header-flex-subDiv {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2%;
    margin-top: 3.5%;
}

.board-header-left-subDiv {
    list-style: none;
    padding-left: 1%;
    margin-bottom: 0.3%;
}

div.board-header-left-subDiv>span {
    font-size: 0.9em;
}
.board-header-right-subDiv {
    padding-right: 1%;
}

.board-title-div {
    text-align: left;
    margin: 1% auto;
}

.board-submit-div {
    text-align: right;
    max-width: 50%;
    margin: 0 auto;
}
.btn-header-right{
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    width: 130px;
    padding: 8px;
    border-radius: 4px;
    border: 2px solid var(--red);
    color: var(--red);
}
.btn-header-right:hover {
    background-color: var(--main-color);
    color: var(--sub-color);
}
.btn-header {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 2px;
    text-shadow: none;
    border: 2px solid var(--sub-color);
    color: var(--main-color);
    background-color: var(--sub-color);
    padding: 10px 30px;
    min-width: 100px;
    box-shadow: 0 0 10px var(--shadow);
}
.btn-header:hover {
    background-color: var(--main-color);
    color: var(--sub-color);
}
.btn {
    font-size: 16px;
    border-radius: 2px;
    background: var(--sub-color);
    text-shadow: none;
    border: 1px solid var(--sub-color);
    color: var(--main-color);
    padding: 10px 30px;
    min-width: 100px;
    box-shadow: 0 0 10px var(--shadow);
}
.btn:hover {
    background-color: var(--main-color);
    color: var(--sub-color);
}
.board-title-div p {
    font-size: 0.8em;
    font-weight: bold;
}

.board-nickname-input {
    min-width: 10vw;
    color: var(--sub-color);
    background-color: var(--main-color);
    border: 1px solid var(--border);
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 0.5vw;
}

.board-title-input {
    min-width: 39.25vw;
    color: var(--sub-color);
    background-color: var(--main-color);
    border: 1px solid var(--border);
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 0.5vw;
}

.board-title-category-input {
    color: var(--sub-color);
    background-color: var(--main-color);
    border: 1px solid var(--border);
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 0.5vw;
}

.board-password {
    color: var(--white);
    background-color: var(--background-2);
    border: 1px solid var(--border);
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 0.5vw;
}

input:hover {
    opacity: 0.7;
}

.board-category-ul {
    display: inline;
    list-style-type: none;
}

.board-category-ul li {
    display: inline;
    list-style-type: none;
}

table {
    width: 100%;
    white-space: nowrap;
    border-collapse: collapse;
    table-layout: fixed;
}

th {
    width: 5vw;
    padding: 1%;
    border-bottom: 1.5px solid var(--border);
    border-top: 2.5px double var(--border);
}

tr {
    border-bottom: 0.5px solid var(--board-under-color)
}

tbody tr:hover {
    background-color: var(--hover);
}

td {
    color: var(--bg-text);
    padding: 0.6% 10px;
    text-align: center;
    font-size: 0.7em;
}

td:nth-child(3) {
    text-align: left;
}

table .col1 {
    width: 5%;
}

table .col2 {
    width: 5%;
}

table .col3 {
    width: 30%;
}

table .col4 {
    width: 10%;
}

table .col5 {
    width: 8%;
}

table .col6 {
    width: 5%;
}

table .col7 {
    width: 5%;
}

.write-button {
    text-decoration: none;
    font-size: 0.6em;
    font-weight: bold;
    color: var(--main-color);
    background-color : var(--sub-color);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 5px 10px;
    box-shadow: 0 0 10px var(--shadow);
}
.write-button:hover {
    opacity: 0.5;
}
.board-title {
    color: var(--bg-text);
    cursor: pointer;
}

.board-title:hover {
    text-decoration: underline;
}

.comments-number {
    color: red;
    padding-left: 0.2vw;
    opacity: 0.4;
}

.category {
    display: inline;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.5em;
}

.category:hover {
    text-decoration: underline;
}

.password-warning-message {
    display: none;
    color: var(--red);
    font-size: 0.8em;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

.title-warning-message {
    display: none;
    color: var(--red);
    font-size: 0.8em;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Pagination */
.centered-pagination {
    margin: 0 auto;
    max-width: 70%;
    text-align: center;
}

.pagination {
    display: inline-block;
    margin-top: 10%;
    font-weight: bold;
}

.pagination a {
    font-size: 0.7em;
    color: var(--white);
    float: left;
    padding: 6px 12px;
    text-decoration: none;
    margin: 0 4px;
}

.pagination a.nowPage {
    background-color: var(--sub-color);
    color: var(--main-color);
    border-radius: 5px;
}

.pagination a:hover:not(.nowPage) {
    background-color: var(--sub-color);
    color: var(--main-color);
    border-radius: 5px;
}

/* dropdown */
.select-div{
    display: inline-block;
}
.select-button {
    cursor:pointer;
    font-size: 0.6em;
    font-weight: bold;
    color: var(--main-color);
    background-color: var(--sub-color);
    border: 1px solid var(--border);
    box-shadow: 0 0 10px var(--border);
    border-radius: 2px;
    padding: 5px 10px;
}
.select-button:hover{
    opacity: 0.5;
}
.select-button:hover ~ .dropdown{
    display: block;
}
.select-button:hover ~ .dropdown-content{
    display: block;
}
.dropdown{
    display: none;
    position:absolute;
    width: 85px;
    transform: translateY(6px);
    z-index: 1;
    box-shadow: 0px 5px 10px var(--shadow);
    border: 1px solid var(--border);
    border-radius: 2px;
}
.dropdown-content {
    padding: 5px 0;
    list-style: none;
    font-size: 0.6em;
    text-align: center;
    background-color: var(--sub-color);
    z-index: 1;
}
.dropdown:hover {
    display:block;
}
.dropdown-content:hover {
    background-color: var(--main-hover-color);
}
.dropdown-content a {
    font-weight: bold;
    color: var(--main-color);
    text-decoration: none;
    display: block;
    padding: 2%;
}
.back-div-between{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 98%;
    margin-left: 10px;
    padding-top: 15px;
}
.back-div{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 98%;
    margin-left: 10px;
    padding-top: 15px;
}
.btn-back{
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    width: 130px;
    padding: 8px;
    color: var(--sub-color);
    background-color: var(--main-color);
    border: 1px solid var(--border);
    border-radius: 5px;
}
.btn-back:hover{
    opacity: 0.4;
}



/* write */
.title{
    border-bottom: 0.1px solid RGBA(238, 238, 238, 0.5);
    padding-bottom: 1%;
}
.title-left{
    display: inline-block;
    text-align: left;
    width: 50%;
}
.title-right{
    display: inline-block;
    text-align: right;
    width: 48%;
}
h4{
    margin-bottom : 1%;
}
.title span{
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0.6;
}
.contents{
    min-height: 20vw;
    font-size: 0.8em;
    margin-top: 1%;
    margin-bottom: 1%;
}
.contents img{
    max-width: 930px;
    max-height: 650px;
}
/* 댓글 작성 css */
.comment-write-area{
    display: flex;
    flex-direction: row;
    gap:1%;
    padding: 2% 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    margin-top: 5%;
}
.block{
    display: block;
}
.comment-writer{
    vertical-align: top;
    display: inline-block;
}
.comment-area{
    display: flex;
    justify-content: space-between;
    gap: 1%;
    width: 79%;
}
.comment-text{
    width:85%;
    color: var(--white);
    background-color: var(--background-2);
    border: 1px solid var(--border);
    box-sizing: border-box;
    padding: 8px;
    resize: none;
}

.comment-submit{
    cursor:pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    background: var(--sub-color);
    text-shadow: none;
    border: 1px solid var(--border);
    color: var(--main-color);
    padding: 10px 30px;
    min-width: 100px;
    align-content: center;
}
.comment-submit:hover{
    background-color: var(--main-color);
    color: var(--sub-color);
}


.comment-submit_c{
    cursor:pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    background: var(--sub-color);
    text-shadow: none;
    border: 1px solid var(--border);
    color: var(--main-color);
    padding: 10px 30px;
    min-width: 100px;
    align-content: center;
}
.comment-submit_c:hover{
    background-color: var(--main-color);
    color: var(--sub-color);
}
/* 댓글 보기 css */
.comment-read-area{
    font-size: 0.7em;
    border-top: 2px solid var(--border);
}
.comment-list{
    margin:1% 0;
    list-style: none;
}
.comment-list li{
    border-top: 1px solid var(--board-under-color);
    color: var(--sub-color);
    
}
.comment{
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--sub-color);
    padding: 1% 0;
    background-color: var(--main-color);
}
.left{
    width:10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding : 0 1.5%;
}
.comment-contents{
    width: 70%;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    padding: 0 2%;
}
.comment-contents a:hover{
    cursor: pointer;
    text-decoration: underline;
}
.comment-delete{
    cursor:pointer;
    width: 5%;
    text-align: center;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
}
.comment-time{
    text-align: right;
    width: 8%;
}
.comment-delete a:hover{
    border: 1px solid var(--border);
}
.comment-time > span{
    display: inline-block;
    font-size : 0.8em;
}
/* 대댓글 */
.comment-comment{
    display:none;
    margin-left: 3%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--sub-color);
    border-top: 1px solid var(--border);
    background-color: var(--main-color-a);
}
.comment-comment-write-area{
    display: flex;
    flex-direction: row;
    gap:1%;
    padding: 2% 0;
}
.left span{
    font-size : 0.8em;
}
.updown-area-01{
    font-weight: bold;
    text-align: center;
    margin-bottom: -1%;
}
.updown-area{
    text-align: center;
    margin-bottom: 5%;
}
.updown-area .updown{
    font-weight: bold;
    padding: 10px 15px;
    color: var(--main-color);
    background-color: var(--sub-color);
    border: 1px solid var(--border);
    box-shadow : 5px;
    border-radius: 50%;
    margin: 0 1%;
}
.up{
    cursor: pointer;
    font-size: 1.5em;
}
.down{
    cursor: pointer;
    font-size: 1.5em;
}
.up:hover{
    opacity: 0.5;
}
.down:hover{
    opacity: 0.5;
}
@media screen and (max-width: 1024px) {
    .centered{
        width: 95%;
    }
    .board-header-title{
        font-size: 36px;
    }
    .board-header-left-subDiv{
        font-size:25px;
    }
    .board-header-flex-subDiv{
        margin-bottom: 20px;
    }
    .li.category.clicked, th{
        font-size: 20px;
    }
    .select-button, .write-button, .dropdown-content, .board-header-sub, .board-title-div p{
        font-size: 18px;
    }
    .li.category{
        font-size: 14px;
    }
    td{
        font-size: 14px;
        padding: 15px 0px;
    }
    .dropdown{
        width: 130px;
    }
    .pagination a{
        font-size: 14px;
    }
    .board-title-div{
        max-width: 60%;
    }
    .contents{
        min-height: 85vw;
    }
    .btn-back{
        font-size: 18px;
        padding: 15px 35px;
        margin-left: 10px;
    }
    .btn-header-right{
        font-size: 18px;
        padding: 15px 35px;
    }
}