* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-image: linear-gradient(135deg, #ff007f, #7d2fbd, #00d4ff, #ff9800);
  background-size: 400% 400%;
  animation: gradient 12s ease infinite;
  height: 100vh;
  color: #f5f5f5;
  text-align: center;
  padding: 20px;
}

/* Cabeçalho */
header {
  padding: 20px;
  border-radius: 10px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  border-bottom: 3px solid #ff007f;
  display: inline-block;
  padding-bottom: 5px;
  margin-top: 10px;
}

/* Barra de navegação */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

body {
  padding-top: 70px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 18px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 10px;
  font-size: 1.1rem;
  transition: 0.3s;
}

nav a:hover {
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff;
}

/* Seção principal */
section {
  background-color: rgba(30, 30, 30, 0.5);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

h2 {
  color: #ffccff;
  margin-bottom: 12px;
  text-shadow: 0 0 8px #7d2fbd;
}

/* Imagens */
aside img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  border: 2px solid #ff007f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 10px;
}

.imagem-container img:last-child {
  margin-right: 0;
}

aside img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.8);
}

/* Links */
a {
  color: #ff9800;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

a:hover {
  color: #ff007f;
  text-shadow: 0 0 6px #ff007f;
  text-decoration: underline;
}

/* Rodapé */
footer {
  padding: 10px;
  border-radius: 10px;
  margin-top: 20px;
}

footer p {
  font-size: 0.9rem;
  color: #cccccc;
}

/* Animação gradiente */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Content-box */
.content-box {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 0, 127, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 25px rgba(0, 212, 255, 0.8);
}

.content-box h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  transition: transform 0.3s ease, color 0.3s ease;
}

.content-box h3:hover {
  transform: scale(1.1);
  color: #00d4ff;
}

.content-box p {
  color: #f5f5f5;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.content-box p:hover {
  transform: scale(1.05);
}

/* Artigos */
article p {
  color: #f5f5f5;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

article p:hover {
  transform: scale(1.05);
}

article h3 {
  color: #ffccff;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

article h3:hover {
  transform: scale(1.1);
  color: #ff007f;
}

/* Calculadora */
.calculadora-container {
  background: rgba(255, 255, 255, 0.07);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
}

.calculadora-container input,
.calculadora-container select,
.calculadora-container button {
  margin: 10px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.calculadora-container button {
  background: linear-gradient(135deg, #ff007f, #7d2fbd);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.calculadora-container button:hover {
  background: linear-gradient(135deg, #00d4ff, #ff9800);
  box-shadow: 0 0 12px #00d4ff;
}

.resultado {
  margin-top: 15px;
  font-size: 1.3em;
  font-weight: bold;
  color: #00ffcc;
  text-shadow: 0 0 8px #00ffcc;
}
