input,
select,
textarea {
    outline: none;
}

select {
    background-color: #ffffff;
    color: #000;
}

input:focus,
select:focus,
textarea:focus {
    /* border-color: #A0C1E5;
    box-shadow: 0 0 5px #419dffa0; */
    border: 1px solid #252a3c !important;
}

select:not(:disabled):focus,
input[type=text]:not(:disabled):focus,
input[type=password]:not(:disabled):focus,
input:not(:disabled):hover, 
textarea:not(:disabled):hover, 
button:not(:disabled):hover, 
textarea:not(:disabled):hover {
    border-color: #000 !important;
    transition: .3s;
}

input::placeholder,
textarea::placeholder {
    color: #bbbbbb;
}

option {
    background-color: white;
    /* 옵션의 배경색 */
    color: black;
    /* 옵션의 텍스트 색상 */
}

select option:checked {
    background-color: #bcddff;
    color: white;
}



table,
td,
th {
    padding: 10px;
    /* border: 1px #ced4da solid; */
    border-collapse: collapse;
    font-weight: normal;
}

input[type=text] {
    outline: none;
}

.main_container {
    max-width: 1400px;
    margin: 50px auto;
    height: 100%;
    background-color: #fff;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    /* display: block; */
    padding: 20px;
    border-radius: 5px;
}

/* .path_content {
    width: 100%;
    margin-top: 20px;
    display: block;
    height: 100%;
}

.path span {
    overflow: hidden;
    position: absolute;
    width: 0;
    height: 0;
    white-space: nowrap;
    text-indent: 100%;
}

.path {
    overflow: hidden;
    margin: 10px 0 0;
    height: 30px;
    line-height: 30px;
}

.path ol {
    float: right;
}

.path li {
    display: inline-block;
}

.path li a {
    font-size: 12px;
    color: #7d7d7d;
    text-decoration: none;
}

.path li:not(:first-child):before {
    content: "/";
    display: inline-block;
    margin: 0 4px 0 2px;
    color: #7d7d7d;
    font-size: 10px;
    vertical-align: middle;
}

.path li:first-child a::before {
    content: 'Home';
    color: #000;
    font-size: 12px;
}

.path li.current a, .path li:last-child a, .path li strong, .path li strong a {
    color: #000;
    font-size: 12px;
    font-weight: normal;
}

.path li:first-child a {
    font-size: 0;
} */

.path {
    width: 100%;
    height: 100%;
}

.path ul {
    float: right;
    display: flex;
}

.path li {
    display: flex;
}

.path ul li:first-child a{
    color: #ababab;
}



.path li:not(:first-child):before {
    content: "/";
    margin: 0 10px 0 10px;
    vertical-align: middle;
    color: #ababab;

}

.td_title {
    display: flex;
}
.td_title::before {
    content: "Q.";
    font-weight: 600;
    margin-right: 5px;
}




@keyframes fadeInTitle {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main_container .title {
    opacity: 0;
    /* 애니메이션이 시작되기 전 기본 상태 */
    margin: 50px 0;
    text-align: center;
}

html.loaded .title {
    /* -webkit-animation: fadeInTitle 0.6s ease forwards; */
    animation: fadeInTitle 0.6s ease forwards;
    /* -webkit-animation-delay: 0.3s; */
    animation-delay: 0.3s;
}



.qna_container {
    width: 100%;

    border-radius: 5px;
}

.qna_container .qna_table {
    width: 100%;
}

.qna_container .qna_table thead tr th {
    font-weight: 600;
    background-color: #f3f3f3;
}

.qna_container .qna_table tbody tr {
    border-bottom: 1px solid #e6e6e6;
}

.qna_container .qna_table tbody tr td {
    padding: 15px 0;
}

.qna_container .qna_table.list thead tr th{
    padding: 15px 0;
}

.tbl-top-right {
    margin-bottom: 8px;
}

.top_container {
    width: 100%;
    display: flex;
    justify-content: space-between;

}
.tbl-top-right p {
    font-size: 15px;
}

.tbl-top-right input[type=text],
.tbl-top-right select {
    height: 28px;
    font-size: 14px;
    border: 1px solid #d1d3d4;
    padding: 0 8px;
}

.qna_title {
    border-top: 2px solid #252a3c;
    padding-top: 20px;
    margin-bottom: 5px;
    font-size: 25px;
}

.author_date_container {
    display: flex;
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 20px;
    color: #7d7d7d;
}

.author_date_container p:not(:last-child):after {
    content: "|";
    margin: 0 5px;
}

.qna_view_button_container {
    float: right;
    padding: 0 10px;
}

.qna_content_container {
    padding: 20px 10px;
}

.btn-search {
    color: #ffffff;
    /* main color */
    background-color: #252a3c;
    border-color: transparent;
    border-radius: 3px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0 10px;
}

.qna_link:hover {
    text-decoration: underline;
}

.write-btn {
    color: #252a3c;
    /* main color */
    background-color: #ffffff;
    border-radius: 3px;
    height: 28px;
    border: 1px solid #d1d3d4;
    border-radius: 3px;
    padding: 0 20px;
    margin-left: 10px;

    &:hover {
        cursor: pointer;
    }
}



/* ------------------- Q&A 글쓰기 -------------------  */
.qna_table.write {
    border-top: 2px solid #252a3c;
}

.qna_table.write tbody tr th {
    background-color: #f3f3f3;
    font-weight: 600;
}

.qna_table.write tbody tr td {
    padding: 10px;
}

.qna_table.write tbody tr td select {
    width: 100%;
    height: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dbdbdb;

}

.qna_table.write tbody tr td input[type=text] {
    width: 100%;
    height: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dbdbdb;
}


.qna_table.write tbody tr td textarea {
    width: 100%;
    height: 500px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dbdbdb;
    resize: none;

}

.button_group {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.button_group button,
.qna_view_button {
    width: 140px;
    font-size: 15px;
    padding: 10px 0;

    &:hover {
        cursor: pointer;
    }
}

.button_group button:not(:last-child),
.qna_view_button {
    border: 1px solid #b2b2b2;
    background-color: #ffffff;
    color: #252a3c;
}

.button_group button:last-child {
    margin-left: 10px;
    border: 1px solid #252a3c;
    background-color: #252a3c;
    color: #ffffff;
}

.preview ul li img {
    box-shadow: 0 0 5px #419dffa0;
    border-radius: 5px;
}

.preview ul li {
    margin-top: 10px;
}


/* 모바일 버전 스타일 */
@media screen and (max-width: 768px) {
    /* 테이블 헤더 숨기기 */
    .qna_table.list thead,
    .qna_table.write tbody tr th,
    .qna_table.list tbody tr td:first-child,
    .qna_table.list tbody tr td:nth-child(2) {
        display: none;
    }

    /* 테이블 행을 블록 요소로 변경 */
    .qna_table.list tr {
        display: block;
        margin-bottom: 10px;
    }

    .qna_table.write tbody tr td {
        display: block;
    }

    .qna_container .qna_table.list tbody tr td {
        padding: 0;
    }
    
    .button_group {
        display: block;
    }

    .button_group button {
        width: 100%;
        margin-bottom: 5px;
    }

    .button_subgroup button:last-child {
        margin: 0;
    }
    .qna_table.list tr {
        margin: 0;
        padding: 10px 0;
    }

    .qna_table.list tbody tr td.author p{
        margin-right: 5px;
    }

    .author, .created_at {
        color: #979797;
        font-size: 14px;
    }

    /* 테이블 셀을 블록 요소로 변경하고 레이블 추가 */
    /* .qna_table.list td {
        display: inline;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #ddd;
    } */

    /* 테이블 셀 레이블 스타일 */
    /* .qna_table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    } */

    /* 테이블 셀 마지막 요소의 스타일 */
    .qna_table td:last-child {
        border-bottom: 0;
    }

    .qna_title {
        font-size: 25px;
    }

    .top_container {
        display: block;
        margin-bottom: 10px;
    }

    .write-btn {
        margin: 0;
        margin-bottom: 10px;
    }
    
    .qna_table tbody tr:first-child {
        border-top: 1px solid #e6e6e6;
    }

}