@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  src: url("/fonts/Poppins-Medium.ttf");
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  src: url("/fonts/Poppins-ExtraBold.ttf");
}
@font-face {
  font-family: "Poppins";
  font-weight: 900;
  font-style: italic;
  src: url("/fonts/Poppins-BlackItalic.ttf");
}
:root {
  --pre-background: white;
  --background: floralwhite;
  --foreground: #222;
  --border: #d4d4d4;
  --puzzle-background: white;
  --glass: rgba(255, 255, 255, 0.8);
  --highlight-color: yellow;
  --input-color: darkviolet;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pre-background: black;
    --background: #333;
    --foreground: snow;
    --border: grey;
    --puzzle-background: black;
    --glass: rgba(0, 0, 0, 0.8);
    --highlight-color: rgb(69, 69, 21);
    --input-color: rgb(232, 163, 60);
  }
}
* {
  padding: 0;
  margin: 0;
}

html {
  overflow: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  background-color: var(--pre-background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  box-sizing: border-box;
  transition: background-color 500ms ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[data-state=loaded], body.wordy {
  background-color: var(--background);
}

main {
  max-width: 600px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

h2 {
  text-transform: uppercase;
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
}

.solved {
  background-color: var(--glass);
  backdrop-filter: blur(2px);
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.25s;
}
.solved[data-state=hidden] {
  display: none;
}
.solved[data-state=pre-show] {
  opacity: 0;
}
.solved[data-state=show] {
  opacity: 1;
}

.time,
.best {
  font-size: 22px;
}

.retry {
  padding-top: 20px;
}

.swiper,
.h-swiper,
.v-swiper {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.swiper[data-state=show],
.h-swiper[data-state=show],
.v-swiper[data-state=show] {
  opacity: 1;
}

.swiper-slide {
  overflow: hidden;
}

.screen {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-left {
  padding-right: 50px;
}

.swipe-right {
  text-align: right;
}

.swipe-up span,
.swipe-left span,
.swipe-right span,
.swipe-down span,
.mode span {
  display: block;
}
.swipe-up strong,
.swipe-left strong,
.swipe-right strong,
.swipe-down strong,
.mode strong {
  font-size: 28px;
}

.swipe-up,
.swipe-down {
  text-align: center;
}

.welcome-body {
  display: flex;
  gap: 60px;
  flex-direction: column;
  padding: 20px;
  font-size: 22px;
  line-height: 1.2;
}

.mode {
  text-align: center;
  opacity: 0.6;
  transform: scale(0.9);
  margin-bottom: -50px;
}
.mode strong {
  font-size: 26px;
}

.guide,
.guide2 {
  position: absolute;
  width: 450px;
  height: 450px;
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  z-index: 1;
}
.guide-item,
.guide2-item {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.guide2 {
  width: 500px;
  height: 500px;
}