@font-face {
  font-family: "NYT Franklin 300";
  src: url('../fonts/nyt-franklin-300.ttf') format('truetype');
}

@font-face {
  font-family: "NYT Franklin 500";
  src: url('../fonts/nyt-franklin-500.ttf') format('truetype');
}

@font-face {
  font-family: "NYT Franklin 600";
  src: url('../fonts/nyt-franklin-600.ttf') format('truetype');
}

@font-face {
  font-family: "NYT Franklin 700";
  src: url('../fonts/nyt-franklin-700.ttf') format('truetype');
}

@font-face {
  font-family: "NYT Karnak 400";
  src: url('../fonts/nyt-karnak-400.ttf') format('truetype');
}

body {
  overflow: hidden;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  display: -webkit-flex;
  -webkit-flex-direction: column;
  -webkit-align-items: center;
}

.header {
  padding: 14px 0;
  flex-direction: column;
  border-bottom: #d4d4d4 solid 1px;
  width: -webkit-fill-available;

  display: flex;
  align-items: center;

  display: -webkit-flex;
  -webkit-align-items: center;
}

#title {
  font-family: "NYT Karnak 400";
  font-size: 36px;
}

#subtitle {
  font-family: "NYT Franklin 300";
  font-size: 18px;
  font-weight: lighter;
}

#timer {
  font-family: "NYT Franklin 500";
  font-size: 16px;
  margin: 6px 0;
}

#notification {
  opacity: 0;
  position: absolute;
  margin: auto;
  text-align: center;
  background-color: black;
  font-size: 16px;
  font-family: "NYT Franklin 500";
  color: #FFFFFF;
  height: fit-content;
  width: min-content;
  border-radius: 6px;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  cursor: default;
  transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.shareContainer {
  display: flex;
  justify-content: center;
  align-items: center;

  display: -webkit-flex;
  -webkit-align-items: center;
}

.shareButton {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3f7ad2;

  display: -webkit-flex;
  -webkit-align-items: center;

  white-space: pre;
  text-transform: uppercase;
  font-family: "NYT Franklin 700" !important;
  font-weight: bold;
  color: #EFEFE6;
  font-size: 20px;
  font-family: inherit;
  border-radius: 4px;
  border: unset;
  grid-row: span 2;
  height: 0;
  opacity: 0;
  padding: 0;
}

.gameOver .shareButton {
  height: 50px;
  opacity: 1;
  padding: 12px 24px 14px;
  margin: 1em;
  pointer-events: unset !important;
  transition: opacity 0.3s ease-in;
}


#grid {
  display: flex;
  align-items: center;
  flex-direction: column;

  display: -webkit-flex;
  -webkit-align-items: center;
  -webkit-flex-direction: column;

  border: 2px solid black;
}

.row {
  display: flex;
  align-items: center;
  flex-direction: row;

  display: -webkit-flex;
  -webkit-align-items: center;
  -webkit-flex-direction: row;
}

.letter {
  width: 54px;
  height: 54px;
  font-size: 40px;
  text-transform: capitalize;
  text-align: center;
}

@media screen and (max-width: 699px) {
  .letter {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}

.letter.highlight {
  background-color: #a7d8ff;
  outline: none;
}

.letter.focused {
  background-color: #ffda00;
}

.letter.disabled {
  background-color: #000;
}

#clueContainer {
  display: flex;
  align-items: center;
  flex-direction: row;

  display: -webkit-flex;
  -webkit-align-items: center;
  -webkit-flex-direction: row;

  height: 44px;
  width: 100%;
  background-color: #a7d8ff;
  margin: 6px 0 0 0;
}

.gameOver #clueContainer {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

#clueNumber {
  font-size: 18px;
  font-weight: bold;
  display: inline;
  margin-left: 12px;
  margin-right: 4px;
  font-family: "NYT Franklin 700";
}

#clueText {
  display: inline;
  font-size: 18px;
  font-family: "NYT Franklin 500";
}

.box {
  color: transparent;
  text-shadow: 0px 0px 0px black;
  font-family: "NYT Franklin 500";

  border-width: 1px;
  border-style: solid;
  border-color: #696969;

  background-position-x: left;
  background-position-y: top;
  background-repeat: no-repeat;
  background-size: 80px 80px;
}

.box.topEdge {
  border-top-width: 0;
}

.box.bottomEdge {
  border-bottom-width: 0;
}

.box.leftEdge {
  border-left-width: 0;
}

.box.rightEdge {
  border-right-width: 0;
}

#box05 {
  background-image: url('numbers/1.png');
  background-size: 48px;
}

#box10 {
  background-image: url('numbers/2.png');
  background-size: 48px;
}

#box38 {
  background-image: url('numbers/3.png');
  background-size: 48px;
}

#box40 {
  background-image: url('numbers/4.png');
  background-size: 48px;
}

#box42 {
  background-image: url('numbers/5.png');
  background-size: 48px;
}

#box46 {
  background-image: url('numbers/6.png');
  background-size: 48px;
}

#box64 {
  background-image: url('numbers/7.png');
  background-size: 48px;
}

#box69 {
  background-image: url('numbers/8.png');
  background-size: 48px;
}

#box81 {
  background-image: url('numbers/9.png');
  background-size: 48px;
}

.keyboard {
  background-color: rgb(228, 234, 239);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease-in-out;
  user-select: none;
  padding: 8px 8px 2px;
  vertical-align: baseline;
  width: -webkit-fill-available;

  display: -webkit-flex;
  -webkit-flex-direction: column;
  -webkit-align-items: center;
  -webkit-user-select: none;
}

.keyboard-row {
  display: flex;
  display: -webkit-flex;
  margin: 0 auto 6px;
  width: 100%;
  width: -webkit-fill-available;
  touch-action: manipulation;
}
.keyboard-button {
  flex: 1;
  -webkit-flex: 1;
  font-family: "NYT Franklin 300";
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  height: 32px;
  margin: 0 3px 0;
  padding: 0;
  color: rgb(0, 0, 0);
  background: rgb(256, 256, 256);
  border-radius: 4px;
  border-bottom-color: rgb(201, 209, 217);
  border-width: 0 0 1px;
  transition: background 0.1s ease-in;
  user-select: none;
}
.keyboard-button.larger {
  flex: 1.5;
  -webkit-flex: 1.5;
  padding: 0 6px;
  font-size: 12px;
}
.keyboard-button.spacer {
  flex: 0.5;
  -webkit-flex: 0.5;
  opacity: 0;
  padding: 0;
  margin: 0 1px;
}

.gameOver .keyboard {
  opacity: 0;
  height: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
