.lode-player, .lode-opponent {
    transition: all 0.5s;
}

.game-M .lode-player, .game-S .lode-player, .game-S .lode-opponent {
    opacity: 0;
}

.game-M .lode-opponent {
    right: 15px;
    right: calc(50% - 202px);
}

.game-ad {
    margin-top: 10px
}

.game-itself {
    height: 100%;
}

.game-itself .table {
    height: 100%;
}

#chat {
    height: 100%;
    min-width: 210px;
    flex-grow: 1;
}

.chat-messages {
    height: 365px;
}

#game .table {
    position: relative;
}

#game {
    width: auto;
    height: 600px;
    background-size: auto 100%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    flex: 3 2;
}

#game .cell {
    display: inline-block;
    width: 30px;
    height: 100%;
    padding: 0 0 0 0;
    border: 1px solid #000;
    margin-left: -1px;
    margin-top: -1px;
    margin-bottom: -1px;
    overflow: hidden;
    background: #eee;
}

#game .cell:hover {
    background-color: #d1d1d1;
}

#game .cell:first-child {
    border-left: none;
}

#game .cell:last-child {
    border-right: none;
}

#game .cell.cell-moje {
    background: #679781;
}

#game .cell.cell-moje:hover {
    background: #6fa48e;
}

#game .cell.cell-lod {
    background: #f1b44d;
    cursor: default;
}

#game .cell.cell-lod:hover {
    background: #ffc052;
}

#game .cell.cell-voda {
    background: #adbed2;
    cursor: default;
}

#game .cell.cell-voda:hover {
    background: #b8cce0;
}

#game .cell.cell-aktivni {
    background: #2fa929;
}

#game .cell.cell-aktivni:hover {
    background: #30b02b;
}

#game .tr {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    width: 100%;
    height: 30px;
    margin-top: -1px;
}

#game .tr:first-child {
    margin-top: 0px;
    margin-bottom: 1px;
}

#game .tr:first-child .cell {
    border-top: none;
    margin-top: 0px;
}

#game .tr:last-child .cell {
    border-bottom: none;
}

.invitation-buttons {
    padding: 20px;
    background: #f8f9fa;
    margin: 0 15px;
    border-radius: 5px;
}

#search_game {
    border-radius: 5px;
    background-color: #d6edf9;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    padding-bottom: 10px;
}

#search_game input {
    margin-top: 0;
}

#menu, #invitation_table, #end_game, #opponent_ended, #opponent_wait, #search_game {
    bottom: 15px;
    top: auto!important;
    position: absolute;
    width: 100%;
}

#invitation_table, #search_game, #opponent_ended {
    left: 15px;
    right: 15px;
    margin: 0 0 0 0!important;
    width: auto;
}

[type=button].btn-outline-dark, #dismiss-game {
    background: rgba(214, 237, 249, 0.60)
}

#search_game {
    background-color: #d6edf9;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    padding-bottom: 10px;
}

#search_game input {
    margin-top: 0;
}

.game-start-buttons {
    padding: 15px;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    margin-left: 15px;
    margin-right: 15px;
}

.game-start-buttons {
    background: #d6edf9;
}

.nebe {
    background: rgb(100, 120, 150);
    background: linear-gradient(
            360deg, rgb(214 237 249) 22%, rgb(153 207 255) 100%);
    height: 100px;
}

.lode {
    height: 100%;
    height: calc(100% - 100px);
    background: rgb(44, 69, 124);
    background: linear-gradient(360deg, rgba(44, 69, 104, 1) 22%, rgba(172, 205, 222, 1) 99%);
}

.lod-sunk {
    margin-top: 100px;
    height: 0 !important;
    overflow: hidden;
    opacity: 0;
}

.lode-ctverce {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    min-width: 375px;
}

.hraci-lista {
    height: 35px;
}

.hraci-lista > div {
    display: inline-block;
    vertical-align: top;
    margin-top: 5px;
}

.lode-row {
    flex: 1;
    display: flex;
}

.lista-hrac {
    height: 25px;
    width: 220px;
    text-align: center;
    line-height: 25px;
    color: #2c457c;
    transition: all 0.2s;
}

.lista-hrac.aktivni {
    background: rgba(130, 150, 170, 0.5);
    border-radius: 5px;
}

.lista-cas {
    overflow: hidden;
    width: 100px;
    margin-top: 0;
    position: relative;
    top: -45px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    height: 45px;
    line-height: 20px;
    background: rgba(200, 220, 230, 1);
    transition: all 0.5s;
}

.lista-cas-fold {
    height: 0;
    top: 0;
}

.hraci-lista .time_text {
    padding-left: 0px;
}

.time-info {
    font-size: 12px;
}

.hraci-pole {
    padding-bottom: 15px;
    border-radius: 3px;
    background: rgb(100, 120, 150);
    background: linear-gradient(
            360deg, rgba(130, 150, 170, 1) 22%, rgba(200, 220, 230, 1) 100%);
    display: none;

    position: absolute;
    bottom: 15px;
    top: auto;
    left: 15px;
    right: 15px;
}

.lode-ctverec-container {
    flex: 5;
}

.lod-container {
    z-index: 2;
    position: absolute !important;
    margin: -1px;

    left: 59px;
    top: 30px;
}

.lod-draggable {
    cursor: move;
}

.lod-box {
    z-index: 2;
    border: 1px solid #208008;
    background: rgba(32, 128, 8, 0.5);
    position: absolute !important;
    margin: -1px;
    width: 30px;
    height: 30px;
}

.ui-draggable-dragging {
    z-index: 2000;
}

.ship-invalid > .lod-box {
    border: 1px solid #802008;
    background: #a95757;
}

.lode-lode {
    display: inline-block;
    vertical-align: top;
    padding-top: 20px;
    padding-left: 5px;
    padding-right: 5px;
    flex: 1 1;
}

.lode-pole {
    position: relative;
    display: inline-block;
    border: 3px solid black;
    width: 296px;
    height: 296px;
    overflow: hidden;
}

.on-turn {
    cursor: crosshair;
}

.lode-lode-opponent {
    display: none;
}

.lode-pole-opponent {
    display: none;
    margin-left: 5px
}

.lode-vyber {
    display: inline-block;
    vertical-align: top;
    flex: 5;
    height: 100%;
    min-width: 250px;
}

#game .lod-start .lod {
    left: -200px;
}

.pattern {
    background-repeat: no-repeat;
    background-position: top center;
    padding-top: 34px;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.pattern-single-line {
    height: 40px;
    padding-top: 17px;
}

.lode-lode-player .pattern {
    margin-left: auto;
}

.L-pattern {
    background-image: url('../img/lode/L-pattern.png');
}

.M-pattern {
    background-image: url('../img/lode/M-pattern.png');
}

.S-pattern {
    background-image: url('../img/lode/S-pattern.png');
}

.XS-pattern {
    background-image: url('../img/lode/XS-pattern.png');
}

.lod {
    width: 100px;
    height: 100px;

    background-size: auto 100%;
    background-repeat: no-repeat;

    position: absolute;
    transition: all 2s;

    transform: scale(-1, 1);

    overflow: hidden;
}

.lode-opponent {
    position: absolute;
    top: 0;
    right: 0;
    transform: scale(-1, 1);
}

.ship-L {
    background-image: url('../img/lode/L.png');
    background-size: 175px 120px;
    width: 175px;
    height: 120px;

    left: 0;
    top: 0;
}

.ship-M {
    background-image: url('../img/lode/M.png');
    width: 185px;
    height: 120px;
    background-size: 185px 120px;
}

.ship-M-1 {
    top: 30px;
    left: 190px;
}

.ship-M-2 {
    top: 66px;
    left: 80px;
}

.ship-S {
    background-image: url('../img/lode/S.png');
    background-size: 150px 90px;
    width: 150px;
    height: 90px;
}

.ship-S-1 {
    top: 135px;
    left: -30px;
}

.ship-S-2 {
    top: 125px;
    left: 180px;
}

.ship-XS {
    background-image: url('../img/lode/XS.png');
    width: 100px;
    height: 60px;
    background-size: 100px 60px;
}

.ship-XS-1 {
    top: 175px;
    left: 110px;
}

.ship-XS-2 {
    top: 140px;
    left: 300px;
}

/** flame **/

.mo-fire {
    width: 200px;
    height: auto;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    top: 100px;
}

.ship-L .mo-fire {
    width: 25px;
    margin-left: -95px;
    top: 47px;
}

.ship-L .fire-1 {
    width: 25px;
    margin-left: -95px;
    top: 47px;
}

.ship-L .fire-2 {
    width: 19px;
    margin-left: -24px;
    top: 42px;
}

.ship-L .fire-3 {
    width: 25px;
    margin-left: -1px;
    top: 67px;
}

.ship-L .fire-4 {
    width: 29px;
    margin-left: 52px;
    top: 60px;
}

.ship-L .fire-5 {
    width: 20px;
    margin-left: 23px;
    top: 57px;
}

.ship-L .fire-6 {
    width: 20px;
    margin-left: -60px;
    top: 65px;
}

.ship-M-1 .fire-1 {
    width: 25px;
    margin-left: -56px;
    top: 51px;
}

.ship-M-1 .fire-2 {
    width: 19px;
    margin-left: -29px;
    top: 32px;
}

.ship-M-1 .fire-3 {
    width: 25px;
    margin-left: -17px;
    top: 61px;
}

.ship-M-1 .fire-4 {
    width: 29px;
    margin-left: 26px;
    top: 57px;
}

.ship-M-2 .fire-1 {
    width: 25px;
    margin-left: -56px;
    top: 51px;
}

.ship-M-2 .fire-2 {
    width: 19px;
    margin-left: -14px;
    top: 32px;
}

.ship-M-2 .fire-3 {
    width: 20px;
    margin-left: 1px;
    top: 63px;
}

.ship-M-2 .fire-4 {
    width: 20px;
    margin-left: 49px;
    top: 71px;
}

.ship-S-1 .fire-1 {
    width: 25px;
    margin-left: -62px;
    top: 24px;
}

.ship-S-1 .fire-2 {
    width: 19px;
    margin-left: 7px;
    top: 29px;
}

.ship-S-1 .fire-3 {
    width: 25px;
    margin-left: -25px;
    top: 33px;
}

.ship-S-1 .fire-4 {
    width: 17px;
    margin-left: -44px;
    top: 36px;
}

.ship-S-2 .fire-1 {
    width: 25px;
    margin-left: -62px;
    top: 24px;
}

.ship-S-2 .fire-2 {
    width: 19px;
    margin-left: 7px;
    top: 29px;
}

.ship-S-2 .fire-3 {
    width: 25px;
    margin-left: -25px;
    top: 33px;
}

.ship-S-2 .fire-4 {
    width: 29px;
    margin-left: 16px;
    top: 27px;
}

.ship-XS-1 .fire-1 {
    width: 26px;
    margin-left: -33px;
    top: 16px;
}

.ship-XS-1 .fire-2 {
    width: 16px;
    margin-left: 1px;
    top: 26px;
}

.ship-XS-2 .fire-1 {
    width: 20px;
    margin-left: -29px;
    top: 24px;
}

.ship-XS-2 .fire-2 {
    width: 23px;
    margin-left: -3px;
    top: 16px;
}

.mo-fire svg {
    width: 100%;
    height: auto;
    position: relative
}

.flame {
    animation-name: flamefly;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0;
    transform-origin: 50% 50% 0;
}

.flame.one {
    animation-delay: 0.5s;
    animation-duration: 1.5s;
}

.flame3.two {
    animation-duration: 2.5s;
    animation-delay: 0.5s;
}

.flame-main {
    animation-name: flameWobble;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.flame-main.one {
    animation-duration: 2s;
    animation-delay: 0.5s;
}

.flame-main.two {
    animation-duration: 1.5s;
    animation-delay: 1s;
}

.flame-main.three {
    animation-duration: 1.05s;
    animation-delay: 1.5s;
}

.flame-main.four {
    animation-duration: 1.6s;
    animation-delay: 2s;
}

.flame-main.five {
    animation-duration: 1.25s;
    animation-delay: 2.5s;
}

@keyframes flameWobble {
    50% {
        transform: scale(1, 1.2) translate(0, -30px) rotate(-2deg);
    }
}

@keyframes flamefly {
    0% {
        transform: translate(0) rotate(180deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-20px, -100px) rotate(180deg);
        opacity: 0;
    }
}

/* vertical game */
.lode, .nebe {
    transition: all 0.5s;
}
