/**
 * Set up a decent box model on the root element
 */
html {
  box-sizing: border-box;
}

/**
 * Make all elements from the DOM inherit from the parent box-sizing
 * Since `*` has a specificity of 0, it does not override the `html` value
 * making all elements inheriting from the root box-sizing value
 * See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  min-height: -moz-available;
  min-height: -webkit-fill-available;
  min-height: stretch;
}

body {
  background-color: #070819;
  color: #fff;
  margin: 0;
  font-family: "Manrope";
}

#gameWrapper {
  padding: 1rem;
}

#game,
#intro {
  display: flex;
  flex-direction: column;
}

#intro {
  justify-content: center;
  align-items: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-size: 1.4rem;
}

header h1 {
  line-height: 1rem;
}

header .wrapperHeader,
#score {
  display: flex;
  align-items: center;
}

#score {
  margin: 0 auto;
  background: url(images/score.png) no-repeat center center;
  background-size: cover;
  height: 150px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

span#pagination {
  color: #ff19f6;
  font-size: 1.4rem;
}

footer {
  margin-top: auto;
  text-align: center;
  margin-bottom: 2rem;
}

#intro {
  height: 100%;
  border: 1px solid #ff19f6;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

#gameWrapper {
  padding: 2rem;
  height: 100%;
  min-height: -moz-available;
  min-height: -webkit-fill-available;
  min-height: stretch;
}
@media (min-width: 1024px) {
  footer {
    margin-top: auto;
  }
  #game {
    overflow: auto;
    height: 100%;
    border: 1px solid #ff19f6;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
  }
}

#score {
  font-family: "Manrope", sans-serif;
}

#statement {
  clear: both;
  font-size: 1.3rem;
  font-weight: 400;
  font-family: "Manrope", sans-serif;
  margin-bottom: 1rem;
}

#timer {
  font-weight: 400;
  font-family: "Manrope", sans-serif;
  float: right;
}

.sortable {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-bottom: 0.5rem;
  float: left;
}

.sortable li {
  float: left;
  height: 50px;
  font-size: 0.9rem;
  align-items: center;
  font-family: "Ubuntu Mono";
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  color: #fff;
  background: url(images/piece.png) no-repeat center center;
  background-size: 100% 100%;
  box-sizing: border-box;
  margin: 0 2px;
}

footer,
ul.sortable {
  clear: both;
}

.wrong,
.right,
.next,
.review,
.run {
  display: none;
}

.wrong-row::after {
  content: "error";
  color: #ff1616;
  font-family: "Ubuntu Mono";
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 1rem;
}

.wrong {
  color: #ff1616;
  font-family: "Ubuntu Mono";
  clear: both;
  padding-top: 1rem;
  font-size: 1.2rem;
}

.right {
  color: #74f16a;
  font-family: "Ubuntu Mono";
  clear: both;
  padding-top: 1rem;
  font-size: 1.2rem;
}

footer {
  padding-top: 1rem;
}

.ui-state-disabled {
  opacity: 1 !important;
}

.run,
.next,
.review,
.play,
.jump,
#play {
  box-shadow: inset 0px 0px 7px 0px #ff19f6;
  font-family: "Ubuntu Mono", monospace;
  padding: 0.5rem 3rem;
  border: 1px solid #ff19f6;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

#rotate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070819;
  text-align: center;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 1.2rem;
}
#rotate img {
  display: block;
  width: 100px;
  margin-bottom: 1rem;
}

.counter {
  font-size: 3rem;
  color: #ff19f6;
  font-family: "Ubuntu Mono", monospace;
}

.go p {
  font-size: 1.5rem;
}
