@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --bg: #fefaf6;
  --text: #2e2e2e;
  --primary: #5c715e;
  --accent: #e07a5f;
  --card: #ffffff;
}

[data-theme='dark'] {
  --bg: #1c1c1c;
  --text: #f1f1f1;
  --primary: #94c9a9;
  --accent: #ff9933;
  --card: #2a2a2a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

nav {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.top-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

#language-select,
#toggle-dark {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

section {
  margin: 2rem auto;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 720px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

form,
ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
button {
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
}

input {
  border: 1px solid #ccc;
}

button {
  background-color: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1rem;
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: auto;
}
