body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #ff3333;
  overflow: hidden;
}

header.top-header {
  background-color: #1a1a1a;
  padding: 1em;
  text-align: center;
}

header.top-header nav {
  margin-top: 0.5em;
}

header.top-header a {
  color: #00ffcc;
  margin: 0 10px;
  text-decoration: none;
}

.header-left nav a {
  margin-right: 12px;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container {
  width: 100%;
  max-width: 500px;
  height: 600px;
  margin-top: 10px;
  position: relative;
  background-color: #222;
  border: 2px solid white;
  overflow: hidden;
  border-radius: 10px;
}

#game-area {
  width: 100%;
  height: 100%;
  position: relative;
}

.falling-letter {
  position: absolute;
  width: 40px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

#floor {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  z-index: 5;
}

#score,
#level {
  position: absolute;
  top: 10px;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
}

#score {
  left: 10px;
}

#level {
  right: 10px;
}

#game-over {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  padding: 20px;
  text-align: center;
  border: 2px solid white;
  border-radius: 10px;
}

.hidden {
  display: none;
}

button {
  padding: 10px 15px;
  font-size: 16px;
  background: #ff5f5f;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

header.top-header {
  background-color: #1a1a1a;
  padding: 1em;
  text-align: center;
}

header.top-header nav {
  margin-top: 0.5em;
}

header.top-header a {
  color: #00ffcc;
  margin: 0 10px;
  text-decoration: none;
}

main {
  padding: 2em;
  max-width: 800px;
  margin: auto;
}

textarea#inputText {
  width: 100%;
  height: 80px;
  background: #222;
  color: #fff;
  padding: 10px;
  border: 1px solid #555;
  margin-bottom: 1em;
  font-size: 1.2em;
}

.output,
.person-name {
  font-size: 1.5em;
  margin: 10px 0;
  word-wrap: break-word;
}

.keposhka-letter {
  height: 32px;
  vertical-align: middle;
}

.person-image {
  max-width: 150px;
  display: block;
  margin: auto;
}

.buttons {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

.btn-yea {
  background-color: red;
  color: white;
}

.btn-nay {
  background-color: blue;
  color: red;
}

.footer {
  text-align: center;
  padding: 2em;
  background-color: #1a1a1a;
  border-top: 2px solid #444;
}

.footer a {
  color: #00ff99;
  font-weight: bold;
}

.bmc-container {
  margin-top: 20px;
  transform: scale(0.6);
  transform-origin: center;
}

.history-entry {
  padding: 8px;
  border-bottom: 1px solid #333;
}

.filters {
  text-align: center;
  margin-bottom: 1em;
}

.filters button {
  margin: 0 5px;
  padding: 5px 15px;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
}

.download-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.download-btn {
  background-color: #222;
  color: #ff5555;
  border: 2px solid #ff5555;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 8px;
}

.download-btn:hover {
  background-color: #ff5555;
  color: white;
}

.person-name {
  font-weight: bold;
  color: #ff5555;
}

.waiting-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 2rem auto;
  background-color: #111;
  border: 1px solid #444;
  border-radius: 10px;
  overflow: hidden;
}

.waiting-list li {
  padding: 1rem;
  border-bottom: 1px solid #333;
  color: #f33;
  font-size: 1.2rem;
  text-align: center;
}

.waiting-list li:last-child {
  border-bottom: none;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1e1e;
  color: #fff;
}

.history-table th,
.history-table td {
  padding: 0.75rem;
  border: 1px solid #444;
  text-align: center;
}

nav a {
  color: #ff4444;
  text-decoration: none;
  margin: 0 10px;
}

nav a:hover {
  text-decoration: underline;
}

.header-right {
  flex: 0 0 40%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transform: scale(0.6); /* 60% size */
  transform-origin: right;
}
.disclaimer-banner {
  background-color: #ffeeba;
  color: #856404;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0c36d;
  font-style: italic;
}
