@font-face {
  font-family: 'Interface';
  font-weight: 400;
  font-style: normal;
  src: local('Interface-Regular'), url('fonts/Interface-Regular.woff2') format('woff2'), url('fonts/Interface-Regular.woff') format('woff');
}
*,
*:after,
*:before {
  box-sizing: border-box;
}
html {
  background: #fff;
  padding: 50px 20px;
}
body {
  max-width: 840px;
  margin: 0 auto;
  font-family: Interface, sans-serif;
  font-size: 16px;
}
#app {
  position: relative;
}
#app .loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  margin: 0;
  text-align: center;
}
.loading#app .loader {
  display: block;
  z-index: 10;
}
a {
  color: inherit;
  text-decoration: none;
}
h1 {
  display: inline-block;
  margin: 0 0 30px;
}
button {
  border: none;
  background: #eee;
  margin-right: 2px;
  cursor: pointer;
}
button:focus {
  outline: none;
}
label {
  cursor: pointer;
}
header {
  display: none;
}
header .bar .user {
  float: right;
}
header .username + button,
header .addform {
  display: none;
}
header .username.logged-in + button {
  display: inline-block;
}
header .username.logged-in ~ .addform {
  display: inline-block;
}
#alpha {
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 10%;
}
#alpha input {
  display: none;
}
#alpha span {
  display: inline-block;
  padding: 7px 5px;
  color: #b4b4b4;
}
#alpha :checked + span {
  color: #000;
}
#grid {
  position: relative;
  overflow: hidden;
}
#grid > div {
  position: relative;
  float: left;
  width: 33.3%;
  padding: 6% 3%;
  border-right: 1px solid #c5c5c5;
  border-bottom: 1px solid #c5c5c5;
}
#grid > div:nth-child(3n) {
  border-right: none;
}
#grid .letter-loader {
  display: block;
  z-index: 1;
  content: '';
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#grid .letter-loader div {
  position: absolute;
  left: 25%;
  top: 50%;
  display: block;
  width: 50%;
  height: 1px;
  background: #000;
  transform: rotate(45deg);
  animation: rotation .5s infinite;
}
#grid .letter-loader div:after {
  display: block;
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  background: #000;
  transform: rotate(90deg);
}
@keyframes rotation {
  from {
    -webkit-transform: rotate(-45deg);
  }
  to {
    -webkit-transform: rotate(45deg);
  }
}
#grid:after {
  display: block;
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background: #fff;
}
#grid .letter {
  padding-left: 6px;
  text-transform: uppercase;
  font-size: 86px;
  cursor: pointer;
}
#grid .letter + button {
  font-size: 24px;
}
#grid .names {
  min-height: 96px;
}
#grid .name {
  position: relative;
  display: block;
  text-transform: capitalize;
  padding: 7px 10px 6px;
  cursor: pointer;
}
#grid .name .tip {
  display: none;
  float: right;
  font-size: 10px;
  line-height: 18px;
}
#grid .name:hover:not(.chosen) {
  background: #fffc00;
}
#grid .name:hover:not(.chosen) .tip {
  display: inline-block;
}
#grid .name:after {
  position: absolute;
  top: 52%;
  left: 0;
  display: block;
  content: '';
  height: 1px;
  width: 0%;
  background: #b0b0b0;
  transition: .4s all;
}
#grid .name.chosen {
  color: #c5c5c5;
}
#grid .name.chosen:after {
  width: 100%;
}
#names {
  text-align: center;
  padding: 10% 5%;
}
#names span {
  display: inline-block;
  cursor: pointer;
  text-transform: capitalize;
  padding: 7px;
}
