body {
  font-family: 'Comic Neue', cursive, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  color: #fff;

  background-image: url('img/fundo.jpg'); /* nome da imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1 {
  color: #f6c90e;
  font-size: 3em;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 20px;
}

#timer {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 3px #000;
}

#game-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px #fff;
  transition: opacity 0.5s;
}

.card {
  width: 100px;
  height: 100px;
  border-radius: 15px;
  cursor: pointer;
  perspective: 1000px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s;
}

.card.medium {
  width: 80px;
  height: 80px;
}

.card.hard {
  width: 70px;
  height: 70px;
}

.card:hover {
  transform: scale(1.05);
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
}

.card-front {
  background-color: #8ec5fc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.card-back {
  transform: rotateY(180deg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #fff;
}

.buttons {
  margin-top: 25px;
}

button {
  margin: 8px;
  padding: 14px 24px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background-color: #8ec5fc;
  background-image: linear-gradient(45deg, #8ec5fc 0%, #e0c3fc 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

button:hover {
  transform: scale(1.05);
  background-color: #a29bfe;
}

button:active {
  transform: scale(0.97);
}

#message {
  font-size: 26px;
  color: #00ffcc;
  margin-top: 20px;
  display: none;
  text-shadow: 2px 2px 5px #000;
}

@media (max-width: 600px) {
  .card {
    width: 70px !important;
    height: 70px !important;
  }
}

.logo-topo {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 90px;
  height: auto;
  z-index: 1000;
}

.logo-rodape {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 100px;
  height: auto;
  z-index: 1000;
  opacity: 0.9;
}

footer {
  text-align: center;
  color: #ffffff;
  
  padding: 12px 20px;
  font-size: 14px;
  margin-top: 40px;
  
}

footer a {
  color: #00ccff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
