:root {
  touch-action: none;
}

body {
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

.flip-card {
  background-color: transparent;
  width: 258px;
  height: 258px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card.active-card .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-card-front {
  color: black;
}
.flip-card-back {
  color: white;
  transform: rotateY(180deg);
}

.flip-card-2 {
  width: 220px !important;
  height: 220px !important;
}
flip-card-2.active-card .flip-card-inner {
  transform: rotateY(180deg);
}

.sp-container {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: -webkit-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: -moz-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: -ms-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
}
.sp-content {
    overflow: hidden;
    white-space: nowrap;
    width: 850px;
    height: 100%;
    animation: reveal 7s;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.sp-container h2.animation {
    animation: slidein 7s;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-size: 65px;
}
@keyframes slidein {
    0% { margin-left:-1500px; }
    35% { margin-left:0px; }
    100% { margin-left:0px; }
}
@keyframes reveal {
    0% {opacity:0;width:0px;}
    10% {opacity:1;width:0px;}
    30% {width:850px;}
    80% {opacity:1;}
    100% {opacity:1;width:850px;}
}

.borderAnimation img {
    animation: glowing 2000ms infinite;
    border: 10px solid #0fdd00;
}
@keyframes glowing {
    0% { box-shadow: 0 0 -30px #0fdd00; }
    40% { box-shadow: 0 0 60px #0fdd00; }
    60% { box-shadow: 0 0 60px #0fdd00; }
    100% { box-shadow: 0 0 -30px #0fdd00; }
}

.cl-container {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: -webkit-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: -moz-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: -ms-radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
    background: radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.7));
}
.cl-content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    z-index: 1000;
}
.boxClassifica {
    width: 800px;
    height: auto;
    padding: 40px 0;
    background-color: #fff;
}
.boxClassifica h1 {
    text-align: center;
}
.boxClassifica hr
{
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 25px;
    color: inherit;
    border: 0;
    border-top: 5px solid #dd0000;
    width: 80%;
    opacity: 1;
}
.boxClassifica p {
    width: 80%;
    margin: 0 auto;
    margin-top: 12px;
    background-color: #ebebeb;
    padding: 15px 12px;
    font-size: 20px;
}
.boxClassifica p.topPlayer {
    background-color: #dd0000;
    color: #fff;
}
.boxClassifica .pointPlayer {
    font-weight: 600;
}

.imgSelected img {
    border: 10px solid yellow;
}
.imgSelectedError img{
    border: 10px solid red;
}

.errorOrientation {
    display: none;
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2) { 
    .containerGame {
        display: none;
    }
    .errorOrientation {
        display: flex;
    }
}

.txtLogin {
    color: white;
    font-size: 30px;
    font-weight: 900;
}
#formAccess input {
    width: 446px;
    padding: 16px;
    box-shadow: 0px 0px 10px #cf5287;
}
#formAccess button {
    padding: 9px 0;
    width: 170px;
    font-size: 27px;
    font-weight: 900;
    background-color: #c3548073;
    text-shadow: 0px 0px 12px #a8285b;
    border: unset;
}
#errorAccessNickname {
    border-radius: 0.25rem;
    width: 631px;
    text-align: center;
    justify-content: space-around;
    background-color: #d22c62 !important;
}
#accessOk {
    border-radius: 0.25rem;
    width: 631px;
    text-align: center;
    justify-content: space-around;
    background-color: #2cd26ce6 !important;
}

.backgroundInGame {
    height: 95.7vh;
    background-image: url(/img/grafica/gioco3.jpg);
    background-repeat: no-repeat;
    background-position-y: top;
}
.headerCustom {
    padding: 12px 15px 0px 50px;
    font-size: 25px;
    color: white;
}
.headerCustom .nicknameTxt {
    padding-left: 3px;
    font-size: 21px;
    font-weight: 600;
    text-shadow: 0px 0px 12px #dd638c;
}
#mancheNumberTxt {
    color: #fff;
    text-shadow: 0px 0px 12px #dd638c;
    padding: 9px 15px;
    font-size: 20px;
    position: relative;
}
.timerTxt {
    text-shadow: 0px 0px 12px #dd638c;
    font-size: 20px;
}

#mancheNumberTxt::before, 
#mancheNumberTxt::after {
    content: '';
    position: absolute;
    border: 2px solid #f4e4ec;
    width: 19%;
    left: 0;
    height: 100%;
    border-right: 0;
}

#mancheNumberTxt::after {
    border: 2px solid #f4e4ec;
    right: 0;
    left: auto;
    border-left: 0;
}
.card {
    border: 10px solid #fff;
    border-radius: 0.5rem;
}

.boxChangeNickname {
    position: absolute;
    background-color: #bb748cf7;
    width: 400PX;
    z-index: 9;
    left: 300px;
    top: 20px;
    color: #fff;
    padding: 10px 20px;
    display: none;
    border-radius: 0.25rem;
}
.activeNickChange {
    display: flex;
}
.boxChangeNickname input {
    width: 231px;
    padding: 10px;
    box-shadow: 0px 0px 10px #cf5287;
}
.boxChangeNickname button {
    padding: 11px 0;
    width: 123px;
    font-size: 16px;
    font-weight: 900;
    background-color: #c3548073;
    text-shadow: 0px 0px 12px #a8285b;
    border: unset;
}

.bgManche {
    background-image: url('/img/grafica/dixitManche.jpg');
    height: 100vh;
}
.bgManche h4 {
    font-size: 55px;
    margin-bottom: 47px;
}
.txtPositionManche {
    width: 1182px;
    text-align: center;
    position: absolute;
    top: 360px;
    left: 330px;
    text-shadow: 0px 0px 10px #cf5287;
    color: #fff;
    font-weight: 900;
    font-size: 33px;
}

.classificaManche {
    width: 1182px;
    text-align: center;
    position: absolute;
    top: 360px;
    left: 330px;
    text-shadow: 0px 0px 10px #cf5287;
    color: #fff;
    font-weight: 900;
    font-size: 33px;
}

.classificaPlayer {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0px 0px 10px #cf5287;
    text-shadow: none;
    color: #000;
    font-weight: 300;
    text-align: left;
    padding: 0 15px;
}
.classificaPlayer.winners {
    background-color: #f58874;
    color: white;
    font-weight: 500;
}

.containerSolutionGame {
    position: absolute;
    top: 267px;
}