*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: 'textmeone';
  src: url(font/TextMeOne-Regular.ttf);
  font-display: swap;
}
:root{
  --backColor:#97a83f;
  --secondColor:#d8394c;
}
body{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--backColor);
  user-select: none;
  font-family: 'textmeone';
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
}
h1{
  text-transform: uppercase;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
h2 {font-size: 24px;}
.title{
  border-radius: 5px;
  background-color: rgb(202, 202, 202);
  margin-bottom: 15px;
  height: 29px;
}
.container{
  width: 440px;
  width: 320px;
  background-color: rgb(255, 255, 255);
  border: 2px solid black;
  border-radius: 10px;
  padding: 20px;
  padding: 15px;
  gap: 10px;
}
.flex{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-around;
}
.flex-column{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex--modal {width: 100%;}
.container--main {align-items: stretch;}

.button{
  background-color: var(--secondColor);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  border: 2px solid black;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'textmeone';
  cursor: pointer;
  font-size: 18px;
  height: 36px;
}
.flex-column > .button {width: 100%;}
.button--half {flex-basis: 50%;}
.mode-options {width: 100%;}

.mode-instruction{
  font-size: 16px;
  padding-left: 18px;
  height: 130px;
  border: 1px solid black;
  border-left:none ;
  border-right: none;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.instruction{
  position: absolute;
  top: 50%;
  transition: translate 1s;
}
.instruction--mode2 {translate: 300px -50%;}
.instruction--mode1 {translate: -300px -50%;}
.show {translate: 0 -50%;}

.display{
  display: flex;
  padding: 5px 10px;
  justify-content: space-between;
  border: 2px solid black;
  border-radius: 5px;
  height: 42px;
  align-items: center;
}
.display__time, .display__chances{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 75px;
}
.display__time--red {color: red;}

.display__mode{
  background-color: black;
  padding: 3px 10px;
  color: white;
  border-radius: 5px;
  height: 28px;
}
.cent-seconds, .seconds{
  display: inline-block;
  width: 18px;
}
.seconds {text-align: right;}
.display-image{
  width: 18px;
  height: 18px;
  margin-right: 3px;
}
.cards{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.cards__place{
  width: 67px;
  height: 67px;
  background-color: #97a83f;
  border: 2px solid black;
  border-radius: 5px;
  position: relative;
}
.cards__front, .cards__back{
  background-color: white;
  position: absolute;
  width: 57px;
  height: 57px;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 5px;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s;
  backface-visibility: hidden;
}
.cards__back {transform: rotateY(180deg);}
.cards__back img{
  width: 60px;
  height: 60px;
  width: 45px;
  height: 45px;
}
.cards__front{
  background: white url(img/pregunta.webp) center no-repeat;
  background-size: 45px;
  cursor: pointer;
}
.flip .cards__back {transform: rotateY(0deg);}
.flip .cards__front {transform: rotateY(180deg);}
.shuffle .cards__back {animation: .15s linear 5 alternate flipShuffle;}
.shuffle .cards__front {animation: .15s linear 5 alternate flipShuffle2;}
.shuffle .cards__back img {opacity: 0;}

@keyframes flipShuffle {
  0% {transform: rotateY(0deg)}
  100% {transform: rotateY(180deg)}
}
@keyframes flipShuffle2 {
  0% {transform: rotateY(180deg)}
  100% {transform: rotateY(0deg)}
}
.modal{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.94);
}
.container--modal{
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 310px;
  justify-content: space-between;
  gap: 30px;
}
.modal-image{
  width: 20px;
  height: 20px;
  margin-right: 3px;
}
.bloqued {pointer-events: none;}
.disabled {opacity: .3; pointer-events: none;}
.unselected {opacity: .6;}
.hits {filter: grayscale(1);}
.hidden {visibility: hidden;}

.flex--stats {gap: 3px;}

@media screen and (min-width:375px) {
  .container {width: 375px;}
  .container--modal {width: 310px;}
  .cards {gap: 7px;}
  .cards__place {width: 80px; height: 80px;}
  .cards__front, .cards__back {width: 70px; height: 70px;}
  .cards__front {background-size: 55px;}
  .cards__back img {width: 55px; height: 55px;}
}
@media screen and (min-width:576px) {
  .container{
    width: 440px;
    padding: 20px;
    border: 3px solid black;
  }
  .container--modal {width: 310px;}
  .cards {gap: 11.33px;}
  .cards__place {width: 90px; height: 90px;}
  .cards__front, .cards__back {width: 80px; height: 80px;}
  .cards__front {background-size: 60px;}
  .cards__back img {width: 60px; height: 60px;}
}