@import "./style.css";
@import "./reset.css";

html {
  overflow-y: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ======== MAIN ======== */
.main {
  width: 100%;
  flex: 1;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: hidden;
}

.main-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* Animação para troca de textos em main-title */
.main-title {
  transition: opacity 0.45s ease, transform 0.45s ease;
  -webkit-transition: opacity 0.45s ease, -webkit-transform 0.45s ease;
}

.main-title.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.main-title.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ======== CARDS ======== */
.cards-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
}

.card {
  width: 230px;
  height: 260px;
  background: white;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.conversacao {
  width: 220px;
  height: auto;
  border-radius: 15px;
}
.jogos {
  border-radius: 15px;
  width: 220px;
  height: 220px;
}

.card p {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

/* ======== MODAL ======== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  width: 420px;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s;
}

.close-btn {
  font-size: 30px;
  float: right;
  cursor: pointer;
  color: #444;
}

.modal h2 {
  margin-top: 10px;
  font-size: 26px;
}

.modal p {
  margin-top: 15px;
  font-size: 16px;
  color: #555;
}

/* BOTÃO INICIAR */
#startButton {
  margin-top: 25px;
  padding: 12px 30px;
  background: #73b369;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

#startButton:hover {
  background: #5a9b54;
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======== FOOTER ======== */
.footer {
  width: 100%;
  padding: 15px 0;
  background: #3333332a;
  color: white;
  text-align: center;
  position: relative;
  bottom: 0;
  font-size: 14px;
}
