:root {
  --bg: #151820;
  --panel: #202530;
  --panel-light: #2a3140;
  --accent: #4cc9f0;
  --dark-accent: #266575;
  --text: #f5f5f5;
  --muted: #a0a7b5;
  --border: #3a4354;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", sans-serif;
  min-height: 100vh;
}

.container {
  width: min(1100px, 90%);
  margin: 40px auto;
  text-align: center;
}

h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 40px;
}

h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 10px;
}

.input-section {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}
.input-predictions {
  position: absolute;
  cursor: pointer;
  top: 100%;
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
  z-index: 1000;
}

.guess-input {
  width: 350px;
  padding: 14px;
  border: 2px solid var(--border);
  background: var(--panel);
  color: white;
  border-radius: 12px;
  font-size: 1rem;
}

.guess-input:focus {
  outline: none;
  border-color: var(--accent);
}

.guess-btn {
  border: none;
  background: var(--accent);
  color: #222;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.mode-section {
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border-style: solid;
  border-radius: 12px;
  padding: 1em;
  border-color: var(--border);
  background-color: var(--panel);
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.mode-btn {
  border: none;
  background: var(--dark-accent);
  color: #b6b6b6;
  border-style: solid;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.guess-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.table-wrapper {
  overflow-x: auto;
}

.guess-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}

.guess-table th {
  background: var(--accent);
  color: #222;
  padding: 14px;
  border-radius: 10px;
}

.guess-table th.found {
  background: #188d1e;
  cursor: pointer;
}

.guess-table th.filtered {
  background: #0e4e11;
}

.guess-table td {
  background: var(--panel);
  padding: 16px;
  border-radius: 10px;
  min-width: 100px;
  height: 120px;
  border: 2px solid transparent;
}

/* Placeholder result colors */
.correct {
  background: #2e7d32 !important;
}

.close {
  background: #b8860b !important;
}

.wrong {
  background: #7a1f1f !important;
}

.placeholder-row td {
  color: var(--muted);
}

.footer {
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.9rem;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  border: var(--accent);
  border-style: solid;
  transform: translate(-50%, -50%);
  background-color: var(--panel);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 70%;
  height: 70%;
  text-align: center;
  border-radius: 8px;
  overflow: scroll;
}

.overlay {
  position: fixed;
  width: 100dvw;
  height:100dvh;
  top:0;
  left:0;
  z-index: 1;
  background: black;
  opacity: 0.9; /* see below for cross-browser opacity */
}

.hidden {
  display: none;
}

.illustration {
  height: 40%;
}

.close-popup {
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.close-popup:hover {
  background-color: #0056b3;
}
