/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 2016.10.04., 13:22:35
    Author     : szabo.bela
*/


.game-board-container{
    margin: auto;
    margin-top: 55px;
    overflow: hidden;
    
}
.game-board-img-container{
    position: relative;
    
}



/* Modal */



#bad-luck-modal, #registration-modal{

    z-index:1430;
    background: url(../img/bckg.png);


}

#registration-modal .help, #bad-luck-modal .help{

   background-color: transparent;


}

#registration-modal .modal-body, #bad-luck-modal .modal-body{
    max-width: 500px;
    margin: auto;
}

#registration-modal .modal-body h3, #bad-luck-modal .modal-body h3{
    color: #ffffff;
}


#registration-modal .modal-header h2, #bad-luck-modal .modal-header h2{
    position: relative;
    color: #ffffff;
    font-family: 'SolidoCompressed-Medium';
}

#registration-modal .close, #bad-luck-modal .close{

    color: #ffffff;

}

#registration-modal .modal-content, #bad-luck-modal .modal-content {
    color: #ffffff;

}

.btn-new-game{
    font-size: 26px;
    text-decoration: underline;
    color: #FFF;
}

.field.city{
    padding:2px;
    border-radius: 2px; 
    position:absolute;
    background:transparent;
}

.field.active{
     z-index: 700;
}

.field{
    border-radius: 2px;
    position:absolute;
}
.field.active:not(.city){
    background: #c9da2e;
    border:  2px #c9da2e solid;
    border-radius: 30px;
}
.field.city.standing-on-it{
    background: url("../img/figure.png");
    background-size: cover;
}
.field.standing-on-it{
    background: url("../img/figure.png");
    background-size: cover;
}
.bottle-cap{
    background: white;
    width:5px;
    height:5px;
    padding:2px;
    border-radius: 2px; 
    position:absolute;
}
.container-fluid {
    padding-right: 0px;
    padding-left: 0px; 
    margin-right: auto;
    margin-left: auto;
}

/*DICE*/

@keyframes spin {
    0% {
        -ms-transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
        -moz-transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
        transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
    }
    16% {
        -ms-transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg); 
        -moz-transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg); 
        transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg); 
    }
    33% { 
        -ms-transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
        -moz-transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
        transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg); 
    }
    50% {
        -ms-transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
        -moz-transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
        transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); 
    }
    66% {
        -ms-transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
        -moz-transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
        transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg); 
    }
    83% {
        -ms-transform:  translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
        -moz-transform:  translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
        transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg); 
    }
    100% {
        -ms-transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); 
        -moz-transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); 
        transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); 
    }
}
@keyframes roll {
    0% {
        -ms-transform: translate3d(-50px,-50px,-100px) 
        -moz-transform: translate3d(-50px,-50px,-100px) 
        transform: translate3d(-50px,-50px,-100px) 
    }
    12% {
        -ms-transform: translate3d(0px,0,-25px) 
        -moz-transform: translate3d(0px,0,-25px) 
        transform: translate3d(0px,0,-25px) 
    }
    25% {
        -ms-transform: translate3d(50px,-50px,-100px) 
        -moz-transform: translate3d(50px,-50px,-100px) 
        transform: translate3d(50px,-50px,-100px) 
    }
    37% {
        -ms-transform: translate3d(0px,-100px,-200px) 
        -moz-transform: translate3d(0px,-100px,-200px) 
        transform: translate3d(0px,-100px,-200px) 
    }
    50% {
        -ms-transform: translate3d(-50px,-50px,-100px) 
        -moz-transform: translate3d(-50px,-50px,-100px) 
        transform: translate3d(-50px,-50px,-100px) 
    }
    62% {
        -ms-transform: translate3d(0px,0,-25px)
        -moz-transform: translate3d(0px,0,-25px)
        transform: translate3d(0px,0,-25px)
    }
    75% {
        -ms-transform: translate3d(50px,-50px,-100px) 
        -moz-transform: translate3d(50px,-50px,-100px)
        transform: translate3d(50px,-50px,-100px)
    }
    87% {
        -ms-transform: translate3d(0px,-100px,-200px) 
        -moz-transform: translate3d(0px,-100px,-200px) 
        transform: translate3d(0px,-100px,-200px) 
    }
    100% {
        -ms-transform: translate3d(-50px,-50px,-100px) 
        -moz-transform: translate3d(-50px,-50px,-100px)
        transform: translate3d(-50px,-50px,-100px)
    }
}
#platform.playing > #dice {
    animation-duration: 0.6s;
}
#platform.playing {
    width:200px;
    height:200px;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    animation: roll 0.8s infinite linear;
}
#platform.stop > #dice,
#platform.stop {
    animation-play-state: paused;
}
#wrapper {
    position: fixed;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1200px; 
        bottom: 25%;
    right: 20%;
    z-index:1200;
}

@media screen and (max-width: 992px) {

    #wrapper{
        bottom:20%; 
        left:0;
    }



}
#dice span {
    position:absolute;
    margin:100px 0 0 100px;
    display: block;
    font-size: 2.5em;
    padding: 10px;
}
#dice {
    position: absolute;
    width: 100px;/*200*/
    height: 100px;/*200*/
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(10deg) rotateZ(-10deg)
}
#platform.playing > #dice{
  animation: spin 3s infinite linear;
}
.side {
    position: absolute;
width: 100px;
height: 100px;
background: #fff;
box-shadow: inset 0 0 3px #ccc673;
border-radius: 0px;
   /* position: absolute;
    width: 100px;/*200*/
   /* height: 100px;/*200*/
    /*background: #fff;
   /* box-shadow:inset 0 0 20px #ccc;/*40*/
    /*border-radius: 0px;/*40*/
}
#dice .cover, #dice .inner {
    background: #e0e0e0;
    box-shadow: none;
}
#dice .cover {
    border-radius: 0;
}
#dice .cover.x {
    -moz-transform: rotateY(90deg);
    -webkit-transform: rotateY(90deg);
    transform: rotateY(90deg);
}
#dice .cover.z {
    -moz-transform: translateZ(49px);
    -webkit-transform: translateZ(49px);
    transform: translateZ(49px);
}
.front  {
    -moz-transform: translateZ(50px);
    -webkit-transform: translateZ(50px);
    transform: translateZ(50px);
}
#dice .front.inner  {
    -moz-transform: translateZ(49px);
    -webkit-transform: translateZ(49px);
    transform: translateZ(49px);
}
#dice .back {
    -moz-transform: rotateX(-180deg) translateZ(50px);
    -webkit-transform: rotateX(-180deg) translateZ(50px);
    transform: rotateX(-180deg) translateZ(50px);
}
#dice .back.inner {
    -moz-transform: rotateX(-180deg) translateZ(49px);
    -webkit-transform: rotateX(-180deg) translateZ(49px);
    transform: rotateX(-180deg) translateZ(49px);
}
#dice .right {
    -moz-transform: rotateY(90deg) translateZ(50px);
    -webkit-transform: rotateY(90deg) translateZ(50px);
    transform: rotateY(90deg) translateZ(50px);
}
#dice .right.inner {
    -moz-transform: rotateY(90deg) translateZ(49px);
    -webkit-transform: rotateY(90deg) translateZ(49px);
    transform: rotateY(90deg) translateZ(49px);
}
#dice .left {
    -moz-transform: rotateY(-90deg) translateZ(50px);
    -webkit-transform: rotateY(-90deg) translateZ(50px);
    transform: rotateY(-90deg) translateZ(50px);
}
#dice .left.inner {
    -moz-transform: rotateY(-90deg) translateZ(49px);
    -webkit-transform: rotateY(-90deg) translateZ(49px);
    transform: rotateY(-90deg) translateZ(49px);
}
#dice .top {
    -moz-transform: rotateX(90deg) translateZ(50px);
    -webkit-transform: rotateX(90deg) translateZ(50px);
    transform: rotateX(90deg) translateZ(50px);
}
#dice .top.inner {
    -moz-transform: rotateX(90deg) translateZ(49px);
    -webkit-transform: rotateX(90deg) translateZ(49px);
    transform: rotateX(90deg) translateZ(49px);
}
#dice .bottom {
    -moz-transform: rotateX(-90deg) translateZ(50px);
    -webkit-transform: rotateX(-90deg) translateZ(50px);
    transform: rotateX(-90deg) translateZ(50px);
}
#dice .bottom.inner {
    -moz-transform: rotateX(-90deg) translateZ(49px);
    -webkit-transform: rotateX(-90deg) translateZ(49px);
    transform: rotateX(-90deg) translateZ(49px);
}
.dot {
    position:absolute;
    width:23px;/*46*/
    height:23px;/*46*/
    border-radius:23px;
    background:#444;
    box-shadow:inset 5px 0 10px #000;
}
.dot.center {
    margin:38px 0 0 38px;/*77 0 0 77*/
}
.dot.dtop {
    margin-top:10px;/*20*/
}
.dot.dleft {
    margin-left:67px; /*134*/
}
.dot.dright {
    margin-left:10px;/*20*/
}
.dot.dbottom {
    margin-top:67px;/*134*/
}
.dot.center.dleft {
    margin:38px 0 0 10px;/*77 0 0 20*/
}
.dot.center.dright {
    margin:38px 0 0 67px;/*77 0 0 134*/
}


/*DICE*/


@media screen and (max-width: 768px) {

    @keyframes spin {
    0% { transform: translateZ(-50px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    16% { transform: translateZ(-50px) rotateX(180deg) rotateY(180deg) rotateZ(0deg); }
    33% { transform: translateZ(-50px) rotateX(360deg) rotateY(90deg) rotateZ(180deg); }
    50% { transform: translateZ(-50px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
    66% { transform: translateZ(-50px) rotateX(180deg) rotateY(360deg) rotateZ(270deg); }
    83% { transform: translateZ(-50px) rotateX(270deg) rotateY(180deg) rotateZ(180deg); }
    100% { transform: translateZ(-50px) rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes roll {
    0% { transform: translate3d(-25px,-25px,-50px) }
    12% { transform: translate3d(0px,0,-25px) }
    25% { transform: translate3d(25px,-25px,-50px) }
    37% { transform: translate3d(0px,-50px,-100px) }
    50% { transform: translate3d(-25px,-25px,-50px) }
    62% { transform: translate3d(0px,0,-12px) }
    75% { transform: translate3d(25px,-25px,-50px) }
    87% { transform: translate3d(0px,-50px,-100px) }
    100% { transform: translate3d(-25px,-25px,-50px) }
}
#platform.playing {
    width:50px;
    height:50px;
    /*transform-style: preserve-3d;
    animation: roll 0.8s infinite linear;*/
}
    #dice span {
    position:absolute;
    margin:26px 0 0 26px;
    display: block;
    font-size: 1.25em;
    padding: 5px;
    }
    #dice {
        position: absolute;
        width: 75px;/*200*/
        height: 75px;/*200*/
        /*ransform-style: preserve-3d;
         transform: rotateX(0deg) rotateY(10deg) rotateZ(-10deg)*/
    }
    #platform.playing > #dice{
      animation: spin 3s infinite linear;
    }
    .side {
        position: absolute;
    width: 50px;
    height: 50px;
    background: #fff;
    box-shadow: inset 0 0 2px #ccc673;
    border-radius: 0px;
    }
    #dice .cover, #dice .inner {
        background: #e0e0e0;
        box-shadow: none;
    }
    #dice .cover {
        border-radius: 0;
    }
    #dice .cover.x {
        transform: rotateY(90deg);
    }
    #dice .cover.z {
        transform: rotateX(90deg);
    }
    #dice .front  {
        transform: translateZ(25px);
    }
    #dice .front.inner  {
        transform: translateZ(24px);
    }
    #dice .back {
        transform: rotateX(-180deg) translateZ(25px);
    }
    #dice .back.inner {
        transform: rotateX(-180deg) translateZ(24px);
    }
    #dice .right {
        transform: rotateY(90deg) translateZ(25px);
    }
    #dice .right.inner {
        transform: rotateY(90deg) translateZ(24px);
    }
    #dice .left {
        transform: rotateY(-90deg) translateZ(25px);
    }
    #dice .left.inner {
        transform: rotateY(-90deg) translateZ(24px);
    }
    #dice .top {
        transform: rotateX(90deg) translateZ(25px);
    }
    #dice .top.inner {
        transform: rotateX(90deg) translateZ(24px);
    }
    #dice .bottom {
        transform: rotateX(-90deg) translateZ(25px);
    }
    #dice .bottom.inner {
        transform: rotateX(-90deg) translateZ(24px);
    }
    .dot {
        position:absolute;
        width:12px;/*46*/
        height:12px;/*46*/
        border-radius:12px;
        background:#444;
        box-shadow:inset 3px 0 5px #000;
    }
    .dot.center {
        margin:19px 0 0 19px;/*77 0 0 77*/
    }
    .dot.dtop {
        margin-top:5px;/*20*/
    }
    .dot.dleft {
        margin-left:33px; /*134*/
    }
    .dot.dright {
        margin-left:5px;/*20*/
    }
    .dot.dbottom {
        margin-top:33px;/*134*/
    }
    .dot.center.dleft {
        margin:19px 0 0 5px;/*77 0 0 20*/
    }
    .dot.center.dright {
        margin:19px 0 0 33px;/*77 0 0 134*/
    }

    .game-board-container{
    margin-top: 40px;
    overflow: hidden;
}



}




/*Message*/
.message{
    width: auto;
    height: auto;
    position: fixed;
    left: 50px;
    top: 120px;
    background: rgba(255,252,0,1);
    padding: 20px;
    border-radius: 15px;
    z-index: 1300;
    color: #1C4620;
    -webkit-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
}
.message p{
    margin: 0;
    font-size: 30px;
    font-family: 'SolidoCompressed-Medium', sans-serif;
    text-align: center;
}


/* zoom */

.zoom{
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 800;
    vertical-align: middle;
    border-radius: 15px;
    -webkit-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
}
.zoom > button{
    background-color: #FFF;
    color: #056839;
    border: none;
    font-size: 82px;
    padding: 9px;
    line-height: 7px;
    vertical-align: middle;
    height: 39px;
}
.zoom > button:focus{
    outline: 0;
}
.zoom-in{
    -webkit-border-top-left-radius: 15px;
    -webkit-border-bottom-left-radius: 15px;
    -moz-border-radius-topleft: 15px;
    -moz-border-radius-bottomleft: 15px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.zoom-out{
    -webkit-border-top-right-radius: 15px;
    -webkit-border-bottom-right-radius: 15px;
    -moz-border-radius-topright: 15px;
    -moz-border-radius-bottomright: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}



@media screen and (max-width: 992px) {
    .message{
        width: auto;
        height: auto;
        position: fixed;
        left: 20px;
        top: 70px;
        background: rgba(255,252,0,1);
        padding: 10px;
        border-radius: 5px;
        z-index: 1300;
        color: #1C4620;
        -webkit-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
        -moz-box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
        box-shadow: 7px 7px 5px 0px rgba(0,0,0,0.5);
        max-width: 180px;
    }
    .message p{
        margin: 0;
        font-size: 18px;
    }
}

.field:hover, #dice > div:hover, .info-card, .bottle-cap-confirm{
    cursor: pointer;
}
.info-card>img{  
    width:100%;
    max-width: 500px;
    top:35%;
    left:50%;
    position: absolute;
    margin-left: -45%;
    z-index:1100; 
}
.info-card{
     top:0;
    left:0;
    width: 90%;
    height:100%;
    position: fixed;
     z-index:1100; 
}
.bottle-cap-confirm{
       width: 170px;
    position: absolute;
    top: 54%;
    left: 0%;
    z-index: 1200;
}
#wrapper{
    width: 10px;
    height: 10px;
}
.figure{
    z-index:1000;
}

.zoom{
        display: none;
    }

@media screen and (min-width: 992px) {

 .info-card>img{  
    width:100%;
    max-width: 500px;
    top:40%;
    left:50%;
    margin-left: -250px;
    backface-visiblity: hidden;
     z-index:1100; 
     position: absolute;
}
.info-card{
    top:0;
    left:0;
    width: 100%;
    height:100%;
    position: fixed;
    z-index:1100; 

}
.bottle-cap-confirm{
    width: 170px;
    position: absolute;
    top: 58%;
    left: 35%;
    z-index: 1200;
}



}

img.flipper {
    -webkit-animation-duration: 0.7s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function:linear;
    -webkit-backface-visibility: hidden;
    font-family: Helvetica,Arial,sans-serif;
    font-weight: bold;
    position: absolute;
}

@-webkit-keyframes flip1 {
    from { -webkit-transform: rotateZ(10deg) rotateY(0deg); }
    to { -webkit-transform: rotateZ(10deg) rotateY(360deg); }
}

img.flipper.flip1 {
    -webkit-animation-name: flip1;
    z-index: 1101;

}

@-webkit-keyframes flip2 {
    from { -webkit-transform: rotateZ(10deg) rotateY(-180deg); }
    to { -webkit-transform: rotateZ(10deg) rotateY(180deg); }
}

img.flipper.flip2 {
    -webkit-animation-name: flip2;
}

@-webkit-keyframes flip3 {
    from { -webkit-transform: rotateZ(-10deg) rotateY(0deg); }
    to { -webkit-transform: rotateZ(-10deg) rotateY(360deg); }
}

img.flipper.flip3 {
    -webkit-animation-name: flip3;
    z-index: 1101;

}

@-webkit-keyframes flip4 {
    from { -webkit-transform: rotateZ(-10deg) rotateY(-180deg); }
    to { -webkit-transform: rotateZ(-10deg) rotateY(180deg); }
}

img.flipper.flip4 {
    -webkit-animation-name: flip4;
}

@-webkit-keyframes flip5 {
    from { -webkit-transform: rotateZ(10deg) rotateY(360deg); }
    to { -webkit-transform: rotateZ(10deg) rotateY(0deg); }
}

img.flipper.flip5 {
    -webkit-animation-name: flip5;
    z-index: 1101;

}

@-webkit-keyframes flip6 {
    from { -webkit-transform: rotateZ(10deg) rotateY(180deg); }
    to { -webkit-transform: rotateZ(10deg) rotateY(-180deg); }
}

img.flipper.flip6 {
    -webkit-animation-name: flip6;
}

