@charset "utf-8";

/****************************************************************************************************************************************
game-wrap
*****************************************************************************************************************************************/
.game-wrap {position:relative; margin:20px auto; padding:10px 10px; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(243,188,42,0.4)); border:1px #fdf6b0 solid; border-radius: 10px;}
.game-tit {position: relative; margin:0 auto; padding:5px 15px; width: 100%; text-align: center; background: rgba(0,0,0,0.8);}
.game-tit > h3 {margin:0 auto; width: 100%; text-align: center; font-size: 20px; font-weight: 600; color:#fff;}
.game-tit > p {margin:0 auto; width: 100%; text-align: center; font-size: 14px; color:#fff;}
.game-tit > .game-close {position: absolute; right:15px; top:15px; z-index: 9;}
.game-tit > .game-close > i {font-size: 18px; color:#fff; cursor: pointer;}

.game-search {position: relative; margin:0 auto 20px auto; padding:0; width: 100%; text-align: right;}
.game-search > input {margin:0 auto; padding:5px 5px; max-width: 20rem; text-align: left; font-size: 14px; color: #333;background: #f0f0f0; border: 1px solid #ccc; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}

ul.game-list {position: relative; margin: 10px auto 0 auto; padding:0; width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-start;}
ul.game-list > li {position: relative; margin:0 4px; width: calc(100% / 5 - 8px); overflow: hidden; animation-name: fadeInUp;}
ul.game-list > li::before {content:''; opacity: 0; position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%;
    background: url('../img/start_img.jpg') center no-repeat; background-size: cover; transform: rotate(-90deg); transform-origin: 50% -50%;transition: all 0.6s ease;
   }
ul.game-list > li > img {opacity: 1; width: 100%; transition: all 0.6s ease; transform-origin: 50% 100%;}

@keyframes fadeInUp {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 0; transform: translateY(0);}
}

@media (hover: hover) and (pointer: fine) {
    ul.game-list > li:hover {transform: translateY(0px); opacity: 1;}
    ul.game-list > li:hover::before {opacity: 1; transform: rotateX(0deg); transition-delay: 0.2s;}
    ul.game-list > li:hover > img {transform: rotateX(90deg); opacity: 0;}
}

/****************************************************************************************************************************************
board-wrap
*****************************************************************************************************************************************/
.board-wrap {position:relative; margin:0 auto; padding:0; text-align: center; background:rgba(0,0,0,0.8);}

/* page-tit */
.page-tit {position:relative; margin:0 auto; padding:10px 15px; width: 100%; height: 40px; display: flex; align-items: left; font-weight: 600; color:#fff; background:rgba(0,0,0,0.8);}
.page-tit > i {margin:5px 5px 0 0;}

/* bo-guide */
.bo-guide {margin-bottom:10px; padding:20px 20px; width: 100%; text-align: center; background: #000; border-top: 1px #444 solid;}
.guide-tit {margin-bottom:15px; width: 100%; display: flex; justify-content: flex-start; align-items: center; font-size:16px; font-weight: 600; color:#38baf6;}
.guide-tit > i {margin:5px 5px 0 0; font-size: 20px;}
ul.guide-list {display: list-item; position: relative; margin:0 0 0 20px; padding:0; width:calc(100% - 20px); text-align: left;}
ul.guide-list > li {list-style-type: "▶"; padding:0 0 0 10px; line-height: 1.8; display: flex; align-items: center; font-weight: 500; color:#fff;}
.ask-btn {margin-left:5px; padding:0 15px; line-height: 30px; font-size: 13px; font-weight: 600; color:#000; background: #ffc107; border-radius: 10px;}

/*  chage-tb */
.chage-tb {margin: 20px 0; width: 100%; border-top:2px #444 solid;}
.chage-tb th,
.chage-tb td {padding:10px 10px; border-bottom: 1px #444 solid;}
.chage-tb th {width: 150px; text-align: center; color:#a3a3a3;}
.chage-tb td {width: calc(100% - 150px); text-align: left;}
.chage-tb td > input {margin:0 auto; padding:5px 10px; width: 100%; text-align: left; color:#fff; background: #171717; border: 1px solid #444;}

/* ul.moneyBtns */
ul.moneyBtns {position: relative; margin:15px auto 0 auto; padding:0; width: 100%; display: flex; flex-wrap: wrap; gap:5px; justify-content: center; align-items: center;}
ul.moneyBtns > li {margin:0 auto; padding:10px 0; width: calc(100% / 6 - 5px); text-align: center; font-weight: 600; color:#fff; background: linear-gradient(180deg, #343434, #212121); border: solid 1px #444; cursor: pointer;}

/* list-tb */
.list-tb {margin:0; width: 100%;}
.list-tb tbody tr {cursor: pointer;}
.list-tb th,
.list-tb td {padding:10px 5px; font-weight:600;}
.list-tb th {color:#a3a3a3; background: #000; border-top: 1px #444 solid; border-bottom: 1px #444 solid;}
.list-tb td {color:#fff; border-bottom: 1px #444 solid;}
.list-tb td.td_cursor {cursor: pointer;}
.list-tb td.td_cursor > p {width: 500px; font-weight: 600; text-align:left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.list-tb td.td_meg {padding:10px 5px; text-align: left; font-weight:600; cursor: pointer;}
.list-tb td.td_meg > font,
.list-tb td.td_meg > span {display: inline-flex;}
.list-tb td.td_meg > span {margin-left:10px; width: 350px; height: 100%; font-weight: 600; text-align:left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.blue-bg {color:#fff; background: #469ac3;}


/* 메세지 토굴 */
.meg-view {display: none; background:#000; border-top:1px #444 solid; border-bottom:1px #444 solid;}
.meg-view td {margin:0 auto; padding:10px 5px; width: 100%; height: 100px; text-align: center; font-weight: 600;}

.txt-finish,
.meg-read {font-weight: 600; color:#6d6d6d;}
.txt-cancel,
.meg-important {font-weight: 600; color:#f75f5f;}

/* view-tb */
.view-tb {margin:0; width: 100%;}
.view-tb tbody tr {cursor: pointer;}
.view-tb th,
.view-tb td {padding:10px 5px; text-align: center; font-weight:600;}
.view-tb th {color:#fff; border-top:1px #444 solid; border-bottom:1px #444 solid;}
.view-tb td {font-family: "Noto Sans KR"; border-bottom: 1px #ddd solid;}

/* write-tb */
.write-tb {margin:0; width: 100%; border-top:1px #444 solid;}
.write-tb th,
.write-tb td {padding:10px 10px; border-bottom: 1px #444 solid;}
.write-tb th {width: 150px; text-align: center; color:#a3a3a3;}
.write-tb td {width: calc(100% - 150px); text-align: left;}
.write-tb td > input {margin:0 auto; padding:5px 10px; width: 100%; text-align: left; color:#fff; background: #171717; border: 1px solid #444;}
.write-tb td > textarea {margin:0 auto; padding:5px 10px; width: 100%; height: 150px; text-align: left; color:#fff; background: #171717;  border: 1px solid #444;}
.write-tb td > p {margin:8px auto 0 auto; padding:0; width: 100%; text-align: left; color:#ccecff;}


/* board-btn  */
.board-btn {position: relative; margin:0 auto; padding:30px 0; width: 100%; display: flex; gap:5px; justify-content: center; align-items: center;}
.board-btn > button {margin:0; padding:10px 20px; width: 130px; text-align: center; font-weight: 600; color:#fff; background: #3085b8; border-radius: 5px;}

 @media (hover: hover) and (pointer: fine) {
    .ask-btn:hover,
    ul.moneyBtns > li:hover {filter: brightness(130%);}
    ul.moneyBtns > li.btn-reset:hover {color:#fff; filter: brightness(130%);}

    .list-tb tbody tr:hover {background: #232323;}
    .list-tb td.td_cursor:hover,
    .list-tb td.td_meg > span:hover {text-decoration: underline;}
    
    .board-btn > button:hover {filter: brightness(120%);}
}


/****************************************************************************************************************************************
미디어쿼리문 시작
*****************************************************************************************************************************************/
@media (max-width: 1380px) {
    .game-wrap,
    .board-wrap {margin:20px 10px; width: calc(100% - 20px);}
}

@media (max-width:992px) {
    ul.game-list > li {width: calc(100% / 4 - 8px);}
}

@media (max-width:767px) {
    .page-tit {margin-bottom: 5px; padding:10px 5px; font-size: 15px;}
    .page-tit > i {font-size: 15px;}

    ul.game-list > li {width: calc(100% / 3 - 8px);}

    .bo-guide {padding:10px 10px;}
    .guide-tit {margin-bottom: 5px;}
    .guide-tit,
    ul.guide-list > li,
    ul.guide-list > li::marker {font-size: 13px; line-height: 1.3}
    ul.guide-list > li {display: block;}
    .ask-btn {display:block; margin:5px 0 0 0; width: 100%; line-height: 35px;}

    .chage-tb th {padding:10px 5px; width: 20%; font-size: 12px;}
    .chage-tb td {padding:10px 5px; width:80%; font-size: 13px;}
    .chage-tb td > input {padding:10px 5px; font-size: 13px;}

    ul.moneyBtns {gap:3px;}
    ul.moneyBtns > li {padding:8px 0; width: calc(100% / 3 - 3px); font-size: 13px;}

    .list-tb {margin:5px 0;}
    .list-tb th, 
    .list-tb td {padding:8px 2px;}
    .list-tb th {font-size: 12px;}
    .list-tb td {font-size: 13px;}
    .list-tb td.td_cursor > p,
    .list-tb td.td_meg > span {width: 150px;}
    .list-tb td.td_meg > span {margin-left:5px; font-size: 13px;}
    .list-tb td.td_meg > font {font-size: 13px;}

    .charge-list {margin-top: 20px;}
    .mo-hid {display: none;}

    .view-tb {margin:5px 0;}

    .write-tb th {padding:10px 5px; width: 20%; font-size: 12px;}
    .write-tb td {padding:10px 5px; width:80%; font-size: 13px;}
    .write-tb td > input,
    .write-tb td > textarea {font-size: 13px;}

    .board-btn {margin:20px 0 0 0;}
    .board-btn > button {padding:10px 0; width: 100%; font-size: 13px;}    
}

@media (max-width:639px) {
    .game-wrap {padding:10px 5px;}
    ul.game-list > li {width: calc(100% / 2 - 8px);}
}

@media (max-width:430px) {
    .list-tb td.td_cursor > p,
    .list-tb td.td_meg > span {width: 170px;}
}
