
/*Experiement*/

@import url("https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap");

* {
  box-sizing: border-box;
}

.word {
  color: white; /* Adjust as needed */
} 
html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  place-content: center;
  grid-template-areas: "body";
  background: #3231FF;
  color: white;
  overflow: hidden;
}

body::before {
  --size: 150vmax;
  --bg-size: 50%;

  content: "";
  grid-area: body;
  width: var(--size);
  height: var(--size);
  opacity: var(--pattern-opacity, 1);
  background-color: #FFEDAF;

  /* Pattern from https://heropatterns.com/ */
  background-image: url("https://cdn.glitch.global/97d89041-e710-4867-90ba-aa863b347dbe/final?v=1713914356220");

  background-size: var(--bg-size);
  background-repeat: none;
  animation: var(--pattern-animation, pattern 20s linear infinite);
}

h1 {
  grid-area: body;
  position: relative;
  display: flex;
  align-items: center;
  font-family: 'Righteous', sans-serif;
  font-size: calc(1rem + 15vmin);
  line-height: 0.9;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #FFEDAF;
}

h1 span {
  display: block;
}

button {
  display: none;
  cursor: pointer;
  position: fixed;
  bottom: 5vh;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  font-family: 'Righteous', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: blue;
  background: white;
  border: 1px solid transparent;
  border-radius: 360px;
  box-shadow: 0 6px 6px -3px hsla(0 0% 0% / 0.1);
}

@keyframes pattern {
  to {
    background-position: calc(var(--size) * -1) calc(var(--size) * -1);
  }
}

/* JS available and motion OK */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  body {
    --pattern-opacity: 0;
  }

  h1 {
    opacity: 0;
  }
}

/* JS disabled or reduced motion enabled */
@media (scripting: none), (prefers-reduced-motion) {
  h1 {
    display: flex;
    flex-direction: column;
  }

  .hash {
    display: none;
  }
}

@media (prefers-reduced-motion) {
  body {
    --pattern-animation: none;
  }
}
