* {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  background-color: #ffff;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  overflow-x: none;
}

h1,
nav {
  font-family: inherit;
  color: #222;
  margin-top: 20px;
}

a {
  color: #222;
  border-bottom: solid 1px #222;
}

.gameContainer {
  margin: 0 auto;
  max-width: 375px;
  max-height: 667px;
}

.rack {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons {
  margin-top: 25px;
  margin-bottom: 20px;
  padding: 10px;
}

.slot {
  height: 32px;
  width: 32px;
  margin-left: 13px;
  margin-bottom: 20px;
  line-height: 10px;
}
.tile {
  position: absolute;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  font-size: 23px;
  line-height: 30px;
  font-family: inherit;
  background: #fff;
  text-align: center;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.clicked {
  outline: 3px solid #f8cd05;
  outline-offset: -1px;
}

.letter {
  position: absolute;
  width: 100%;
  text-align: center;
  pointer-events: none;
  user-select: none;
  font-weight: bold;
}

.score {
  position: absolute;
  font-size: 9px;
  margin-left: 25px;
  line-height: 10px;
  cursor: pointer;
  pointer-events: none;
  user-select: none;
  color: #222;
  font-weight: bold;
}

button {
  border-radius: 3px;
  background: #f8cd05;
  border: solid 1px #fff;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  padding: 4px;
  font-weight: bold;
  margin: 10px;
}

table {
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
  padding-bottom: 60px;
  margin-bottom: 50px;
  width: 100%;
  margin-top: 20px;
}

tr {
  border-radius: 2px;
  border: 1px solid #fff;
  padding-bottom: 30px;
}

td {
  border: 1px solid #fff;
  border-radius: 2px;
  padding: 20px;
}

th {
  border: solid 2px #f8cd05;
  padding: 10px;
  border-radius: 12px;
  font-size: 18px;
}
span {
  font-size: 16px;
}

.popup {
  position: fixed;
  padding: 10px;
  max-width: 500px;
  border-radius: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  visibility: hidden;
  opacity: 0;
  /* "delay" the visibility transition */
  -webkit-transition: opacity 0.5s, visibility 0s linear 0.5s;
  transition: opacity 0.5s, visibility 0s linear 0.5s;
  z-index: 1;
}
.popup:target {
  visibility: visible;
  opacity: 1;
  /* cancel visibility transition delay */
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
.popup-close {
  position: absolute;
  padding: 10px;
  max-width: 500px;
  border-radius: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
}
.popup .close {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 5px;
  color: #f8cd05;
  transition: color 0.3s;
  font-size: 2em;
  line-height: 0.6em;
}
.popup .close:hover {
  color: #222;
}

.close-popup {
  background: rgba(0, 0, 0, 0.7);
  cursor: default;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  /* "delay" the visibility transition */
  -webkit-transition: opacity 0.5s, visibility 0s linear 0.5s;
  transition: opacity 0.5s, visibility 0s linear 0.5s;
}
.popup:target + .close-popup {
  opacity: 1;
  visibility: visible;
  /* cancel visibility transition delay */
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
