body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

h1, h2, h3, h4, h5, h6 {
  margin: 10px 0;
}

body {
  text-align: center;
  background-color: #282c34;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: calc(10px + 2vmin);
  color: white;

  touch-action: pan-x pan-y !important;


  padding: 20px 10px;

  /* prevent text drag */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

pre {
  text-align: left;
  color: #61dafb;
  font-size: 14px;

  /* enable text selection */
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.App-link {
  color: #61dafb;
}

.flex {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.index-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.invite-link {
  color: #61dafb;
  cursor: pointer;
  text-decoration: underline;

  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  text-align: left;

  border: 1px solid #555;
  border-radius: 4px;
  padding: 10px;
  margin: 10px;
}

.options-container {
  position: absolute;
  display: flex;
  transition: all 0.3s ease;
  z-index: 20;

  translate: -50% -125%;
  background-color: rgba(40, 44, 52, 0.5);
  border: 1px solid #333;
  border-radius: 8px;

  justify-content: center;
  align-items: center;
  justify-items: center;
}

.options-container>game-tile {
  margin: 4px 4px 0px 4px;
}

@media (hover: hover) {
  .options-container>game-tile:hover {
    transform: scale(1.1);
  }
}

.fullwidth {
  width: 100%;
}

.arrow-controls {
  display: flex;
  background-color: #043885;
  gap: 4px;

  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: center;
}

.undo-button {
  font-size: 24px;
  padding: 0 12px;
  background-color: #e27a4a;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 80%;

  width: 100px;

  /* animate click (color and shadow) */
  transition: all 0.1s ease;
  box-shadow: 0 4px #bf5f3a;
}

.arrow-button {
  font-size: 24px;
  padding: 0 12px;
  background-color: #4a90e2;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 80%;

  width: 100%;

  /* animate click (color and shadow) */
  transition: all 0.1s ease;
  box-shadow: 0 4px #3a6fbf;
}


.arrow-button.disabled {
  background-color: #777;
  box-shadow: none;
  cursor: default;
}

/* on touchscreen click */
.arrow-button:active:not(.disabled) {
  background-color: #2c5aa0;
  box-shadow: 0 2px #3a6fbf;
}

.undo-button.disabled {
  background-color: #777;
  box-shadow: none;
  cursor: default;
}

.undo-button:active:not(.disabled) {
  background-color: #bf5f3a;
  box-shadow: 0 2px #bf5f3a;
}

.tile-dock {
  gap: 8px;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
}

.map-container {
  position: relative;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button {
  padding: 8px 16px;
  background-color: #4a90e2;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  z-index: 30;
}

.button:hover {
  background-color: #6db5ff;
}

.button:active {
  background-color: #2c5aa0;
}

.button.disabled {
  background-color: #777;
  cursor: default;
}

textarea.editable-pgn-box {
  width: 90%;
  height: 150px;
  background-color: #1e1e1e;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 10px;
  color: #61dafb;
  font-size: 14px;
  overflow-y: auto;
  outline: none;
  margin-bottom: 10px;
}

hr {
  width: 90%;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #555;
}