/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
       ========================================================================== */
/**
     * Remove the margin in all browsers.
     */
body {
  margin: 0;
}

/**
     * Render the `main` element consistently in IE.
     */
main {
  display: block;
}

/**
     * Correct the font size and margin on `h1` elements within `section` and
     * `article` contexts in Chrome, Firefox, and Safari.
     */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
       ========================================================================== */
/**
     * 1. Add the correct box sizing in Firefox.
     * 2. Show the overflow in Edge and IE.
     */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
       ========================================================================== */
/**
     * Remove the gray background on active links in IE 10.
     */
a {
  background-color: transparent;
}

/**
     * 1. Remove the bottom border in Chrome 57-
     * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
     */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
     * Add the correct font weight in Chrome, Edge, and Safari.
     */
b,
strong {
  font-weight: bolder;
}

/**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
     * Add the correct font size in all browsers.
     */
small {
  font-size: 80%;
}

/**
     * Prevent `sub` and `sup` elements from affecting the line height in
     * all browsers.
     */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
       ========================================================================== */
/**
     * Remove the border on images inside links in IE 10.
     */
img {
  border-style: none;
}

/* Forms
       ========================================================================== */
/**
     * 1. Change the font styles in all browsers.
     * 2. Remove the margin in Firefox and Safari.
     */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
     * Show the overflow in IE.
     * 1. Show the overflow in Edge.
     */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
     * Remove the inheritance of text transform in Edge, Firefox, and IE.
     * 1. Remove the inheritance of text transform in Firefox.
     */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
     * Correct the inability to style clickable types in iOS and Safari.
     */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
     * Remove the inner border and padding in Firefox.
     */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
     * Restore the focus styles unset by the previous rule.
     */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
     * Correct the padding in Firefox.
     */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
     * 1. Correct the text wrapping in Edge and IE.
     * 2. Correct the color inheritance from `fieldset` elements in IE.
     * 3. Remove the padding so developers are not caught out when they zero out
     *    `fieldset` elements in all browsers.
     */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
     * Add the correct vertical alignment in Chrome, Firefox, and Opera.
     */
progress {
  vertical-align: baseline;
}

/**
     * Remove the default vertical scrollbar in IE 10+.
     */
textarea {
  overflow: auto;
}

/**
     * 1. Add the correct box sizing in IE 10.
     * 2. Remove the padding in IE 10.
     */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
     * Correct the cursor style of increment and decrement buttons in Chrome.
     */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
     * 1. Correct the odd appearance in Chrome and Safari.
     * 2. Correct the outline style in Safari.
     */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
     * Remove the inner padding in Chrome and Safari on macOS.
     */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
     * 1. Correct the inability to style clickable types in iOS and Safari.
     * 2. Change font properties to `inherit` in Safari.
     */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
       ========================================================================== */
/*
     * Add the correct display in Edge, IE 10+, and Firefox.
     */
details {
  display: block;
}

/*
     * Add the correct display in all browsers.
     */
summary {
  display: list-item;
}

/* Misc
       ========================================================================== */
/**
     * Add the correct display in IE 10+.
     */
template {
  display: none;
}

/**
     * Add the correct display in IE 10.
     */
[hidden] {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1 {
  color: #c7c7c7;
  font-size: 2em;
  text-align: center;
}

@media screen and (max-width: 62.5em) and (min-device-width: 18.75em) {
  h1 {
    font-size: 1.6rem;
  }
}

.header-container {
  backdrop-filter: saturate(180%) blur(9px);
  background: rgba(45, 45, 45, 0.96) !important;
  color: #6a6a6a;
  z-index: 10;
  border-bottom: 1px solid #cd8e71;
  margin: 0 auto;
  width: 700px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .header-container {
    width: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .header-container {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  .header-container {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .header-container {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#setting-icon {
  background-image: url("../media/setting.png");
  background-size: 30px 30px;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  z-index: 1000;
  color: white;
  padding: 5px;
}

#setting-icon:hover {
  background-image: url("../media/setting-hover.png");
  cursor: pointer !important;
}

#mainNav {
  z-index: 1000;
  height: 40px;
  backdrop-filter: saturate(180%) blur(9px);
  background: rgba(28, 33, 36, 0.96) !important;
  display: flex;
  width: 700px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid grey;
  margin: 0 auto;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #mainNav {
    width: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #mainNav {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #mainNav {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainNav {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#setting.hide {
  height: 0;
}

#setting.hide #reset,
#setting.hide #tone,
#setting.hide #hint,
#setting.hide #pieceType,
#setting.hide #fen-display-btn {
  display: none;
}

#setting.show {
  z-index: 2000;
  position: relative;
  color: #956161;
  vertical-align: center;
  width: 700px;
  height: 100px;
  margin: 0 auto;
  background-color: rgba(28, 33, 36, 0.96) !important;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #setting.show {
    width: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #setting.show {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #setting.show {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #setting.show {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#setting.show #setting-inner-container {
  width: 100%;
  height: 50px;
}

#setting.show #setting-inner-container #setting-colors-container {
  width: 100%;
  height: 50px;
  margin: 0.5rem auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen {
  width: 100%;
  height: 60px;
  position: absolute;
  display: grid;
  grid-template-columns: repeat(8, minmax(0.5rem, 1fr));
  padding: 0.5rem;
  grid-gap: 0.1rem;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
  border-radius: 0.5rem;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #cd7c51;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #f8c68b;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett1.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #797979;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #c9c9c9;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett2.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #9e00ff;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #d085ff;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett3.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #00cae5;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #73f9ff;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett4.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #ff9900;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #ffc43b;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett5.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #04de0a;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #8aff58;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett6.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #ff4040;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #ff8b8b;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett7.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8 {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #323232;
  display: flex;
  flex-wrap: wrap;
  opacity: 0.1;
  margin: auto;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8 span:nth-child(3), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8 span:nth-child(2) {
  width: 50%;
  height: 50%;
  background-color: #ff349a;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8 span:nth-child(1), #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8 span:nth-child(4) {
  width: 50%;
  height: 50%;
  background-color: #ff8dc7;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8:hover, #setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8:focus {
  background-color: #262626;
  cursor: pointer;
  transition: all ease 0.4s;
  opacity: 1;
}

#setting.show #setting-inner-container #setting-colors-container #brettBoxen #brett8.selectedBox {
  background-color: #262626;
  opacity: 1;
}

#setting.show #setting-inner-container #resetForm {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(1rem, 1fr));
  justify-content: space-between;
  font-size: 0.7rem;
  border-top: 1px dashed #444444;
  border-bottom: 1px dashed #444444;
  padding: 4px;
  grid-gap: 3px;
}

#setting.show #setting-inner-container #resetForm #reset,
#setting.show #setting-inner-container #resetForm #pieceType.deactive {
  background-color: #111111;
  border: none;
  display: block;
  color: #6a6a6a;
  border-radius: 0.2rem;
  padding: 0.2rem 0.3rem;
}

#setting.show #setting-inner-container #resetForm #reset:hover,
#setting.show #setting-inner-container #resetForm #pieceType.deactive:hover {
  cursor: pointer;
  background-color: #868686;
  color: #171717;
}

#setting.show #setting-inner-container #resetForm #hint.deactive,
#setting.show #setting-inner-container #resetForm #tone.deactive,
#setting.show #setting-inner-container #resetForm #fen-display-btn.deactive {
  display: block;
  cursor: pointer;
  border-radius: 0.2rem;
  border: none;
  background-color: #a10000;
  color: #ff7d7d;
}

#setting.show #setting-inner-container #resetForm #hint.deactive:hover,
#setting.show #setting-inner-container #resetForm #tone.deactive:hover,
#setting.show #setting-inner-container #resetForm #fen-display-btn.deactive:hover {
  background-color: #f10;
  color: #2d2d2d;
}

#setting.show #setting-inner-container #resetForm #hint.active,
#setting.show #setting-inner-container #resetForm #tone.active,
#setting.show #setting-inner-container #resetForm #pieceType.active,
#setting.show #setting-inner-container #resetForm #fen-display-btn.active {
  display: block;
  cursor: pointer;
  border-radius: 0.2rem;
  border: none;
  background-color: #16cd00;
  color: #045200;
}

#setting.show #setting-inner-container #resetForm #hint.active:hover,
#setting.show #setting-inner-container #resetForm #tone.active:hover,
#setting.show #setting-inner-container #resetForm #pieceType.active:hover,
#setting.show #setting-inner-container #resetForm #fen-display-btn.active:hover {
  background-color: #1dff00;
  color: #012400;
}

.reset {
  display: block !important;
  width: 50%;
  border-radius: 0.5rem;
  margin-left: 25%;
  margin-right: 25%;
  position: absolute;
  bottom: 5px;
  text-align: center;
  color: #020824;
  text-decoration: none;
  padding: 0.5rem;
  z-index: 1000;
  border: 2px solid grey;
  box-shadow: none;
  height: 40px;
}

.reset:hover, .reset:focus {
  cursor: pointer;
  color: black;
  border-color: #361d15;
}

#boardColor {
  display: none;
  z-index: 999;
  margin-left: auto;
  margin-right: auto;
  margin-left: 10px;
}

#boardColor span {
  text-align: left;
  display: block;
  height: 40px;
  line-height: 3em;
  margin-left: auto;
  margin-right: auto;
  color: lightgray;
  filter: brightness(1.2);
  user-select: none;
}

#colorBody {
  cursor: default;
  /*    width:200px;*/
  position: relative;
  width: 100%;
  height: 80px;
  list-style: none;
  color: lightgray;
  filter: brightness(1.2);
}

#boardColor li {
  width: 100%;
  list-style: none;
  color: gray;
  filter: brightness(1.2);
  margin-bottom: 10px;
  margin: 0 auto;
  position: absolute;
  left: 0;
}

#colorEven {
  width: 100px;
  position: absolute;
  top: 20px;
  right: 0;
  list-style: none;
  color: #ff8000;
  filter: brightness(1.2);
}

#boardColor input {
  position: relative;
  width: 80%;
  top: 6px;
  cursor: pointer;
}

output {
  margin-left: 2px;
}

#confirm {
  z-index: 2000;
  margin-left: auto;
  margin-right: auto;
}

#vsDisplay {
  width: 700px;
  height: 40px;
  position: relative;
  overflow: hidden;
  user-select: none;
  border-bottom: 1px solid grey;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(28, 33, 36, 0.96) !important;
  margin-bottom: 5px;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.3rem;
  color: orange;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-weight: bolder;
}

#vsDisplay #first-player {
  color: grey;
  text-align: center;
  display: block;
  width: 100%;
  font-weight: lighter;
}

#vsDisplay #second-player {
  color: grey;
  text-align: center;
  display: block;
  width: 100%;
  font-weight: lighter;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #vsDisplay {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  #vsDisplay #first-player {
    font-size: 1.1rem;
  }
  #vsDisplay #second-player {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #vsDisplay {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  #vsDisplay #first-player {
    font-size: 1rem;
  }
  #vsDisplay #second-player {
    font-size: 1rem;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #vsDisplay {
    margin-left: auto;
    margin-right: auto;
  }
  #vsDisplay #first-player {
    font-size: 0.9rem;
  }
  #vsDisplay #second-player {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #vsDisplay {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  #vsDisplay #first-player {
    font-size: 0.8rem;
  }
  #vsDisplay #second-player {
    font-size: 0.8rem;
  }
}

#language-changer-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  margin: 4px 0 4px 40px;
}

#language-changer-form::after {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid grey;
  border-top: 2px solid grey;
  position: relative;
  left: calc(100% - 18px);
  transform: rotate(-135deg);
  bottom: 20px;
}

#language-changer-form > label[for=languages] {
  color: #929292;
}

#language-changer-form #languages {
  padding: 0.3rem;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border-radius: 0.3rem;
  background-color: #262626;
  color: #929292;
  outline: none;
  text-align: left;
  width: 110px;
  border: 1px solid grey;
}

#language-changer-form #languages option {
  color: #929292;
  text-align: left;
}

#language-changer-form #display_item.hide {
  display: none;
}

.page {
  background-color: #747474;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.33) 2%, transparent 25%) -4px 0/8px 8px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: space-between;
  width: 90%;
  margin: 2em auto;
}

@media screen and (max-width: 50em) and (min-device-width: 18.75em) {
  .main-content {
    margin-top: 0;
    margin-bottom: 0;
    flex-direction: column;
    width: 100%;
  }
}

.main-content #mainDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: space-between;
  margin: 0 auto;
}

.hidden {
  display: none;
}

#weissfigurenform {
  width: 0;
  height: 0;
  display: none;
}

#schwarzfigurenform {
  width: 0;
  height: 0;
  display: none;
}

#detailBox {
  width: 700px;
  position: relative;
  overflow: hidden;
  user-select: none;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 0.5rem 0.5rem;
  border: 1px solid transparent;
  height: 450px;
  justify-content: center;
  align-content: space-between;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #detailBox {
    width: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #detailBox {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #detailBox {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #detailBox {
    width: 360px;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }
}

.chatbox {
  font: 0.9rem sans-serif;
  box-sizing: border-box;
  height: calc(100% + 70px);
  background-color: #c7c7c7;
  outline: none;
  margin: 0 auto;
  width: 100%;
}

.chatbox h2 {
  color: #8e8e8e;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .chatbox {
    margin-left: auto;
    margin-right: 0;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 50em) {
  .chatbox {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 50em) and (min-device-width: 18.75em) {
  .chatbox {
    margin-left: auto;
    margin-right: auto;
  }
}

.freunde {
  font: 0.9rem sans-serif;
  margin: 0 auto;
  background-color: #404040 !important;
  width: 700px;
  height: 100%;
  border-radius: 0 0 0.5rem 0.5rem;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .freunde {
    width: 600px;
    height: 100%;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .freunde {
    width: 450px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  .freunde {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .freunde {
    width: 360px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.freunde .freunde-container {
  height: calc(100% - 95px);
  border-radius: 0 0 0.5rem 0.5rem;
}

.freunde #freunde-online {
  user-select: none !important;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(64, 64, 64, 0.91) !important;
  border-radius: 0 0 0.5rem 0.5rem;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  .freunde #freunde-online span {
    text-align: center;
    font-size: 0.6rem;
  }
}

.freunde #freunde-online ul {
  margin: 0;
  padding: 0.4rem 0 0.4rem 0;
  border-radius: 0 0 0.5rem 0.5rem;
}

.freunde #freunde-online:after {
  content: "";
  height: 10px;
  width: 100%;
  display: block;
  position: absolute;
  bottom: 0;
  background-color: #404040 !important;
  box-shadow: 0 0 3px 1px black;
}

.freunde #freunde-online .userBox {
  height: 100%;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid transparent;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  .freunde #freunde-online .userBox {
    display: flex;
    flex-direction: column;
  }
}

.freunde #freunde-online .userBox p {
  width: 100%;
  margin: 0;
  vertical-align: center;
  padding: 0.2rem;
}

.freunde li {
  user-select: none !important;
  box-shadow: 0 0 2px 1px black;
  list-style: none;
  border: 1px solid #959595;
  padding: 0.2rem;
  background-color: #747474;
  border-radius: 0.2rem;
  transition: all ease 0.2s;
}

.freunde li > form {
  width: 200px;
}

.freunde li:hover {
  background-color: #9e9e9e;
  transition: all ease 0.2s;
}

.freunde span {
  font-size: 0.6rem;
  text-align: center;
}

.freunde a {
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  color: #e3e3e3;
  transition: all ease 0.4s;
  cursor: pointer;
  justify-content: space-between;
  justify-items: center;
  padding: 0.2rem;
}

.freunde a > form {
  width: 150px;
}

.freunde a > form > span {
  text-align: left;
}

.freunde a > form span.free {
  margin-right: 5px;
}

.freunde a:not(.isDisabled):hover, .freunde a:not(.isDisabled):focus {
  color: white;
}

.freunde .online li a::before {
  content: "";
  display: inline-block;
  background-color: #00ff73;
  border-radius: 0.4rem;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  margin-left: 4px;
  position: relative;
  box-shadow: inset 0 0 2px 2px #262626;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  .freunde .online li a::before {
    width: 17px;
    height: 17px;
  }
}

.freunde .offline li a::before {
  content: "";
  display: inline-block;
  background-color: #ff0000;
  border-radius: 0.4rem;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  margin-left: 4px;
  position: relative;
  box-shadow: inset 0 0 2px 2px #262626;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  .freunde .offline li a::before {
    width: 17px;
    height: 17px;
  }
}

.freunde #scores {
  font-size: 0.6rem;
  margin: 0;
  padding: 2px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.isDisabled {
  cursor: not-allowed;
}

.isDisabled:hover {
  cursor: not-allowed;
}

.live li a::before {
  content: "";
  display: inline-block;
  background-color: #00e9ff;
  border-radius: 0.4rem;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  margin-left: 4px;
  position: relative;
  box-shadow: inset 0 0 2px 2px #262626;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  .live li a::before {
    width: 17px;
    height: 17px;
  }
}

.freunde-title {
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  user-select: none;
}

.freunde-title span {
  font: 1.2rem sans-serif;
  font-weight: bold;
  width: 100%;
  height: 40px;
  display: inline-block;
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
}

.freunde-title span#alleSpieler.deactive {
  background-color: #c7c7c7;
  box-shadow: inset -3px -3px 7px -1px black;
}

.freunde-title span#alleSpieler.active {
  background-color: #7d7a7a;
}

.freunde-title span#onlineSpieler.deactive {
  background-color: #c7c7c7;
  box-shadow: inset 3px -3px 7px -1px black;
}

.freunde-title span#onlineSpieler.active {
  background-color: #7d7a7a;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .freunde-title span {
    text-align: center;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .freunde-title span {
    text-align: center;
    font-size: 1rem;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .freunde-title span {
    text-align: center;
    font-size: 0.9rem;
  }
}

.freunde-title span:hover, .freunde-title spanfocus {
  color: white;
  transition: ease color 0.5s;
}

.requests {
  box-sizing: border-box;
  background-color: #404040 !important;
  /* border: 1px solid gray; */
  outline: none;
  /* margin-top: 1em; */
  width: 100%;
  height: calc(100% + 60px);
}

.requests .request-title {
  color: #8e8e8e;
  margin: 0;
  padding: 0.3em 0 0.3em 0;
  font-size: 1rem;
  font-family: sans-serif;
  text-align: center;
}

.requests .request-container {
  background-color: #404040 !important;
  padding: 0.4rem;
  height: 100% !important;
  overflow: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  box-shadow: inset -1px 0 2px 2px #1a1a1a;
}

.requests .request-container::-webkit-scrollbar {
  display: none;
}

.requests .request-container #requests-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requests .request-container #requests-list li {
  user-select: none !important;
  height: 25px;
  margin-top: 0.3rem;
  background-color: #c7c7c7;
  list-style: none;
  display: flex;
  justify-content: space-around;
  font: 0.9rem sans-serif;
  padding: 0.2rem;
  border-radius: 0.2rem;
  box-shadow: 0 0 2px 2px #3d3d3d;
}

.requests .request-container #requests-list li span:nth-child(1) {
  font-weight: bold;
  width: 100px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.requests .request-container #requests-list li span:nth-child(2) {
  font-size: 0.6rem;
  width: 150px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.requests .request-container #requests-list li span {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.requests .request-container #requests-list li #request-yes {
  text-align: center;
  width: 50px;
  border-radius: 0.1rem;
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  color: white;
  transition: all ease 0.3s;
  border: 1px solid grey;
  background-color: #305349;
}

.requests .request-container #requests-list li #request-yes:hover, .requests .request-container #requests-list li #request-yes:focus {
  color: white;
  transition: color ease 0.3s;
  background-color: #00c18a;
}

.requests .request-container #requests-list li #request-no {
  text-align: center;
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  width: 50px;
  border-radius: 0.1rem;
  cursor: pointer;
  color: white;
  transition: all ease 0.3s;
  border: 1px solid grey;
  background-color: #653333;
}

.requests .request-container #requests-list li #request-no:hover, .requests .request-container #requests-list li #request-no:focus {
  color: white;
  transition: color ease 0.3s;
  background-color: red;
}

#playingStatus {
  user-select: none !important;
  font-size: 0.6rem !important;
}

#playingStatus.playing {
  color: #ff5c5c;
}

#playingStatus.free {
  color: #00fd87;
}

.request-form {
  display: inline;
  margin: 0;
  padding: 0;
}

#fen-container.deactive {
  display: none;
}

#fen-container.active {
  width: 700px;
  background-color: rgba(28, 33, 36, 0.96) !important;
  border-top: 1px solid #535353;
  border-radius: 0 0 .4rem .4rem;
  font-family: Verdana;
}

#fen-container.active #fen {
  width: 100%;
  background-color: rgba(28, 33, 36, 0.96) !important;
  border: 1px solid transparent;
  outline: none;
  color: #cdcdcd;
  font-size: .9rem;
  text-align: center;
  padding: 0.3rem;
}

#fen-container.active #fen_btn {
  border: 1px solid transparent;
}

#fen-container.active #fen_btn:hover {
  background-color: #00ffc5;
  cursor: pointer;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #fen-container.active {
    width: 600px;
    margin-left: auto;
  }
  #fen-container.active #fen {
    font-size: .8rem;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #fen-container.active {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  #fen-container.active #fen {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #fen-container.active {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  #fen-container.active #fen {
    font-size: 0.5rem;
  }
}

#game-status {
  margin: 0 auto;
  border-radius: 0.5rem 0.5rem 0 0;
  height: 40px;
  width: 150px;
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  background-color: #5c5c5c;
}

#status {
  font-family: Verdana;
  border: 1px solid white;
  margin: auto;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  padding: 0.1rem 1rem;
  color: white;
  background-color: #262626;
}

#freunde-online::-webkit-scrollbar {
  display: none;
}

#freunde-online {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  margin: 10px 0;
}

.freunde-title > span[data-status=active] {
  background-color: rgba(64, 64, 64, 0.91) !important;
  color: orange;
}

.freunde-title > span[data-status=deactive] {
  background-color: rgba(36, 36, 36, 0.58);
  color: #3e3e3e;
}

#chat[data-status=deactive],
#user-search[data-status=deactive],
#search-field[data-status=deactive],
#freunde-online[data-status=deactive],
.requests[data-status=deactive] {
  display: none;
}

#chat[data-status=active],
#search-field[data-status=active],
#freunde-online[data-status=active],
.requests[data-status=active] {
  display: block;
}

#user-search[data-status=active] {
  display: flex;
}

#user-search {
  background-color: rgba(64, 64, 64, 0.91);
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

#user-search:after {
  border-top: 1px solid grey;
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  background-color: #404040 !important;
  box-shadow: 0 3px 2px 1px rgba(29, 29, 29, 0.83);
  position: absolute;
  top: 80px;
  z-index: 1000;
}

#find-user {
  width: 20%;
  background-color: rgba(35, 35, 35, 0.91);
  border: 1px solid #282828;
  margin: 0 auto;
  transition: all ease 0.5s;
  color: #5f5f5f;
}

#find-user:hover {
  background-color: #00c226;
  cursor: pointer;
  transition: all ease 0.5s;
  color: #363636;
}

#search-field {
  width: 77%;
  background-color: rgba(28, 28, 28, 0.42);
  border: none;
  height: 30px;
  padding: 0.3rem;
  margin-left: 4px;
  color: #b6b6b6;
  box-shadow: inset 0 0 2px 2px #1d1d1d;
}

#search-field::placeholder {
  color: rgba(111, 111, 111, 0.42);
}

.requestCount.active {
  background-color: #d70023;
  padding: 0.3rem;
  border-radius: 1rem 0 1rem 1rem;
  border: 2px solid #747474;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
  font-weight: bold;
  color: #fffafa;
  animation-name: new-message;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes new-message {
  0% {
    background-color: #d70023;
  }
  50% {
    background-color: #747474;
  }
  100% {
    background-color: #d70023;
  }
}

#setting-message {
  font-size: 0.7rem;
  color: #00ffc5;
  position: relative;
  left: 40px;
  margin: auto 0;
}

#whiteForm, #blackForm {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.auswahl-title {
  font: 3rem sans-serif;
  text-align: center;
  font-weight: bold;
  flex: 1;
  margin: 1rem auto;
  color: #262626;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  .auswahl-title {
    font-size: 2.5em;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  .auswahl-title {
    font-size: 2em;
    margin: 1rem auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .auswahl-title {
    font-size: 1.5em;
    margin: 1rem auto;
  }
}

#auswahlDiv {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

#auswahlDiv #auswahl-figurBox {
  display: flex;
  flex-direction: row;
  padding: 2rem;
  margin: 2rem auto;
}

#auswahlDiv #auswahl-figurBox #koenig_gelb {
  width: 200px;
  height: 200px;
  margin-right: 10px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb {
    width: 160px;
    height: 160px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb {
    width: 80px;
    height: 80px;
  }
}

#auswahlDiv #auswahl-figurBox #koenig_gelb a {
  display: block;
}

#auswahlDiv #auswahl-figurBox #koenig_gelb img, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece {
  cursor: pointer;
  transition: all ease 0.3s;
  width: 200px;
  height: 200px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb img, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece {
    width: 160px;
    height: 160px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb img, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_gelb img, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece {
    width: 80px;
    height: 80px;
  }
}

#auswahlDiv #auswahl-figurBox #koenig_gelb img:hover, #auswahlDiv #auswahl-figurBox #koenig_gelb img:focus, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece:hover, #auswahlDiv #auswahl-figurBox #koenig_gelb #whitePiece:focus {
  transform: scale(1.08);
  transition: all ease 0.3s;
}

#auswahlDiv #auswahl-figurBox #koenig_schwarz {
  width: 200px;
  height: 200px;
  margin-left: 10px;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz {
    width: 160px;
    height: 160px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz {
    width: 80px;
    height: 80px;
  }
}

#auswahlDiv #auswahl-figurBox #koenig_schwarz a {
  display: block;
}

#auswahlDiv #auswahl-figurBox #koenig_schwarz img, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece {
  cursor: pointer;
  transition: all ease 0.3s;
  width: 200px;
  height: 200px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz img, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece {
    width: 160px;
    height: 160px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz img, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece {
    width: 120px;
    height: 120px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #auswahlDiv #auswahl-figurBox #koenig_schwarz img, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece {
    width: 80px;
    height: 80px;
  }
}

#auswahlDiv #auswahl-figurBox #koenig_schwarz img:hover, #auswahlDiv #auswahl-figurBox #koenig_schwarz img:focus, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece:hover, #auswahlDiv #auswahl-figurBox #koenig_schwarz #blackPiece:focus {
  transform: scale(1.08);
  transition: all ease 0.3s;
}

.player2nicknameWhite, .player2nicknameBlack {
  position: absolute;
  top: -60px;
  z-index: 1000;
  margin: 0 auto;
  display: block;
  text-align: center;
  padding: 0.5rem;
  width: 100%;
  color: white;
  font: 1.2rem sans-serif;
}

.player2nicknameWhite.choosed, .player2nicknameBlack.choosed {
  margin: 0 auto;
  display: block;
  border: 1px solid grey;
  border-radius: 0.5rem;
  width: auto;
}

.player2nicknameWhite.exited, .player2nicknameBlack.exited {
  margin: 0 auto;
  display: block;
  border: 1px solid grey;
  border-radius: 0.5rem;
}

.player2nicknameWhite.exited > a, .player2nicknameBlack.exited > a {
  color: white;
}

.player2nicknameWhite.exited > a:hover, .player2nicknameWhite.exited > a:focus, .player2nicknameBlack.exited > a:hover, .player2nicknameBlack.exited > a:focus {
  color: #00ff73;
}

#BrettBlocksNummern {
  width: 700px;
  height: 700px;
  position: relative;
  overflow: hidden;
  user-select: none;
  margin-bottom: 10px;
  border-radius: 0 0 0.5rem 0.5rem;
  color: maroon;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #BrettBlocksNummern {
    width: 600px;
    height: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #BrettBlocksNummern {
    width: 450px;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #BrettBlocksNummern {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #BrettBlocksNummern {
    width: 360px;
    height: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#brett {
  border-collapse: collapse;
  width: 700px;
  height: 700px;
  padding: 0;
  position: absolute;
  user-select: none;
  white-space: nowrap;
  table-layout: fixed;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett {
    width: 600px;
    height: 600px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett {
    width: 450px;
    height: 450px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett {
    width: 360px;
    height: 360px;
  }
}

#brett tr {
  overflow: hidden;
  transition: background-color ease 0.5s;
}

#brett tr:nth-child(even) td:nth-child(odd) {
  transition: background-color ease 0.5s;
  background-color: #cd7c51;
}

#brett tr:nth-child(odd) td:nth-child(even) {
  transition: background-color ease 0.5s;
  background-color: #cd7c51;
}

#brett tr:nth-child(even) td:nth-child(even) {
  transition: background-color ease 0.5s;
  background-color: #f8c68b;
}

#brett tr:nth-child(odd) td:nth-child(odd) {
  transition: background-color ease 0.5s;
  background-color: #f8c68b;
}

#brett td:not(#columnLeer):hover, #brett td:not(#columnLeer):focus {
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 3px 3px rgba(0, 0, 0, 0.84);
  transition: box-shadow ease-in 0.2s;
}

#brett td:not(#columnLeer):hover > div > img, #brett td:not(#columnLeer):focus > div > img {
  width: 60px;
  height: 60px;
  margin: 5px;
  cursor: pointer;
  user-select: none;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett td:not(#columnLeer):hover > div > img, #brett td:not(#columnLeer):focus > div > img {
    width: 50px;
    height: 50px;
    margin: 5px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett td:not(#columnLeer):hover > div > img, #brett td:not(#columnLeer):focus > div > img {
    width: 39px;
    height: 39px;
    margin: 3px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett td:not(#columnLeer):hover > div > img, #brett td:not(#columnLeer):focus > div > img {
    width: 30px;
    height: 30px;
    margin: 3px;
  }
}

#brett td {
  position: relative;
  width: 70px;
  height: 70px;
  box-shadow: inset 0 0 3px 3px rgba(0, 0, 0, 0);
  transition: box-shadow ease-in 0.2s;
  user-select: none;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett td {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett td {
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett td {
    width: 36px;
    height: 36px;
  }
}

#brett td div {
  user-select: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett td div {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett td div {
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett td div {
    width: 36px;
    height: 36px;
  }
}

#brett td div img {
  display: block;
  position: relative;
  width: 60px;
  height: 60px;
  margin: 5px;
  user-select: none;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett td div img {
    width: 50px;
    height: 50px;
    margin: 5px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett td div img {
    width: 39px;
    height: 39px;
    margin: 3px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett td div img {
    width: 30px;
    height: 30px;
    margin: 3px;
  }
}

#brett #columnLeer {
  user-select: none;
  background-color: #535353;
  color: #7f7f7f;
  border-color: #535353;
  text-align: center;
  font-weight: bold;
  font-size: 26px;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #brett #columnLeer {
    font-size: 21px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #brett #columnLeer {
    font-size: 16px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #brett #columnLeer {
    font-size: 12px;
  }
}

td div.show_targetplace:not(:empty)::after {
  user-select: none;
  position: absolute;
  content: ' ';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 1;
  box-shadow: inset 0 0 3px 3px red;
  display: block;
  animation-name: schlagen;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

td div.show_targetplace:empty::after {
  user-select: none;
  position: absolute;
  content: ' ';
  width: 50%;
  height: 50%;
  top: 0;
  left: 0;
  margin: 26% 26%;
  border-radius: 100%;
  opacity: 1;
  background-color: rgba(0, 186, 126, 0.95);
  display: block;
}

#tab-switch {
  width: 700px;
  position: relative;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #tab-switch {
    width: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #tab-switch {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #tab-switch {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #tab-switch {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#chat-tab {
  content: "Chat";
  font-family: Verdana;
  width: 100px;
  height: 40px;
  background-color: rgba(45, 45, 45, 0.96);
  position: absolute;
  top: -40px;
  right: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #d5d5d5;
  font-size: 1.2rem;
  cursor: pointer;
}

#board-tab {
  content: "Board";
  font-family: Verdana;
  width: 100px;
  height: 40px;
  background-color: #535353;
  position: absolute;
  top: -40px;
  left: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #d5d5d5;
  font-size: 1.2rem;
  cursor: pointer;
}

#chat-tab.active,
#board-tab.active {
  opacity: 1;
}

#chat-tab.deactive,
#board-tab.deactive {
  opacity: 1;
}

#chat-tab:hover,
#board-tab:hover {
  color: mediumspringgreen;
}

#chat-tab.new-message:after {
  content: "";
  border-radius: 0.5rem 0;
  width: 10px;
  height: 10px;
  position: absolute;
  background-color: #ef00ff;
  top: 0;
  left: 0;
}

#brett[color="WHITE"] {
  transform: rotate(0deg);
}

#brett[color="WHITE"] #columnLeer {
  transform: rotate(0deg);
}

#brett[color="WHITE"] img {
  transform: rotate(0deg);
}

#brett[color="BLACK"] {
  transform: rotate(180deg);
}

#brett[color="BLACK"] #columnLeer {
  transform: rotate(180deg);
}

#brett[color="BLACK"] img {
  transform: rotate(180deg);
}

td div.target_place:empty::after {
  user-select: none;
  position: absolute;
  content: " ";
  width: 50%;
  height: 50%;
  top: 0;
  left: 0;
  margin: 26% 26%;
  border-radius: 100%;
  opacity: 1;
  background-color: rgba(4, 158, 122, 0.53);
  display: block;
  animation-name: targetPlace;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes targetPlace {
  0% {
    background-color: rgba(0, 186, 126, 0.53);
  }
  50% {
    background-color: rgba(0, 255, 34, 0.53);
  }
  100% {
    background-color: rgba(0, 186, 126, 0.53);
  }
}

td div.target_place:not(:empty) {
  box-shadow: inset 0 0 3px 3px rgba(4, 158, 122, 0.89);
}

#brett.active {
  display: block;
}

#brett.deactive {
  display: none;
}

div.clicked {
  box-shadow: inset 0 0 50px 50px rgba(0, 186, 126, 0.95);
  animation-name: div-clicked-select;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes div-clicked-select {
  0% {
    box-shadow: inset 0 0 50px 50px rgba(0, 186, 126, 0.95);
  }
  50% {
    box-shadow: inset 0 0 50px 50px rgba(0, 255, 34, 0.95);
  }
  100% {
    box-shadow: inset 0 0 50px 50px rgba(0, 186, 126, 0.95);
  }
}

#promotionContainer {
  width: 100%;
  height: 100%;
  background-color: rgba(24, 24, 24, 0.91);
  position: relative;
  z-index: 1000;
}

#promotionContainer {
  display: flex;
  justify-content: space-around;
  padding: 3rem;
}

#dead-pieces-inner-box img, #promotionContainer img {
  width: 60px;
  height: 60px;
  margin: auto;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #dead-pieces-inner-box img, #promotionContainer img {
    width: 50px;
    height: 50px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #dead-pieces-inner-box img, #promotionContainer img {
    width: 39px;
    height: 39px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #dead-pieces-inner-box img, #promotionContainer img {
    width: 30px;
    height: 30px;
  }
}

div.checked {
  box-shadow: inset 0 0 10px 10px #c10018;
  animation-name: king-checked;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes king-checked {
  0% {
    box-shadow: inset 0 0 10px 10px #c10018;
  }
  50% {
    box-shadow: inset 0 0 10px 10px #ff1500;
  }
  100% {
    box-shadow: inset 0 0 10px 10px #c10018;
  }
}

div.clicked.checked {
  animation-name: div-clicked-select;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

.chat-title {
  margin: 0 auto;
  padding: 0.6em 0 0.6em 0;
  text-align: center;
  width: 100%;
  background-color: rgba(45, 45, 45, 0.96) !important;
  height: 40px;
  border-bottom: 1px solid black;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .chat-title {
    padding: 0.4em 0 0.4em 0;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .chat-title {
    padding: 0.3em 0 0.3em 0;
    font-size: 1rem;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .chat-title {
    padding: 0.2em 0 0.2em 0;
    font-size: 0.9rem;
  }
}

#chat.chatbox > div {
  padding: 0.5rem;
  width: 100%;
  overflow: auto;
  background-color: #404040 !important;
  box-shadow: inset -1px 0 2px 2px #1a1a1a;
  font-size: 1.3rem;
  height: calc(100% - 55px);
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#chat.chatbox > div::-webkit-scrollbar {
  display: none;
}

#chat.chatbox > div div {
  width: 100%;
  color: white;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 0.6rem 0;
  font-size: 1rem;
  text-align: justify;
  line-height: 1.3rem;
}

#chat.chatbox > div div b {
  padding-left: 0.1rem;
  color: #89c400;
}

#chat.chatbox > div div p {
  width: 100%;
  margin: 0;
  word-break: break-all;
}

@media screen and (max-width: 68.75em) and (min-device-width: 50em) {
  #chat.chatbox > div div {
    line-height: 1rem;
    font: 1rem sans-serif;
  }
}

@media screen and (max-width: 50em) and (min-device-width: 18.75em) {
  #chat.chatbox > div div {
    line-height: 1rem;
    font: 0.8rem sans-serif;
  }
}

#chat.chatbox > #chatform {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  height: 40px;
}

#chat.chatbox > #chatform > #sendMe {
  width: 40px;
  transition: all ease 0.4s;
}

#chat.chatbox > #chatform > #sendMe:hover {
  background-color: #2eff9e;
  transition: all ease 0.4s;
  cursor: pointer;
}

#chat.chatbox > #chatform input {
  width: 100%;
  border: 1px solid #ffffff;
  padding: 0.5rem;
}

#chat.chatbox #chatInput::placeholder {
  opacity: 0.3;
  color: grey;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  #chat.chatbox #chatInput::placeholder {
    font-size: 0.7rem;
    opacity: 0.3;
  }
}

#chat.chatbox #private_chat_container {
  display: none;
  width: 700px;
  height: 700px;
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 0 0 0.5rem 0.5rem;
  border-color: transparent;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #chat.chatbox #private_chat_container {
    width: 600px;
    height: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #chat.chatbox #private_chat_container {
    width: 450px;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #chat.chatbox #private_chat_container {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #chat.chatbox #private_chat_container {
    width: 360px;
    height: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#chat.chatbox #private_chat_container #private_chat {
  width: 700px;
  height: 700px;
  padding: 0;
  position: absolute;
  user-select: none;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #chat.chatbox #private_chat_container #private_chat {
    width: 600px;
    height: 600px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #chat.chatbox #private_chat_container #private_chat {
    width: 450px;
    height: 450px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #chat.chatbox #private_chat_container #private_chat {
    width: 360px;
    height: 360px;
  }
}

#chat.chatbox #private_chat_container.active {
  display: block;
}

#chat.chatbox #private_chat_container.deactive {
  display: none;
}

#private_chat_container.active {
  display: block;
  width: 700px;
  height: 700px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0.5rem 0.5rem;
  border-color: transparent;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #private_chat_container.active {
    width: 600px;
    height: 600px;
    margin-left: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #private_chat_container.active {
    width: 450px;
    height: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  #private_chat_container.active {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #private_chat_container.active {
    width: 360px;
    height: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

#private_chat_container.active #private_chat {
  width: 700px;
  height: 700px;
  padding: 0;
  position: absolute;
}

#private_chat_container.active #private_chat > div {
  padding: 0.5rem;
  overflow: auto;
  background-color: #404040 !important;
  box-shadow: inset 0 0 2px 2px #1a1a1a;
  font-size: 1.3rem;
  height: calc(100% - 55px);
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#private_chat_container.active #private_chat > div::-webkit-scrollbar {
  display: none;
}

#private_chat_container.active #private_chat > div p {
  color: white;
  width: 100%;
  margin: 0.6rem 0;
  font-size: 1rem;
  text-align: left;
  line-height: 1.3rem;
}

#private_chat_container.active #private_chat > div p b {
  padding-left: 0.1rem;
  color: #89c400;
}

#private_chat_container.active #private_chat > div p p {
  width: 100%;
  display: flex;
  word-break: break-all;
  margin: 0;
  padding-left: 0.3rem;
}

@media screen and (max-width: 68.75em) and (min-device-width: 50em) {
  #private_chat_container.active #private_chat > div p {
    line-height: 1rem;
    font: 1rem sans-serif;
  }
}

@media screen and (max-width: 50em) and (min-device-width: 18.75em) {
  #private_chat_container.active #private_chat > div p {
    line-height: 1rem;
    font: 0.8rem sans-serif;
  }
}

#private_chat_container.active #private_chat > form {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  height: 40px;
}

#private_chat_container.active #private_chat > form > #sendMe {
  width: 40px;
  transition: all ease 0.4s;
}

#private_chat_container.active #private_chat > form > #sendMe:hover {
  background-color: #2eff9e;
  transition: all ease 0.4s;
  cursor: pointer;
}

#private_chat_container.active #private_chat > form input {
  width: 100%;
  border: 1px solid #ffffff;
  padding: 0.5rem;
}

#private_chat_container.active #private_chat #chatInput::placeholder {
  opacity: 0.3;
  color: grey;
}

@media screen and (max-width: 43.75em) and (min-device-width: 22.5em) {
  #private_chat_container.active #private_chat #chatInput::placeholder {
    font-size: 0.7rem;
    opacity: 0.3;
  }
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  #private_chat_container.active #private_chat {
    width: 600px;
    height: 600px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  #private_chat_container.active #private_chat {
    width: 450px;
    height: 450px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #private_chat_container.active #private_chat {
    width: 360px;
    height: 360px;
  }
}

#private_chat_container.deactive {
  display: none;
}

.dead_box {
  margin: 2rem auto;
  width: 80%;
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  .dead_box {
    width: 80%;
  }
}

.dead_ones {
  background-color: rgba(45, 45, 45, 0.96) !important;
  border-radius: 0.5rem;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  z-index: 1;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  .dead_ones {
    grid-gap: 1.2rem;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  .dead_ones {
    grid-gap: 1rem;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .dead_ones {
    grid-gap: 0.2rem;
  }
}

.dead {
  align-self: center;
  margin: 0 auto;
  width: 68px;
  height: 68px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  .dead {
    width: 58px;
    height: 58px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  .dead {
    width: 48px;
    height: 48px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .dead {
    width: 34px;
    height: 34px;
  }
}

.index-h1-header {
  color: white;
  display: block;
  text-align: center;
  font-size: 2rem;
  position: relative;
  width: 100%;
}

#mainDivRegister {
  flex: 1;
  position: relative;
  margin-top: 100px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

#mainDivRegister #koenig_white {
  position: absolute;
  left: 0;
  width: 360px;
  height: 360px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivRegister #koenig_white {
    width: 200px;
    height: 200px;
    top: 80px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivRegister #koenig_white {
    width: 150px;
    height: 150px;
    top: 100px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivRegister #koenig_white {
    width: 60px;
    height: 60px;
    left: 80px;
    top: -80px;
  }
}

#mainDivRegister #koenig_black {
  position: absolute;
  right: 0;
  top: 0;
  width: 360px;
  height: 360px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivRegister #koenig_black {
    width: 200px;
    height: 200px;
    top: 80px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivRegister #koenig_black {
    width: 150px;
    height: 150px;
    top: 100px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivRegister #koenig_black {
    width: 60px;
    height: 60px;
    right: 80px;
    top: -80px;
  }
}

#mainDivRegister img {
  position: absolute;
  opacity: 0.1;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivRegister img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivRegister img {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivRegister img {
    width: 60px;
    height: 60px;
    opacity: 1;
  }
}

#mainDivRegister form {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 30px;
  width: 260px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

#mainDivIndex {
  flex: 1;
  position: relative;
  margin-top: 120px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

#mainDivIndex #koenig_white {
  position: absolute;
  left: 0;
  width: 360px;
  height: 360px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivIndex #koenig_white {
    width: 200px;
    height: 200px;
    top: 80px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivIndex #koenig_white {
    width: 150px;
    height: 150px;
    top: 100px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivIndex #koenig_white {
    width: 60px;
    height: 60px;
    left: 80px;
    top: -80px;
  }
}

#mainDivIndex #koenig_black {
  position: absolute;
  right: 0;
  top: 0;
  width: 360px;
  height: 360px;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivIndex #koenig_black {
    width: 200px;
    height: 200px;
    top: 80px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivIndex #koenig_black {
    width: 150px;
    height: 150px;
    top: 100px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivIndex #koenig_black {
    width: 60px;
    height: 60px;
    right: 80px;
    top: -80px;
  }
}

#mainDivIndex img {
  position: absolute;
  opacity: 0.1;
}

@media screen and (max-width: 75em) and (min-device-width: 62.5em) {
  #mainDivIndex img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 62.5em) and (min-device-width: 43.75em) {
  #mainDivIndex img {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  #mainDivIndex img {
    width: 60px;
    height: 60px;
    opacity: 1;
  }
}

#mainDivIndex form {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 30px;
  width: 260px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

fieldset {
  min-width: 260px;
  border: 3px solid black;
  border-radius: 1em 1em;
  background-color: #dbdbdb;
  position: relative;
  z-index: 1000;
}

fieldset a {
  display: block;
  width: 100%;
  padding: 5px;
  margin-top: 30px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
  color: gray;
  text-align: center;
}

fieldset a:hover,
fieldset a:focus {
  display: block;
  width: 100%;
  padding: 5px;
  margin-top: 30px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
  color: black;
  text-align: center;
}

legend {
  width: 100%;
  position: relative;
  text-align: center;
  font-size: 1.5rem;
  padding: 10px 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  color: black;
  background: #dbdbdb;
  border-radius: 0.5rem;
  border: 3px solid black;
}

lable {
  text-decoration: underline;
  width: 100%;
  text-decoration-color: #ff8000;
}

#arrow1,
#arrow2 {
  position: relative;
  left: 3.5px;
  top: 11.5px;
  color: #ff8000;
  font-size: 1.4em;
}

input#username,
#passwort,
#vorname,
#nachname,
#nickname {
  width: 100%;
  padding: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid grey;
  border-radius: 0.2em 0.2em;
  background-color: white;
  z-index: 0;
}

input#submit {
  padding: 8px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid grey;
  border-radius: 0.2em 0.2em;
  background-color: white;
  display: block;
}

#submit:hover,
#submit:focus {
  display: block;
  padding: 8px;
  margin-top: 20px;
  color: white;
  border-radius: 0.2em 0.2em;
  background-color: black;
  /*#FFBF00*/
}

.fehler {
  background-color: #ff800050;
}

::placeholder {
  color: orangered;
  opacity: 1;
  font-size: 0.8rem;
  z-index: 1;
}

#regFieldset {
  text-align: center;
}

.footer-container {
  display: flex;
  backdrop-filter: saturate(180%) blur(9px);
  background: rgba(45, 45, 45, 0.96) !important;
  color: white;
  height: 100%;
  bottom: 0;
  width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.5rem 0.5rem 0 0;
  justify-content: space-between;
  flex-direction: column;
  font-size: 0.7rem;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .footer-container {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .footer-container {
    width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 53.125em) and (min-device-width: 18.75em) {
  .footer-container {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .footer-container {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-container__div {
  padding: 20px;
}

.footer-container__location {
  padding: 0 20px;
  font-size: 0.8rem;
  color: grey;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-container__location span {
  color: #d9d9d9;
}

.footer-container__kontakt {
  position: relative;
  padding: 20px;
  display: flex;
}

.footer-container__kontakt > a {
  margin-left: 10px;
}

#ulLeftDiv {
  color: #6a6a6a;
}

#ulLeftDiv #loginDiv {
  position: absolute;
  right: 10px;
  font-size: 0.7rem;
}

#userlogo {
  font-size: 1rem;
  padding: 0.2rem 0;
  color: #9e9e9e;
}

#userlogo::before {
  height: 40px;
  width: 40px;
  position: absolute;
  right: 100px;
}

a {
  color: gray;
  text-decoration: none;
}

#ulRightDiv {
  margin-top: 10px;
}

a:hover,
a:focus {
  color: #d97f63;
}

#chooseContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.87);
}

#chooseContainer #chooseWindow {
  width: 80%;
  height: 80%;
  border: 1px solid black;
  margin: 10%;
  background-color: rgba(59, 59, 59, 0.87);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  z-index: 1;
}

#checkmateBoxContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 auto;
  user-select: none;
}

#checkmateBoxContainer #checkmateBox {
  width: 80%;
  height: 80%;
  margin: 10%;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  z-index: 1;
  user-select: none;
}

#checkmateBoxContainer #checkmateTitle {
  background: #535353;
  width: 100%;
  height: 10%;
  margin: 0 auto;
  position: absolute;
  top: -10%;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  animation: checkmate;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#checkmateBoxContainer #checkmateLeft {
  background: #535353;
  width: 10%;
  height: 100%;
  margin: 0 auto;
  left: -10%;
  position: absolute;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  animation: checkmateleft;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
  user-select: none;
}

#checkmateBoxContainer #checkmateRight {
  background: #535353;
  width: 10%;
  height: 100%;
  margin: 0 auto;
  position: absolute;
  right: -10%;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  animation: checkmateright;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
  user-select: none;
}

#checkmateBoxContainer #checkmateReset {
  background: #535353;
  width: 100%;
  height: 10%;
  margin: 0 auto;
  position: absolute;
  bottom: -10%;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  animation: reset;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#checkmateBoxContainer #checkmateReset > a {
  color: white;
  text-decoration: none;
  user-select: none;
  display: inline;
  cursor: pointer;
}

#checkmateBoxContainer #checkmateReset > a:hover {
  color: #00c18a;
}

@keyframes checkmate {
  0% {
    top: -10%;
  }
  100% {
    top: 0;
  }
}

@keyframes checkmateleft {
  0% {
    left: -10%;
  }
  100% {
    left: 0;
  }
}

@keyframes checkmateright {
  0% {
    right: -10%;
  }
  100% {
    right: 0;
  }
}

@keyframes reset {
  0% {
    bottom: -10%;
  }
  100% {
    bottom: 0;
  }
}

#statusContainer {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  border-radius: 0.5rem;
  height: 45px;
  justify-content: center;
}

.checkornot {
  height: 40px;
  padding: 10px;
  color: #ffffff;
  font-weight: bold;
  border-top: #bababa 1px solid;
  border-right: #bababa 1px solid;
  border-bottom: #bababa 1px solid;
  text-align: center;
  border-radius: 0 0.5rem 0.5rem 0;
  transition: all ease-in 0.4s;
}

.checkornot.win {
  background-color: #00c18a;
  border: #bababa 1px solid;
  border-radius: 0.5rem;
}

.checkornot.lose {
  background-color: #ff0048;
  border: #bababa 1px solid;
  border-radius: 0.5rem;
}

.weristdaran.daran {
  text-align: center;
  height: 40px;
  padding: 10px;
  color: #cefff1;
  font-weight: bold;
  border-radius: 0.5rem 0 0 0.5rem;
  border-top: #bababa 1px solid;
  border-left: #bababa 1px solid;
  border-bottom: #bababa 1px solid;
  background-color: #00c18a;
  transition: all ease-in 0.4s;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .weristdaran.daran {
    width: 400px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .weristdaran.daran {
    width: 250px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .weristdaran.daran {
    width: 160px;
  }
}

.weristdaran:not(.daran) {
  text-align: center;
  height: 40px;
  padding: 10px;
  color: #ffcfcf;
  font-weight: bold;
  border-radius: 0.5rem 0 0 0.5rem;
  border-top: #bababa 1px solid;
  border-left: #bababa 1px solid;
  border-bottom: #bababa 1px solid;
  background-color: #ff0048;
  transition: all ease-in 0.4s;
}

@media screen and (max-width: 75em) and (min-device-width: 68.75em) {
  .weristdaran:not(.daran) {
    width: 400px;
  }
}

@media screen and (max-width: 68.75em) and (min-device-width: 43.75em) {
  .weristdaran:not(.daran) {
    width: 250px;
  }
}

@media screen and (max-width: 43.75em) and (min-device-width: 18.75em) {
  .weristdaran:not(.daran) {
    width: 160px;
  }
}

@keyframes daran {
  0% {
    background-color: #00c18a;
    color: white;
  }
  50% {
    background-color: rgba(0, 193, 138, 0);
    color: black;
  }
  100% {
    background-color: #00c18a;
    color: white;
  }
}

@keyframes nichtdaran {
  0% {
    background-color: #ff0048;
    color: white;
  }
  50% {
    background-color: rgba(0, 193, 138, 0);
    color: black;
  }
  100% {
    background-color: #ff0048;
    color: white;
  }
}

* {
  font-family: Verdana, sans-serif;
}

html {
  background-color: #747474;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

hr {
  margin: 0;
}

.bereit {
  box-shadow: 0 0 0 3px #00ffc5;
  transform: scale(0.92);
  animation-name: select;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes select {
  0% {
    box-shadow: 0 0 0 3px #00ffc5;
  }
  50% {
    box-shadow: 0 0 0 3px rgba(19, 73, 20, 0.43);
  }
  100% {
    box-shadow: 0 0 0 3px #00ffc5;
  }
}

td div.newMove {
  background-color: #00c18a !important;
}

#newGame {
  display: none;
}

#timer {
  color: red;
}

.rightToleft {
  direction: rtl;
}

span.ERROR {
  font-size: 0.6rem;
  color: red;
  display: block;
}

