@font-face {
  font-family: "Roboto";
  src: url("ruta-a-tu-archivo-de-fuente.woff2") format("woff2"),
       url("ruta-a-tu-archivo-de-fuente.woff") format("woff");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100vh;
  cursor: url("https://raw.githubusercontent.com/WebDevSimplified/Mix-Or-Match/master/Assets/Cursors/Ghost.cur"), auto;
}

body {
  margin: 0;
  background: radial-gradient(#242424, #000000);
}


.game-info-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
}

.game-info {
  font-family: Roboto, sans-serif;
  color: #ffffff;
  font-size: 2em;
}

.game-container {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-gap: 10px;
  margin: 40px 50px 0; /* Adicione 100px de margem superior */
  justify-content: center;
  perspective: 800px;
}

.card {
  position: relative;
  height: 175px;
  width: 125px;
}

.card:hover {
  cursor: url("https://raw.githubusercontent.com/WebDevSimplified/Mix-Or-Match/master/Assets/Cursors/GhostHover.cur"), auto;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  border-width: 1px;
  border-style: solid;
  transition: transform 500ms ease-in-out;
}

.card.visible .card-back {
  transform: rotateY(-180deg);
}

.card.visible .card-front {
  transform: rotateY(0)
}

.card.matched .card-value {
  animation: dance 1s linear infinite 500ms;
  
}

.overlay-text {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 100;
  color: #fffefd;
  font-family: Roboto, sans-serif;

}

.overlay-text-small {
  font-size: .3em;
}

.overlay-text.visible {
  
  display: flex;
  flex-direction: column;
  animation: overlay-grow 500ms forwards;
  font-size: 0.8em; 
  
}

@keyframes overlay-grow {
  from {
    background-color: rgba(0, 0, 0, 0);
    font-size: 0;
  }
  to {
    background-color: rgba(0, 0, 0, .8);
    font-size: 10em;
  }
}

@keyframes dance {
  0%, 100%  {
    transform: rotate(0);
    transform: scale(0.17);  
  }
  25% {
    transform: rotate(-30deg);
    transform: scale(0.19);
  }
  75% {
    transform: rotate(30deg);
    transform: scale(0.18);
    
  }
}

.card-back {
  background-color: #00DCAA;
  border-color: #5BBA9E;
}

.card-front {
  background-color: #b3b3b3;
  border-color: #333;
  transform: rotateY(180deg);
}

.card-value {
  transition: transform 100ms ease-in-out;
  transform: scale(0.17);
}

.card-front:hover .card-value {
  transform: scale(0.19);
}

.cob-web {
  position: absolute;
  width: 47px;
  height: 47px;
  transition: width 100ms ease-in-out, height 100ms ease-in-out;
}

.card-face:hover .cob-web {
  width: 52px;
  height: 52px;
}

.cob-web-top-left {
  transform: rotate(270deg);
  top: 0;
  left: 0;
}

.cob-web-top-right {
  top: 0;
  right: 0;
}

.cob-web-bottom-left {
  transform: rotate(180deg);
  bottom: 0;
  left: 0;
}

.cob-web-bottom-right {
  transform: rotate(90deg);
  bottom: 0;
  right: 0;
}

.spider {
  align-self: flex-start;
  transform: translateY(-10px);
  transition: transform 100ms ease-in-out;
}

.card-back:hover .spider {
  transform: translateY(0)
}

@media (max-width: 600px) {
  .game-container {
    grid-template-columns: repeat(2, auto);
  }

  .game-info-container {
    flex-direction: column;
    align-items: center;
  }
}


/* Background Styles Only */

@import url('https://fonts.googleapis.com/css?family=Raleway');


.logo-container {
  text-align: center;
  margin-top: 10px;
  height: 100px;
  width: 300px; /* Aumente a largura do contêiner conforme necessário */
  margin-left: auto;
  margin-right: auto;
}

.logo-container img {
  max-width: 100%; /* Defina a largura máxima como 100% */
}