#letters {
  max-width: 330px;
  position: relative;
  padding: 5px;
  border: 1px solid #000;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin: 0 auto;
}

#letters .letter {
  position: relative;
  display: grid;
  justify-self: center;
  align-self: center;
  cursor: pointer;
}

#letters .letter span {
  height: 22px;
  width: 22px;
  margin: 5px;
  display: block;
  border-radius: 50%;
  border: 1px solid #fff;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
}

#letters span.selected {
  border-color: #005894;
}

.v-line,
.h-line,
.d-lr-line,
.d-rl-line {
  background-color: rgba(00,58,94,0.2);
  position: absolute;
}

.v-line {
  height: 100%;
  width: 4px;
  top: 0;
  left: calc(50% - 2px);
}
.h-line {
  height: 4px;
  width: 100%;
  top: calc(50% - 2px);
  left: 0;
}
.d-lr-line {
  height: 45px;
  width: 4px;
  transform: rotate(-45deg);
  left: -2px;
  transform-origin: top left;
}
.d-rl-line {
  height: 45px;
  width: 4px;
  transform: rotate(45deg);
  right: -2px;
  transform-origin: top right;
}

.line {
  height: 5px;
  background-color:rgba(0,0,0,0.3);
  position:absolute;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 0;
}

#restart {
  display: block;
  margin: 7px auto 14px;
  border: 0;
  background: none;
  font-family: 'Montserrat', serif;
  font-size: 13px;
  line-height: 16px;
  color: #3D3D3D;
  cursor: pointer;
}
#restart span {
  height: 20px;
  width: 20px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid #808080;
  font-size: 20px;
}

#list {
    display: flex;
    flex-wrap: wrap;
}

#list .word {
  position: relative;
  padding-right: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

#list .word::after {
  content: "-";
  display: block;
  position: absolute;
  right: 7px;
  top: 0;
}
#list .word:last-child:after {
  display: none;
}

#list .word.found {
  text-decoration: line-through;
}

@media (min-width: 992px) {
  #letters {
    max-width: 520px;
    padding: 10px;
  }
  #letters .letter span {
    height: 40px;
    width: 40px;
    line-height: 40px;
    font-size: 20px;
  }

  .d-lr-line,
  .d-rl-line {
    height: 71px;
  }
}

@media (min-width: 1400px) {
  #scheme {
    width: 80%;
    display: inline-flex;
    position: relative;
    padding-bottom: 44px;
  }

  #restart {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
  }

  #list {
    width: 19%;
    margin-top: 0;
    padding: 0 10px;
    display: inline-flex;
    vertical-align: top;
  }

  #list .word {
    width: 100%;
    margin-bottom: 10px;
  }

  #list .word::after {
    display: none;
  }
}