html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#mobile {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  font-family: cursive;

  div {
    color: white;
    font-size: 2em;
    background-color: #7000ff;
    border: 1px solid white;
    border-radius: 0.4em;
    padding: 0.4em;
    font-weight: bold;
    text-align: center;
    margin: 1em;
  }
}

#container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  background-color: black;
  padding: 0;
  height: 100%;
}

#image-logo {
  position: absolute;
  top: 5vmin;
  left: 7vmin;
  width: 17vw;
  opacity: 0.6;
  max-width: 200px;
}

.image-logo-gameover {
  -webkit-animation: image-logo-gameover 0.7s ease-in-out both;
  animation: image-logo-gameover 0.7s ease-in-out both;
}

@-webkit-keyframes image-logo-gameover {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes image-logo-gameover {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.image-logo-gameover-revert {
  -webkit-animation: image-logo-gameover-revert 0.7s ease-in-out both;
  animation: image-logo-gameover-revert 0.7s ease-in-out both;
}

@-webkit-keyframes image-logo-gameover-revert {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@keyframes image-logo-gameover-revert {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

#background {
  border: 0px solid white;
  border-radius: 6px;
  width: 100%;
  height: 400px;
  position: absolute;
  left: 0;
  filter: grayscale(0) saturate(0.5)
}

.background-gameover {
  -webkit-animation: background-gameover 0.7s ease-in-out both;
  animation: background-gameover 0.7s ease-in-out both;
}

@-webkit-keyframes background-gameover {
  0% {
    -webkit-filter: grayscale(0) saturate(0.5);
  }

  100% {
    filter: grayscale(1) saturate(0.5)
  }
}

@keyframes background-gameover {
  0% {
    -webkit-filter: grayscale(0) saturate(0.5);
  }

  100% {
    filter: grayscale(1) saturate(0.5)
  }
}

.background-gameover-revert {
  -webkit-animation: background-gameover-revert 0.7s ease-in-out both;
  animation: background-gameover-revert 0.7s ease-in-out both;
}

@-webkit-keyframes background-gameover-revert {
  0% {
    -webkit-filter: grayscale(1) saturate(0.5);
    filter: grayscale(1) saturate(0.5);
  }

  100% {
    -webkit-filter: grayscale(0) saturate(0.5);
    filter: grayscale(0) saturate(0.5);
  }
}

@keyframes background-gameover-revert {
  0% {
    -webkit-filter: grayscale(1) saturate(0.5);
    filter: grayscale(1) saturate(0.5);
  }

  100% {
    -webkit-filter: grayscale(0) saturate(0.5);
    filter: grayscale(0) saturate(0.5);
  }
}

#main-panel {
  width: 242px;
  position: relative;
  border-radius: 18px 0px 0px 18px;
  border: 1px solid white;
  overflow: hidden;
}

#container-board-menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px 0px 0px 18px;
  border: 1px solid white;
  overflow: hidden;
  padding: 2px;
}

#board {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px 0px 0px 18px;
  border: 1px solid transparent;
  padding: 1px;
  z-index: 1;
  backdrop-filter: blur(15px);
}

#menu {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 240px;
  height: 480px;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: 18px 0px 0px 18px;
  backdrop-filter: blur(15px);
  left: 100%;
  position: relative;
  overflow: auto;
}

#menu::-webkit-scrollbar {
  display: none;
}

#menu .title {
  color: white;
  margin: 10px 0 20px 0;
  font-family: cursive;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

#menu .description {
  color: white;
  font-family: cursive;
  text-align: justify;
  margin: 10px 7% 30px 7%;
  font-style: oblique;
  font-size: 1em;
  line-height: 1.8em;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

.description>img {
  height: 1.5em;
  vertical-align: middle;
}

#menu>img {
  width: 90%;
  height: min-content;
  border-radius: 20px;
  border: 2px dashed white;
}

#grid {
  background-color: rgba(0, 0, 0, 60%);
  border-radius: 18px 0px 0px 18px;
}

#game {
  position: absolute;
  left: 1px;
  border: 0px solid white;
  border-radius: 18px 0px 0px 0px;
}

.game-round-border {
  border-radius: 18px 0px 0px 18px !important;
}

#info-panel {
  display: flex;
  flex-flow: column wrap;
  border: 0px solid white;
  margin: 0 0 0 10px;
}

#container-next-figure-panel,
#container-score-panel {
  display: flex;
  border-radius: 0px 20px;
  border: 1px solid white;
  position: relative;
  padding: 2px;
}

#container-next-figure-panel {
  border-radius: 0px 20px;
  flex-grow: 1;
  margin-bottom: 10px;
}

#container-score-panel {
  border-radius: 20px 0px;
  flex-grow: 2;
}

#next-figure-panel,
#score-panel {
  /* border: 1px solid white; */
  backdrop-filter: blur(15px);
}

#next-figure-panel {
  flex-grow: 1;
  /* margin-bottom: 10px; */
  border-radius: 0px 20px;
}

#score-panel {
  flex-grow: 2;
  justify-content: space-between;
  border-radius: 20px 0px;
}

#next-figure-panel,
#score-panel {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
}

#next-figure-value {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed white;
  height: 60%;
  width: 80%;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 60%);
}

#score-panel>div {
  width: 80%;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}

#controls-container {
  margin: 10px 0;
  width: 80%;
  height: 40px;
  font-weight: bold;
  font-family: cursive;
  border-radius: 20px 4px;
  margin-top: 40px;
  filter: blur(25px);
  opacity: 0;
}

.controls-container-unblur {
  opacity: 1 !important;
  -webkit-animation: controls-container-unblur 0.45s ease-in-out both;
  ;
  animation: controls-container-unblur 0.45s ease-in-out both;
  ;
}

@-webkit-keyframes controls-container-unblur {
  0% {
    -webkit-filter: blur(25px);
    filter: blur(25px);
  }

  100% {
    -webkit-filter: blur(0px);
    filter: blur(0px);
  }
}

@keyframes controls-container-unblur {
  0% {
    -webkit-filter: blur(25px);
    filter: blur(25px);
  }

  100% {
    -webkit-filter: blur(0px);
    filter: blur(0px);
  }
}

.svg-container {
  display: inline-block !important;
  position: relative;
  width: 100%;
  padding-bottom: 0%;
  vertical-align: middle;
  overflow: hidden;
}

.svg-content {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

#next-figure-title,
#score-title,
#lines-title {
  color: white;
  text-transform: uppercase;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
  font-family: cursive;
}

#score-value,
#lines-value {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  height: 40px;
  border-radius: 10px;
  color: white;
  font-size: 25px;
}

.rotate-center {
  -webkit-animation: rotate-center 2.5s cubic-bezier(0.5, 0, 0.5, 1) infinite alternate;
  animation: rotate-center 2.5s cubic-bezier(0.5, 0, 0.5, 1) infinite alternate;
}

/* ----------------------------------------------
 * Generated by Animista on 2022-12-26 12:13:3
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation rotate-center
 * ----------------------------------------
 */
@-webkit-keyframes rotate-center {
  0% {
    -webkit-transform: rotate(4deg);
    transform: rotate(4deg);
  }

  100% {
    -webkit-transform: rotate(-4deg);
    transform: rotate(-4deg);
  }
}

@keyframes rotate-center {
  0% {
    -webkit-transform: rotate(4deg);
    transform: rotate(4deg);
  }

  100% {
    -webkit-transform: rotate(-4deg);
    transform: rotate(-4deg);
  }
}

.slide-out-left {
  -webkit-animation: slide-out-left 1.02s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-out-left 1.02s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.slide-in-right {
  -webkit-animation: slide-in-right .85s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-in-right .85s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation-delay: 500ms;
}

@-webkit-keyframes slide-out-left {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 1px;
    opacity: 1;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 1px;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: -80%;
    opacity: 0.5;
    border-color: transparent;
  }
}

@keyframes slide-out-left {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 1px;
    opacity: 1;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 1px;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: -80%;
    opacity: 0.5;
    border-color: transparent;
  }
}

@-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: scale(1);
    transform: scale(0.9);
    left: 100%;
    opacity: 0.5;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 1px;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 1px;
    opacity: 1;
    border-color: transparent;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: scale(1);
    transform: scale(0.9);
    left: 100%;
    opacity: 0.5;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 0%;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 0%;
    opacity: 1;
    border-color: transparent;
  }
}

.slide-out-right {
  -webkit-animation: slide-out-right 1.02s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-out-right 1.02s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.slide-in-left {
  -webkit-animation: slide-in-left .85s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-in-left .85s cubic-bezier(0op.250, 0.460, 0.450, 0.940) both;
  animation-delay: 550ms;
}

@-webkit-keyframes slide-out-right {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 0%;
    opacity: 1;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 100%;
    opacity: 0.5;
    border-color: transparent;
  }
}

@keyframes slide-out-right {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 0%;
    opacity: 1;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 0%;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 100%;
    opacity: 0.5;
    border-color: transparent;
  }
}

@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: scale(1);
    transform: scale(0.9);
    left: -80%;
    opacity: 0.5;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 1px;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 1px;
    opacity: 1;
    border-color: transparent;
  }
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: scale(1);
    transform: scale(0.9);
    left: -80%;
    opacity: 0.5;
    border-color: transparent;
  }

  50% {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    left: 1px;
    opacity: 1;
    border-color: white;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    left: 1px;
    opacity: 1;
    border-color: transparent;
  }
}

#container-game-over {
  position: absolute;
  display: none;
  align-items: center;
  opacity: 0;
  height: 200px;
  width: 200px;
  border: 3px dashed white;
  z-index: 8;
  background: transparent;
  justify-content: center;
  border-radius: 50%;
}

#container-game-over>img {
  position: absolute;
  max-width: 60%;
  height: auto;
  top: 50%;
  transform: translateY(-56%);
}

.swirl-in-fwd {
  display: flex !important;
  -webkit-animation: swirl-in-fwd 0.7s ease-out both;
  animation: swirl-in-fwd 0.7s ease-out both;
}

/* ----------------------------------------------
 * Generated by Animista on 2023-1-3 19:43:42
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation swirl-in-fwd
 * ----------------------------------------
 */
@-webkit-keyframes swirl-in-fwd {
  0% {
    -webkit-transform: rotate(-540deg) scale(0);
    transform: rotate(-540deg) scale(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes swirl-in-fwd {
  0% {
    -webkit-transform: rotate(-540deg) scale(0);
    transform: rotate(-540deg) scale(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.slide-out-blurred-top {
  display: flex !important;
  -webkit-animation: slide-out-blurred-top 0.45s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
  animation: slide-out-blurred-top 0.45s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2023-1-3 21:1:21
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-out-blurred-top
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-blurred-top {
  0% {
    -webkit-transform: translateY(0) scaleY(1) scaleX(1);
    transform: translateY(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-1000px) scaleY(2) scaleX(0.2);
    transform: translateY(-1000px) scaleY(2) scaleX(0.2);
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-filter: blur(40px);
    filter: blur(40px);
    opacity: 0;
  }
}

@keyframes slide-out-blurred-top {
  0% {
    -webkit-transform: translateY(0) scaleY(1) scaleX(1);
    transform: translateY(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-1000px) scaleY(2) scaleX(0.2);
    transform: translateY(-1000px) scaleY(2) scaleX(0.2);
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-filter: blur(40px);
    filter: blur(40px);
    opacity: 0;
  }
}

#reset-btn {
  display: none;
}

.reset-btn-show {
  display: inherit !important;
}

#menu-btn:hover,
#start-stop-btn:hover,
#reset-btn:hover {
  fill: rgba(255, 255, 255, 0.25);
}

.start-stop-icon-slide-center {
  -webkit-animation: start-stop-icon-slide-center 0.7s ease-in-out both;
  animation: start-stop-icon-slide-center 0.7s ease-in-out both;
}

@-webkit-keyframes start-stop-icon-slide-center {
  0% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }

  100% {
    -webkit-transform: translateX(20%);
    transform: translateX(20%);
  }
}

@keyframes start-stop-icon-slide-center {
  0% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }

  100% {
    -webkit-transform: translateX(20%);
    transform: translateX(20%);
  }
}

.start-stop-icon-slide-center-revert {
  -webkit-animation: start-stop-icon-slide-center-revert 0.7s ease-in-out both;
  animation: start-stop-icon-slide-center-revert 0.7s ease-in-out both;
}

@-webkit-keyframes start-stop-icon-slide-center-revert {
  0% {
    -webkit-transform: translateX(20%);
    transform: translateX(20%);
  }

  100% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

@keyframes start-stop-icon-slide-center-revert {
  0% {
    -webkit-transform: translateX(20%);
    transform: translateX(20%);
  }

  100% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

.controls-fade {
  -webkit-animation: controls-fade 0.7s ease-in-out both;
  animation: controls-fade 0.7s ease-in-out both;
}

@-webkit-keyframes controls-fade {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0;
    display: none;
  }
}

@keyframes controls-fade {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0;
    display: none;
  }
}

.controls-fade-revert {
  -webkit-animation: controls-fade-revert 0.7s ease-in-out both;
  animation: controls-fade-revert 0.7s ease-in-out both;
}

@-webkit-keyframes controls-fade-revert {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes controls-fade-revert {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

#menu-icon {
  transform-origin: 150px 48px;
}

.rotate-left {
  -webkit-animation: rotate-left 1350ms ease-in-out both;
  animation: rotate-left 1350ms ease-in-out both;
}

/* ----------------------------------------------
 * Generated by Animista on 2023-1-4 2:4:16
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation rotate-left
 * ----------------------------------------
 */
@-webkit-keyframes rotate-left {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }

  100% {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
}

@keyframes rotate-left {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }

  100% {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
}

.rotate-right {
  -webkit-animation: rotate-right 1350ms ease-in-out both;
  animation: rotate-right 1350ms ease-in-out both;
}

/* ----------------------------------------------
 * Generated by Animista on 2023-1-4 2:4:16
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation rotate-left
 * ----------------------------------------
 */
@-webkit-keyframes rotate-right {
  0% {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }

  100% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
}

@keyframes rotate-right {
  0% {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }

  100% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
}

#container-start-first-time {
  position: absolute;
  display: flex;
  align-items: center;
  opacity: 1;
  height: 200px;
  width: 200px;
  border: 3px dashed white;
  z-index: 2;
  justify-content: center;
  border-radius: 50%;
}

#container-start-first-time:hover {
  border-color: #ff7f00 !important;
  backdrop-filter: blur(2px);
}

#start-first-time-btn {
  height: 50px;
  width: 140px;
  border-radius: 10px;
  border: 3px solid white;
  font-family: cursive;
  color: white;
  background: transparent;
  text-align: center;
  text-transform: uppercase;
  font-size: 28px;
  backdrop-filter: blur(14px);
  /* font-weight: bold; */
}

#start-first-time-btn:hover {
  color: #f8d807;
  border-color: #adc35e;
  backdrop-filter: blur(30px) !important;
}
