
body {
  background: radial-gradient(circle at center, #0f0f0f, #000000);
  color: #00ffe1;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px; /* Base menor para desktop/tablet */
}

.painel-central {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.painel {
  background: rgba(0, 0, 0, 0.5);
  padding: 50px 50px;
  border-radius: 40px;
  text-align: center;
  box-shadow: 0 0 25px #00ffe1, 0 0 50px #00ffe1 inset;
  border: 3px solid #00ffe1;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
}

#hora {
  font-size: 3.5em; /* menor que antes */
  margin: 0 0 25px;
  animation: pulse-glow 2.5s infinite;
  /* text-shadow será aplicado pela animação */
  transition: color 0.6s ease, filter 0.6s ease;
}

#data {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #aaffff;
  transition: color 0.6s ease;
}

#fuso-horarios {
  font-size: 1.2em;
  margin-top: 30px;
}

#fuso-horarios p {
  margin: 1px 0;
  color: #aaffff;
  transition: color 0.6s ease;
}

h2 {
  font-size: 1.8em;
}

/* 
Animação "pulse-glow" aplicada ao elemento #hora para criar um efeito de brilho pulsante.

A animação alterna entre dois estados principais: 
- nos momentos 0% e 100% (início e fim do ciclo), aplica um brilho mais suave.
- no momento 50% (meio do ciclo), o brilho aumenta, ficando mais intenso.

Detalhes:
- `filter: drop-shadow(...)` cria sombras externas que simulam um brilho ao redor do texto, usando a cor azul esverdeada (#00ffe1) com transparência.
  - Dois drop-shadows são usados para um efeito mais complexo e "profundo".
- `text-shadow` adiciona uma sombra colorida diretamente no texto, reforçando o efeito de brilho.

As transparências nas cores (ex: #00ffe167) controlam a intensidade do brilho, tornando-o mais ou menos opaco durante o ciclo.

No meio da animação (50%), o brilho fica maior (valores maiores nos drop-shadow e text-shadow), criando o efeito de "pulsar" ou "respirar" — o texto parece brilhar e enfraquecer repetidamente, dando vida ao relógio.

*/
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px #00ffe167) drop-shadow(0 0 20px #00ffe144);
    text-shadow: 0 0 15px #00ffe16b;
  }
  50% {
    filter: drop-shadow(0 0 18px #00ffe159) drop-shadow(0 0 40px #00ffe138);
    text-shadow: 0 0 35px #00ffe1c7;
  }
}




button {
  background: transparent;
  border: 3px solid #00ffe1;
  color: #00ffe1;
  padding: 16px 32px;
  font-size: 1.2em;
  border-radius: 40px;
  cursor: pointer;
  transition: background-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  box-shadow: 0 0 15px #00ffe1;
}

button:hover {
  background: #00ffe1;
  color: #000;
  box-shadow: 0 0 25px #00ffe1;
}

/* Modo Claro */
body.modo-claro {
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  color: #222222;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.modo-claro .painel {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 15px #00000088, 0 0 30px #00000033 inset;
  border: 2px solid #000000;
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.modo-claro #hora {
  color: #000000;
  animation: none;
  filter: drop-shadow(0 0 5px #444);
  text-shadow: none;
  transition: color 0.6s ease, filter 0.6s ease;
}

.modo-claro button {
  background: #000000;
  color: #ffffff;
  border: none;
  box-shadow: none;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.modo-claro button:hover {
  background: #333333;
  color: #ffffff;
}

.modo-claro #data,
.modo-claro #fuso-horarios p {
  color: #333333;
  transition: color 0.6s ease;
}

/* Tablets */
@media (max-width: 768px) {
  .painel-central {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  .painel {
    padding: 5px 5px;
    align-items: center;
  }

  #hora {
    font-size: 3.8em;
    margin-top: 10px;
  }

  #data {
    font-size: 1.6em;
  }

  button {
    padding: 18px 28px;
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 1.7em;
  }

  #fuso-horarios {
    font-size: 1.4em;
    margin: 11px;
  }
}

/* Celulares */
@media (max-width: 480px) {
  body {
    padding: 10px;
    font-size: 18px;
  }

  .painel-central {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  .painel {
    padding: 1px 10px;
    border-radius: 25px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  #hora {
    font-size: 1.9em;
    margin-top: 10px;
  }

  #data {
    font-size: 1.1em;
  }

  button {
    padding: 10px 30px;
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 1.2em;
  }

  #fuso-horarios {
    font-size: 0.90em;
    margin: 11px;
  }

  #fuso-horarios p {
    margin: 5px 0;
  }
}


