/* Variáveis de Cores */
:root {
  --bg-color: #ffde59;
  --text-dark: #2d3436;
  --white: #ffffff;
}

body {
  font-family: "Fredoka", sans-serif;
  background-color: var(--bg-color);
  /* Fundo com bolinhas animadas discretamente */
  background-image: radial-gradient(circle, #fff 10%, transparent 10.5%);
  background-size: 40px 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Header Estilizado */
header {
  padding: 50px 20px;
  text-align: center;
}

.logo-text {
  font-size: 4rem;
  color: #ff5757;
  text-shadow: 6px 6px 0px var(--white);
  margin: 0;
  letter-spacing: -2px;
}

header p {
  font-size: 1.4rem;
  color: #545454;
  font-weight: 700;
}

/* Grade de Jogos */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  width: 90%;
  max-width: 1000px;
  padding: 20px;
}

/* Os Cards Estilo "Botão Fofinho" */
.card {
  text-decoration: none;
  border-radius: 40px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--white);
  box-shadow: 0 15px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 220px;
}

.card-float {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  font-size: 70px;
  background: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.1);
}

.card span {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Cores dos Cards */
.orange {
  background-color: #ff914d;
}
.blue {
  background-color: #38b6ff;
}
.green {
  background-color: #7ed957;
}
.purple {
  background-color: #8c52ff;
}

/* Interações Especiais */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 0px rgba(0, 0, 0, 0.1);
}

.card:hover .icon-circle {
  transform: rotate(10deg) scale(1.1);
}

.card:active {
  transform: translateY(10px);
  box-shadow: 0 5px 0px rgba(0, 0, 0, 0.1);
}

/* Footer com Créditos */
footer {
  margin-top: auto;
  padding: 40px;
  text-align: center;
}

footer p {
  font-weight: 700;
  color: #545454;
}

footer a {
  color: #ff5757;
  text-decoration: none;
  border-bottom: 3px solid #ff5757;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 600px) {
  .logo-text {
    font-size: 2.8rem;
  }
  .game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .card {
    height: 180px;
    padding: 10px;
  }
  .icon-circle {
    width: 80px;
    height: 80px;
    font-size: 50px;
  }
  .card span {
    font-size: 1.1rem;
  }
}
