html,
body {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: auto;
}

svg {
  display: block;
}

header,
footer {
  text-align: center;
  padding: 5px 0;
  color: #ccc;
  background: #333;
  position: absolute;
  width: 100%;
  font-size: 0.8rem;
}
@media (min-width: 850px) {
  header,
footer {
    font-size: 1rem;
  }
}
header a,
footer a {
  color: #21a1e1;
  text-decoration: none;
}

header {
  top: 0;
}

footer {
  bottom: 0;
}

button span,
button strong,
button i {
  pointer-events: none;
}

.fadeout {
  opacity: 0 !important;
  transition: opacity 0.5s !important;
}

.fadein {
  opacity: 1 !important;
  transition: opacity 0.5s !important;
}

#intro {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  width: 80%;
}
#intro .card-body {
  overflow: auto;
  max-height: 60vh;
}

#scegli_giocatori {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
}

#scegli_nomi {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
}

#gioco {
  opacity: 0;
  transition: opacity 0.5s;
  flex: 0 1;
}

.card-cornice {
  padding: 6px;
  border-radius: 10px;
  background-color: #2c973e;
  box-shadow: 0 0 10px 0px #00000038;
}

.card {
  box-shadow: inset 0 0 10px 0px #00000038;
  border: 0;
  border-radius: 7px;
}
.card .card-header {
  font-family: "Balsamiq Sans", cursive;
  font-size: 1.4rem;
  line-height: initial;
  position: relative;
  background: repeating-linear-gradient(45deg, #00000005, #00000005 20px, #ffffff05 20px, #ffffff05 40px);
  color: #003d95;
}
.card .card-header:before {
  background: repeating-linear-gradient(-45deg, #00000005, #00000005 20px, #ffffff05 20px, #ffffff05 40px);
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.card .card-header .lavagna {
  transition: all 0.5s;
  background-color: rgba(255, 255, 255, 0.5);
}
.card .card-header .lavagna .color {
  background-color: rgba(0, 174, 239, 0.1);
  border-radius: 6px;
  transition: all 0.5s;
  border: 6px solid rgba(88, 142, 201, 0.5);
}
.card .card-header .lavagna .riquadro {
  background-color: #fff202;
  border: 3px solid #b9b236;
  border-radius: 5px;
  display: inline-block;
  font-size: 0.8rem;
  margin: 3px 0;
  padding: 2px 6px;
  transition: all 0.5s;
}
@media (min-width: 560px) and (min-height: 810px) {
  .card .card-header .lavagna .riquadro {
    font-size: 1rem;
  }
}
@media (min-width: 680px) and (min-height: 880px) {
  .card .card-header .lavagna .riquadro {
    font-size: 1.2rem;
  }
}
.card .card-header .lavagna .riquadro.on {
  background-color: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 0 9px 5px #fff202;
  color: white;
}
.card .dida {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  color: #000;
  font-size: 0.7rem;
  line-height: 1.3em;
}
@media (min-width: 560px) and (min-height: 810px) {
  .card .dida {
    font-size: 0.8rem;
  }
}
@media (min-width: 680px) and (min-height: 880px) {
  .card .dida {
    font-size: 0.9rem;
  }
}
.card .card-footer .btn {
  font-size: 0.6rem;
}
@media (min-width: 560px) and (min-height: 810px) {
  .card .card-footer .btn {
    font-size: 0.8rem;
  }
}
@media (min-width: 680px) and (min-height: 880px) {
  .card .card-footer .btn {
    font-size: 1rem;
  }
}

.attivo .lavagna .color {
  transition: all 0.5s;
  background-color: rgba(0, 174, 239, 0.5);
  border-color: #588ec9;
}

.game {
  background-size: cover;
  background-position: center;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  padding-top: 40px;
}

.game__cards {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, 60px);
  grid-auto-rows: 60px;
  grid-gap: 10px;
}
@media (min-width: 430px) and (min-height: 670px) {
  .game__cards {
    grid-template-columns: repeat(6, 60px);
    grid-auto-rows: 60px;
  }
}
@media (min-width: 500px) and (min-height: 756px) {
  .game__cards {
    grid-template-columns: repeat(6, 70px);
    grid-auto-rows: 70px;
  }
}
@media (min-width: 560px) and (min-height: 806px) {
  .game__cards {
    grid-template-columns: repeat(6, 80px);
    grid-auto-rows: 80px;
  }
}
@media (min-width: 620px) and (min-height: 815px) {
  .game__cards {
    grid-template-columns: repeat(6, 90px);
    grid-auto-rows: 90px;
  }
}
@media (min-width: 680px) and (min-height: 880px) {
  .game__cards {
    grid-template-columns: repeat(6, 100px);
    grid-auto-rows: 100px;
  }
}
@media (min-width: 740px) and (min-height: 930px) {
  .game__cards {
    grid-template-columns: repeat(6, 110px);
    grid-auto-rows: 110px;
  }
}
@media (min-width: 800px) and (min-height: 980px) {
  .game__cards {
    grid-template-columns: repeat(6, 120px);
    grid-auto-rows: 120px;
  }
}
@media (min-width: 860px) and (min-height: 1020px) {
  .game__cards {
    grid-template-columns: repeat(6, 130px);
    grid-auto-rows: 130px;
  }
}
.game__cards.no-event {
  pointer-events: none;
}

.game__card {
  position: relative;
  cursor: pointer;
  perspective: 700px;
}
.game__card.flipped, .game__card.has-match {
  pointer-events: none;
}
.game__card.flipped .game__back-card, .game__card.has-match .game__back-card {
  transform: rotateY(180deg);
}
.game__card.flipped .game__front-card, .game__card.has-match .game__front-card {
  transform: rotateY(360deg);
}
.game__card .game__both-card, .game__card .game__front-card, .game__card .game__back-card {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #c4d0ef52;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 400ms;
}
.game__card .game__back-card {
  z-index: 1;
}
.game__card .game__front-card {
  transform: rotateY(180deg);
}
.game__card img {
  border-radius: 10px;
  height: 100%;
  width: 100%;
  transition: all 0.3s;
}
.game__card.ok .game__front-card img {
  transform: scale(1.05);
  transition: all 0.3s;
}
.game__card.ok_jolly .game__front-card img {
  transform: scale(1.05);
  box-shadow: 0 0 7px 4px #ffc106;
  transition: all 0.3s;
}

.overlay {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.messaggio {
  transform: scale(0.5);
  position: absolute;
  background-color: #ffffff;
}
.messaggio.istruzioni {
  border: 4px solid green;
}
.messaggio.vittoria {
  background-color: #00bcf5;
}
.messaggio.errore {
  border: 4px solid #c40404;
}
.messaggio p:last-child {
  margin-bottom: 0;
}
.messaggio p.testogrande {
  font-size: 2rem;
}
.messaggio.fadein {
  transition: opacity 0.5s, transform 0.5s !important;
  transform: scale(1) !important;
}
.messaggio.fadeout {
  transition: opacity 0.5s, transform 0.5s !important;
  transform: scale(0.5) !important;
}
.messaggio.classifica {
  border: 4px solid #048eff;
  width: 60%;
}
.messaggio.classifica .card-body {
  background-image: url(/images/confetti.png);
}
.messaggio.classifica .my-custom-scrollbar {
  position: relative;
  height: 500px;
  overflow: auto;
}
.messaggio.classifica .table-wrapper-scroll-y {
  display: block;
}
.messaggio.classifica thead tr {
  background-color: #d6f0ffa6;
}
.messaggio.classifica .posizione {
  background-color: #e3ffd7cc;
  font-weight: bold;
}
.messaggio.classifica .posizione .icona,
.messaggio.classifica .posizione .numero {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}
.messaggio.classifica .posizione .durata,
.messaggio.classifica .posizione .mosse {
  text-align: center;
  white-space: nowrap;
}
.messaggio.classifica .posizione td {
  color: #1b4e04;
}
.messaggio.classifica .posizione img {
  width: 20px;
}
.messaggio.classifica .posizione.posizione1 {
  background-color: #ffeb00cc;
  font-size: 150%;
}
.messaggio.classifica .posizione.posizione1 td {
  color: #746b00;
}
.messaggio.classifica .posizione.posizione1 img {
  width: 35px;
}
.messaggio.classifica .posizione.posizione2 {
  background-color: #e9e9e9cc;
  font-size: 130%;
}
.messaggio.classifica .posizione.posizione2 td {
  color: #606060;
}
.messaggio.classifica .posizione.posizione2 img {
  width: 30px;
}
.messaggio.classifica .posizione.posizione3 {
  background-color: #ffbb40cc;
  font-size: 110%;
}
.messaggio.classifica .posizione.posizione3 td {
  color: #815300;
}
.messaggio.classifica .posizione.posizione3 img {
  width: 25px;
}

/*# sourceMappingURL=memory.css.map */
