:root {
  --colorA: rgb(234, 198, 69);
  --colorB: rgb(48, 62, 78);
  --colorC: #ba90c6;
  --colorD: #e8a0bf;
  --fontA: 'VT323', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
html {
  height: -webkit-fill-available;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

h1 small {
  font-size: 18px;
}

.themeA {
  --themeA: var(--colorA);
  --themeB: var(--colorB);
}

.themeB {
  --themeA: var(--colorB);
  --themeB: var(--colorA);
}

.themeC {
  --themeA: var(--colorC);
  --themeB: var(--colorD);
}

.optical-toy {
  background: var(--themeB);
  height: 100vh;
  padding: 15px;
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}

.optical-toy h2 {
  padding-left: 0;
}

.wrapper {
  display: flex;
}

.ad.right-ad {
  background: var(--themeB);
  display: flex;
  min-width: 180px;
  width: 180px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.the-toy {
  width: 100%;
  height: 100%;
  background: white;
  border: 3px solid var(--themeA);
  box-shadow:
    -1px 1px var(--themeA),
    -2px 2px var(--themeA),
    -3px 3px var(--themeA);
}

.menu {
  position: fixed;
  left: 0;
  top: 30px;
  z-index: 2;
}

.mainMenu,
.submenu {
  left: 0;
  padding: 10px;
  background: white;
  border-top: 2px solid;
  border-right: 2px solid;
  border-bottom: 2px solid;
  font-family: 'VT323', monospace;
  z-index: 2;
  top: auto;
  font-weight: bold;
  width: fit-content;
}

.submenu {
  margin-top: 5px;
  font-size: 18px;
}

.fit {
  width: 120px;
}

.more {
  margin-top: 80px;
}

.menu a,
.more a {
  color: inherit;
}

.menu h2,
.instructions h2 {
  padding-left: 0;
}

.the-toy {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  overflow: hidden;
  /* Hide scrollbars */
}

.align-center {
  justify-content: center;
  align-items: center;
}

.hide {
  display: none;
}

.themeC .the-toy,
.griddedBackground {
  background-color: #ffffff;
  background-image: linear-gradient(
      rgba(253, 204, 255, 0.06) 3.4000000000000004px,
      transparent 3.4000000000000004px
    ),
    linear-gradient(
      90deg,
      rgba(253, 204, 255, 0.06) 3.4000000000000004px,
      transparent 3.4000000000000004px
    ),
    linear-gradient(
      rgba(253, 204, 255, 0.06) 1.7000000000000002px,
      transparent 1.7000000000000002px
    ),
    linear-gradient(
      90deg,
      rgba(253, 204, 255, 0.06) 1.7000000000000002px,
      #ffffff 1.7000000000000002px
    );
  background-size:
    85px 85px,
    85px 85px,
    17px 17px,
    17px 17px;
  background-position: 50% 50%;
}

.instructions {
  font-family: 'VT323', monospace;
  position: absolute;
  bottom: 30px;
  right: 0px;
  max-width: 255px;
  background: white;
  border: 2px solid;
  z-index: 2;
}

.illusion {
  background: var(--colorA);
  padding-bottom: 30px;
}

.about {
  font-family: var(--fontA);
  max-width: 600px;
  margin: auto;
  font-size: 21px;
  background: var(--colorA);
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 25px;
}

.about h3 {
  font-size: 26px;
}

.about a {
  color: var(--colorB);
}

.about p {
  padding-left: 0;
  padding-right: 0;
}

.about strong {
  font-size: 26px;
}

.about ul {
  padding-left: 20px;
  margin-top: 10px;
}

.about li {
  margin-bottom: 10px;
}

.about blockquote {
  margin-left: 0px;
  border-left: 4px solid black;
  padding-left: 20px;
  font-size: inherit;
}

.disclaimer {
  font-style: italic;
}

.toms-link {
  display: inline-block;
}

.toms-link img {
  margin-bottom: -2px;
  width: 18px;
  height: 18px;
  display: block;
  filter: grayscale(1);
}

.how-and-what {
  padding: 10px;
}

h2 {
  margin-bottom: 5px;
}

.instructions p {
  font-size: 18px;
  padding: 0;
  margin: 0;
}

.ad.home-ad {
  vertical-align: top;
  display: inline-flex;
  width: 300px;
  margin-left: -25px;
  margin-right: 50px;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
}

.illusion .footer {
  margin: auto;
  text-align: center;
  font-family: var(--fontA);
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  border: 3px solid var(--colorB);
  box-shadow:
    -1px 1px var(--colorB),
    -2px 2px var(--colorB),
    -3px 3px var(--colorB);
  margin-bottom: 10px;
  background: white;
  padding: 10px 25px;
  gap: 10px;
  color: var(--colorB);
}

.illusion .footer a {
  color: inherit;
  text-decoration: none;
}

.mobile-ad {
  display: none;
}

/* Home */

.home {
  text-align: center;
  font-family: system-ui;
  background: var(--colorA);
  overflow-y: hidden;
}

.home h1 {
  margin-bottom: 20px;
  font-size: 60px;
  position: sticky;
  left: 150px;
}

.home footer {
  position: sticky;
  font-family: var(--fontA);
  left: 150px;
  font-size: 20px;
  display: flex;
  justify-content: center;
}

.home footer a {
  color: inherit;
}

.nofont {
  font-family: monospace;
  font-weight: bold;
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}

.home h1 a {
  color: black;
}

.toy-wrapper {
  height: 100vh;
  display: flex;
  width: fit-content;
  padding-left: 150px;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.toys {
  width: fit-content;
  white-space: nowrap;
}

.toy {
  width: 300px;
  display: inline-block;
  text-align: left;
  margin-right: 75px;
  vertical-align: top;
  text-decoration: none;
  color: black;
  position: relative;
}

.image {
  position: relative;
}

.image:hover .hover {
  opacity: 1;
}

.image .hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(48 62 78 / 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--colorA);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.image svg {
  width: 60px;
  height: 60px;
}

.banner {
  z-index: 3;
  position: relative;
}

.toy h2,
h1 {
  font-family: var(--fontA);
  text-decoration: none;
  color: inherit;
}

.toy h1,
h2,
p {
  padding-left: 5px;
  padding-right: 5px;
}

.toy h2 {
  margin-top: 20px;
  font-size: 30px;
  margin-bottom: 10px;
}

.toy p {
  font-family: var(--fontA);
  text-decoration: none;
  height: 80px;
  white-space: break-spaces;
  display: block;
  font-size: 22px;
}

.toy div {
  width: 100%;
  height: 440px;
  border: 3px solid var(--colorB);
  box-shadow:
    1px 1px var(--colorB),
    2px 2px var(--colorB),
    3px 3px var(--colorB);
  margin-bottom: 10px;
  background: deeppink;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.toy div img {
  object-fit: cover;
  width: 100%;
}

.animate {
  font-size: 15px;
  letter-spacing: 3px;
  animation-name: pulse;
  animation-duration: 3.5s;
  animation-iteration-count: infinite;
  transform-origin: center;
  display: inline-block;
  font-weight: bold;
  font-family: var(--fontA);
  position: absolute;
  top: 9px;
  left: 10px;
  background: var(--colorA);
  padding: 5px 4px 5px 7px;
  border: 2px solid var(--colorB);
  color: var(--colorB);
  box-shadow:
    1px 1px var(--colorB),
    2px 2px var(--colorB);
}

.clickable {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
  40% {
    transform: scale(1.1);
    animation-timing-function: ease-in;
  }
  100% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

gltf-modelviewer {
  display: block;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--colorA);
}

gltf-modelviewer canvas {
  width: 100%;
  height: 100%;
  filter: invert(21%) sepia(9%) saturate(1550%) hue-rotate(175deg)
    brightness(94%) contrast(88%);
}

.legal {
  background: var(--colorA);
}

.legal header {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 30px;
}

.legal header a,
.legal footer a {
  color: black;
}

.legal footer {
  font-size: 1.5em;
  margin-top: 30px;
}

.legal article {
  font-family: var(--fontA);
  max-width: 600px;
  margin: auto;
  padding-top: 60px;
  padding-bottom: 60px;
}

.legal a {
  color: var(--colorB);
}

.legal p,
.legal h1,
.legal h2,
.legal h3 {
  padding-left: 0;
  font-family: inherit;
}

.legal h1 {
  font-size: 2em;
}
.legal h2 {
  font-size: 1.7em;
}

.tp-lblv_l {
  padding-left: 0 !important;
}

.tp-colv_h,
.tp-colpv_rgb {
  display: none !important;
}

.desktop-ad {
  margin: 0.5em calc(50% - 49vw);
  height: 90px;
}

:root {
  --tp-base-border-radius: 0;
  /* --tp-font-family: var(--fontA); */
  --tp-base-background-color: hsla(230, 5%, 90%, 1);
  --tp-base-shadow-color: hsla(0, 0%, 0%, 0.1);
  --tp-button-background-color: hsla(230, 7%, 75%, 1);
  --tp-button-background-color-active: hsla(231, 7%, 60%, 1);
  --tp-button-background-color-focus: hsla(230, 7%, 65%, 1);
  --tp-button-background-color-hover: hsla(229, 7%, 70%, 1);
  --tp-button-foreground-color: hsla(230, 10%, 30%, 1);
  --tp-container-background-color: hsla(230, 15%, 30%, 0.2);
  --tp-container-background-color-active: hsla(230, 15%, 30%, 0.32);
  --tp-container-background-color-focus: hsla(230, 15%, 30%, 0.28);
  --tp-container-background-color-hover: hsla(230, 15%, 30%, 0.24);
  --tp-container-foreground-color: hsla(230, 10%, 30%, 1);
  --tp-groove-foreground-color: hsla(230, 15%, 30%, 0.1);
  --tp-input-background-color: hsla(230, 15%, 30%, 0.1);
  --tp-input-background-color-active: hsla(230, 15%, 30%, 0.22);
  --tp-input-background-color-focus: hsla(230, 15%, 30%, 0.18);
  --tp-input-background-color-hover: hsla(230, 15%, 30%, 0.14);
  --tp-input-foreground-color: hsla(230, 10%, 30%, 1);
  --tp-label-foreground-color: hsla(230, 10%, 30%, 0.7);
  --tp-monitor-background-color: hsla(230, 15%, 30%, 0.1);
  --tp-monitor-foreground-color: hsla(230, 10%, 30%, 0.5);
}

@media screen and (max-width: 700px) {
  .home {
    overflow: auto;
  }

  .home h1 {
    position: relative;
    font-size: 40px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 35px;
  }

  .toy-wrapper {
    padding: 30px;
    display: block;
    width: auto;
  }

  .toys {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .home .toy {
    margin: auto;
    margin-bottom: 20px;
  }

  .home .toy div {
    height: 300px;
  }

  .home .footer {
    position: relative;
    margin: auto;
    left: auto;
    margin-bottom: 20px;
    display: block;
    padding-bottom: 50px;
  }

  .ad.home-ad {
    margin: auto;
    margin-bottom: 30px;
    margin-top: -20px;
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 700px) {
  .optical-toy {
    width: 100%;
    height: calc(100vh - 150px);
  }

  .ad.right-ad {
    display: none;
  }

  .instructions {
    border-right: none;
  }

  .mobile-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .desktop-ad {
    display: none;
  }
}
