h1,
h2,
h3,
h4 {
  /* font-family: 'Luckiest Guy'; */
  font-weight: bold;
}

body {
  background-image: url(assets/Background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

body * {
  user-select: none !important;
}

/* components  */
.press-button {
  position: relative;
}
/* .press-button img {
  position: relative;
} */

.play-variant {
  display: flex;
  justify-content: end;
  padding-right: 3vw;
  gap: 5px;
}

.play-variant-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  width: 38px;
  height: 38px;
  background-color: #e9c46a;
  border: 3px solid #dda15e;
  color: #744715;
  font-size: 21px;
  cursor: pointer;
  font-weight: 600;
}

.play-variant-button:hover {
  background-color: #bc6c25;
  color: white;
}

.play-variant-button.active {
  background-color: #bc6c25;
  border-color: #fff;
  color: #fff;
}

.press-button label {
  /* position: absolute; */
  top: 0;
  left: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
  font-weight: 500;
  /* font-family: 'Luckiest Guy'; */
  color: #ffb709;
  padding: 4px 50px;
  border-radius: 10px;
  border: 3px solid #ffb709;
  cursor: pointer;
}
.press-button label:hover {
  color: #b88100;
  border-color: #b88100;
}

.arrow-back {
  cursor: pointer;
  position: absolute;
  z-index: 100;
  top: -50px;
  left: 30px;
  background-image: url(assets/Back.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 40px;
  height: 40px;
}

/* complete modal  */
.complete1-container {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
}
.complete1 {
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}
.complete1 > div {
  position: absolute;
  width: 100%;
}
.complete1-buttons {
  margin-top: 180px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
.complete1-buttons label {
  font-size: 30px;
}

/* review modal  */
.review-container {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
}
.review {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}
.review > div {
  position: absolute;
  width: 550px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  place-items: center;
  background-color: white;
  border: 3px solid #f9c956;
}
.review-text,
.review-text-finish {
  margin-top: 10px;
  color: #000;
  text-align: center;
}
.review-buttons,
.review-button-finish {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.review-buttons img {
  padding: 8px;
  margin-left: -3px;
  border: 3px solid #f9c956;
  cursor: pointer;
}
.review-container label {
  font-size: 19px;
}
.review-text-finish,
.review-button-finish {
  display: none;
}

/* review modal  */
.exitconfirm-container {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
}
.exitconfirm {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}
.exitconfirm > div {
  position: absolute;
  width: 100%;
}
.exitconfirm-buttons {
  margin-top: 180px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
.exitconfirm-buttons label {
  font-size: 30px;
}

/* PAGES */
.page {
  display: none;
}
.pages-container {
  width: 100%;
  max-width: 1480px;
  /* margin: 0 auto; */
}

/* PAGE: START  */
.start-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
.square-button {
  content: ' ';
  position: absolute;
  z-index: 100;
  top: 30px;
  left: 30px;
  background-image: url(assets/Square.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 40px;
  height: 40px;
}

/* PAGE: CHOOSELEVEL */
.chooselevel-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* GAME */
.game-container {
  padding: 30px;
  background-color: #fffaee;
  border-radius: 50px;
  max-height: 90vh;
}

.across-clues h2,
.down-clues h2 {
  color: #ad3705;
}

/* .crossword-clues > .cc {
  display: flex;
  flex-direction: column;
} */

.across-clues,
.down-clues {
  /* flex: 1; */
  max-height: 350px;
  background-color: #fff3dc;
  border-radius: 50px;
  padding: 0px 30px;
}
.across-clues ol,
.down-clues ol {
  max-height: 280px;
  /* height: fit-content; */
  overflow-y: scroll;
}

.crossword {
  margin: 0 auto;
  position: relative;
  font-family: sans-serif;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-gap: 30px;
}
.page[data-page~='playlevel1'] .crossword {
  grid-template-columns: 1fr 1fr;
}
.page[data-page~='playlevel1'] .crossword-grid {
  /* max-width: 400px; */
  margin: 0 auto;
}
.crossword-puzzle {
  padding: 30px;
  border-radius: 50px;
  background-color: #fff3dc;
  position: relative;
  /* aspect-ratio: 1; */
}
.crossword-clues {
  font-size: 16px;
}
.crossword-clues > .cc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.crossword-clues > .cc > div {
  flex-grow: 1;
}
.crossword-buttons {
  display: none;
  clear: both;
  text-align: center;
  padding-top: 1em;
}
.crossword-buttons button {
  margin: 0 0.5em;
  min-width: 200px;
}
table.crossword-grid {
  width: 100%;
  max-width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}
.grid-row {
  clear: left;
}
.grid-square {
  position: relative;
  background-clip: padding-box;
}
.grid-square:after {
  content: '';
  display: block;
  margin-top: 100%;
}
.grid-square.active {
  background-color: #fff;
  /* box-shadow: 2px 2px 0 #f9e2b2; */
  border: 2px solid #f9c956;
}
.grid-square.current-word {
  background-color: #ff9;
}
.grid-square.correct-across,
.grid-square.correct-down {
  background-color: #8dfc62;
}
.grid-square.incorrect-across,
.grid-square.incorrect-down {
  background-color: #fc6262;
}
.grid-square.correct-across.current-word,
.grid-square.correct-down.current-word {
  background-color: multiply(#ff9, #dff0d8);
}
.grid-square .word-label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  line-height: 1;
  font-size: calc(5px + 0.25vw);
  color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
/* .page[data-page~='playlevel2'] .grid-square .word-label {
  font-size: calc(5px + 0.25vw);
} */
.grid-square input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.2em;
  font-size: calc(7px + 0.5vw);
  font-weight: 600;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
}
/* .page[data-page~='playlevel2'] .grid-square input {
  font-size: calc(7px + 0.5vw);
} */
.crossword-clues li {
  position: relative;
}
.crossword-clues li label {
  display: block;
  font-weight: normal;
  cursor: pointer;
}
.crossword-clues li.active {
  background: #ff9;
}
.crossword-clues li.correct {
  background: transparent;
  color: green;
  text-decoration: line-through;
}
.crossword-clues li.correct.active {
  background: multiply(#ff9, #dff0d8);
}
/* .crossword-clues li.correct label:before {
  content: '\f00c';
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  left: -47px;
  top: 0.1em;
} */
.crossword-clues .hint {
  display: none;
}
.show-hints.crossword-clues .hint {
  display: inline;
}
.clue-tooltip {
  position: absolute;
  z-index: 10;
  /* //bottom: 100%;
  */
  background: rgba(255, 196, 35, 0.9);
  /* //color: white;
  */
  padding: 4px 10px;
  margin-bottom: 10px;
  transform: translateY(-100%);
  max-width: 90vw;
}
.clue-tooltip .clue-tooltip-arrow {
  display: block;
  border: 8px solid transparent;
  border-top-color: rgba(255, 196, 35, 0.9);
  border-bottom: none;
  position: absolute;
  top: 100%;
}

/* Info box */
.info-button {
  content: ' ';
  position: absolute;
  z-index: 100;
  top: 30px;
  right: 30px;
  background-image: url(assets/info-icon.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.info-box {
  position: absolute;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
}

.info-box-bg {
  width: 1024px;
  height: auto;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.logo {
  width: 950px;
  height: auto;
}

.chooselevel-bg {
  width: 650px;
  height: auto;
}

.chooselevel-buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 20px;
  top: 130px;
}

.confirm-bg {
  width: 550px;
  height: auto;
}
/* 
.page[data-page~='chooselevel'] {
  max-height: 100vh;
} */

.complete1-bg {
  width: 550px;
  height: auto;
}

.crossword-puzzle .arrow-back {
  top: -70px;
}

@media (width < 48rem) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  body {
    min-height: 100vh;
    height: auto !important;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .info-box-bg {
    width: 95vw;
  }
  .logo {
    width: 95vw !important;
  }
  .press-button label {
    font-size: 24px;
  }

  .chooselevel-bg {
    width: 95vw;
  }
  .chooselevel-buttons {
    gap: 10px;
    top: 80px;
  }

  .confirm-bg {
    width: 95vw;
  }
  .exitconfirm-buttons {
    margin-top: 110px;
    gap: 30px;
  }
  .game-container {
    padding: 10px;
    max-height: fit-content;
  }
  .crossword {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .crossword-puzzle {
    border-radius: 10px;
  }
  .across-clues,
  .down-clues {
    border-radius: 10px;
  }
  .review > div {
    width: 95vw;
  }

  .complete1-bg {
    width: 95vw;
  }
  .complete1-buttons {
    margin-top: 140px;
    gap: 30px;
  }
  .crossword-puzzle {
    padding: 10px;
  }
  .crossword-puzzle .arrow-back {
    top: -50px;
    left: 10px;
  }
}
