:root {
  font-family: "JetBrains Mono", monospace;
  background-color: #2c2c2e;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: #b3b4b6;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

button {
  font-family: "JetBrains Mono", monospace;
}

input {
  font-family: "JetBrains Mono", monospace;
}

.app {
  width: 100%;
  height: 100%;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.custom-button {
  background-color: #2c2c2e;
  color: #b3b4b6;
  border: 2px solid #b3b4b6;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-button:hover {
  background-color: #b3b4b6;
  color: #2c2c2e;
}

.new-or-join-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

#rules-link {
  color: #97b1fa;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-top: 16px;
  display: inline-block;
}

.join-input {
  text-align: center;
  background-color: #2c2c2e;
  color: #b3b4b6;
  border: 2px solid #b3b4b6;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  caret-color: #b3b4b6;
}

#game-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#board {
  height: calc(100% - 100px);
  width: 100%;
}

#input-form {
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  position: fixed;
  bottom: 0;
}

.hud {
  display: flex;
  align-items: center;
  max-width: 472px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-around;
}

#input-form form {
  max-width: 472px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

#toast {
  visibility: hidden;
  background-color: #2c2c2e;
  color: #b3b4b6;
  text-align: center;
  border: 2px solid #b3b4b6;
  padding: 14px;
  position: fixed;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  font-size: 14px;
}

#toast.show {
  visibility: visible;
  -webkit-animation:
    fadein 0.5s,
    fadeout 0.5s 1.5s;
  animation:
    fadein 0.5s,
    fadeout 0.5s 1.5s;
}

@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }

  to {
    top: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    top: 30px;
    opacity: 1;
  }

  to {
    top: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    top: 30px;
    opacity: 1;
  }

  to {
    top: 0;
    opacity: 0;
  }
}
