/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #121212;
  color: #eee;
  padding: 2rem 1rem;
}

main {
  max-width: 600px;
  margin: 0 auto;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 10px #000;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

textarea,
.resultado {
  font-family: monospace;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  resize: vertical;
  background: #222;
  color: #eee;
  min-height: 180px;
  overflow-y: auto;
}

.resultado {
  position: relative; 
}

.buttons button {
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid #eee;
  cursor: pointer;
  background: transparent;
  color: #eee;
  margin: 0.25rem 0;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.buttons button:hover,
.buttons button:focus {
  background: #eee;
  color: #222;
  border-color: #ddd;
}

@media(min-width: 600px) {
  .buttons {
    display: flex;
    gap: 1rem;
  }

  .buttons button {
    width: auto;
    flex: 1;
  }
}

#btn-copiar {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  background: #444;
  border: none;
  border-radius: 6px;
  color: #eee;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

#btn-copiar:hover {
  background: #666;
}

#msg-copiar {
  position: absolute;
  bottom: 14px;
  right: 90px;
  font-size: 0.9rem;
  color: #4CAF50;
}
