/* ==========================
   Reset e Base
========================== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0a0a0a;
  color: #f2f2f2;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background-color: #f9f9f9;
  color: #111;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
}

.main {
  flex: 1;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  animation: fadeInUp 1s ease;
}

/* ==========================
   Header e Navegação
========================== */
header {
  background-color: #000;
  color: white;
  padding: 20px 0;
  text-align: center;
  animation: fadeIn 1s ease;
  position: relative;
}

body.light-mode header {
  background-color: #fff;
  color: #111;
}

/* ==========================
   Botão de alternar tema
========================== */
#themeToggle {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  border-radius: 6px;
  background-color: transparent;
  color: #ff0033;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

#themeToggle:focus {
  outline: none;
}

body.light-mode #themeToggle {
  color: #cc0029;
}

#themeToggle:hover {
  color: #99001f;
}

#themeToggle::after {
  content: attr(data-theme-icon);
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* ==========================
   Conteúdo principal
========================== */


.main h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: inherit;
}

.tools {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5rem;
}

 /* Suporte a tema claro */
 body.light-mode {
  background-color: #f9f9f9;
  color: #111;
}

.container {
  padding: 230px;
  text-align: center;
}

.card {
  background-color: #111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.15);
  max-width: 500px;
  margin: auto;
}

body.light-mode .card {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h1 {
  font-size: 2rem;
  color: #ff0033;
  margin-bottom: 20px;
}

body.light-mode .card h1 {
  color: #cc0029;
}

.card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.card strong {
  color: #ff0033;
}

.botao-voltar {
  text-decoration: none;
  background-color: #ff0033;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

body.light-mode .botao-voltar {
  background-color: #cc0029;
  color: white;
}

.botao-voltar:hover {
  background-color: #cc0029;
}

body.light-mode .botao-voltar:hover {
  background-color: #99001f;
}


/* ==========================
   Footer
========================== */
footer {
  text-align: center;
  margin-top: auto;
  padding: 30px 20px 20px;
  font-size: 0.9rem;
  background-color: #000;
  color: #777;
  animation: fadeIn 1s ease;
}

body.light-mode footer {
  background-color: #fff;
  color: #555;
}

.footer-links {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #ff0033;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

body.light-mode .footer-links a {
  color: #cc0029;
}

.footer-links a:hover {
  color: #ff3366;
}

body.light-mode .footer-links a:hover {
  color: #99001f;
}

.footer-links span {
  color: #555;
}

/* ==========================
   Animações
========================== */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

/* ==========================
   Responsividade
========================== */
@media (max-width: 600px) {
  #themeToggle {
    position: static;
    display: block;
    margin: 10px auto 0;
  }

  .tools {
    flex-direction: column;
    align-items: center;
  }
}

header {
  padding-top: 10px;
}
