﻿* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: Calibri;
}

    body:not(.is-author) .show-if-author, body.is-author .hide-if-author,
    body:not(.is-actor) .show-if-actor, body.is-actor .hide-if-actor,
    body:not(.is-active-actor) .show-if-active-actor, body.is-active-actor .hide-if-active-actor {
        display: none;
    }

    body.show-finish .hide-if-finish {
        display: none !important;
    }

body.fatal-error .game-field {
    display: none !important;
}

.zone-toolbar {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: rgb(15, 15, 23);
    background-image: url('toolbar2.jpg');
    background-repeat: repeat-y;
    background-position: left top;
    background-size: 100%;
    color: rgb(255, 211, 133);
    text-shadow: 0 0 10px black;
    border-bottom: 2px solid rgb(255, 186, 55);
    white-space: nowrap;
    overflow: hidden;
}

    .zone-toolbar > li:not(:first-of-type) {
        margin-left: -4px;
    }

    .zone-toolbar button {
        line-height: 100%;
    }

.zone-toolbar-info {
    margin: 0;
    padding: 0;
    display: inline-block;
    width: auto;
    height: 50px;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 90px;
    padding-right: 20px;
    backgr-ound-image: url('toolbar-finish.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-color: rgba(0, 0, 0, 0.15);
}

.info-user-welcome {
    padding-right: 10px;
}

.info-action-now {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
}

body.show-action .info-action-now {
    background: rgba(0, 0, 0, 0.5);
}

.zone-toolbar-info-gold {
    padding: 0 10px 0 0;
    display: inline-block;
}

    .zone-toolbar-info-gold .coin {
        width: 30px;
        height: 30px;
        vertical-align: middle;
    }

.zone-toolbar-extra {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    padding-right: 80px;
}

.btn-back-step, .btn-next-step, .btn-next-reset, .btn-next-finish {
    outline: none;
    border: 1px solid orange;
    background: transparent;
    color: rgb(255, 186, 55);
    font-weight: bold;
}

    .btn-back-step:disabled, .btn-next-step:disabled, .btn-drop-cube:disabled {
        opacity: 0.55;
    }

.btn-next-finish {
    margin-right: 20px;
}

.btn-drop-cube {
    height: 40px;
    font-weight: bold;
    font-size: 16px;
    outline: none;
    background: rgba(128, 64, 0, 0.5);
    color: inherit;
    border: 1px solid #FF7816;
    margin-left: 10px;
}

    .btn-drop-cube > img {
        width: 20px;
        height: 20px;
        border-radius: 25%;
        border: 1px solid black;
        vertical-align: middle;
    }

.btn-link-admin {
    font-weight: normal;
    font-size: 13px;
    color: cyan;
}

.info-cell-details {
    display: none;
}

.zone-wrapper {
    position: absolute;
    left: 0;
    top: 50px;
    width: 100%;
    bottom: 0px;
    background-color: black;
}

    .zone-wrapper > .zone {
        width: 35px;
        height: 100%;
        display: inline-block;
        background-color: black;
    }

        .zone-wrapper > .zone:not(.active) {
            cursor: pointer;
        }

        .zone-wrapper > .zone.active {
            width: 99%;
            width: calc(100% - 40px);
            background-color: rgb(15, 15, 23);
        }

.zone-field {
    background-image: url('chevron-right.png');
    background-repeat: no-repeat;
    background-position: center left;
}

    .zone-field.active {
        background-image: url('board.jpg');
        background-size: contain;
        background-position: left top;
        border-right: 3px solid rgb(55, 9, 79);
        border-bottom-right-radius: 50px 150px;
    }

.zone-title {
    white-space: nowrap;
    position: absolute;
    -webkit-transform: rotate(-90deg);
    -webkit-transform-origin: 15px 50%;
    transform: rotate(-90deg);
    transform-origin: 15px 50%;
    color: gold;
    font-weight: bold;
    font-size: 18px;
    left: 0;
    top: 25%;
    top: calc(50% - 60px);
    right: auto;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

.zone.active .zone-title {
    display: none;
}

.zone-history {
    background-image: url('chevron-left.png');
    background-repeat: no-repeat;
    background-position: center left;
    position: relative;
}

    .zone-history.active {
        background-image: none;
        border-left: 3px solid rgb(55, 9, 79);
        border-bottom-left-radius: 50px 150px;
    }

body.show-finish .zone-history {
    z-index: 100;
}

.game-chip {
    position: absolute;
    width: 24px;
    height: 48px;
    margin-top: -24px;
    background-image: url('fishki/01.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 24px 48px;
}

    .game-chip.is-active {
        -ms-filter: "progid:DXImageTransform.Microsoft.Brightness(2)";
        -webkit-filter: brightness(200%);
        -moz-filter: brightness(200%);
        filter: brightness(200%);
    }

    .game-chip.actor0 {
    }

    .game-chip.actor1 {
        background-image: url('fishki/04.png');
    }

    .game-chip.actor2 {
        background-image: url('fishki/03.png');
    }

    .game-chip.actor3 {
        background-image: url('fishki/02.png');
    }

    .game-chip.actor4 {
        background-image: url('fishki/05.png');
    }

    .game-chip.actor5 {
        background-image: url('fishki/06.png');
    }

    .game-chip.actor6 {
        background-image: url('fishki/07.png');
    }

    .game-chip.actor7 {
        background-image: url('fishki/08.png');
    }

.game-chip-field {
    background-color: rgba(255, 255, 225, 0.01);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.zone-field:not(.active) .game-chip-field {
    display: none;
}

.game-history-field, .game-history-actors {
    background-color: rgba(255, 255, 225, 0.01);
    position: absolute;
    left: 0;
    top: 50px;
    right: 0;
    bottom: 0;
    color: white;
    z-index: 2;
    display: none;
}

.game-history-actors {
    top: 0;
    bottom: auto;
    height: 47px;
    overflow: visible !important;
    z-index: 0;
    border-bottom: 3px solid rgb(55, 9, 79);
}

.zone.active .game-history-field, .zone.active .game-history-actors {
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
}

.game-history-backdrop {
    background-color: rgba(0, 0, 0, 0.25);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.zone-history:not(.backdrop) .game-history-backdrop {
    display: none;
}


.history-list {
    width: 100%;
    table-layout: auto;
}

    .history-list tr:nth-of-type(even) {
        background: rgba(55, 9, 79, .3);
    }

    .history-list tr > td:first-of-type {
        width: 40%;
    }

.history-item {
    border-bottom: 3px solid rgb(55, 9, 79);
    border-right: 3px solid rgb(55, 9, 79);
    padding: 15px;
    vertical-align: top;
}

    .history-item div {
        line-height: 30px;
        display: inline-block;
        font-size: 20px;
    }

        .history-item div:not(:first-of-type) {
            text-indent: 20px;
        }

    .history-item .coin {
        width: 30px;
        height: 30px;
        vertical-align: middle;
    }

.actor-chip-icon {
    display: inline-block;
    width: 15px;
    height: 28px;
    line-height: 30px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 15px 28px;
}

    .actor-chip-icon.small {
        width: 10px;
        height: 20px;
        background-size: 10px 20px;
        line-height: 22px;
    }

    .actor-chip-icon[data-actor='0'] {
        background-image: url('fishki/01.png');
    }

    .actor-chip-icon[data-actor='1'] {
        background-image: url('fishki/04.png');
    }

    .actor-chip-icon[data-actor='2'] {
        background-image: url('fishki/03.png');
    }

    .actor-chip-icon[data-actor='3'] {
        background-image: url('fishki/02.png');
    }

    .actor-chip-icon[data-actor='4'] {
        background-image: url('fishki/05.png');
    }

    .actor-chip-icon[data-actor='5'] {
        background-image: url('fishki/06.png');
    }

.next-actor-panel {
    margin-left: 20px;
    font-size: 13px;
}

body:not(.show-action) .action-host-back,
body:not(.show-finish) .finish-host-back,
body:not(.show-finish) .finish-hat-host,
body:not(.show-new-game) .new-game-host,
body:not(.show-result) .result-host-back {
    display: none;
}

.action-host-back, .result-host-back {
    background-color: rgba(255, 255, 255, 0.25);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.result-host-back {
    z-index: 11;
}

.result-host {
    width: auto;
    position: relative;
    left: 25%;
    top: 20%;
    bottom: 20%;
    background-color: rgba(19, 21, 34, 0.85);
    color: white;
    border-radius: 25px;
    border: 1px solid rgb(162, 18, 140);
    box-shadow: 0 0 80px black, inset 0px 0px 40px rgb(217, 153, 207);
    padding: 35px 40px 60px 40px;
    text-align: center;
    display: inline-block;
    font-size: 20px;
}

    .result-host * {
        cursor: default !important;
    }

.action-host, .result-host- {
    position: absolute;
    left: 20%;
    top: 20%;
    right: 20%;
    bottom: 20%;
    background-color: rgba(19, 21, 34, 0.85);
    color: white;
    border-radius: 25px;
    border: 1px solid rgb(162, 18, 140);
    box-shadow: 0px 0px 80px black, inset 0px 0px 40px rgb(217, 153, 207);
    padding: 25px;
}

    .action-host.top-left {
        left: 10px;
        top: 50px;
        right: auto;
        bottom: auto;
        width: 60%;
        height: 50%;
    }

    .action-host.bottom-right {
        left: auto;
        top: auto;
        right: 10px;
        bottom: 10px;
        width: 50%;
        height: 50%;
    }

    .action-host.top-right {
        left: auto;
        top: 50px;
        right: 10px;
        bottom: auto;
        width: 60%;
        height: 50%;
    }

    .action-host.bottom-left {
        left: 10px;
        top: auto;
        right: auto;
        bottom: 10px;
        width: 50%;
        height: 50%;
    }

    .action-host.half-size {
        left: 35% !important;
        top: 30% !important;
        right: auto !important;
        bottom: auto !important;
        width: 500px !important;
        height: 300px !important;
    }


.action-content-host {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-bottom: 36px;
}

.action-content {
    display: table-row;
    overflow: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 41px;
}

    .action-content h3 {
        margin: 0;
        vertical-align: middle;
        line-height: 60px;
    }

        .action-content h3 > span {
            vertical-align: middle;
            line-height: inherit;
        }

        .action-content h3 .amulets-host {
            margin: 0 0 0 25px;
        }

.action-info {
    font-size: 20px;
    margin-bottom: 15px;
    padding-right: 4px;
}

    .action-info h3 {
        padding: 0 0 5px 0;
        margin: 0 0 5px 0;
        border-bottom: 1px dashed white;
    }

        .action-info h3 > span.age {
            color: greenyellow;
            float: right;
        }


.action-toolbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background-color: rgba(65, 7, 56, 0.25);
    text-align: center;
    z-index: 102;
}

.action-confirm, .btn-confirm, .btn-cancel {
    border: none;
    outline: none;
    color: white;
    background-color: rgb(65, 7, 56);
    padding: 6px 12px;
}

.action-confirm {
    cursor: pointer;
}

.btn-confirm {
    border: 1px solid darkviolet;
    margin-right: 5px;
}

    .action-confirm:disabled, .action-confirm[disabled],
    .btn-confirm:disabled, .btn-confirm[disabled],
    .btn-cancel:disabled, .btn-cancel[disabled] {
        opacity: 0.25;
    }

.action-cards-list-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 10px;
}

.action-info .action-cards-list-wrapper {
    padding-top: 0;
}

.action-host:not(.read-only) .action-content-overlay {
    display: none;
}

.action-host.read-only {
    -background-color: rgba(19, 21, 34, 0.01);
}

    .action-host.read-only .action-content {
        -opacity: 0.5;
        overflow: hidden;
    }

.action-content-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
}

.action-cards-list {
    overflow: hidden;
    text-align: center;
    border-top: 1px solid white;
    margin-bottom: 25px;
}

.action-card-item {
    display: inline-block;
    width: 90px;
    height: 130px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border: 1px solid white;
    position: relative;
    left: 5px;
    margin-right: 5px;
}

    .action-card-item.show-full {
        position: absolute;
        top: 0;
        left: 25%;
        bottom: 41px;
        width: 50%;
        height: auto;
        z-index: 101;
        box-shadow: 0 0 50px black;
    }

    .action-card-item.show-half {
        top: 30px;
        width: 300px;
        height: 400px;
        z-index: 101;
        box-shadow: 0 0 50px black;
        display: inline-block;
    }

        .action-card-item.show-half:hover {
            z-index: 102 !important;
        }

.result-card-item {
    font-size: 20px;
    width: 48%;
    min-width: 350px;
    display: inline-block;
    text-align: center;
    vertical-align: top;
}

    .result-card-item.is-single {
        width: 95%;
        display: block;
    }

.action-card-item.show-preview {
    width: 50px;
    height: 70px;
    line-height: 70px;
}

.action-card-item.show-full .action-card-content,
.action-card-item.show-half .action-card-content,
.action-card-item.show-prev-iew .action-card-content {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.action-card-item:hover:not(.show-full) {
    cursor: pointer;
    -webkit-transform: scale(1.3);
    transform: scale(1.5);
    z-index: 100;
    box-shadow: 0 0 20px black;
    -webkit-transition: transform 300ms;
    transition: transform 300ms;
}

.action-cards-list h3 {
    margin: 10px 5px;
    padding: 0;
}

.coins-list, .amulets-host {
    text-align: center;
    vertical-align: middle;
}

.amulets-host {
    margin-top: 15px;
    line-height: 60px;
}

    .coins-list > div, .amulets-host > div {
        vertical-align: middle;
    }

    .coins-list .coins-label, .amulets-host .amulets-label {
        font-size: 20px;
        margin-right: 15px;
    }

        .coins-list .coins-label.coins-label-plus {
            display: block;
            color: lightskyblue;
            margin-right: 0;
            margin-bottom: 10px;
        }

.coin-plus, .coin-minus {
    display: inline-block;
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background-image: url('arrow-green.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.coin-minus {
    background-image: url('arrow-red.png');
}

.coin {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('coin1.png');
    background-repeat: no-repeat;
    background-size: contain;
}

    .coin.overlapped {
        margin-left: -25px;
        padding-left: 25px;
    }

        .coin.overlapped.start {
            margin-left: 0 !important;
        }

    .coin.dimmed {
        opacity: 0.85;
    }

    .coin.muted {
        opacity: 0.25;
    }

.result-coin-host {
    margin-bottom: 15px;
}

    .result-coin-host .coin {
        width: 30px;
        height: 30px;
    }

    .result-coin-host .sign-plus, .result-coin-host .sign-minus {
        height: 20px;
        margin: 0 5px;
        vertical-align: 5px;
    }


.action-content .coin.overlapped {
    margin-left: -25px;
    padding-left: 25px;
}

.amulets-label {
    vertical-align: bottom;
}

.amulet {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('amulet.png');
    background-repeat: no-repeat;
    background-size: contain;
}

    .amulet.overlapped {
        margin-left: -40px;
        padding-left: 40px;
    }

        .amulet.overlapped.start {
            margin-left: 0 !important;
        }

    .amulet.dimmed {
        opacity: 0.75;
    }

    .amulet:not(.dimmed) {
        cursor: pointer;
    }

    .amulet.muted {
        opacity: 0.25;
    }

    .amulet.mini {
        width: 30px;
        height: 30px;
    }

.action-toolbar > * {
    height: 100%;
    vertical-align: middle;
}

.action-toolbar div.amulet {
    width: 30px;
}

.black-hole-host {
    width: 30%;
    margin: 15px auto;
    border-radius: 50%;
    overflow: hidden;
}

    .black-hole-host > img {
        width: 100%;
    }

.sign-plus, .sign-minus, .sign-back, .sign-black-hole {
    display: inline-block;
    margin: 5px 5px;
    width: 20px;
    width: 20px;
    height: 20px;
    line-height: 30px;
    vertical-align: middle;
    background-image: url('plus.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.sign-minus {
    background-image: url('minus.png');
}

.sign-back {
    background-image: url('back.png');
}

.sign-black-hole {
    background-image: url('black-hole.png');
    width: 40px;
    height: 40px;
}

.finish-host-back {
    position: absolute;
    left: 0px;
    top: 50px;
    right: 50px;
    bottom: 0;
    background-image: url('fireworks01.gif');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.25;
}

.finish-hat-host {
    position: absolute;
    left: 0px;
    top: 50px;
    right: 50px;
    bottom: 0;
}

body[data-zone-active='zone-history'] .finish-host-back, body[data-zone-active='zone-history'] .finish-hat-host {
    left: 50px;
}

.new-game-host {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.new-game-dlg {
    margin: 15% auto 0 auto;
    padding: 10px 25px 25px 25px;
    width: 420px;
    color: white;
    background-color: rgba(19, 21, 34, 0.85);
    box-shadow: 0px 0px 80px black, inset 0px 0px 40px rgb(217, 153, 207);
    border-radius: 25px;
    border: 1px solid rgb(162, 18, 140);
    text-align: center;
    position: relative;
}

    .new-game-dlg > div {
        padding: 10px;
    }

.new-game-dlg-loading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url('ajax-loader.gif');
    background-repeat: no-repeat;
    background-position: 20px 80%;
    background-color: rgba(0, 0, 0, 0.25);
}

.new-game-dlg:not(.loading) .new-game-dlg-loading {
    display: none;
}

.finish-hat {
    display: block;
    margin: 5% auto;
}

    .finish-hat.fade-in {
        -webkit-animation: hat-appearing 2s;
        animation: hat-appearing 2s;
    }

    .finish-hat.fade-out {
        -webkit-animation: hat-disappearing 2s;
        animation: hat-disappearing 2s;
    }

@keyframes hat-appearing {
    0% {
        -webkit-transform: scale(0.05);
        transform: scale(0.05);
        opacity: 0.5;
    }

    to {
        -webkit-transform: none;
        transform: none;
        opacity: inherit;
    }
}

@keyframes hat-disappearing {
    0% {
        -webkit-transform: none;
        transform: none;
        opacity: inherit;
    }

    to {
        -webkit-transform: scale(0.05);
        transform: scale(0.05);
        opacity: 0.5;
    }
}

.zone-login {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
}

.zone-login-box {
    color: white;
    font-size: 20px;
    font-weight: bold;
    background: rgba(5, 5, 50, 0.65);
    width: 500px;
    margin: 20% auto;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 0 25px white;
}

    .zone-login-box td {
        padding: 8px;
    }

.edit-user, .edit-pass {
    height: 25px;
    width: 250px;
}

.btn-login {
    border: 1px solid orange;
    color: orange;
    background: black;
    outline: none;
    height: 35px;
    width: 100px;
}

.edit-actors-number {
    width: 40px;
    height: 25px;
    color: white;
    border: 1px solid white;
    background: transparent;
    text-align: center;
}

    .edit-actors-number.invalid {
        color: red;
        border-color: red;
    }

.history-actors-list {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .history-actors-list::after {
        content: "";
        clear: both;
    }

.history-actor-item {
    color: rgb(177, 68, 234);
    float: left;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    padding: 10px 36px;
    border: 3px solid rgb(55, 9, 79);
    border-left: none;
}

.history-actor-item {
}

.zone-history[data-actor-selected='0'] .history-actor-item[data-actor='0'],
.zone-history[data-actor-selected='1'] .history-actor-item[data-actor='1'],
.zone-history[data-actor-selected='2'] .history-actor-item[data-actor='2'],
.zone-history[data-actor-selected='3'] .history-actor-item[data-actor='3'],
.zone-history[data-actor-selected='4'] .history-actor-item[data-actor='4'],
.zone-history[data-actor-selected='5'] .history-actor-item[data-actor='5'],
.zone-history[data-actor-selected='6'] .history-actor-item[data-actor='6'],
.zone-history[data-actor-selected='7'] .history-actor-item[data-actor='7'] {
    cursor: default;
    border-bottom: 5px solid rgb(15, 15, 23);
    color: inherit;
    font-weight: bold;
    background: linear-gradient(to bottom, rgb(55, 9, 79), rgb(15, 15, 23));
}

.history-list-wrapper {
    display: none;
}

.zone-history[data-actor-selected='0'] .history-list-wrapper[data-actor='0'],
.zone-history[data-actor-selected='1'] .history-list-wrapper[data-actor='1'],
.zone-history[data-actor-selected='2'] .history-list-wrapper[data-actor='2'],
.zone-history[data-actor-selected='3'] .history-list-wrapper[data-actor='3'],
.zone-history[data-actor-selected='4'] .history-list-wrapper[data-actor='4'],
.zone-history[data-actor-selected='5'] .history-list-wrapper[data-actor='5'],
.zone-history[data-actor-selected='6'] .history-list-wrapper[data-actor='6'],
.zone-history[data-actor-selected='7'] .history-list-wrapper[data-actor='7'] {
    display: block;
}

.ErrorPanel {

    position: absolute;
    display: none;

    left: 20%; right: 20%;
    top: 250px;
    width: 60%;

    padding: 30px;

    z-index: 10000;

    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
            
    font-size: 25px;
    font-weight: bold;
    text-align: center;

    background-color: #C80000;
    color: yellow;

    -webkit-box-shadow: 0 0 50px #000, 0 0 150px #f00 inset;
    -moz-box-shadow: 0 0 50px #000, 0 0 150px #f00 inset;
    box-shadow: 0 0 50px #000, 0 0 150px #f00 inset;

    filter:alpha(opacity=75);
    -webkit-opacity: 0.75;
    -moz-opacity: 0.75;
    opacity: 0.75;
}
