* {
    font-family: "Roboto Slab", "sans-serif";
    font-size: 16px;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #6090b7 !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

#body {
    position: relative;
    width: 1920px;
    height: 980px;
    background: url("../images/bg-min.jpg") top left no-repeat;
    transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    display: flex;
    flex-wrap: nowrap;
    padding-right: 200px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.navbar-container {
    padding: 106px 30px 0 30px;
    margin-left: 70px;
    width: 367px;
    background: url(../images/bg-side-bar.png) no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#no-login {
    background: url(../images/btn-login.png) no-repeat;
    width: 301px;
    height: 90px;
    margin-top: 30px;
    margin-bottom: 50px;
}

#no-login:hover {
    background-position: bottom;
}

#navigation {
    width: 204px;
    height: 292px;
}

#navigation li {
    width: 204px;
    height: 64px;
    background: url(../images/btn-navbar.png) no-repeat;
    margin-bottom: 12px;
}

#navigation li a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
}

#navigation .rules {
    background: url("../images/btn-navbar.png") no-repeat top left;
}

#navigation .spin {
    background: url("../images/btn-navbar.png") no-repeat left -76px;
}

#navigation .gift-exchange {
    background: url("../images/btn-navbar.png") no-repeat left -152px;
}

#navigation .ranking {
    background: url("../images/btn-navbar.png") no-repeat left bottom;
}

#navigation .rules:hover,
#navigation .rules.active {
    background: url("../images/btn-navbar.png") no-repeat top right;
}

#navigation .spin:hover,
#navigation .spin.active {
    background: url("../images/btn-navbar.png") no-repeat right -76px;
}

#navigation .gift-exchange:hover,
#navigation .gift-exchange.active {
    background: url("../images/btn-navbar.png") no-repeat right -152px;
}

#navigation .ranking:hover,
#navigation .ranking.active {
    background: url("../images/btn-navbar.png") no-repeat bottom right;
}

#main {
    width: 918px;
    position: relative;
    padding-top: 192px;
}

.btn-play_list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 254px;
    left: 76px;
    z-index: 5;
}

.btn-play_list .btn-play_item {
    width: 234px;
    height: 103px;
}

.btn-play_list .btn-play_item.play-1 {
    background: url(../images/btn-play.png) no-repeat top left;
}

.btn-play_list .btn-play_item.play-10 {
    margin-top: 9px;
    margin-left: 14px;
    background: url(../images/btn-play.png) no-repeat center left;
}

.btn-play_list .btn-play_item.play-50 {
    margin-top: 6px;
    margin-left: 25px;
    background: url(../images/btn-play.png) no-repeat bottom left;
}

.btn-play_list .btn-play_item.play-1:hover {
    background: url(../images/btn-play.png) no-repeat top right;
}

.btn-play_list .btn-play_item.play-10:hover {
    background: url(../images/btn-play.png) no-repeat center right;
}

.btn-play_list .btn-play_item.play-50:hover {
    background: url(../images/btn-play.png) no-repeat bottom right;
}

.luffy {
    width: 538px;
    height: 740px;
    position: absolute;
    background: url(../images/luffy.png) no-repeat;
    right: 172px;
    bottom: 22px;
    z-index: 4;
}

.luffy.background {
    position: absolute;
    width: 729px;
    height: 175px;
    background: url(../images/bg-luffy.png) no-repeat;
    bottom: 0;
    right: 12px;
    z-index: 2;
}

.chest-container {
    position: absolute;
    bottom: 50px;
    right: 0;
    z-index: 3;
    bottom: 106px;
}

.popup {
    z-index: 1001;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    padding-top: 222px;
}

.popup.popup-histories .wrap {
    background: url(../images/popup-history.png) no-repeat;
    width: 841px;
    height: 413px;
    padding: 89px 18px 48px 33px;
    position: relative;
    top: -67px;
    left: -25px;
}

.popup.popup-histories .wrap .content,
.popup.popup-histories .wrap .content .history,
.popup.popup-histories .wrap .content .history .tab-wrap-content,
.popup.popup-histories .wrap .content .history .tab-wrap-content .tab-content {
    height: 100%;
}

.popup.popup-histories .wrap .content .history .tab-wrap-content .tab-content {
    overflow-y: auto;
    max-height: 472px;
    display: none;
    margin: 0 auto;
    color: #fff;
}

.popup.popup-histories .wrap .content .history .tab-wrap-content .tab-content.active {
    display: block;
}

.popup.popup-histories .wrap .close {
    width: 45px;
    height: 45px;
    position: absolute;
    right: 23px;
    top: 0;
    text-indent: -9999px;
}

.popup.popup-text {
    z-index: 9999999;
}

.popup.popup-text .wrap {
    background: url(../images/popup-general.png) no-repeat;
    width: 554px;
    height: 318px;
    padding: 103px 14px 0 34px;
    position: relative;
    z-index: 999999;
    left: -16px;
    top: 7px;

}

.popup.popup-text .wrap .content {
    font-size: 18px;
}

.popup.popup-text .wrap .title {
    font-size: 20px;
}

.popup.popup-text .wrap .close {
    width: 45px;
    height: 45px;
    position: absolute;
    right: 0;
    top: 0;
    text-indent: -9999px;
}

.popup.popup-text {
    text-align: left;
    color: #fcffa5;
    font-size: 18px;
}

.popup.popup-update-profile {
    z-index: 1001;
}

.popup.popup-update-profile .wrap {
    background: url(../images/popup-update-info.png) no-repeat;
    width: 428px;
    height: 447px;
    padding: 104px 20px 0 25px;
    position: relative;
    top: -74px;
    left: 10px;
}

.popup.popup-update-profile .wrap .content .form-control {
    height: 27px;
    margin-bottom: 6px;
}

.popup.popup-update-profile .wrap .content .wrapper-select-server {
    position: relative;
}

.popup.popup-update-profile label {
    line-height: 22px;
    width: 128px;
    display: inline-block;
    float: left;
    margin-top: 5px;
    font-size: 18px;
    color: #fff;
}

.popup.popup-update-profile .wrap .content input {
    float: left;
    width: 220px;
    padding: 6px 0px 0px 0px;
    background: transparent;
    font-size: 16px;
    color: #6090b7;
    border: 0px;
    border-bottom: 1px solid #5290c4;
    border-radius: 0;
}

.popup.popup-update-profile .wrap .content .select2-container {
    left: 0 !important;
}

.popup.popup-update-profile .wrap .wrapper-select-server > .select2-container {
    width: 220px !important;
}

.popup.popup-update-profile .wrap .content .select2-container .dropdown-select-server {
    left: 128px !important;
}

#select2-server-results {
    width: 100% ;
}

.popup.popup-update-profile input::placeholder {
    color: #fff;
}

.popup.popup-update-profile .form-control-note {
    color: #fff;
}

.popup.popup-update-profile .form-control-submit {
    margin-top: 51px;
    display: flex;
    justify-content: center;
}

.popup.popup-update-profile .wrap .form-control-submit input {
    border: none;
    background: url(../images/btn-confirm.png) no-repeat top center / 100% 200%;
    width: 180px;
    height: 50px;
    text-indent: -9999px;
    cursor: pointer;
}

.popup.popup-update-profile .wrap .form-control-submit input:hover {
    background: url(../images/btn-confirm.png) no-repeat bottom center / 100% 200%;
}

.popup.popup-update-profile .wrap .close {
    width: 45px;
    height: 45px;
    position: absolute;
    right: 0;
    top: 0;
    text-indent: -9999px;
}

/*exchange*/
.exchange-container {
    width: 100%;
    height: 100%;
    margin-top: 32px;
}
.exchange {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 900px;
    padding-left: 50px;
    column-gap: 36px;
    row-gap: 20px;
}
.exchange .gift-item {
    position: relative;
    margin-top: 19px;
    width: 176px;
    background: url(../images/bg-exchange.png) no-repeat top center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.exchange .item-1 {
    background: url(../images/btn-exchange.png) top left no-repeat;
}
.exchange .item-1:hover {
    background: url(../images/btn-exchange.png) center left no-repeat;
}
.exchange .item-1.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange.png) bottom left no-repeat;
}
.exchange .item-2 {
    background: url(../images/btn-exchange.png) -203px 0 no-repeat
}
.exchange .item-2:hover {
    background: url(../images/btn-exchange.png) -203px -51px no-repeat;
}
.exchange .item-2.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange.png) -203px -102px no-repeat
}
.exchange .item-3 {
    background: url(../images/btn-exchange.png) -407px 0 no-repeat
}
.exchange .item-3:hover {
    background: url(../images/btn-exchange.png) -407px -51px no-repeat;
}
.exchange .item-3.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange.png) -407px -102px no-repeat
}
.exchange .item-4 {
    background: url(../images/btn-exchange.png) top right no-repeat;
}
.exchange .item-4:hover {
    background: url(../images/btn-exchange.png) center right no-repeat;
}
.exchange .item-4.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange.png) bottom right no-repeat;
}
.exchange .item-5 {
    background: url(../images/btn-exchange-2.png) top left no-repeat;
}
.exchange .item-5:hover {
    background: url(../images/btn-exchange-2.png) center left no-repeat;
}
.exchange .item-5.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange-2.png) bottom left no-repeat;
}
.exchange .item-6 {
    background: url(../images/btn-exchange-2.png) -203px 0 no-repeat;
}
.exchange .item-6:hover {
    background: url(../images/btn-exchange-2.png) -203px -51px no-repeat;
}
.exchange .item-6.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange-2.png) -203px -102px no-repeat;
}
.exchange .item-7 {
    background: url(../images/btn-exchange-2.png) -407px 0 no-repeat;
}
.exchange .item-7:hover {
    background: url(../images/btn-exchange-2.png) -407px -51px no-repeat;
}
.exchange .item-7.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange-2.png) -407px -102px no-repeat;
}
.exchange .item-8 {
    background: url(../images/btn-exchange-2.png) top right no-repeat;
}
.exchange .item-8:hover {
    background: url(../images/btn-exchange-2.png) center right no-repeat;
}
.exchange .item-8.off {
    cursor: not-allowed;
    background: url(../images/btn-exchange-2.png) bottom right no-repeat;
}

.exchange .gift-item .point {
    color: #ffea00;
    font-size: 16px;
    padding-top: 0;
    margin-top: 8px;
    font-weight: 400;
    width: 100%;
    padding-left: 13px;
}
.exchange .gift-item .name {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: -1px;
}
.exchange .gift-item img {
    line-height: 25px;
    text-align: center;
    display: block;
}
.exchange .gift-item .amount {
    width: 100%;
    height: 30px;
    color: #05548C;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    display: block;
    transform: translateY(-10px);
}
.exchange .gift-item .gift {
    display: block;
    width: 176px;
    height: 51px;
    text-indent: -9999px;
}
.exchange .gift-item .gift span {
    display: block;
    border: 1px solid #000;
    margin: 2px;
    line-height: 24px;
    color: #c5c5c5;
    background: #414141;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    padding-top: 5px;
    border-radius: 10px;
}
.exchange .gift-item.gift-item-long-text .gift span {
    line-height: 12px;
}

#user-info {
    margin: 20px 0;
    padding-left: 20px;
    width: 100%;
}

#user-info * {
    font-size: 20px;
}

#user-info div .info {
    color: #FFF4BA;
}

#user-info div span:nth-child(2) {
    color: #fff;
}

#btn-histories {
    margin-right: 65px;
    color: #8AFF00;
}

#user-info .logout {
    color: #8FFEEE;
}

.chest-container img.effect {
    display: block;
    max-width: 100%;
    animation: chest-shake 0.6s infinite ease-in-out;
    transform-origin: center;
}

@keyframes chest-shake {
    0%   { transform: rotate(0deg) scale(1); }
    10%  { transform: rotate(2deg) scale(1.05); }
    20%  { transform: rotate(-2deg) scale(1.05); }
    30%  { transform: rotate(3deg) scale(1.08); }
    40%  { transform: rotate(-3deg) scale(1.08); }
    50%  { transform: rotate(4deg) scale(1.1); }
    60%  { transform: rotate(-4deg) scale(1.1); }
    70%  { transform: rotate(2deg) scale(1.12); }
    80%  { transform: rotate(-2deg) scale(1.12); }
    90%  { transform: rotate(1deg) scale(1.15); }
    100% { transform: rotate(0deg) scale(1); }
}

.popup.popup-histories .wrap table {
    width: 100%;
}

.popup.popup-histories ul.tab {
    display: flex;
    position: absolute;
    top: -22px;
    left: 118px;
}

.popup.popup-histories ul.tab li {
    width: 301px;
    height: 90px;
    cursor: pointer;
}

.popup.popup-histories ul.tab .history-spin {
    background: url(../images/btn-tab-history.png) no-repeat top left;
}

.popup.popup-histories ul.tab .history-spin.active {
    background: url(../images/btn-tab-history.png) no-repeat bottom left;
}

.popup.popup-histories ul.tab .history-spin:hover {
    background: url(../images/btn-tab-history.png) no-repeat center left;
}

.popup.popup-histories ul.tab .history-exchange {
    background: url(../images/btn-tab-history.png) no-repeat top right;
}

.popup.popup-histories ul.tab .history-exchange.active {
    background: url(../images/btn-tab-history.png) no-repeat bottom right;
}

.popup.popup-histories ul.tab .history-exchange:hover {
    background: url(../images/btn-tab-history.png) no-repeat center right;
}

.popup.popup-histories ul.tab li a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
}

.popup.popup-histories .wrap table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.popup.popup-histories .wrap table thead {
    background-color: #B92406;
}

.popup.popup-histories .wrap table tbody td {
    background-color: #FFFFA7;
}

.popup.popup-histories .wrap table tr td,
.popup.popup-histories .wrap table tr th {
    border: 1px solid #000;
    text-align: center;
}

.popup.popup-histories .wrap table tr th {
    text-transform: uppercase;
    font-weight: 800;
    color: #FEFF3E;
    font-size: 18px;
}

.popup.popup-histories .wrap table tr td { 
    color: #951605;
    font-weight: 600;
    font-size: 18px;
}

.popup.popup-histories .wrap table tr {
    height: 40px;
}


#ranking {
    background: url(../images/bg-bxh.png) no-repeat;
    height: 547px;
    padding-top: 57px;
    margin-top: 58px;
    margin-left: 88px;
    padding-right: 114px;
}

#ranking table {
    width: 100%;
    height: 100%;
}

#ranking table tr {
    height: 44px;
    display: block;
    color: #ffe400;
    padding-top: 8px;
}

#ranking table tr td {
    height: 100%;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ranking table tr:first-child td {
    color: #72ff00;
}

#ranking table tr:nth-child(2) {
    color: #03ffd3;
}

#ranking table tr:nth-child(3) {
    color: #ff7200;
}

#ranking table tr td:nth-child(2) {
    text-align: left;
    padding-left: 20px;
}

#tab-content-rules {
    padding: 64px 0 0 60px;
    max-height: 592px;
    color: #fff;
    max-width: 900px;
}

.mCustomScrollbar .mCSB_scrollTools {
    width: 16px;
}

.mCustomScrollbar .mCSB_dragger .mCSB_dragger_bar {
    width: 16px;
    background-color: #d10006;
    border-radius: 8px;
}

.mCustomScrollbar .mCSB_scrollTools .mCSB_draggerRail {
    width: 8px;
    background-color: rgb(94, 20, 20);
}

#tab-content-rules .mCSB_container h1 {
    color: #FFDE00;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 15px;
}

#tab-content-rules .mCSB_container h1 span {
    color: #fff !important;
}

#tab-content-rules .mCSB_container h2 {
    color: #0000cc;
    font-size: 24px;
    font-weight: 600;
}

#tab-content-rules .mCSB_container p {
    margin-bottom: 16px;
}

#tab-content-rules .mCSB_container ul {
    margin: 10px 0 10px 40px;
}

#tab-content-rules .mCSB_container ul li {
    list-style: disc;
}

#tab-content-rules .mCSB_container span[style="color:#9b59b6"] {
    color: #FFDE00 !important;
}

#tab-content-rules .mCSB_container span[style="color:#e74c3c"] {
    color: #fff!important;
}

#tab-content-rules .mCSB_container h3,
#tab-content-rules .mCSB_container h3 span[style="color:#9b59b6"] {
    color: #3498db !important;
    font-size: 22px;
    font-weight: 600;
}