/* General Layout */

body {
  font-family: monospace;
  background-color: lightslategray;
}

h1,
h2 {
  color: white;
}

header {
  text-align: center;
}

main {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

footer {
  padding: 1rem;
  text-align: center;
}

footer p {
  padding: 0.5rem;
  display: inline-block;
  background-color: white;
  border-radius: 0.33rem;
}

.d-none {
  display: none;
}

.text-muted {
  opacity: 0.5;
}

/* Phone and Canvas */

#phone {
  padding: 0.5rem;
  background-color: black;
  border-radius: 1rem;
}

.statusbar {
  background-color: lightcyan;
  font-size: 1rem;
  padding: 0.25rem;
  display: flex;
  justify-content: space-between;
  border-bottom: solid 0.1rem darkslategray;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.keyboard {
  width: 300px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.keyboard button:first-child,
.keyboard button:nth-child(2),
.keyboard button:nth-child(3) {
  height: 2rem;
  margin: 0.8rem;
  font-size: 0.8rem;
}

.keyboard button:first-child {
  transform: rotate(7deg);
  background-image: linear-gradient(#ffffff, #bada55);
}

.keyboard button:nth-child(2) {
  transform: translateY(0.25rem);
}

.keyboard button:nth-child(3) {
  transform: rotate(-7deg);
  background-image: linear-gradient(#ffffff, #ffaabb);
}

.keyboard button {
  flex-grow: 1;
  height: 2.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: gray;
  margin: 0.2rem;
  background-image: linear-gradient(#ffffff, #aaaaaa);
}

canvas {
  background-color: white;
}

/* HighScore table */

aside h2 {
  margin: 1rem;
}

table {
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid black;
}

thead {
  background-color: #bada55;
  color: black;
}

tbody {
  background-color: white;
  color: black;
}

th,
td {
  padding: 0.5rem;
}

.loading {
  border: 0.75rem solid lightcyan;
  border-top: 0.75rem solid #bada55;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  height: 1.5rem;
  width: 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Privacy Policy */

#privacy-policy {
  background-color: white;
  color: black;
  font: sans-serif;
  padding: 0.5rem;
  max-width: 1000px;
  margin: auto;
}