:root {
  --bg: #ffffff;
  --text: #111111;
  --card: #f4f6f8;
  --border: #dddddd;
}

body.dark-mode {
  --bg: #121212;
  --text: #eaeaea;
  --card: #1e1e1e;
  --border: #333333;
}


* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f6f8;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 16px;
}

h1 {
  text-align: center;
}

.selectors select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.question-box {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 6px;
  min-height: 120px;
}

.answer-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-box,
.answer-box {
  background: var(--card);
  border: 1px solid var(--border);
}

#answerText {
  width: 100%;
  min-height: 100px;
  padding: 10px;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

button {
  padding: 10px 15px;
  font-size: 16px;
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    gap: 10px;
  }
}

.answer-header {
  display: flex;
  gap: 10px;
}

.answer-header button {
  flex: 1;
}

.top-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 15px;
}

.top-nav a {
  text-decoration: none;
  color: #0066cc;
}


.footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.question-box {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-text h1 {
  font-size: 18px;
  margin: 0;
}

.brand-text span {
  font-size: 12px;
  color: #666;
}

.header-actions button {
  font-size: 16px;
  padding: 6px 10px;
}

:fullscreen .app-header {
  background: var(--bg);
}


.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.shortcut {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 4px;
}
