.bicho-container {
    background: linear-gradient(135deg, #fde8f0, #e9f4fa, #f5e4f0);;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px auto;
}


.bicho-container h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.bicho-container p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.jogo_do_bicho-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jogo_do_bicho-form label {
  font-weight: bold;
  margin-bottom: 0;
}

.jogo_do_bicho-form select,
.jogo_do_bicho-form input {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  font-size: 14px;
  transition: border-color 0.2s;
}

.jogo_do_bicho-form select:focus,
.jogo_do_bicho-form input:focus {
  border-color: #999;
  outline: none;
}

.jogo_do_bicho-form button {
  margin-top: 20px;
  padding: 8px;
  background-color: #5dbb63;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.jogo_do_bicho-form button:hover {
  background-color: #4aa654;
  transform: scale(1.02);
}

.animal-grid {
  margin-top: 20px;
}

.animal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 15px;
  list-style: none;
  padding: 0;
}

@media (min-width: 480px) {
  .animal-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) {
  .animal-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .animal-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .animal-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.animal-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  background: rgba(255, 255, 255, 0.7);
  padding-bottom: 4px;
}

.animal-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #aaa;
}

.animal-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
  border-radius: 8px;
}

.animal-card .animal-title {
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 4px;
  color: #333;
  font-weight: bold;
}

.animal-card.selected {
  border-color: #ff7eb9;
  box-shadow: 0 0 10px rgba(255, 126, 185, 0.4);
}

#result-text {
  font-size: 18px;
  color: #444;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.jogo_do_bicho-result {
  margin-top: 30px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
}

.jogo_do_bicho-result .result-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.jogo_do_bicho-result.show .result-text{
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease forwards;
}

.jogo_do_bicho-result h3 {
  margin-bottom: 10px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px rgba(93, 187, 99, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(93, 187, 99, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(93, 187, 99, 0.4);
  }
}

.animal-card.selected {
  border-color: #5dbb63;
  box-shadow: 0 0 20px rgba(93, 187, 99, 0.4);
  transform: scale(1.08);
  transition: all 0.3s ease;
  animation: pulse 1.5s infinite;
}

.winner-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

.winner-content {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  font-size: 22px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 400px;
  width: 90%;
}

.close-winner {
  margin-top: 20px;
  padding: 10px 20px;
  background: #5dbb63;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.close-winner:hover {
  background: #4aa654;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
