html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden; /* remove page scroll */
}

body.dark { background: black; color: white; }
body.light { background: #f2f2f2; color: black; }

#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh;
  padding: 0 10px;
}

#stats-left, #stats-right {
  font-size: 16px;
}

@media(min-width:768px){
  #stats-left, #stats-right { font-size: 20px; }
}

#stats-left { position: absolute; top: 10px; left: 10px; }
#stats-right { position: absolute; top: 10px; right: 10px; text-align: right; }

.input-wrapper { position: relative; margin: 10px 0; width: 100%; display: flex; justify-content: center; }

input {
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #777;
  background: none;
  color: inherit;
  width: min(90vw, 320px);
  text-align: center;
}

#timer {
  position: absolute;
  right: -55px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #ff4444;
}

button {
  margin-top: 10px;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #777;
  background: none;
  color: inherit;
  cursor: pointer;
  white-space: pre-line;
  z-index: 10;
}

#wordList, #statsWindow {
  display: none;
  position: absolute;
  bottom: 50px;
  width: min(90vw, 350px);
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #444;
  padding: 6px;
  font-size: 11px;
  border-radius: 6px;
  background: inherit;
  text-align: center;
  pointer-events: auto;
}

/* remove default scrollbars but keep scrolling */
#wordList::-webkit-scrollbar, #statsWindow::-webkit-scrollbar { display: none; }
#wordList, #statsWindow { -ms-overflow-style: none; scrollbar-width: none; }

#copyright {
  position: absolute;
  bottom: 10px;
  font-size: 10px;
  color: #777;
}
