body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 50px;
  background: #000;
  color: white;
  transition: background 1s ease-in-out;
}

.input-container {
  display: inline-flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #333;
}

.input-container span {
  padding: 10px;
  background: #ddd;
  color: #555;
  font-weight: bold;
}

input {
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
  width: 200px;
  background: transparent;
  color: #000;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  margin-top: 15px;
  animation: rgb 3s infinite;
  transition: opacity 0.3s;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
  background-color: #555;
}

@keyframes rgb {
  0% { background: red; }
  25% { background: orange; }
  50% { background: green; }
  75% { background: blue; }
  100% { background: violet; }
}

.resultado-container img {
  border-radius: 50%;
  margin-top: 20px;
  border: 3px solid white;
}

.resultado {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
  transition: color 0.5s;
}

.info-msg {
  font-size: 18px;
  margin-top: 10px;
  min-height: 25px; /* Evita que o layout "pule" */
}

.error-msg {
  color: #ff4d4d;
}

.rgb-animado {
  background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 1500% 1500%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: moveRGB 2s infinite linear;
}

@keyframes moveRGB {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ESTILOS PARA O EASTER EGG DO INFINITO */

.body-rgb-animated {
  /* Um gradiente com as cores do arco-íris */
  background: linear-gradient(-45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  /* Tamanho grande para a animação fluir suavemente */
  background-size: 400% 400%;
  /* A animação que move o gradiente */
  animation: rgbBackground 15s ease infinite;
}

@keyframes rgbBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Um estilo especial para o título de "Rei" */
.king-title {
  font-size: 2.2rem; /* Tamanho grande e impactante */
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}