body {
  color: #eee;
  padding: 1em;
  background-color: #222;
}

h1 {
  font-size: 2.7em;
}

h2 {
  margin-top: 1em;
  color: #28a745;
}

div {
  /* Lobby */
  /* play*/
}
div .form-group label small {
  /*errors*/
  color: #ff384f;
  display: none;
}
div .space {
  margin-top: 9em;
}
div .lobbyContainer {
  max-width: 60em;
  margin: auto;
}

#board {
  /*max-height: 500px;*/
}

#playersTableplay {
  margin-top: 1em;
}

.no-spaces {
  padding: 0px;
  margin-bottom: 1em;
}

.no-spaces * {
  padding: 0px;
  margin: 0px;
}

.action-btns {
  /*min-width: 104.016px;*/
  max-width: 10em;
}

.grid {
  margin: auto;
  table-layout: fixed;
  width: 60px;
}
.grid td {
  cursor: pointer;
  width: 50px;
  height: 50px;
  border: 1px solid #999;
  text-align: center;
  font-family: sans-serif;
  font-size: 18px;
}

/*bootstrap anpassungen*/
button .btn-success {
  border-color: #23853c;
}
button .btn-warning {
  border-color: #cb9807;
}

input ::-webkit-input-placeholder {
  color: #ccc !important;
}
input :-moz-placeholder {
  /* Firefox 18- */
  color: #ccc !important;
}
input ::-moz-placeholder {
  /* Firefox 19+ */
  color: #ccc !important;
}
input :-ms-input-placeholder {
  color: #ccc !important;
}

/* src:  https://www.w3schools.com/howto/howto_js_snackbar.asp */
/* The snackbar - position it at the top and in the middle of the screen */
#snackbar {
  visibility: hidden;
  /* Hidden by default. Visible on click */
  min-width: 250px;
  /* Set a default minimum width */
  margin-left: -125px;
  /* Divide value of min-width by 2 */
  background-color: #ffffff;
  /* Black background color */
  border-color: #000000;
  text-align: center;
  /* Centered text */
  border-radius: 5px;
  /* Rounded borders */
  padding: 16px;
  /* Padding */
  position: fixed;
  /* Sit on top of the screen */
  z-index: 1;
  /* Add a z-index if needed */
  left: 50%;
  /* Center the snackbar */
  top: 1em;
  /* 30px from the top */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible;
  /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 1em;
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 1em;
    opacity: 1;
  }
}
@-webkit-keyframes fadeout {
  from {
    top: 1em;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}
@keyframes fadeout {
  from {
    top: 1em;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}
/*von jochen */
@media (min-width: 480px) {
  /*body {*/
  /*background-color: lightgreen;*/
  /*}*/
  h1 {
    font-size: 4em;
  }
}
@media (min-width: 768px) {
  .col-md-4 {
    margin-top: 0px;
  }

  /*button#join{*/
  /*margin: 0px;*/
  /*}*/
}
/* von tobi
 bootstrap 4 && scss*!*/
/*@include media-breakpoint-up(sm) {*/
/**/
/*}*/
/*@include media-breakpoint-up(md) {*/
/*}*/
/*@include media-breakpoint-up(lg) {*/
/*}*/
/*@include media-breakpoint-up(xl) {*/
/*}*/
/*loader*/
/*src: https://www.w3schools.com/howto/howto_css_loader.asp*/
.loader {
  border: 2px solid #222;
  border-radius: 50%;
  /*border-top: 2px solid red;*/
  border-top: 2px solid #28a745;
  border-bottom: 2px solid #28a745;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
  /*margin-top: 2em;*/
  position: fixed;
  z-index: 1;
  left: 50%;
  margin-left: -60px;
  top: 5em;
}

.loaderText {
  margin-top: 3em;
  position: fixed;
  z-index: 1;
  left: 50%;
  margin-left: -30px;
  top: 5em;
}

.loader-small {
  border: 2px solid #222;
  border-radius: 50%;
  border-top: 2px solid #28a745;
  border-bottom: 2px solid #28a745;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
  /*margin-top: 2em;*/
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(540deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(540deg);
  }
}
/*src: https://css-tricks.com/snippets/css/css-box-shadow!*/
/*.shadow {*/
/*-moz-box-shadow:     inset 0 0 20px #000;*/
/*-webkit-box-shadow:  inset 0 0 20px #000;*/
/*box-shadow:          inset 0 0 20px #000;*/
/*}*/
/*src: https://css-tricks.com/almanac/properties/s/scrollbar/*/
::-webkit-scrollbar {
  width: 0.4em;
  height: 0em;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background-color: #484848;
}

::-webkit-scrollbar-corner {
  background-color: #222;
}

div#chat {
  position: relative;
  min-width: 300px;
  /* Chat containers */
  /* Darker chat container */
  /* Clear floats */
  /* Style time text */
}
div#chat #msgs {
  height: 300px;
  overflow: scroll;
  padding-left: 0.2em;
}
div#chat .container-fluid {
  border: 2px solid #666;
  background-color: #555;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
}
div#chat .darker {
  border-color: #555;
  background-color: #444;
}
div#chat .container::after {
  content: "";
  clear: both;
  display: table;
}
div#chat .time {
  margin-top: -1em;
  margin-bottom: -1em;
  float: right;
  color: #aaa;
}
div#chat .name {
  font-weight: bold;
}
div#chat .content {
  margin-left: 0.5em;
}
div#chat #chatInput {
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}

/*src: https://css-tricks.com/snippets/css/css-box-shadow/*/
.shadow {
  -moz-box-shadow: inset 0 0 20px #000;
  -webkit-box-shadow: inset 0 0 20px #000;
  box-shadow: inset 0 0 20px #000;
}

/* von Tobi */
.shadow-overlay {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
}

.cell {
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 25px;
  border: 3px solid transparent;
}

.highliter {
  border-radius: 25px;
  background-color: lime;
}

svg:not(:root) {
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
}

@-webkit-keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
.cell {
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 20000s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -webkit-animation-delay: 0s;
}
