/* Container principal */
.rifas-container {
  margin: 20px auto;
  padding: 10px;
  max-width: 800px;
  text-align: center;
}

/* Título */
.rifas-titulo {
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Card da rifa */
.rifa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid green;
  border-left: 6px solid red;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

.rifa-item-jogar {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid green;
  border-left: 6px solid #00b0ff;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

.rifa-imagem-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.rifa-imagem {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.rifa-detalhes {
  padding: 15px;
  width: 100%;
}

.rifa-nome {
  font-size: 1.3rem;
  font-weight: bold;
  color: #c23d00;
  margin-bottom: 10px;
  text-align: center;
}

.rifa-detalhes p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #333;
}

.status-aberto {
  color: green;
  font-weight: bold;
}

/* Seção da loteria */
.rifa-loteria {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.loteria-imagem {
  width: 50px;
  margin-right: 10px;
}

.rifa-loteria-texto {
  color: #1900ff;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .rifa-item {
    flex-direction: column;
  }

  .rifa-detalhes p {
    font-size: 18px;
  }

  .rifa-nome {
    font-size: 1rem;
  }
}

.carousel-item-rifa {
  height: 200px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel {
  position: relative;
}

.carousel-control-prev {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 5;
}

.carousel-control-next {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 5;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 2rem;
  color: white;
}

.card-jogar-rifa {
  border: 1px solid var(--white-5);
  background-color: rgb(39 41 0);
  border-radius: 16px;
  padding: 4px;
  position: relative;
}

.text-success-rifa {
  color: #0083db;
}

.text-dark-rifa {
  color: #00ff22;
  font-weight: bold;
}

.align-container-rifa {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px;
}

.rifa-info {
  margin-bottom: 7px;
  text-align: left;
}

.botao_rifinha {
  display: inline-table;
  padding: 1px 8px;
  margin: 2px;
  background-color: #0d3c51;
  border-radius: 5%;
  cursor: pointer;
}

.btn2 {
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
}

.btn-dark {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.botao_rifinha-conteiner {
  padding: 1rem;
}

.efeito-pulse {
  animation: pulse-efeito 1.5s infinite;
}

.alert-warning-rifa {
  color: #ffbf00;
}

@keyframes pulse-efeito {
  0% {
    box-shadow: 0 0 0 0 rgb(112 212 75 / 70%);
  }

  70% {
    box-shadow: 0 0 0 30px rgb(176 81 230 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(176 81 230 / 0%);
  }
}

.efeito-pulse2 {
  animation: pulse-efeito2 1.5s infinite;
}

@keyframes pulse-efeito2 {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 30px rgb(176 81 230 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* Animação de fade-in para o container */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animação para o texto "Boa Sorte" */
@keyframes slideAndColorChange {
  0% {
    transform: translateX(-100%) rotate(-10deg);
    color: #3498db;
    opacity: 0;
  }
  50% {
    transform: translateX(0) rotate(0deg);
    color: #2ecc71;
    opacity: 1;
  }
  100% {
    transform: translateX(10%) rotate(10deg);
    color: #e74c3c;
  }
}

/* Aplicando a animação ao nome da rifa e "Boa Sorte" */
.animated-text {
  display: inline-block;
  font-size: 2em;
  animation: slideAndColorChange 2s ease-in-out forwards;
}

.qntcotas {
  font-size: 18px;
  font-weight: bold;
  color: #00ff74;
}

.valorcota {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

.card-body-rifa {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
}
