html,
html,
body {
    padding: 0;
    margin: 0;
}
.wrapper {
    width: 1170px;
    margin: 0 auto;
}

header {
    background-color: rgba(122, 442, 233, 0.3);
}

main {
    margin-top: 20px;
    background-color: rgba(122, 442, 23, 0.3);
}
main .wrapper {
    display: flex;
}

aside {
    width: 330px;
    margin-right: 20px;
    background-color: rgba(222, 0, 0, 0.3);
}

section {
    flex: 1;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.3);
}

footer {
    margin-top: 20px;
    background-color: rgba(222, 223, 0, 0.3);
}

.hide {
    display: none;
}

table {
    border-collapse: collapse;
    margin: 10px;
    border: 1px solid #aaa;
}
th,
td {
    border: 1px solid #aaa;
    background-clip: padding-box;
    scroll-snap-align: start;
}
tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}
thead {
    z-index: 1000;
    position: relative;
}
th,
td {
    padding: 0.6rem;
    min-width: 6rem;
    text-align: left;
    margin: 0;
    z-index: 0;
}
thead th {
    position: sticky;
    top: 0;
    border-top: 0;
    background-clip: padding-box;
}
tbody th {
    background-clip: padding-box;
    border-left: 0;
}
tbody {
    z-index: 10;
    position: relative;
}
tbody th {
    position: sticky;
    left: 0;
}
thead th,
tbody th {
    background-color: #f8f8f8;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

a {
    text-decoration: none;
}

/* 서브 해더 메뉴 */
.sub_header {
    display: inline-block;
    width: 100%;
}
.sub_header a.active {
    color: brown;
}
.sub_header li {
    display: inline-block;
    margin-right: 5px;
}

/* 토스트 */
.toast {
    opacity: 0;
    z-index: 999999;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translate(-50%,0);
    padding: 10px 50px;
    background: rgba(0, 0, 0, 0.70);
    border-radius: 100px;
    color: #cccccc;
    box-shadow: 3px 4px 11px 0px #00000040;
    transition: all 0.5s;
}
.toast strong {
    color: #ffffff;
}
.toast.active {
    opacity: 100%;
    bottom: 50px;
}

/* 채팅 명령어 박스 */
.chat-command-suggestion {
    position: absolute;
    background-color: white;
    border: 1px solid #000;
    z-index: 999;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-radius: 5px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 200px;
}
.chat-command-suggestion ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.chat-command-suggestion ul li {
    border-bottom: 1px dashed #000;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.chat-command-suggestion ul li .description {
    font-size: 0.8em;
    color: #2c2c2c;
}
.chat-command-suggestion ul li .argument {
    font-size: 0.8em;
    color: #777777;
}
.chat-command-suggestion ul li .highlight {
    color:#ff0000;
}

/* 쪽지관련 */
.paper_header {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}
.paper_header a.active {
    color: brown;
}
.paper_header li {
    display: inline-block;
    margin-right: 5px;
}
.paper_header .active {
    color: brown;
}

/* 고객센터 헤더 */
.cs_header {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}
.cs_header a.active {
    color: brown;
}
.cs_header li {
    display: inline-block;
    margin-right: 5px;
}
.cs_header .active {
    color: brown;
}

/* 레이어 팝업 */
.popup_layer {
    z-index: 1001;
    position: absolute;
    border: 1px solid #c9c9c9;
    background-color: #ffffff;
}
.popup_layer .popup_layer_wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.popup_layer .popup_layer_content {
    height: 100%;
}
.popup_layer .popup_layer_content a {
    display: flex;
}
.popup_layer .popup_layer_content img {
    display: flex;
}
.popup_layer .popup_layer_close_bar {
    height: 30px;
    background-color: #212123;
    display: flex;
    align-items: center;
}
.popup_layer .popup_layer_close_bar .popup_layer_close {
    width: 100%;
    height: 100%;
    display: grid;
    grid-auto-flow: column;
}
.popup_layer .popup_layer_close_bar .popup_layer_close a {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
}
.popup_layer .popup_layer_close_bar .popup_layer_close a:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #ffffff;
}
.popup_layer figure {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    unicode-bidi: isolate;
}


/* 에디터 세로 크기 */
.ck-editor__editable[role="textbox"],
.ck-source-editing-area {
    /* Editing area */
    min-height: 600px;
}
.qna_comment_box .ck-editor {
    width: 100% !important;
}
.qna_comment_box .ck-editor__editable[role="textbox"],
.qna_comment_box .ck-source-editing-area {
    min-height: 300px;
}

/* ::동행복권 - 스피드키노 볼:: */
.ball {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid #5ab1d7 !important;
    background-color: #69c8f2 !important;
    color: #fff !important;
}

/* ::동행복권 - 메가빙고 볼:: */
[data-game="megabingo"] .bball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}
[data-game="megabingo"] .bball.active {
    background-color: #E2A101;
    color: #fff;
    border-radius: 50%;
}