@font-face {
  font-family: "Coolvetica";
  src: url(/assets/fonts/Coolvetica\ Hv\ Comp.otf);
}

* {
  margin: 0;
  padding: 0;
  font-family: "Coolvetica";
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #fafafa;
  background-image: url(https://i.pinimg.com/736x/0f/20/ff/0f20fff108219fc11e56ac99430a5247.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  font-size: 20px;
  justify-content: center;
  color: rgb(28, 153, 255);
  align-items: center;
  text-transform: uppercase;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.botoes {
  padding: 10px 24px;
  width: fit-content;
  height: fit-content;
  border: 4px solid #6bdcff;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0);
}

.resetar {
  font-size: 30px;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  color: rgb(28, 153, 255);
  cursor: pointer;
  margin-top: 0;
  /* ← era 10px */
}

.resetar:hover {
  color: white;
}

.pontuacao-jogada {
  font-size: 15px;
  text-transform: uppercase;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgb(28, 153, 255);
}

.container-jogo {
  width: 150vh;
  height: 80vh;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cards {
  width: 80%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /*esse grid template é pra dizer qye vao ter 5 colunas com 2 cartas*/
  gap: 15px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.card {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: white;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  border: 6px solid #6bdcff;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}


/* Card virado */
.virado {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FRENTE do card (o que o usuário vê inicialmente) */
.front {
  transform: rotateY(0deg);
  background-image: url('../images/question.png');
  background-size: 50px;
  background-repeat: no-repeat;
  background-position: center;
}

/* VERSO do card (a imagem que aparece quando vira) */
.back {
  transform: rotateY(180deg);
}

.back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.correct {
  border: 4px solid rgb(143, 255, 143);
}