:root {
  --black: #121212;
  --gray: #e7e7e7;
  --white: #ffffff;
  --yellow: #f7da21;
}

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

body {
  color: var(--black);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-around;
  padding: 1em;
}

#game-container {
  position: relative;
  height: 50%;
  width: 40%;
}

@media screen and (max-width: 700px) {
  #game-container {
    width: 125%;
  }
}

#guess {
  font-size: 36px;
  min-height: 50px;
  text-transform: uppercase;
}

#error {
  left: 0;
  position: absolute;
  text-align: center;
  top: 50%;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

.error__message {
  background: white;
  border: 1px solid black;
  border-radius: 4px;
  padding: 1em;
}

.hive-cell {
  position: absolute;
  top: 33.3333333333%;
  left: 37.5%;
  width: 25%;
}

.cell-fill {
  cursor: pointer;
  fill: var(--gray);
  stroke: var(--white);
  transition: all 100ms;
}

.cell-letter {
  fill: var(--text);
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
  text-transform: uppercase;
  text-transform: uppercase;
}

.hive-cell.center .cell-fill {
  fill: var(--yellow);
}

.hive-cell.center {
  transform: translate(0, 0);
}

.hive-cell.outer:nth-child(2) {
  transform: translate(0, -100%);
}


.hive-cell.outer:nth-child(3) {
  transform: translate(75%, -50%);
}


.hive-cell.outer:nth-child(4) {
  transform: translate(75%, 50%);
}


.hive-cell.outer:nth-child(5) {
  transform: translate(0, 100%);
}


.hive-cell.outer:nth-child(6) {
  transform: translate(-75%, 50%);
}

.hive-cell.outer:nth-child(7) {
  transform: translate(-75%, -50%);
}

.guessed-letter.center-letter {
  color: var(--yellow);
}


#found-words {
  align-items: center;
  border: 1px solid var(--black);
  border-radius: 4px;
  display: flex;
  min-height: 2em;
  padding: .25em;
  width: 100%;
}

.found-word {
  display: inline-block;
  margin-right: .5em;
  overflow: hidden;
}

#ranks {
  align-items: center;
  display: flex;
  width: 100%;
}

#current-rank {
  max-width: 100px;
  width: 100px;
}

.ranks__dots {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: space-between;
  padding: 0 .5em;
}

.ranks__dot {
  background: var(--gray);
  border-radius: 50%;
  display: inline-block;
  height: .5em;
  width: .5em;
}

.ranks__dot.achieved {
  background: var(--yellow);
}

.ranks__dot.current {
  align-items: center;
  background: var(--yellow);
  display: flex;
  justify-content: center;
  height: 1.5em;
  width: 1.5em;
}

#buttons {
  align-items: center;;
  display: flex;
  justify-content: space-around;
}

button#delete,
button#shuffle,
button#submit {
  display: inline-block;
  margin:0 1em;
}

button#delete,
button#submit {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 2.5em;
  padding: 1em;
}

button#shuffle {
  background: url("/shuffle.svg") center no-repeat;
  background-size: auto;
  background-size: 60%;
  border: 1px solid var(--black);
  border-radius: 50%;
  height: 3em;
  width: 3em;
  min-width: 3em;
}
