
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b0b12;
  flex-direction: column;
  overflow-x: hidden;
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: min(760px, 94vw);
  box-sizing: border-box;
  padding: 14px;
  filter: drop-shadow(rgba(0, 0, 0, 0.5) 0 4px 20px);
  margin: 40px 10px;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  border: 12px solid transparent;
  border-image: url("https://geometrydash.com/assets/GJ_square01.png") 25 fill / 12px;
  transform-origin: center;
  pointer-events: none;
}

h1 {
  font-family: 'Pusab', sans-serif;
  font-size: 40px;
  color: #FFFFFF;
  -webkit-text-stroke: 2px black;
  text-align: center;
}

p {
  font-family: 'Pusab', sans-serif;
  font-size: 20px;
  color: #FFFFFF;
  -webkit-text-stroke: 1px black;
  text-align: center;
  width: 80%;
}

.backgroundTrack {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  display: flex;
  width: max-content;
  height: 100vh;
  animation: scrollBackground 60s linear infinite;
  filter: hue-rotate(var(--background-hue, 0deg)) saturate(var(--background-saturation, 1.2));
  transition: filter 300ms ease;
  pointer-events: none;
}

.backgroundTrack img {
  display: block;
  width: 100vw;
  min-width: 100vw;
  height: 100%;
  margin-right: -3px;
  object-fit: cover;
}

.backgroundTrack img:nth-child(even) {
  transform: scaleX(-1);
}

@keyframes scrollBackground {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 32px;
  }

  p {
    font-size: 16px;
    width: 95%;
  }
}
