html,
body,
.container {
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}

body {
  font-family: "Courier Prime", monospace;
  background-color: #fcfcfc;
}

button {
  cursor: pointer;
  padding: 0px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  color: black;
}

hr {
  border: 1px;
  border-style: solid;
  border-color: #ccc;
  margin-top: 40px;
  margin-bottom: 40px;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeInAnimation ease 0.2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

.pointer {
  cursor: pointer;
}

/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  flex-shrink: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-buttons {
  width: 60px;
  height: 60px;
  border: 0;
  font-size: 30px;
  background-color: transparent;
  color: #333;
}

.header-buttons:hover {
  color: #0080ff;
}

#games-list:hover {
  color: #333;
}

.help-active {
  color: #0080ff;
}

#sync-code {
  height: 40px;
  width: 120px;
  background-color: #eee;
  color: #aaa;
  font-size: 20px;
  font-family: monospace;
  text-align: center;
  border: 0;
  caret-color: transparent;
}

#sync-code:focus {
  outline: none;
  border: 2px solid #555;
  color: #222;
}

/* CONTENT */

.content {
  position: fixed;
  top: 60px;
  bottom: 60px;
  margin: 0;
  height: 100%;
  padding: 40px;
}

.round {
  width: 60px;
  height: 60px;
  background-color: black;
  color: white;
  border: 0;
  border-radius: 30px;
  font-size: 30px;
  line-height: 60px;
}

.round:hover {
  background-color: #67d467;
  color: white;
}

/* COUNTER */

.footer {
  flex-shrink: 0;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: #eee;
  display: flex;
  justify-content: space-between;
}

#counter {
  transition: 0.1s;
}

.counter-buttons {
  border: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

#counter-minus,
#counter-plus {
  background-color: rgb(0, 0, 0, 0.03);
  width: 60px;
}

#counter-minus:hover,
#counter-plus:hover {
  background-color: rgb(0, 0, 0, 0.07);
}

#counter-minus:active,
#counter-plus:active {
  background-color: rgb(0, 0, 0, 0.15);
  color: black;
}

#counter-value {
  background-color: transparent;
  width: 100px;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  font-size: 30px;
}

/* splash */

#splash {
  position: fixed;
  padding-bottom: 80px;
  top: 60px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 1;
  background-color: #fcfcfc;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  transition: 0.3s ease-out;
}

#description-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

#title {
  font-size: 2em;
  font-weight: 600;
  margin-top: 40px;
}

#description {
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 30px;
  font-style: italic;
  color: #555;
}

.game-info {
  margin-bottom: 30px;
  width: 200px;
}

.game-info td {
  text-align: left;
  vertical-align: middle;
}

.game-info i {
  margin: 10px 20px 11px 20px;
}

.sync-button {
  background-color: #0060ff;
  margin: 20px;
  width: 80px;
  height: 80px;
  font-size: 40px;
  border-radius: 40px;
  animation: rotate-center 6s ease-in-out both infinite;
  animation-delay: 2s;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sync-button:hover {
  background-color: #0060ff;
  box-shadow: 0 0 10px #87adff;
}

@keyframes rotate-center {
  10% {
    transform: rotate(-30deg);
  }
  20%,
  100% {
    transform: rotate(120deg);
  }
}

#fullscreen-splash-option {
  position: fixed;
  bottom: 0px;
  width: 600px;
  height: 60px;
  background-color: #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  font-family: "Inter", sans-serif;
}

#fullscreen-toggle {
  font-size: 1.1em;
  margin-right: 13px;
  margin-top: 1px;
}

/* OVERLAY */

#overlay {
  position: fixed;
  top: 60px;
  bottom: 60px;
  left: 0px;
  right: 0px;
  z-index: 1;
  background-color: #fcfcfc;
  overflow-y: scroll;
  transition: 0.5s;
}

#overlay-nav {
  width: 100%;
  height: 60px;
  background-color: #67d467;
  color: white;
  position: fixed;
  left: 0;
  bottom: -60px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  transition: 0.2s;
}

.overlay-content {
  padding-left: 30px;
  padding-right: 30px;
  height: 100%;
  line-height: 1.5em;
  font-family: Inter, sans-serif;
}

/* BIG SCREEN */

@media only screen and (min-width: 600px) {
  body {
    background-color: #fcfcfc;
    background-image: linear-gradient(
      135deg,
      #4d4d4d 25%,
      #404040 25%,
      #404040 50%,
      #4d4d4d 50%,
      #4d4d4d 75%,
      #404040 75%,
      #404040 100%
    );
    background-size: 56.57px 56.57px;
    margin: 0px;
    height: 100%;
    overflow: hidden;
  }
  .container {
    background-color: #fcfcfc;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .header,
  #splash,
  #overlay,
  #overlay-nav,
  .footer {
    width: 600px;
    left: 50%;
    margin-left: -300px;
  }
}
