/* stylelint-disable selector-no-qualifying-type, property-no-vendor-prefix */

/* Layout independente do Bootstrap */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.game-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.game-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 0 15px;
}

.game-main {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.game-sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

/* Responsividade */
@media (max-width: 768px) {
  .game-main {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .game-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .game-sidebar .card {
    flex: 0 0 48%;
    margin-bottom: 10px;
  }
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300 !important;
  padding-top: 5px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
  color: black;
}

.card{
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  padding: 20px;
  padding-top: 40px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card i{
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
  color: inherit;
}

.card:hover i{
  transform: scale(1.1);
  opacity: 1;
}

.card-text{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: inherit;
  text-shadow: none;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.card:active{
  transform: translateY(-2px);
}

.contribution{
  background-color: #f3e5f5;
  border: 3px solid #9C27B0;
  color: #6a1b9a;
}
.reflection{
  background-color: #e3f2fd;
  border: 3px solid #2196F3;
  color: #1565c0;
}
.evaluation{
  background-color: #ffebee;
  border: 3px solid #F44336;
  color: #c62828;
}

.affectivity{
  background-color: #fce4ec;
  border: 3px solid #E91E63;
  color: #ad1457;
}
.challenges{
  background-color: #e8f5e8;
  border: 3px solid #4CAF50;
  color: #2e7d32;
}
.experience{
  background-color: #fff3e0;
  border: 3px solid #FF9800;
  color: #ef6c00;
}

.title-div{
  padding: 10px;
  font-size: 25px;
  margin: 0px;
}

.question-card{
  border: 3px solid #dee2e6;
  background-color: white;
  height: 400px;
  text-align: center;
  font-size: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.question-card.contribution{
  border-color: #9C27B0; /* Lilás */
  background-color: #f3e5f5;
  color: #6a1b9a;
}
.question-card.reflection{
  border-color: #2196F3; /* Azul */
  background-color: #e3f2fd;
  color: #1565c0;
}
.question-card.evaluation{
  border-color: #F44336; /* Vermelho */
  background-color: #ffebee;
  color: #c62828;
}

.question-card.affectivity{
  border-color: #E91E63; /* Rosa */
  background-color: #fce4ec;
  color: #ad1457;
}
.question-card.challenges{
  border-color: #4CAF50; /* Verde */
  background-color: #e8f5e8;
  color: #2e7d32;
}
.question-card.experience{
  border-color: #FF9800; /* Laranja */
  background-color: #fff3e0;
  color: #ef6c00;
}


.processing {
  animation-name: cardShuffle;
  animation-duration: 0.3s;
  animation-iteration-count: 2;
  animation-timing-function: ease-in-out;
}

.loading {
  animation-name: loadingDots;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes cardShuffle {
  0% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  25% {
    transform: scale(0.95) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
  75% {
    transform: scale(0.98) rotate(-1deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

@keyframes loadingDots {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}

.loading:nth-child(1) {
  animation-delay: 0s;
}

.loading:nth-child(2) {
  animation-delay: 0.2s;
}

.loading:nth-child(3) {
  animation-delay: 0.4s;
}

/* Container dos botões de sorteio */
.text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 20px;
  background-color: #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
}

/* Botões de sorteio customizados */
.game-btn {
  background-color: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  color: #495057;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  padding: 12px 8px;
  min-width: 100px;
  height: 79px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.1);
  cursor: pointer;
  font-family: inherit;
}

.game-btn:hover {
  background-color: #dee2e6;
  border-color: #adb5bd;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 117, 125, 0.2);
  color: #343a40;
}

.game-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}

.game-btn:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #dee2e6;
  color: #495057;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.1);
}

.config-btn {
  background-color: #17a2b8;
  border: 1px solid #17a2b8;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.config-btn:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: white;
}

/* Modal customizado */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: 500;
}

.modal-close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  cursor: pointer;
}

.modal-close:hover {
  opacity: 0.75;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0056b3;
  border-color: #004085;
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0.5;
}

.modal-open {
  overflow: hidden;
}

/* Alerta de login */
.login-alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

/* Botões de categoria mobile - esconder no desktop */
.mobile-category-buttons {
  display: none;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  /* Layout mobile minimalista */
  .game-container {
    padding: 5px;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Forçar largura total no mobile */
  .game-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .game-content {
    margin-left: 0 !important;
  }
  
  /* Reduzir padding das colunas no mobile */
  .game-main {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .game-content {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px !important;
  }
  
  /* Esconder cartas laterais no mobile */
  .game-sidebar:first-child {
    display: none;
  }
  
  /* Carta central - versão mobile */
  .game-main:last-child {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }
  
  /* Título mobile */
  .title-div {
    font-size: 20px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Carta principal mobile */
  .question-card {
    height: 300px;
    margin-bottom: 30px;
    font-size: 18px;
    padding: 30px 20px;
  }
  
  /* Botões de sorteio mobile */
  .text-center {
    flex-direction: column;
    gap: 10px;
    padding: 10px 5px;
    margin-top: 15px;
  }
  
  .text-center .game-btn {
    width: 100%;
    max-width: 280px;
    height: 60px;
    font-size: 14px;
    padding: 15px;
  }
  
  
  /* Botões de categoria mobile - estilo minimalista */
  .mobile-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    justify-content: center;
    padding: 0 5px;
  }
  
  .mobile-category-btn {
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    width: 110px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
  }
  
  .mobile-category-btn i {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
  }
  
  .mobile-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-category-btn:focus,
  .mobile-category-btn:active {
    outline: none;
    background-color: #ffffff;
    border-color: inherit;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-category-btn.contribution {
    border-color: #9C27B0;
    color: #9C27B0;
  }
  
  .mobile-category-btn.reflection {
    border-color: #2196F3;
    color: #2196F3;
  }
  
  .mobile-category-btn.evaluation {
    border-color: #F44336;
    color: #F44336;
  }
  
  .mobile-category-btn.affectivity {
    border-color: #E91E63;
    color: #E91E63;
  }
  
  .mobile-category-btn.challenges {
    border-color: #4CAF50;
    color: #4CAF50;
  }
  
  .mobile-category-btn.experience {
    border-color: #FF9800;
    color: #FF9800;
  }
}