:root {
  --bg: #f6f3ef;
  --card: #ffffff;
  --muted: #7b6f64;
  --accent: #6b8a61;
  --accent-2: #9aa88f;
  --shadow: 0 8px 20px rgba(20,20,20,0.06);
  --glass: rgba(255,255,255,0.6);
  --radius: 12px;
  --gap: 1rem;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(106,119,101,0.04), rgba(255,255,255,0.02)), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  text-align: center;
  margin-bottom: 1.4rem;
}

header h1 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 1.9rem;
  letter-spacing: 0.3px;
  color: #394033;
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(107,138,97,0.06), rgba(154,168,143,0.02));
  border: 1px solid rgba(107,138,97,0.12);
  box-shadow: 0 4px 12px rgba(40,42,38,0.05);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(117,102,86,0.06);
  backdrop-filter: blur(6px);
  position: relative;
  margin-bottom: 1rem;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  font-family: "Georgia", serif;
}

.input, .output, input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(95,85,78,0.12);
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 0.98rem;
  color: #222;
  outline: none;
  transition: box-shadow .18s ease, transform .08s ease, border-color .12s ease;
  margin-top: 0.35rem;
}

.input:focus, .output:focus, input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(102,119,90,0.08);
  transform: translateY(-1px);
}

/* === Darker, Side-Aligned Translate Button === */
.button {
  display: inline-block;
  position: absolute;
  right: 1.5rem;
  top: 3.2rem;
  background: linear-gradient(180deg, #2e2e2e, #1a1a1a);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
}

.button:hover {
  background: linear-gradient(180deg, #3b3b3b, #202020);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .button {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0.5rem;
    float: right;
  }
}



