@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

img.list-preview {
    max-width: 100px;
    max-height: 36px;
}

.table-layout-fix > tbody > tr > td {
    vertical-align: middle;
}

.middle-box h1 {
    font-size: 88px;
}

.form-control-text {
    padding: 7px 0px;
    border: none;
}

span.btn {
    cursor: text;
}

.btn-control {
    display: block;
    width: 100%;
}

.btn.file-upload {
    position: relative;
    overflow: hidden;
}

.btn.file-upload input {
    cursor: pointer;
}

.upload-wrapper {
    padding: 15px;
}

.upload-wrapper .panel {
    margin-bottom: 0px;
}

.col-width-auto {
    width: auto;
}

#apk-upload {
    height: 62px;
    overflow: auto;
}

.tab-content .ibox-content {
    border: none;
}

.ibox-content .table th a {
    color: #676a6c;
}

.ibox-content .table th a:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    content: "\f0dc";
    margin-left: 5px;
}

.ibox-content .table th a.desc:after {
    content: "\f0dd";
}

.ibox-content .table th a.asc:after {
    content: "\f0de";
}

.form-group.required > label:after {
    content: "*";
    color: #ed5565;
    margin-left: 5px;
}

.form-horizontal .form-group.required > label:before {
    content: "*";
    color: #ed5565;
    margin-right: 5px;
}

.form-horizontal .form-group.required > label:after {
    margin-left: 0px;
    content: '';
}

.loading i {
    content: "\f110";
    font: normal normal normal 14px/1 FontAwesome;
    animation: loading 2s linear 0s infinite;
    margin-left: 5px;
}

/* chapter content begin */

.content-count {
    font-size: 14px;
    line-height: 28px;
    text-align: right;
    color: #c0c0c0;
    opacity: 0;
}

.content-count span {
    display: inline-block;
    padding: 0px 5px;
    color: #ff0000;
    font-weight: bold;
}

.chapter-content {
    padding: 6px 6px 0px;
    background-color: #ffffff;
    margin-bottom: 40px;
}

.chapter-content ul {
    margin-right: -20px;
    margin-bottom: 0px;
}

.content-item {
    float: left;
    width: 172px;
    height: 172px;
    border: 1px solid #e2e2e2;
    margin-right: 6px;
    margin-bottom: 6px;
    margin-top: 0px !important;
    border-radius: 0px !important;
    padding: 0px;
    position: relative;
    overflow: hidden;
}

.content-item .close {
    display: block;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 5px;
    z-index: 2;
    outline: none;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 16px;
    text-shadow: none;
    color: #ffffff;
}

.content-item .close:before {
    content: "\f00d";
}

.content-item .close:hover {
    opacity: 1;
}

.content-item .notice {
    width: 100%;
    padding: 5px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: #ff0000;
    text-align: center;
}

.content-image {
    width: 170px;
    height: 170px;
}

.content-image img {
    width: 170px;
    height: 170px;
}

.content-item .progress {
    width: 100%;
    height: 30px;
    line-height: 30px;
    position: absolute;
    left: 0px;
    bottom: 0px;
    border-radius: 0px;
    margin-bottom: 0px;
    z-index: 1;
    background: none;
    box-shadow: none;
}

.content-item .progress-bar {
    height: 30px;
    line-height: 30px;
}

.chapter-content .add-content {
    width: 170px;
    height: 170px;
    text-align: center;
    padding-top: 40px;
    color: #474747;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.chapter-content .add-content span.fa {
    font-size: 72px;
    color: #e0e0e0;
    display: block;
}

/* chapter content end */

/* app list begin */

.list-app-icon {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.list-app-icon .list-app-status {
    display: block;
    width: 100px;
    line-height: 22px;
    position: absolute;
    top: 10px;
    left: -30px;
    transform: rotate(-45deg);
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.5);
    background: #666666;
}

.list-app-icon .app-status-0 {
    background-color: #ff9800;
}

.list-app-icon .app-status-1 {
    background-color: #8bc34a;
}

.list-app-icon .app-status-2 {
    background-color: #bbbbbb;
}

.list-app-icon .app-status-3 {
    background-color: #26a69a;
}

.list-app-icon .app-status-4 {
    background-color: #009688;
}

/* app list end */

/* app form begin */

.add-icon * {
    cursor: pointer;
}

.game-icon {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    vertical-align: top;
    position: relative;
    float: left;
    margin-right: -100px;
}

.game-icon img {
    width: 100px;
    height: 100px;
}

.game-info {
    display: inline-block;
    vertical-align: top;
    padding-left: 20px;
    margin-left: 100px;
}

.game-icon .app-status {
    display: none;
    width: 100px;
    line-height: 22px;
    position: absolute;
    top: 10px;
    left: -30px;
    transform: rotate(-45deg);
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.5);
    background: #666666;
}

.game-icon .app-status--1 {
    display: block;
}

.game-icon .app-status-0 {
    display: block;
    background-color: #ff9800;
}

.game-icon .app-status-1 {
    display: block;
    background-color: #8bc34a;
}

.game-icon .app-status-2 {
    display: block;
    background-color: #bbbbbb;
}

.game-icon .app-status-3 {
    display: block;
    background-color: #26a69a;
}

.game-icon .app-status-4 {
    display: block;
    background-color: #009688;
}

/* app form end */

/* screenshots begin */

.game-screenshot {
    background-color: #ffffff;
    margin-bottom: 40px;
    overflow: auto;
}

.game-screenshot ul {
    margin-right: -20px;
    margin-bottom: 0px;
    display: table;
}

.screenshot-file {
    display: table-cell;
    height: 155px;
    margin-top: 0px !important;
    border-radius: 0px !important;
    padding: 0px;
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

.screenshot-file.ui-sortable-placeholder {
    display: block;
    margin-left: 6px;
    visibility: inherit !important;
    width: 10px;
}

.screenshot-file .close {
    display: block;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 5px;
    z-index: 2;
    outline: none;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 16px;
    text-shadow: none;
    color: #ffffff;
}

.screenshot-file .close:before {
    content: "\f00d";
}

.screenshot-file .close:hover {
    opacity: 1;
}

.screenshot-file .notice {
    width: 100%;
    padding: 5px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: #ff0000;
    text-align: center;
}

.screenshot-file .add-screenshot {
    width: 87px;
    height: 155px;
    border: 1px solid #e2e2e2;
    text-align: center;
    padding-top: 53px;
    color: #474747;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.screenshot-file .add-screenshot span.fa {
    font-size: 48px;
    color: #e0e0e0;
    display: block;
}

.screenshot-image {
    height: 155px;
    margin-right: 6px;
}

.screenshot-image img {
    height: 155px;
}

.screenshot-image .progress {
    width: 100%;
    height: 30px;
    line-height: 30px;
    position: absolute;
    left: 0px;
    bottom: 0px;
    border-radius: 0px;
    margin-bottom: 0px;
    z-index: 1;
    background: none;
    box-shadow: none;
}

.screenshot-image .progress-bar {
    height: 30px;
    line-height: 30px;
}

/* screenshots end */

/* game form begin */

.folding-header {
    display: flex;
}

.folding-header label {
    font-weight: bold;
    word-break: keep-all;
}

.folding-header .form-group {
    display: inline-block;
    flex: 1;
}

.folding-line {
    display: inline-block;
    flex: 10;
    height: 17px;
    border-bottom: 1px solid #dddddd;
    margin-left: 50px;
}

.parting-line {
    font-size: 0px;
    clear: both;
    height: 1px;
    background: #dddddd;
    margin-bottom: 15px;
}

.field-area {
    padding: 15px 15px 0;
    border: 1px solid #dddddd;
    border-radius: 3px;
    margin-bottom: 15px;
}

.form-list-item {
    position: relative;
}

.form-list-item img {
    max-height: 80px;
    max-width: 200px;
}

.form-list-edit {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    font-size: 24px;
    position: absolute;
    top: 50%;
    margin-top: -25px;
    right: 25px;
    text-align: center;
    line-height: 50px;
    color: #ffffff;
    display: none;
}

.form-list-item:hover .form-list-edit {
    display: inline-block;
}

.form-list-edit:hover {
    color: #ffffff;
}

/* game form end */

/* medium-editor-element begin */

.medium-editor-element {
    font-size: 14px;
    height: auto;
    min-height: 124px;
    max-height: 364px;
}

.medium-editor-element h1 {
    font-size: 24px;
    margin: 0 0;
}

.medium-editor-element h2 {
    font-size: 20px;
    margin: 0 0;
}

.medium-editor-element h3 {
    font-size: 16px;
    margin: 0 0;
}

.medium-editor-element h4,
.medium-editor-element p,
.medium-editor-element blockquote,
.medium-editor-element ul,
.medium-editor-element ol {
    margin: 0 0;
}

.medium-editor-element h5 {
    font-size: 12px;
    margin: 0 0;
}

.medium-editor-element h6 {
    font-size: 10px;
    margin: 0 0;
}

.medium-editor-element h1,
.medium-editor-element h2,
.medium-editor-element h3,
.medium-editor-element h4,
.medium-editor-element h5,
.medium-editor-element h6,
.medium-editor-element b,
.medium-editor-element strong {
    font-weight: bolder;
}

.medium-editor-element blockquote {
    margin-left: 40px;
    margin-right: 40px;
    border: none;
}

/* medium-editor-element end */

.preview-upload {
    max-width: 360px !important;
    max-height: 203px !important;
    width: 360px !important;
    height: 203px !important;
}

.preview-upload img {
    max-width: 360px !important;
    max-height: 203px !important;
    width: 360px !important;
    height: 203px !important;
}

.img-pop-preview {
    border: 1px solid #dddddd;
    padding: 1px;
    background: #ffffff;
    box-shadow: 1px 2px 5px #000000;
}

.detail-view > tbody > tr > td:nth-child(2) {
    word-break: break-all;
}


/* seo related fields */
label[for="games-format_tag_ids"],
label[for="appi18n-brief"],
label[for="appi18n-seo_keywords"],
label[for="appi18n-seo_title"] {
    cursor: help;
}

label[for="games-format_tag_ids"]::after,
label[for="appi18n-brief"]::before,
label[for="appi18n-seo_keywords"]::before,
    /*label[for="appi18n-seo_title"]::before {*/
    /*content: '? ';*/
    /*color: orange;*/
    /*}*/

label[for="games-format_tag_ids"]::after {
    margin-left: 5px;
}

button[data-act="google-search"] {
    /*color: orange;
    border: dotted 1px currentColor;*/
}

#appi18n-app_name:placeholder-shown + .input-group-btn button {
    color: #cacaca;
    cursor: not-allowed;
    pointer-events: none;
}

.field-appi18n-seo_keywords,
.field-appi18n-seo_title {
    display: none;
}


/* css hacker */

.no-required .form-group.required > label::after {
    content: "";
}

.field-games-download_device {
    opacity: .5;
    pointer-events: none;
}


.label-new {
    background-color: #76c1c6;
    color: white;
}

.label-default {
    background-color: darkgrey;
    color: white;
}

.tip-div {
    height: 34px;
    display: table-cell;
    vertical-align: middle;
}

.game-icon-hint {
    margin-top: 20px;
    margin-left: 120px;
    color: darkgrey;
}


.tooltip-inner {
    padding: 10px;
    /*line-height: 20px;*/
    max-width: 400px !important;
    text-align: left !important;
    background-color: #d99733 !important;
}

.tooltip-arrow {
    border-bottom-color: #d99733 !important;
}


.notification-detail {
    margin-top: 10px;
    margin-bottom: 10px;
}

.pointer {
    cursor: pointer;
}

.notification-list {
    padding: 10px 20px;
    background-color: #ffffff;
    margin-bottom: 10px;
    border-radius: 4px;
}

.notification-content {
    margin-top: 5px;
    margin-left: 8px;
}

.notification-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

.notification-list.has-read {
    opacity: 0.5;
}

.notification-title.has-read {
    color: unset;
}

.notification-unread::after {
    content: attr(data-text);
    position: absolute;
    display: inline-block;
    left: 100%;
    margin-left: -12px;
    top: 15px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: #f14c3c;
    line-height: 16px;
    font-size: 12px;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

#price .show-price {
    border-color: transparent;
    color: #ff0000;
    font-weight: bold;
}