* {/*para todos los elementos */
  transition: all 0.5s;
  cursor:url('imagenes/pezSimpsons1.png'), auto;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'simpsonFont';
  src: url('fuentes/Simpsonfont DEMO.otf');
}
body {
  background-image: url('imagenes/fondoo.png') ;
  font-family: 'simpsonFont';/*fuentes del texto*/
  color:#FFEC5E;
  text-shadow: black 0.1em 0.1em 0.2em ;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
.firstPage { /*contenedor*/
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto ;
  overflow: hidden;
}
.container-title1 { /*header*/
  display: flex;
  background-repeat: no-repeat;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.title1 {
width: 80%;
}
.instructions { /*seccion1*/
  display:flex;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  font-size: 100%;
  margin-top: -120px;
}
p {
  font-size:2rem;
  letter-spacing: 2px;
}
.gif {
  width: 20%;
  height: 50%;
  border-radius: 50%;
  animation: float 5s infinite;
  position: relative;
  bottom: -30px;
}
@keyframes float {
  0% {transform: translateY(0px);}
  50% {transform: translateY(-10px);}
  100% {transform: translateY(0px);}
}
.gif:hover {
  color: rgba(255, 255, 255, 1) !important;
  box-shadow: 0px 10px 70px #FFEC5E;
  transition: all 0.2s ease;
}
.musicIntro {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  bottom: 0;
  position: fixed;
  position: absolute;
  background-color: rgb(12, 146, 199);
  opacity: 0.5;
}
.audioIntro {
  width: 350px;
  position: relative;
}
.p1 {
  font-size: 1.25rem;
}
.pageTwo { /*seccion2*/
  flex-wrap: wrap;
  justify-content: center;
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 30px;
}
nav{
  display: flex;
  justify-content: center;
} 
.cronometro{
  position: relative;
  align-items: center;
  margin-top: -30px;
  font-size: 21px;
}
.tv {
  margin-top: -20px;
  width: 100px;
  position: absolute;
} 
.boardGame { /*tablero*/
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}
:root {
  --w: calc(20vw /2);/*ancho */
  --h: calc(58vh /4);/*alto */
}
div {
  display: grid;
  margin: auto;
  grid-template-columns: auto auto auto auto;
}
.area-tarjeta {
  width: var(--w);/*ancho*/
  height: var(--h);/*largo*/
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  margin-left: 3px;
  margin-right: 3px;
  margin-top: 5px;
}
.tarjeta, .cara-superior, .cara-trasera {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.tarjeta {
  position: relative;/*le da una posicion en la pagina*/
  transform-style: preserve-3d;/*para ver ambos lados*/
  transition: 1s;
  margin: 5px;
  animation: iniciar 5s;
}
.cara-superior, .cara-trasera {
  position: absolute;
  backface-visibility: hidden;
}
.cara-trasera {
  background-color:#FFEC5E;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
}
.cara-superior {
  background-image: url('imagenes/donaa.png');
  background-size: cover;
  background-color: #FFEC5E;
}
.imagesSimpsons {
  width: 100%;
  height: auto;
}
.tarjeta.descubierta {
  transform: rotateY(-180deg);
}
.tarjeta.ganadora {
  pointer-events: none;/*reaccion al puntero */
}
.finalGanador {
  display: flex;
  text-align: center;
  position: absolute;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
  font-family: 'simpsonFont';
  color:#FFEC5E;
}
.finalPerdedor {
  display: flex;
  text-align: center;
  position: absolute;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
  font-family: "simpsonFont";
  color:#FFEC5E;
}
.puerco {
  width: 20%;
  position: relative;
  bottom: -550px;
}
.puerco:hover {
  background: rgb(168, 10, 155);
  border-radius: 5%;
}
.burns {
  width: 20%;
  position: relative;
  bottom: -550px;
  border-radius: 10%;
}
.burns:hover {
  box-shadow: 0px 10px 70px #FFEC5E;
}
.celebracion {
  width: 35%;
  height: 50%;
  position: fixed;
  top: 50%; 
  left: 43%;
  margin-top: -150px;
  margin-left: -170px;
  box-shadow: 0px 10px 70px #FFEC5E;
  border-radius: 5%;
}
.finalMsn1 {
  width: 35%;
  height: 50%;
  position: fixed;
  left: 32%;
  font-size:4rem;
  text-shadow: black 0.1em 0.1em 0.2em ;
}
.finalMsn2 {
  width: 35%;
  height: 50%;
  position: fixed;
  left: 32%;
  font-size:4rem;
  text-shadow: black 0.1em 0.1em 0.2em ;
}
@keyframes iniciar {

  60%,
  90% {
      transform: rotateY(180deg);
  }
  30%,
  100% {
      transform: rotateY(0deg);
  }
}