/*!************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[1].use[2]!./js/styles/_all.scss ***!
  \************************************************************************************************************************************************/
@import url(https://fonts.bunny.net/css?family=almarai:300,400,700,800);
/*!****************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[1].use[2]!./js/styles/_all.scss (1) ***!
  \****************************************************************************************************************************************************/
/*******************************************************************************
 * Pages
 ******************************************************************************/
/*******************************************************************************
 * Components
 ******************************************************************************/
* {
  font-family: "Almarai", sans-serif;
}

body {
  overscroll-behavior: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #14161f;
  color: #e7e7ea;
}

h3 {
  margin: 0;
}

h2 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.column {
  flex-direction: column;
}

.center {
  justify-content: center;
}

.between {
  justify-content: space-between;
}

.middle {
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-0 {
  gap: 0px;
}

.gap-2 {
  gap: 0.5rem;
}

.full {
  width: 100%;
}

.sm {
  font-size: 0.75em;
}

.mt-4 {
  margin: 1rem;
}

.screen {
  height: 100vh;
}

.label {
  font-family: "Almarai", sans-serif;
  color: #7a7d8c;
}
.label.full {
  width: 100%;
}

.value {
  font-family: "Almarai", sans-serif;
  color: #e7e7ea;
  min-width: 75px;
  text-align: right;
}

#game-page {
  display: none;
}

#tetris {
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
  touch-action: none;
  display: block;
}

.game {
  touch-action: none;
  overscroll-behavior: none;
  box-sizing: border-box;
  width: 100dvw;
  height: 100dvh;
  padding: 0.5rem;
  overflow: hidden;
}
.game *, .game *::before, .game *::after {
  box-sizing: inherit;
}
.game__board {
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "left  left" "right main";
  gap: 0.5rem;
  height: 100%;
  width: 100%;
}
.game__board__item--left {
  grid-area: left;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}
.game__board__item--left .card {
  gap: 0;
  padding: 0.4rem 0.6rem;
}
.game__board__hold {
  width: 90px;
}
.game__board__score {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.375rem !important;
  width: 90px;
}
.game__board__score .label, .game__board__score .value {
  font-size: 0.7em;
}
.game__board #game-pause {
  padding: 0;
  height: 62px;
  width: 40px;
  flex-shrink: 0;
  margin-bottom: 5px;
}
.game__board__item--right {
  grid-area: right;
  min-width: 0;
  min-height: 0;
  gap: 0.4rem;
  padding: 0.4rem;
}
.game__board__item--right .card__title {
  font-size: 0.8em;
  margin: 0;
}
.game__board__item--right .card__content {
  overflow-y: auto;
}
.game__board__item--main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.game__board__item--main #tetris {
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .game {
    touch-action: auto;
    overscroll-behavior: auto;
    padding: 1rem;
  }
  .game #game-pause {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: none;
    transition: none;
    position: static;
    background-color: transparent;
    border: 2px solid #26D9D9;
    color: #26D9D9;
    transition: background-color 0.1s ease-in;
  }
  .game #game-pause:hover {
    color: white;
    background-color: #26D9D9;
  }
  .game__board {
    grid-template-columns: 200px max-content 200px;
    grid-template-rows: 1fr;
    grid-template-areas: "left main right";
    gap: 1.5rem;
    justify-content: center;
  }
  .game__board__item--left {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow-y: auto;
  }
  .game__board__item--left .card {
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }
  .game__board__hold {
    width: 100%;
    aspect-ratio: 2/1;
  }
  .game__board__score {
    height: 200px;
  }
  .game__board__score .label, .game__board__score .value {
    font-size: 1em;
  }
  .game__board__item--right {
    gap: 1rem;
    padding: 1rem;
    min-height: 0;
    overflow-y: auto;
  }
  .game__board__item--main {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .game__board__item--main #tetris {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1/2;
  }
}

html, body {
  overflow: hidden;
  height: 100dvh;
  width: 100dvw;
}
@media (max-width: 768px) {
  html, body {
    touch-action: none;
    overscroll-behavior: none;
  }
}

#main-menu-page {
  display: block;
}

.main-menu {
  max-width: 300px;
}
.main-menu__subtitle {
  text-align: center;
  font-size: 1em;
  font-weight: 500;
  color: #7a7d8c;
  letter-spacing: 4px;
}
.main-menu__title {
  text-align: center;
}
.main-menu__title__letter {
  font-weight: bold;
  color: #26D9D9;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 3px;
}
.main-menu__title__letter.t1 {
  color: #4D8FDE;
}
.main-menu__title__letter.t2 {
  color: #9B6BDB;
}
.main-menu__title__letter.e {
  color: #F2C94C;
}
.main-menu__title__letter.r {
  color: #F2994A;
}
.main-menu__title__letter.i {
  color: #26D9D9;
}
.main-menu__title__letter.s {
  color: #6FCF97;
}
.main-menu .hero {
  margin-bottom: 4rem;
}

#game-over-modal {
  display: block;
}

#game-over-score-list-loading {
  padding: 1rem 0rem;
}

.game-over {
  width: 300px;
}
.game-over__hero {
  border-bottom: 1px solid #2a2d3a;
  padding-bottom: 1rem;
}
.game-over__hero--title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 700;
  font-size: 1em;
  color: #0a2626;
}
.game-over__hero--score {
  font-size: 3em;
  color: #e7e7ea;
  padding: 0px;
}
.game-over__hero--subtitle {
  font-size: 1em;
  color: #a7a9b5;
}
.game-over__title {
  font-size: 1em;
  color: #a7a9b5;
}
.game-over__list {
  padding: 0.25rem 1rem;
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}
.game-over__list > li {
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.15rem 0rem;
}
.game-over__list > li > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-over__list--number {
  color: #a7a9b5;
}
.game-over__list--name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-over .card__content {
  border-bottom: 1px solid #2a2d3a;
  padding-bottom: 1rem;
}

#pause-game-modal {
  display: none;
}

.pause {
  width: 300px;
  padding: 1.5rem;
  gap: 1.5rem;
}
.pause > .card__title {
  color: #e7e7ea;
  padding: 1rem 0;
}
.pause__list {
  display: flex;
  flex-direction: column;
  padding: 0px 2rem;
  width: 100%;
  box-sizing: border-box;
}
.pause__list > button {
  margin-bottom: 1rem;
}

#custom-game-page {
  display: none;
}

.custom-game {
  background: #14161f;
  color: #e7e7ea;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  /* HEADER */
}
.custom-game__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 0rem 0rem 0.5rem 0rem;
  border-bottom: 1px solid #2a2d3a;
  font-family: "Almarai", sans-serif;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0;
  margin-bottom: 1.5rem;
}
.custom-game__title {
  font-family: "Almarai", sans-serif;
  font-size: 1em;
  font-weight: bold;
  margin: 0;
}
.custom-game {
  /* CONTENT */
}
.custom-game__container {
  margin: auto;
  max-width: 700px;
}
.custom-game__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin: auto;
}
@media (min-width: 560px) {
  .custom-game__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
  }
}
.custom-game__section {
  border: none;
}
.custom-game__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.custom-game__field.range {
  gap: 1rem;
}
.custom-game__field label {
  font-size: 0.75em;
  color: #7a7d8c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-game__field output {
  color: #26D9D9;
  font-size: 0.75em;
}

#how-to-play-modal {
  display: none;
}

.how-to-play {
  width: 500px;
  height: 80vh;
  overflow-y: scroll;
}
.how-to-play p {
  margin: 0px;
}
.how-to-play .content {
  position: relative;
}
.how-to-play__close {
  position: absolute;
  top: 0px;
  left: -8px;
}
.how-to-play .modal__title {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
}
.how-to-play .modal__paragraph {
  color: #e7e7ea;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.how-to-play .modal__section-title {
  color: #a7a9b5;
  font-size: 1.25rem;
}
.how-to-play .modal__key {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(38, 217, 217, 0.12);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 0.25rem;
}

.card {
  padding: 1rem;
  background-color: #1e2130;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card__title {
  color: #7a7d8c;
  margin: 0;
}
.card__content canvas {
  background-color: #1e2130;
}
.card .card {
  background-color: rgb(42, 47, 69);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}
.modal__content {
  width: 100%;
  height: 100%;
}

button {
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: "Almarai", sans-serif;
  font-weight: bold;
  font-size: 1em;
  top: 0px;
  background: #26D9D9;
  color: #0a2626;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px #1c9c9c;
  transition: box-shadow 0.1s ease-in, top 0.1s ease-in;
}
button.sm {
  padding: 4px;
  font-size: 1em;
}
button.inverted {
  color: #7a7d8c;
  border: none;
  background-color: none;
  box-shadow: none !important;
  background: none !important;
}
button.inverted:hover {
  color: #e7e7ea;
  top: 0px;
}
button.inverted:active {
  color: #e7e7ea;
  top: 0px;
}
button:hover {
  box-shadow: 0 4px #1c9c9c;
  top: 2px;
}
button:active {
  box-shadow: 0 0px #1c9c9c;
  top: 6px;
}

input[type=text],
input[type=number],
select {
  background: #14161f;
  border: 0.5px solid #3a3d4a;
  color: #e7e7ea;
  border-radius: 6px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  box-sizing: border-box;
  text-align: left;
}
input[type=text]:focus,
input[type=number]:focus,
select:focus {
  outline: none;
  border-color: #26D9D9;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7a7d8c 50%), linear-gradient(135deg, #7a7d8c 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #3a3d4a;
  border-radius: 2px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #26D9D9;
  cursor: pointer;
  border: none;
}
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #26D9D9;
  cursor: pointer;
  border: none;
}
input[type=range]::-moz-range-track {
  background: #3a3d4a;
  height: 4px;
  border-radius: 2px;
}

/*# sourceMappingURL=main.css.map*/