/* Colores */
:root {
  --fondo-1: #1a1a1a;
  --fondo-2: #2a2a2a;
  --fondo-3: #3a3a3a;
  --texto: #f0f0f0;
  --boton-1: #444444;
  --boton-2: #111111;
  --copied: #0056b3;
}

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

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texto);
  background-color: var(--fondo-1);
  max-width: clamp(320px, 90%, 1200px);
  margin: 0 auto;
  padding-top: 2rem;
}

h1,
h2,
h3 {
  font-weight: bold;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.0909;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 10px;
  margin: 2rem 0;
}

.search-replace {
  padding: 0.8rem;
  background-color: var(--fondo-2);
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--fondo-1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.term-container {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 0.75rem);
}

button {
  background-color: var(--boton-1);
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: inherit;
  border: none;
  border-radius: 0.33rem;
  cursor: pointer;
  padding: 0.5rem clamp(0.5rem, 2vw, 1rem);
}

button:hover {
  background-color: var(--boton-2);
}

button.copied {
  background-color: var(--copied);
}

span {
  white-space: nowrap;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  display: inline-block;
  background-color: var(--fondo-3);
  padding: 0.2rem 0.4rem;
  min-height: 1.2rem;
  border-radius: 0.33rem;
}

.small {
  font-size: 0.75rem;
  display: inline;
}

.search-replace p {
  color: #666;
}
