@charset "UTF-8";
body {
  background-color: #f8f7f3;
  min-height: 100svh;
  width: 95%;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
}
body button, body input {
  font-family: "Montserrat", sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

button, input[type=radio], input[type=submit] {
  cursor: pointer;
  background-color: #F5D389;
  border-radius: 0.3125rem;
  border: none;
  transition: all 0.25s ease;
}
button:hover, input[type=radio]:hover, input[type=submit]:hover {
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  filter: brightness(85%);
}
button:active, button:focus, input[type=radio]:active, input[type=radio]:focus, input[type=submit]:active, input[type=submit]:focus {
  box-shadow: none;
  filter: brightness(100%);
}
button.disabled, input[type=radio].disabled, input[type=submit].disabled {
  background-color: #efa66f;
  box-shadow: none;
  filter: grayscale(75%) brightness(100%);
}

.disabled {
  background-color: #F5E9DA;
  cursor: not-allowed;
}

.undo-btn img {
  width: 2rem !important;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 85%;
  margin: 1.5rem auto;
}

.settings button {
  margin: 0 1rem;
  padding: 0.25rem;
  width: 3.5rem;
  height: 3.5rem;
}
.settings button img {
  width: 3rem;
}

.close-btn {
  background-color: #ef6449;
  position: absolute;
  display: inline-block;
  z-index: 99999;
  padding: 0.5rem;
  right: 0.5rem;
  top: 0.5rem;
}
.close-btn::before {
  content: "❌";
  display: flex;
  align-items: center;
  filter: brightness(0) invert(0);
}

header {
  width: 100%;
  background-color: #F5E9DA;
  border: 0.0625rem solid #F5E9DA;
  border-radius: 0.625rem;
  margin: 0 auto;
}

.task-window {
  flex-basis: 66%;
}

.add-task-window {
  flex-basis: 33%;
  display: flex;
  justify-content: center;
  max-height: 15rem;
}

li[draggable=true] {
  cursor: grab;
}

nav {
  padding: 0 20px;
}
nav ul {
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
nav li:nth-last-child(1) {
  margin-left: auto;
}
nav a {
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  color: #000;
  height: 8rem;
  display: flex;
  align-items: center;
  margin-right: 1rem;
}
nav a.disabled {
  pointer-events: none;
  cursor: default;
}
nav a:hover {
  transform: scale(1.025);
}
nav img {
  height: 8rem;
  margin-right: 1rem;
}
nav h1 {
  white-space: pre;
}

.site-name-long {
  display: block;
}

.site-name-middle {
  display: none;
}

.site-name-short {
  display: none;
}

html {
  scrollbar-gutter: stable;
}

.stop-scrolling {
  overflow: hidden;
  height: 100%;
}

.hidden {
  display: none !important;
}

footer {
  width: 100%;
  background-color: #F5E9DA;
  border: 0.0625rem solid #F5E9DA;
  border-radius: 0.625rem;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto auto 0 auto;
}

.scores {
  font-weight: 500;
  display: flex;
  margin: 2rem auto 0 auto;
  max-width: 25rem;
  justify-content: space-evenly;
}
.scores__wrapper {
  display: flex;
  background-color: #F5D389;
  border-radius: 0.3125rem;
  margin: 0 1rem;
  padding: 0.5rem;
  min-width: 5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gameboard {
  background-color: #f8f7f3;
  margin: 0.5rem 0 1rem 0;
  padding: 0.125rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: grid;
  grid-template-columns: repeat(4, 6rem);
  grid-template-rows: repeat(4, 6rem);
}
.gameboard__tile {
  background-color: #F5E9DA;
  border-radius: 0.5rem;
  font-size: 2rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gameboard__tile-wrapper {
  margin: 0.125rem;
  border-radius: 0.5rem;
  font-size: 2rem;
  background-color: #F5E9DA;
}
.gameboard .active-tile {
  z-index: 20;
  position: relative;
}
.gameboard .active-tile-combined {
  z-index: 40;
  position: relative;
}

.speed-control {
  padding: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.speed-control label {
  font-weight: 500;
  background-color: #F5D389;
  padding: 0.5rem;
  border-radius: 0.3125rem;
  margin: 0.5rem 0;
}
.speed-control div {
  display: flex;
  flex-direction: column;
}
.speed-control input {
  width: 15rem;
  margin: 0;
  margin-bottom: 0.125rem;
  accent-color: #efa66f;
}

datalist {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  writing-mode: vertical-lr;
  width: 15rem;
}

.speed-control-btn span {
  background-color: #F5D389;
  border-radius: 0.3125rem;
  padding: 0.25rem;
  font-weight: 500;
  position: relative;
  right: 1%;
}

option {
  padding: 0;
}

.controls {
  display: none;
  grid-template-columns: repeat(3, 5rem);
  grid-template-rows: repeat(2, 5rem);
  margin: 0 auto;
}
.controls__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0.25rem;
  margin: 0.125rem;
  font-size: 2rem;
}
.controls__arrow-left {
  grid-column: 1;
  grid-row: 2;
}
.controls__arrow-up {
  grid-column: 2;
  grid-row: 1;
}
.controls__arrow-right {
  grid-column: 3;
  grid-row: 2;
}
.controls__arrow-down {
  grid-column: 2;
  grid-row: 2;
}
.controls__arrow:after {
  display: inline-block;
  font-family: sans-serif;
  position: relative;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.controls__arrow img {
  height: 1.5rem;
}

.popup {
  z-index: 9999;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(210, 211, 251, 0.2);
  display: flex;
  justify-content: center;
  cursor: default;
}
.popup section {
  background-color: #F5E9DA;
  position: absolute;
  top: 25%;
}

.victory__submit {
  display: flex;
  align-items: center;
  height: 2rem;
}
.victory__submit input, .victory__submit button {
  margin: 0 1rem;
}

a.disabled {
  pointer-events: none;
}

.victory {
  padding: 1rem 5rem;
  max-width: 25rem;
  min-height: 15rem;
  text-align: center;
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.victory h2, .victory h3 {
  margin: 0.125rem;
}
.victory p {
  margin: 0.5rem 0;
}
.victory input {
  max-width: 10rem;
}
.victory button {
  padding: 0.5rem;
  margin: 1rem 0 0 0;
}
.victory button[type=submit] {
  margin: 0;
}
.victory img {
  margin: 0.5rem;
}

.leaderboard {
  padding: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.leaderboard h2 {
  text-align: center;
  margin: 1rem 0 0 0;
  padding: 1rem;
  border-radius: 0.3125rem;
  background-color: #F5D389;
}
.leaderboard ol {
  text-decoration: none;
  padding: 0;
}

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

.nuke {
  font-weight: 500;
  margin: 1rem 0 0 0;
  padding: 0.25rem;
  background-color: #efa66f;
}

@media only screen and (max-width: 1080px) {
  .main-container {
    width: 90%;
  }
}
@media only screen and (max-width: 1080px) {
  body {
    width: 95%;
  }
  nav h1 {
    white-space: normal;
  }
}
@media only screen and (max-width: 720px) {
  header {
    padding: 0.5rem 0;
  }
  nav {
    display: flex;
    justify-content: space-between;
    height: inherit;
  }
  nav a {
    margin: 0;
    height: inherit;
  }
  nav ul {
    height: inherit;
    margin: auto;
    width: 85%;
  }
  nav img {
    margin: 0;
    height: 5rem;
    width: auto;
  }
}
@media only screen and (max-width: 1080px) {
  .site-name-long {
    display: none;
  }
  .site-name-middle {
    display: block;
  }
  .site-name-short {
    display: none;
  }
}
@media only screen and (max-width: 720px) {
  .controls {
    display: grid;
  }
  .victory {
    max-width: 18rem;
    padding: 0.75rem;
  }
}
@media only screen and (max-width: 512px) {
  header {
    max-height: 4rem;
  }
  header a, header img {
    max-height: 4rem;
  }
  .settings button {
    margin: 0 0.5rem;
  }
  .speed-control {
    padding: 1.5rem 0.5rem;
  }
  .gameboard {
    grid-template-columns: repeat(4, 4.5rem);
    grid-template-rows: repeat(4, 4.5rem);
  }
  .controls {
    display: grid;
    grid-template-columns: repeat(3, 4rem);
    grid-template-rows: repeat(2, 4rem);
  }
  .controls__arrow {
    font-size: 2rem;
  }
  .speed-control {
    width: 90%;
  }
  .leaderboard {
    width: 90%;
    padding: 0.5rem;
  }
  .site-name-long {
    display: none;
  }
  .site-name-middle {
    display: none;
  }
  .site-name-short {
    display: block;
  }
}

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