/* FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

body {
  background: url("../assets/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 400px;
  height: auto;
  margin: 2rem 0;
  animation: logo 2s infinite;
}

.game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.errors {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.timer {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

#board {
  height: 500px;
  width: 500px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.card {
  cursor: pointer;
  width: 100px;
  height: 100px;
  margin: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.1);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-mobile {
  display: none;
}

.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(5px);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  #board {
    height: 400px;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.801);
  }
  .card {
    cursor: pointer;
    width: 75px;
    height: 75px;
    margin: 0.3rem;
    transition: all 0.3s ease-in-out;
  }
  .logo {
    display: none;
  }
  .errors {
    margin-top: 3rem;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  .footer {
    display: none;
  }
  .footer-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
  }
  .timer {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-height: 800px) {
  .logo {
    display: none;
  }
}
