body {
  margin: 0;
  padding: 0;
  background-color: #eee;
}

.login {
  display: flex;
  align-items: center;
  height: 100vh;
  width: 600px;
  margin: 0 auto;
}

.login .background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-image: url(img/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
}

.login .background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
}

.login h1 {
  position: relative;
  z-index: 2;
  font-size: 60px;
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
}

.login form {
  position: relative;
  z-index: 2;
}

.login form > * {
  display: block;
  margin: 10px auto;
  border-radius: .25rem;
}

.login form input {
  padding: 6px 12px;
  border: 1px solid #ced4da;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.btn {
  margin-top: 30px;
  border-color: #343a40;
  border-radius: .25rem;
  padding: 8px 16px;
  color: #fff;
  background-color: #343a40;
  font-size: 20px;
  cursor: pointer;
}

.btn:hover {
  color: #fff;
  background-color: #23272b;
  border-color: #1d2124;
  user-select: none;
}

.btn:disabled {
  opacity: 0.4;
}

.lobby, .playing-field {
  padding: 40px 50px;
}

.lobby h3, .playing-field h3 {
  font-size: 44px;
  margin-top: 0;
  margin-bottom: 24px;
  text-align: right;
}

.lobby .subtitle {
  font-size: 24px;
  margin-bottom: 25px;
}

.lobby .players-info{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.lobby .players-info > div {
  padding: 30px;
  box-sizing: border-box;
}

.lobby .players-info > div:first-child {
  padding-left: 0;
}

.lobby .players-info > div:last-child {
  padding-right: 0;
}

.lobby .pesonal-info {
  min-height: 36px;
  margin-bottom: 15px
}

.lobby .waiting {
  font-size: 40px;
}

.lobby img {
  border: 1px solid #ccc;
  width: 200px;
}

.lobby .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.lobby .email {
  font-size: 12px;
  color: #6a6a6a;
}

.lobby .first-player {
  width: 50%;
  border-right: 2px solid #aaa;
}

.loading-info {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.1);
  color: #000;
  font-size: 80px;
  font-weight: 600;
}

.loading .playing-field {
  opacity: 0.5;
}

.loading .loading-info {
  display: flex;
  align-items: center;
  opacity: 1;
}

.loading-info > div {
  display: block;
  width: 40px;
  margin: 0 auto;
}

.playing-field {
  text-align: center;
}

.players-and-score {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.players-and-score .player img {
  width: 40px;
}

.players-and-score .score {
  font-size: 80px;
  padding: 0 30px;
}

.hide {
  display: none;
}

.show {
  display: block;
}

#canvas {
  transform: perspective(670px) rotateX(41deg) translateY(-52px);
}

.transform-canvas #canvas {
  transform: perspective(670px) rotate(180deg) rotateX(-41deg) translateY(52px);
}
