/* stylelint-disable declaration-colon-newline-after */
/* stylelint-disable value-list-comma-newline-after */

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

/**
* ----------------------------------------
* animation jello-vertical
* ----------------------------------------
*/
@-webkit-keyframes jello-vertical {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(0.75, 1.25, 1);
  }

  40% {
    transform: scale3d(1.25, 0.75, 1);
  }

  50% {
    transform: scale3d(0.85, 1.15, 1);
  }

  65% {
    transform: scale3d(1.05, 0.95, 1);
  }

  75% {
    transform: scale3d(0.95, 1.05, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes jello-vertical {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(0.75, 1.25, 1);
  }

  40% {
    transform: scale3d(1.25, 0.75, 1);
  }

  50% {
    transform: scale3d(0.85, 1.15, 1);
  }

  65% {
    transform: scale3d(1.05, 0.95, 1);
  }

  75% {
    transform: scale3d(0.95, 1.05, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

/**
* ----------------------------------------
* animation flip-vertical-right
* ----------------------------------------
*/
@-webkit-keyframes flip-vertical-right {
  0% {
    transform: rotateY(0);
  }

  100% {
    transform: rotateY(180deg);
  }
}

@keyframes flip-vertical-right {
  0% {
    transform: rotateY(0);
  }

  100% {
    transform: rotateY(180deg);
  }
}

.flip-vertical-right {
  -webkit-animation: flip-vertical-right 0.4s
    cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation: flip-vertical-right 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955)
    both;
}

/*  */

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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes slideoutleft {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-200%, 0);
  }
}

@keyframes slideoutleft {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-200%, 0);
  }
}

@-webkit-keyframes slideinleft {
  0% {
    opacity: 0;
    transform: translate(200%, 0);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes slideinleft {
  0% {
    opacity: 0;
    transform: translate(200%, 0);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@-webkit-keyframes slideoutright {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(200%, 0);
  }
}

@keyframes slideoutright {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(200%, 0);
  }
}

@-webkit-keyframes slideinright {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  100% {
    opacity: 1;
    transform: translate(10%, 0);
  }
}

@keyframes slideinright {
  0% {
    opacity: 0;
    transform: translate(-200%, 0);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@font-face {
  font-family: "LEMON MILK";
  font-style: normal;
  font-weight: normal;
  src: local("LEMON MILK Regular"), local("LEMONMILK-Regular"),
    url("fonts/LEMONMILK-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: italic;
  font-weight: 500;
  src: local("LEMON MILK Medium Italic"), local("LEMONMILK-MediumItalic"),
    url("fonts/LEMONMILK-MediumItalic.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: italic;
  font-weight: normal;
  src: local("LEMON MILK Regular Italic"), local("LEMONMILK-RegularItalic"),
    url("fonts/LEMONMILK-RegularItalic.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: normal;
  font-weight: 300;
  src: local("LEMON MILK Light"), local("LEMONMILK-Light"),
    url("fonts/LEMONMILK-Light.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: normal;
  font-weight: bold;
  src: local("LEMON MILK Bold"), local("LEMONMILK-Bold"),
    url("fonts/LEMONMILK-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: italic;
  font-weight: bold;
  src: local("LEMON MILK Bold Italic"), local("LEMONMILK-BoldItalic"),
    url("fonts/LEMONMILK-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: italic;
  font-weight: 300;
  src: local("LEMON MILK Light Italic"), local("LEMONMILK-LightItalic"),
    url("fonts/LEMONMILK-LightItalic.woff2") format("woff2");
}

@font-face {
  font-family: "LEMON MILK";
  font-style: normal;
  font-weight: 500;
  src: local("LEMON MILK Medium"), local("LEMONMILK-Medium"),
    url("fonts/LEMONMILK-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "saxMono";
  font-style: normal;
  font-weight: normal;
  src: local("saxMono"), url("fonts/saxMono.woff2") format("woff2");
}

body,
html {
  background: #609bdb;
  box-sizing: border-box;
  font-family: "saxMono", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
  height: 100%;
  inset: 0;
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  padding-top: 2%;
  position: absolute;
  z-index: 1;
}

/* .gradient {dabisomo@nu.bj
-webkit-animation: rotate var(--speed) var(--easing) alternate infinite;
animation: rotate var(--speed) var(--easing) alternate infinite;
background: linear-gradient(75deg,hwb(300 0% 29%),hsl(255, 100%, 58%));
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
-webkit-filter: blur(calc(var(--size) / 7));
filter: blur(calc(var(--size) / 7));
height: calc(var(--size));
width: var(--size);
z-index: -4;
--size: 80vh;
--speed: 35s;
--easing: ease-in-out;
overflow: hidden;
}
.centerbg {
overflow: hidden;
align-items: center;
display:flex;
inset:0;
justify-content: center;
position: absolute;
} */
.gameboard {
  aspect-ratio: 1/1;
  box-sizing: border-box;
  display: grid;
  gap: 3px;
  grid-column: 3/11;
  grid-row: 2/3;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  opacity: 0;
  position: relative;
  transform: translateX(100vw);
  width: clamp(300px, 65%, 540px);
  z-index: 1;
}

.gameboard-info {
  align-items: center;
  align-self: flex-end;
  color: white;
  display: flex;
  flex-flow: row wrap;
  grid-column: 3/11;
  grid-row: 2/3;
  justify-content: space-evenly;
  text-align: center;
  transform: translateX(200%);
  width: 100%;
}

.cell {
  align-items: center;
  background: none;
  border: 3px solid #ffffff96;
  border-radius: 4px;
  box-sizing: border-box;
  color: transparent;
  display: flex;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(50px, 7rem, 100px);
  font-weight: 900;
  justify-content: center;
  min-height: 90px;
  min-width: 90px;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.clicked {
  pointer-events: none;
}

h1 {
  color: white;
  cursor: default;
  font-family: "LEMON MILK", "Gill Sans", "Gill Sans MT", Calibri,
    "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 8vw, 4.8rem);
  margin: 0;
  text-align: center;
  z-index: 5;
}

.wrapper {
  align-items: center;
  display: grid;
  grid-auto-rows: -webkit-max-content;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 80px 100% 70px;
  height: 80%;
  justify-items: center;
  max-height: 100vh;
}

header {
  grid-column: 1/13;
  grid-row: 1/2;
}

footer {
  align-self: end;
  color: white;
  cursor: default;
  grid-column: 1/13;
  grid-row: 3/4;
}

.mainscreen,
.settingsscreen {
  color: white;
  grid-column: 3/11;
  grid-row: 2/3;
  position: relative;
  width: 100%;
  z-index: 4;
}

.settingsscreen {
  align-self: normal;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  max-height: 80vh;
  text-align: center;
  transform: translateX(-200%);
  width: clamp(300px, 100%, 900px);
}

* {
  transition: all 0.25s ease-out;
}

.mainmenu {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: clamp(2rem, 5vw, 3rem);
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hideleft {
  -webkit-animation: slideoutleft 0.7s ease-in forwards;
  animation: slideoutleft 0.7s ease-in forwards;
}

.showleft {
  -webkit-animation: slideinleft 0.7s ease-in forwards;
  animation: slideinleft 0.7s ease-in forwards;
}

.hideright {
  -webkit-animation: slideoutright 0.7s ease-in forwards;
  animation: slideoutright 0.7s ease-in forwards;
}

.showright {
  -webkit-animation: slideinright 0.7s ease-in forwards;
  animation: slideinright 0.7s ease-in forwards;
}

.hidden {
  transform: translateX(100vw);
  transition-delay: 1s;
  visibility: hidden;
}

.settingsbuttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.btn {
  border: none;
  border-radius: var(--height);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-block;
  height: var(--height);
  margin: 15px;
  position: relative;
  text-transform: uppercase;
  width: var(--width);

  --width: 200px;
  --height: calc(var(--width) / 5);
}

.btn:hover {
  background: #dbc960;
  width: 220px;
}

.btn_main {
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.btn_main::after {
  background-color: #dbc960;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  width: 100%;
}

footer:hover,
.btn_main:hover {
  letter-spacing: 4px;
}

.btn_main:hover::after {
  scale: 1.3em;
  transform: scaleX(1);
  transform-origin: bottom left;
}

#message {
  color: white;
  font-size: clamp(1rem, 3vw, 1.5rem);
  position: absolute;
  text-align: center;
  top: -50px;
  width: 100%;
}

.endgame {
  align-items: center;
  background-color: #609bdb;
  display: flex;
  grid-column: 1/13;
  grid-row: 2/3;
  height: 100%;
  justify-content: center;
  position: relative;
  transition: all 0.7s linear;
  width: 100%;
  z-index: 7;
}

.endgame_message {
  color: white;
  font-family: "LEMON MILK", "Gill Sans", "Gill Sans MT", Calibri,
    "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.9;
  padding-top: 1rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.win {
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-flow: column nowrap;
  height: 80%;
  justify-content: space-around;
  position: absolute;
  transition: all 0.7s linear;
  width: 80%;
}

.flexdiv {
  align-items: center;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

/* switch button */

.toggle {
  --width: 80px;
  --height: calc(var(--width) / 3);

  border-radius: var(--height);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-block;
  height: var(--height);
  position: relative;
  width: var(--width);
}

footer a {
  color: #dbc960;
  cursor: pointer;
  text-decoration: none;
}

.toggle input {
  display: none;
}

.toggle .slider {
  background-color: #ccc;
  border-radius: var(--height);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: all 0.4s ease-in-out;
  width: 100%;
}

.toggle .slider::before {
  background-color: #fff;
  border-radius: calc(var(--height) / 2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  content: "";
  height: calc(var(--height));
  left: 0;
  position: absolute;
  top: 0;
  transition: all 0.4s ease-in-out;
  width: calc(var(--height));
}

.toggle input:checked + .slider {
  background-color: #2196f3;
}

.toggle input:checked + .slider::before {
  transform: translateX(calc(var(--width) - var(--height)));
}

.toggle .labels {
  align-items: center;
  display: flex;
  font-size: 12px;
  height: 100%;
  left: 0;
  position: absolute;
  transition: all 0.4s ease-in-out;
  width: 100%;
}

.marker {
  aspect-ratio: 1/1;
}

.toggle .labels::after {
  color: #4d4d4d;
  content: attr(data-off);
  opacity: 1;
  position: absolute;
  right: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease-in-out;
}

.toggle .labels::before {
  color: #fff;
  content: attr(data-on);
  left: 5px;
  opacity: 0;
  position: absolute;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease-in-out;
}

.toggle input:checked ~ .labels::after {
  opacity: 0;
}

.toggle input:checked ~ .labels::before {
  opacity: 1;
}

.flexdiv2 {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.flexdiv > fieldset {
  border: none;
  display: flex;
  flex-flow: column nowrap;
}

.markerdiv,
.colordiv {
  display: grid;
  font-size: 2rem;
  gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  grid-template-rows: 1fr;
  width: 100%;
}

.settingscolor,
.settingsmarker {
  align-items: flex-end;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.settingscolor:hover,
.settingsmarker:hover {
  scale: 1.2;
}

.settingscolor:active,
.settingsmarker:active {
  box-shadow: 0 0 0 2px #dbc960;
}

label {
  margin: 0.7rem;
}

.selectedOption {
  border: 2px solid #dbc960;
}

h1 span {
  display: inline-block;
}

h1 span:nth-of-type(1) {
  -webkit-animation: jello-vertical 0.9s ease-in-out 400ms both;
  animation: jello-vertical 0.9s ease-in-out 400ms both;
}

h1 span:nth-of-type(3) {
  -webkit-animation: jello-vertical 0.9s ease-in-out 1300ms both;
  animation: jello-vertical 0.9s ease-in-out 1300ms both;
}

h1 span:nth-of-type(5) {
  -webkit-animation: jello-vertical 0.9s ease-in-out 2200ms both;
  animation: jello-vertical 0.9s ease-in-out 2200ms both;
}

.scores {
  width: 150px;
}

.scores span {
  cursor: default;
  display: block;
  font-size: 1.5rem;
  font-weight: 1000;
}

input[type="text"] {
  border: none;
  border-radius: 4px;
  outline: none;
}
