html {
  font-size: 1em;
  line-height: 1.4;
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-weight: 400;

  color-scheme: light dark;
  color: #ffffffde;
  background-color: #242424;
  /* background-color: #b515c0; */
  /* background-color: #264653; */

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  /*margin: 0;*/
  /*padding: 0;*/
}

* {
  box-sizing: border-box;
}

#game {
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.board {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.right {
  position: absolute;
  top: 10rem;
  left: 0;
}

hr {
  margin-left: 8px
}

.word-btn {
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  /* background-color: #264653; */
  display: block;
  border: 3px solid #FFFFFF;
  margin: 5px;
  border-radius: 4px;
  font-size: 30px;
  width: 100%;
}

.row,
.col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.col {
  cursor: pointer;
  border: 3px solid #FFFFFF;
  margin: 5px;
  height: 100px;
  width: 100px;
  line-height: 0;

  border-radius: 4px;
  font-size: 40px;
}

.col:hover, .word-btn:hover {
  border: 3px solid #4d4de4;
  /* border: 3px solid #e9c46a; */
}

.nick {
  margin: 5px;
}

.bold {
  font-weight: bold;
}

.x {
  cursor: none;
  color: #FFFF00;
  border-color: #FFFF00;
  /* #2a9d8f; */
  pointer-events: none;
}

.o {
  cursor: none;
  color: #12e56d;
  /* color: #0048ff; */
  border-color: #12e56d;
  /* #e76f51; */
  pointer-events: none;
}

.selected {
  border: 3px solid #4d4de4;
}

.strikethrough {
  text-decoration: line-through;
}

.icon-inline {
  padding-left: 0.5em;
  padding-top: 0.5em;
}

.icon {
  vertical-align: 0;
}

.icon > svg {
  width: 1.3em;
  height: 1.3em;
  display: block;
}

.icon-inline > svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.autocomplete-search-box {
  margin: 5px;
  box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.autocomplete-search-box .search-input {
  height: 40px;
  padding: 20px 20px;
  outline: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 20px;
}

.autocomplete-search-box .icon-list {
  padding: 0;
  margin: 0;
  overflow: auto;
  max-height: 70vh;
}

.autocomplete-search-box .icon-list li {
  list-style-type: none;
  padding: 10px 20px;
}

.icon-list-selected {
  padding: 0;
  margin: 0;
}

.icon-list-available {
  padding: 0;
  margin: 0;
}

.autocomplete-search-box .icon-list li:hover, .active {
  background: #4d4de4;
  color: white;
}

.center {
  margin: auto
}

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

.center-span {
  display: table;
  margin: 0 auto;
}

.modal-window {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  & > div {
    /*width: 400px;*/
    min-width: 15%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* TODO: on the left? */
    /* height: 100vh; */
    padding: 2em;
    background: #242424;
    max-height: calc(100vh - 210px); 
    overflow-y: auto;
  }
  header {
    font-weight: bold;
  }
  h1 {
    font-size: 150%;
    margin: 0 0 15px;
  }
}

.modal-window-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  color: #aaa;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
  cursor: pointer;
  &:hover {
    color: black;
  }
}

@media only screen and (max-width: 600px) {
  .modal-window {
    & > div {
      max-height: 100%; 
    }
  }
}
