@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

.tech-tittle {
  font-family: "Share Tech Mono", monospace;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;

  text-shadow:
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #08f,
    0 0 80px #08f;

  display: inline-block;
  padding: 10px 30px;
  border: 2px solid #00ffff;
  border-radius: 4px;

  box-shadow:
    0 0 10px #00ffff,
    inset 0 0 10px rgba(0, 255, 255, 0.3);
  animation: pulseTechTittle 2s infinite;
}

@keyframes pulseTechTittle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow:
      0 0 5px #00ffff,
      0 0 10px #00ffff,
      0 0 20px #00ffff,
      0 0 40px #08f;
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
    text-shadow:
      0 0 2px #00ffff,
      0 0 5px #00ffff,
      0 0 10px #00ffff,
      0 0 20px #08f;
  }
}

#memory-game {
  background-color: rgb(50, 50, 50);
  width: 100%;
  flex: 1;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 10px;
  gap: 5px;
  border-radius: 20px;

  perspective: 1000px;
}

.memory-card {
  position: relative;
  width: 100%;
  height: 100%;

  cursor: pointer;
  transition: 1s;
  transform-style: preserve-3d;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  backface-visibility: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 1px 5px #000;
  font-size: 3rem;

  border-radius: 8px;
}

.front {
  background-color: #f8f8f2;
  transform: rotateY(180deg);
}

.back {
  background-color: #6272a4;
  color: #fff;
  font-size: 2rem;
}

#memory-game-win {
  background-color: #282a36;
  color: #fff;
  padding: 10px;

  box-shadow: 0 10px 32px #000;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#memory-game-win button {
  background-color: #282a36;
  color: #fff;

  border: none;
  border-radius: 20px;

  padding: 10px 20px;

  font-size: 1rem;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;
}

#memory-game-win button:hover {
  background-color: #40c863;
}

.win {
  visibility: hidden !important;
}

.hidden {
  display: none !important;
}

/* Seção para computadores */
@media (max-width: 767px) {
  .tech-tittle {
    font-size: 1.4rem;
    letter-spacing: 1px;

    text-shadow:
      0 0 3px #00ffff,
      0 0 6px #00ffff,
      0 0 12px #08f;

    padding: 6px 15px;
    border-width: 1.5px;

    box-shadow:
      0 0 6px #00ffff,
      inset 0 0 6px rgba(0, 255, 255, 0.3);
  }

  @keyframes pulseTechTittle {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
      text-shadow:
        0 0 3px #00ffff,
        0 0 6px #00ffff,
        0 0 12px #08f;
    }
    50% {
      opacity: 0.9;
      transform: scale(1.01);
      text-shadow:
        0 0 2px #00ffff,
        0 0 4px #00ffff,
        0 0 8px #08f;
    }
  }
}
