
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: #007BFF;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

.section {
  margin: 40px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007BFF;
}

p {
  margin-bottom: 15px;
}

.skills-list, .contact-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  margin-bottom: 10px;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list a {
  color: #007BFF;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: #ffffff; /* Fundo branco para melhor contraste no modo claro */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave para destacar os cards */
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

footer {
  background: #007BFF;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.dark-mode-toggle:hover {
  background: #0056b3;
}

/* Estilo dos cards de projetos no modo escuro */
body.dark-mode .project-card {
  background: #0e1686; /* Mantém a cor original do modo escuro */
}

/* Estilo do botão dentro dos cards no modo claro */
.project-card .btn {
  background: #007BFF; /* Cor padrão do botão */
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

/* Estilo do botão dentro dos cards no modo escuro */
body.dark-mode .project-card .btn {
  background: #1e90ff; /* Um tom mais claro de azul para melhor contraste no modo escuro */
}

/* Modo escuro */
.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Estilo do cabeçalho com animação */
header {
  text-align: center;
  margin-top: 50px;
  font-size: 2rem;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(20, end); /* Remove o cursor piscante */
}

/* Animação de digitação */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Botão de alternância de modo */
#darkModeToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}

* Estilo do cabeçalho com animação */
header {
  text-align: center;
  margin-top: 50px;
  font-size: 2rem;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

#animatedHeader {
  display: inline-block;
  animation: typing 3s steps(20, end);
  position: relative; /* Permite animação de movimento */
}

/* Animação de digitação */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Estilo do cabeçalho com animação */
header {
  text-align: center;
  margin-top: 50px;
  font-size: 2rem;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

#animatedHeader {
  display: inline-block;
  animation: typing 3s steps(20, end);
  position: relative; /* Permite animação de movimento */
}

/* Animação de digitação */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Classe para animação de descida */
.slide-down {
  animation: slideDown 3s ease-in-out forwards;
}

/* Animação de descida */
@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100px); /* Ajuste a distância conforme necessário */
    opacity: 0;
  }
}

/* Estilos para a seção Sobre Mim */
.sobre-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.sobre-texto {
  flex: 1;
  min-width: 250px;
}

.sobre-imagem {
  flex: 0 0 250px; /* Largura fixa para a imagem */
  margin-left: 40px;
}

.sobre-imagem img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-whatsapp  {
  height: 60px;
  position: fixed;
  right: 40px;
  bottom: 40px;
}



/* Imagem de fundo para modo claro */
body {
  background-image: url('./img/Futuro.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Imagem de fundo para modo escuro */
body.dark-mode {
  background-image: url('./img/Espaço\ estelar.jpg');
}
er;
    }

    .info-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .info-box {
        flex: 1;
        min-width: 100px;
    }

    #gameCanvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .controls-mobile {
        display: flex;
    }

    .instructions {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2rem;
    }

    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .control-down {
        width: 130px;
    }

    .game-over-screen,
    .victory-screen {
        padding: 30px 20px;
        min-width: 200px;
    }
}
