html, body {
    background-color: rgb(32,12,50);
    height: 100%;
}
#wrapper {
    background-image: url("../img/bg.png");

    /* Full height */
    height: 100%;

    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem;
}

.logo img {
    width: 100%;
}

.header a {
    font-weight: bold;
    border: 0;
}
.header .btn-secondary {
    background: url('../img/btn-default.png') repeat-x;
    padding: 0.175rem 0.75rem;
}
.header .btn-danger {
    background: url('../img/btn-active.png') repeat-x;
    padding: 0.175rem 0.75rem;
}

.page-content {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 3rem;
}
.btn:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.action-item {
    margin-right: 1rem;
}
.btn-action {
    border-radius: 50rem;
    background: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    color: #fff;
    border: 3px solid #444;
    min-width: 7rem;
    padding: 0.175rem 0.75rem;
}

.btn-action:hover {
    color: #fff;
}

.btn-action.active {
    border-color: #fff;
    border-width: 3px;
    color: #fff;
}

.charge-form .form-group {
    margin-bottom: 0.4rem;
}
.charge-form .form-control {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    width: 100%;
    color: #fff;
}
.charge-form .form-control:hover, .charge-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.charge-form select.form-control {
    border-width: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    /* no standardized syntax available, no ie-friendly solution available */
}
.charge-form .select-wrapper {
    position: relative;
}

.select-wrapper:after {
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    content: '\f0d7';
    font-size: 1.5rem;
    position: absolute;
    top: 0px;
    right: 5px;
    color: #fff;
    pointer-events: none;
}

.charge-form input.form-control {
    border: 2px solid #7b6981;
}


.charge-rate {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 1rem 3rem;
    height: 400px;
    overflow-y: scroll;
    color: #fff;
}

.table-fixed tbody {
    height: 300px;
    overflow-y: auto;
    width: 100%;
}

.table-fixed tbody tr td {
    border-top: 1px solid #444;
    text-align: center;
}

.table-fixed thead,
.table-fixed tbody,
.table-fixed tr,
.table-fixed td,
.table-fixed th {
    display: block;
}

.table-fixed tbody td,
.table-fixed tbody th,
.table-fixed thead > tr > th {
    float: left;
    position: relative;
}

.table-fixed thead > tr > th::after {
    content: '';
    clear: both;
    display: block;
}

.section-momo {
    color: white;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin-bottom: 3rem;
}
.momo-success {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1rem;
}

.loading {
    display: none;
}

.loading-form {
    display: none;
    position: absolute;
    background-color: #EEE;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0.8;
}

.btn-block + .btn-block {
    margin-top: 0;
}

#resultAcountName {
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-do-action {
    background: url('../img/btn-do-action.png') repeat-x center center;
    border: none;
    width: 7rem;
    border-radius: 4px;
    text-shadow: 1px 1px #000;
    color: #fff;
}
.btn-do-action:hover {
    color: #fff;
}
.bank-item {
    display: none;
}
.note {
    padding-left: 1rem;
    margin-bottom: 0;
}
.charge-content p {
    color: #fff;
}
.btn-momo {
    background: #a41f67;
    color: #fff;
}
@media screen and (max-width: 820px) {
    html {
        font-size: 12px;
    }
    .container {
        max-width: 100%;
    }
    .logo {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .logo img {
        width: 30%;
    }
    .header {
        margin-top: 0px !important;
    }
    .header a.btn-secondary {
        background-color: rgba(108,117,125,0.8);
    }
    .btn-action.active, .btn-action {
        border-width: 1px;
    }
    #userId {
        text-align: center !important;
    }

    .section-momo, .page-content {
        padding: 0.5rem;
    }

    .game-logo img, .momo-logo img {
        width: 50%;
    }
    .charge-form .form-group {
        margin-bottom: 0.2rem !important;
    }
    .charge-form .form-control {
        height: calc(1.25em + .75rem + 2px);
    }
    .charge-rate {
        padding: 0.5rem 1rem;
        height: 14rem;
    }
    .section-momo {
        margin-bottom: 0.5rem;
    }
    .section-momo p {
        margin-bottom: 0.5rem;
    }
    .note {
        font-size: 0.75rem;
    }
    .charge-content p {
        margin-bottom: 0.25rem;
    }
}

/* Loading Animation */
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
