/*
Wordle color scheme (dark mode):
#121213 - black
#3a3a3c - dark gray
#b59f3b - yellow
#538d4e - green
#818384 - light gray
#ffffff - white
*/

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #ffffff;
  text-align: center;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #121213;
}

::selection {
  background-color: #538d4e;
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#banner {
  font-size: 30px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  border-bottom: 2px solid #818384;
  width: 100%;
  position: fixed;
  padding: 10px 0 10px 0;
  background-color: #121213;
}

input {
  width: 163px;
  margin: 75px 0 10px 0;
  padding: 5px 0 5px 0;
  font-size: 24px;
  background-color: #3a3a3c;
  display: block;
  resize: none;
  transition: box-shadow 150ms;
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #538d4e;
}

button {
  margin: 80px 0 10px 0;
  height: 36px;
  font-size: 18px;
  font-family: courier;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #818384;
  background-color: #3a3a3c;
  transition: background-color 150ms, color 150ms, transform 150ms;
}

button:active {
  transform: scale(0.97);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #538d4e;
}

@media (hover: hover) {
  button:hover {
    background-color: #538d4e;
    color: #121213;
  }
}

.header {
  width: 285px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 166px 119px;
}

.container {
  display: grid;
  justify-content: center;
  align-items: center;
  width: 295px;
  margin: 0 auto;
  grid-template-columns: 59px 59px 59px 59px 59px;
}

.letter {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  margin-top: 0px;
  margin-bottom: 10px;
  cursor: pointer;
  border: solid 3px #3a3a3c;
  border-radius: 1px;
  transition: background-color 150ms, border-color 150ms;
}

.letter:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #538d4e;
}

#output {
  width: 290px;
  margin: 0 auto;
  inline-size: 290px;
  overflow-wrap: break-word;
  font-size: 20px;
  font-weight: bold;
  line-height: 150%;
  text-align: left;
  font-variant-numeric: tabular-nums;
  padding-bottom: 200px;
}
