/**
 * Magic ball & Mouth of Truth
 *
 * -----------------------------------------------------------------------------
 */
.ma-hiddenres{
    display: none;
}
.dice-custom{
	max-width:500px;
	width: 100%;
	height:auto;
	position:relative;
	margin:10px auto;
}
.dice-custom img{
	max-width: 100%;
	height: auto;
}
.ma-ball{
    overflow: hidden;
}
.ma-flex{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.responso-ball{
    color: #fff;
    color:rgba(157,189,255,0.8);
    position:absolute;
    left:30%;
    top:30%;
    right: 30%;
    bottom: 30%;
    display:none;
    z-index:1;
    text-align:center;
    cursor: pointer;
}
.responso-ball p{
    display: table-cell;
    vertical-align: middle;
}
.responso-mouth{
    color:#fff;
    position:absolute;
    left:30%;
    top:30%;
    right: 30%;
    bottom: 30%;
    display:none;
    z-index:1;
    text-align:center;
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
}
.ma-palla{
    position: relative;
    width: 100%;
    height: 100%;
    float: left;
}
.ma-palla img, .ma-bocca img, .sottopalla{
	position:absolute; 
	left:0; 
	top:0;
	cursor: pointer;
}
.sottopalla{
	display: none;
}


/**
 * Tarot
 *
 * -----------------------------------------------------------------------------
 */

.ma-tarot {
    max-width: 300px;
    width: 90%;
    margin: 20px auto;
    position: relative;
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    perspective: 800px;
    -webkit-border-radius: 8px 8px 8px 8px;
    border-radius: 8px 8px 8px 8px;
    cursor: pointer;
    z-index: 1;
}
.ma-tarot img{
    float: left;
    max-width: 100%;
    height: auto;
}
.responso-tarot{
    position: absolute;
    top: 10%;
    left: 15%;
    right: 15%;
    bottom: 10%;
    text-align: center;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-color: rgba(100,100,100,0.2);
    box-sizing:border-box;
    -moz-box-sizing: border-box;
    padding: 0px;
    margin: 0;
    color: #3c3836;
}
.responso-tarot span{
    float: left;
    width: 100%;
    margin: 2px 0;
    padding: 10px 0;
    font-weight: normal;
    border-top: 4px solid;
    border-bottom: 4px solid;
}

.ma-tarot .frontcard {
    float: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: inherit;
    text-align: center;

    -webkit-transform: rotateX(0deg) rotateY(0deg);
    -moz-transform: rotateX(0deg) rotateY(0deg);
    transform: rotateX(0deg) rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    -webkit-border-radius: 8px 8px 8px 8px;
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.ma-tarot.flip .frontcard {
    z-index: 900;
    background: #333;
    -webkit-transform: rotateY(179deg);
    -moz-transform: rotateY(179deg);
    transform: rotateY(179deg);
}

.ma-tarot .backcard {
    float: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 800;
    width: 100%;
    height: inherit;
    background: #333;
    -webkit-transform: rotateY(-179deg);
    -moz-transform: rotateY(-179deg);
    transform: rotateY(-179deg);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    -webkit-border-radius: 8px 8px 8px 8px;
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.ma-tarot.flip .backcard {
    z-index: 1000;
    background: #fff;
    -webkit-transform: rotateX(0deg) rotateY(0deg);
    -moz-transform: rotateX(0deg) rotateY(0deg);
    transform: rotateX(0deg) rotateY(0deg);
}

.dice-custom .responso{
    display: none;
    font-size: 80%;
    /*
    white-space:nowrap;
    */  
}

/*DICEs & COINs ------------------------------------------------------*/

.dice  { margin: 40px auto; position: relative; width: 200px; height: 200px; box-sizing: border-box; cursor: pointer; -webkit-perspective: 1000px; -moz-perspective: 1000px; -ms-perspective: 1000px; -o-perspective: 1000px; perspective: 1000px; }
.dice-side {position: absolute; width: 200px; height: 200px; color: #fff;  background-color: rgba(255, 255, 255, 1); box-shadow: inset 0 0 30px #C9C9C9; box-sizing: border-box; border-radius: 6px; }
.dice-side .point { width: 20%; height: 20%; background-color: #aaa; border-radius: 100%; box-shadow: inset 5px 3px 10px rgba(0, 0, 0, 0.4); background-image: -webkit-radial-gradient(circle, #ccc, #888); position: absolute; }
.dice-side .point.one { width: 30%; height: 30%; top: 50% !important; left: 50% !important; margin-left: -30px; margin-top: -30px; }
.dice-side .point.ptop { top: 12%; }
.dice-side .point.pbottom { bottom: 12%; }
.dice-side .point.pycenter { top: 40%; }
.dice-side .point.pxcenter { left: 40%; }
.dice-side .point.pleft { left: 12%; }
.dice-side .point.pright { right: 12%; }

.solid .dice-side { -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden; -o-backface-visibility: hidden; backface-visibility: hidden; }

.dice .cube { -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -ms-transform-style: preserve-3d; -o-transform-style: preserve-3d; transform-style: preserve-3d; width: 200px; height: 200px; position: absolute; -webkit-transition: 5s; -moz-transition: 5s; -ms-transition: 5s; -o-transition: 5s; transition: 5s; -webkit-transform: translateZ(-100px) rotateX(0) rotateY(0); -moz-transform: translateZ(-100px) rotateX(0) rotateY(0); -ms-transform: translateZ(-100px) rotateX(0) rotateY(0); -o-transform: translateZ(-100px) rotateX(0) rotateY(0); transform: translateZ(-100px) rotateX(0) rotateY(0); }
/*.dice-side  {  text-align: center; font-weight: bold; text-align: center; line-height: 200px; font-size: 60px;}*/

/*
.cube.dice-front { -webkit-transform: translateZ(-100px); -moz-transform: translateZ(-100px); -ms-transform: translateZ(-100px); -o-transform: translateZ(-100px); transform: translateZ(-100px); }
.cube.dice-back { -webkit-transform: translateZ(-100px) rotateX(180deg) rotateY(0); -moz-transform: translateZ(-100px) rotateX(180deg) rotateY(0); -ms-transform: translateZ(-100px) rotateX(180deg) rotateY(0); -o-transform: translateZ(-100px) rotateX(180deg) rotateY(0); transform: translateZ(-100px) rotateX(180deg) rotateY(0); }
.cube.dice-top  { -webkit-transform: translateZ(-100px) rotateX(-90deg) rotateY(0); -moz-transform: translateZ(-100px) rotateX(-90deg) rotateY(0); -ms-transform: translateZ(-100px) rotateX(-90deg) rotateY(0); -o-transform: translateZ(-100px) rotateX(-90deg) rotateY(0); transform: translateZ(-100px) rotateX(-90deg) rotateY(0); }
.cube.dice-bottom { -webkit-transform: translateZ(-100px) rotateX(90deg) rotateY(0); -moz-transform: translateZ(-100px) rotateX(90deg) rotateY(0); -ms-transform: translateZ(-100px) rotateX(90deg) rotateY(0); -o-transform: translateZ(-100px) rotateX(90deg) rotateY(0); transform: translateZ(-100px) rotateX(90deg) rotateY(0); }
.cube.dice-left  { -webkit-transform: translateZ(-100px) rotateX(0) rotateY(90deg); -moz-transform: translateZ(-100px) rotateX(0) rotateY(90deg); -ms-transform: translateZ(-100px) rotateX(0) rotateY(90deg); -o-transform: translateZ(-100px) rotateX(0) rotateY(90deg); transform: translateZ(-100px) rotateX(0) rotateY(90deg); }
.cube.dice-right  { -webkit-transform: translateZ(-100px) rotateX(0) rotateY(-90deg); -moz-transform: translateZ(-100px) rotateX(0) rotateY(-90deg); -ms-transform: translateZ(-100px) rotateX(0) rotateY(-90deg); -o-transform: translateZ(-100px) rotateX(0) rotateY(-90deg); transform: translateZ(-100px) rotateX(0) rotateY(-90deg); }
*/
.dice-side.dice-top { -webkit-transform: rotateX(90deg) translateZ(100px); -moz-transform: rotateX(90deg) translateZ(100px); -ms-transform: rotateX(90deg) translateZ(100px); -o-transform: rotateX(90deg) translateZ(100px); transform: rotateX(90deg) translateZ(100px); }
.dice-side.dice-bottom  { -webkit-transform: rotateX(-90deg) translateZ(100px); -moz-transform: rotateX(-90deg) translateZ(100px); -ms-transform: rotateX(-90deg) translateZ(100px); -o-transform: rotateX(-90deg) translateZ(100px); transform: rotateX(-90deg) translateZ(100px); }
.dice-side.dice-front { -webkit-transform: translateZ(100px); -moz-transform: translateZ(100px); -ms-transform: translateZ(100px); -o-transform: translateZ(100px); transform: translateZ(100px); }
.dice-side.dice-back { -webkit-transform: rotateX(-180deg) translateZ(100px); -moz-transform: rotateX(-180deg) translateZ(100px); -ms-transform: rotateX(-180deg) translateZ(100px); -o-transform: rotateX(-180deg) translateZ(100px); transform: rotateX(-180deg) translateZ(100px); }
.dice-side.dice-left  { -webkit-transform: rotateY(-90deg) translateZ(100px); -moz-transform: rotateY(-90deg) translateZ(100px); -ms-transform: rotateY(-90deg) translateZ(100px); -o-transform: rotateY(-90deg) translateZ(100px); transform: rotateY(-90deg) translateZ(100px); }
.dice-side.dice-right { -webkit-transform: rotateY(90deg) translateZ(100px); -moz-transform: rotateY(90deg) translateZ(100px); -ms-transform: rotateY(90deg) translateZ(100px); -o-transform: rotateY(90deg) translateZ(100px); transform: rotateY(90deg) translateZ(100px); }


.dices, .coins {
    display: -ms-flexbox;
    display: flex;

    -ms-flex-direction: row;
    flex-direction: row;

    position: relative;

    -ms-flex-pack: distribute;
    justify-content: space-around;

    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.dice-modal:before, .coin-modal:before {
    content:'';
    position: absolute;
    top: -17px;
    right: -21px;
    width: 35px;
    height: 35px;
    background: #d9d9d9;
    border-radius: 50%;
    border-bottom-left-radius: 0;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    cursor: pointer;
    pointer-events: all;
}
.dice-modal:after, .coin-modal:after {
    content:'x';
    position: absolute;
    font: bold 25px/1 sans-serif;
    top: -14px;
    right: -10px;
    color: #888;
    cursor: pointer;
    pointer-events: all;
}

.dice-mask, .coin-mask {
    position: absolute;
    top: 0;
    left: 0;                   
    right: 0;
    bottom: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: 0.7s;
    pointer-events: none;
}
/* trying to expand to edges on mobile*/
@media(max-width: 1024px){ .dice-mask, .coin-mask {
    left: -5%;                   
    right: -5%;
    width: 110%; 
}}
.dice-modal, .coin-modal {
    position: absolute;
    min-width: 250px;
    max-width: 90%;
    top:50%;
    left:50%;
    margin-right: -50%;
    background: #fff;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s ease-out;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 25px;
    text-align: center;
    box-shadow:0 0 40px #345;
    pointer-events: none;
}
  
.dice-active, .coin-active {
    visibility: visible;
    opacity: 1;
}
.dice-active + .dice-modal,
.coin-active + .coin-modal {
    visibility: visible;
    opacity: 0.9;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}




/*coins---------------------------------------------------------------------*/


.coin {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 40px auto;
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
}
.coin-toss {
    animation: spin .3s infinite linear;
}
.coin-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/coin-face.jpg);
    background-size: 100% 100%;
    backface-visibility: hidden;
    border-radius: 50%;
}
.coin-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/coin-back.jpg);
    background-size: 100% 100%;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 50%;
}
.coin-visible {
    -webkit-transform: rotateY(0deg); 
    transform: rotateY(0deg); 
}
.coin-notvisible {
    -webkit-transform: rotateY(180deg); 
    transform: rotateY(180deg); 
}
.coin-shade {
    position: absolute;
    bottom: -25px;
    -webkit-filter: blur(8px);
    filter: blur(8px);
    height: 5px;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
}



.dices[data-type-dice="dice2"] .dice-side{
    background-color: #000;
    color: #000;
    box-shadow: none;
    border-radius: 0;
}

.dices[data-type-dice="dice2"] .dice-side .point{
    background-image: none;
    background-color: #fff;
}

.dices[data-type-dice="dice2"] .dice-side.dice-front {
    background-image: url(../images/ludo_globe.png);
    background-position: center;
}

.dices[data-type-dice="dice2"] .dice-side.dice-front .point, .dices[data-type-dice="dice2"] .dice-side.dice-bottom .point{
    display: none;
}

.dices[data-type-dice="dice2"] .dice-side.dice-bottom {
    background-image: url(../images/ludo_stjerne.png);
    background-position: center;
}

.dices[data-type-dice="dice2"] .dice-side.dice-right .point{
    display: none;
}

.dices[data-type-dice="dice2"] .dice-side.dice-right .point.pxcenter.pycenter{
    display: block;
}

.custom-activate-dice{
    padding: 10px 24px 12px;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    min-width: 120px;
}

@keyframes spin {
    0% {
        -webkit-transform: rotateY(0deg);
        transform: rotateY(0deg);
    }
    100% {
        -webkit-transform: rotateY(360deg);
        transform: rotateY(360deg);
    }
}

@media screen and (max-width: 768px) {
    .dices, .coins {
        -ms-flex-direction: column;
        flex-direction: column;

        -ms-flex-align: center;
        align-items: center;

        -ms-flex-pack: center;
        justify-content: center;
    }
    /*for 3 and more */
    .dices:not(.dices-qty-1):not(.dices-qty-2),
    .coins:not(.coins-qty-1):not(.coins-qty-2){
        margin-top: 25px;
    }
    .dices:not(.dices-qty-1):not(.dices-qty-2) .dice,
    .coins:not(.coins-qty-1):not(.coins-qty-2) .coin{
        margin: 25px auto;
    }

    .site-header .custom-logo {
        width: auto !important;
    }
}