@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600&display=swap');

body {
  background-color: #08101d;
  color: #EFE1CE;
  font-family: "Kanit", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

.dashboard {
  margin-top: 120px;
}

.dashboard h2 {
  font-size: 28px;
  color: #EFE1CE;
}

.dashboard p {
  color: #bbb;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
}

.card {
  background: #041E42;
  color: #EFE1CE;
  width: 200px;
  height: 160px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card:hover {
  background: #7D2525;
  transform: translateY(-5px);
}

.card i {
  font-size: 40px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 20px;
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #041E42;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  color: #EFE1CE;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

  /* ANIMAÇÃO DE ENTRADA */
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDownModal 0.4s ease forwards;
}

@keyframes slideDownModal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }

  to {
    background-color: rgba(0, 0, 0, 0.6);
  }
}

.close {
  color: #bbb;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

.salas {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sala-btn {
  background-color: #7D2525;
  color: #EFE1CE;
  padding: 12px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.sala-btn:hover {
  background-color: #a83232;
}



/* Responsivo */
@media (max-width: 600px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
  }
}