:root {
  --verde: #00fc0d;
  --fundo: #000000;
  --texto: #ffffff;
  --fundo-bloco: #121212;
  --cinza-claro: #1e1e1e;
  --borda: #f1ee04;
  --fonte: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--fonte);
}

body {
  background-color: var(--fundo);
  color: var(--texto);
  text-align: center;
  padding: 10px;
  overflow-x: hidden;
}

/* CONTAINER PRINCIPAL */
#main {
  width: 100%;
  max-width: 768px;
  margin: 0 auto 80px auto;
  padding: 20px;
  background-color: var(--cinza-claro);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  min-height: 100vh;
}

/* TÍTULO / LOGO */
#TITULO {
  width: 220px;
  margin: 0 auto;
  animation: pulse 3s infinite;
}

/* SEÇÕES */
section {
  width: 100%;
  background-color: var(--fundo-bloco);
  border: 2px solid var(--borda);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* LINHAS PERSONALIZADAS */
linha,
LINHA2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

LINHA2 {
  font-size: 2rem;
  animation: tremida 2s infinite;
}

/* IFRAME DO VÍDEO */
iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--borda);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.2);
}

/* CAMPOS DE INPUT */
.input-config,
.input-configAPIKEY,
.content-select,
.textarea-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 16px;
  background-color: #e9fae0;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.input-config:hover,
.input-configAPIKEY:hover,
.content-select:hover,
.textarea-input:hover {
  background-color: var(--verde);
  color: #000;
  box-shadow: 0 0 12px rgba(2, 125, 240, 0.6);
}

/* TEXTAREA */
.textarea-input {
  height: 300px;
  resize: vertical;
}

/* BOTÕES */
.action-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: 2px solid #00b0ff;
  border-radius: 16px;
  background-color: var(--verde);
  color: var(--fundo);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.4);
  animation: tremida 3s infinite;
}

.action-button:hover {
  background-color: #00b0ff;
  transform: scale(1.03);
  color: #fff;
}

/* ÍCONES DE AÇÃO */
#voltar, #copiar {
  cursor: pointer;
  font-size: 2rem;
}

/* RODAPÉ */
#footer-text {
  background-color: var(--verde);
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  animation: tremida 2s infinite;
}

/* ANIMAÇÕES */
@keyframes tremida {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* RESPONSIVO */
@media screen and (max-width: 768px) {
  #TITULO {
    width: 160px;
  }

  iframe {
    height: auto;
  }

  .action-button {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .textarea-input {
    height: 220px;
  }

  #footer-text {
    font-size: 0.85rem;
  }
}
