:root {
  --purple: rgb(123, 31, 162);
  --violet: rgb(103, 58, 183);
  --pink: rgb(244, 143, 177);
}

@keyframes background-pan {
  from {
    background-position: 0% center;
  }

  to {
    background-position: -200% center;
  }
}

@keyframes scale {
  from,
  to {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(180deg);
  }
}

body {
  display: grid;
  margin: 0px;
  place-items: center;
}

h1 {
  color: white;
  direction: rtl !important;
  display: flex; /* Change to flex for easier centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  font-family: 'Kalameh-Black' !important;
  font-size: clamp(2em, 2vw, 4em);
  font-weight: 400;
  margin: 0px;
  padding: 20px;
}

h1 > .magic {
  display: flex; /* Use flex for easier layout */
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center horizontally */
}

h1 > .magic > .magic-star {
  --size: clamp(30px, 1.9vw, 40px);

  animation: scale 700ms ease forwards;
  display: block;
  height: var(--size);
  left: var(--star-left);
  position: absolute;
  top: var(--star-top);
  width: var(--size);
}

h1 > .magic > .magic-star > svg {
  animation: rotate 1000ms linear infinite;
  display: block;
  opacity: 0.7;
}

h1 > .magic > .magic-star > svg > path {
  fill: var(--violet);
}

h1 > .magic > .magic-text {
  /* Keep existing styles, but remove text-align: center if using flex */
  animation: background-pan 3s linear infinite;
  background: linear-gradient(
    to right,
    var(--purple),
    var(--violet),
    var(--pink),
    var(--purple)
  );
  font-size: 4rem;
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: normal;
}


.content__inner {
    padding: 0 1rem !important;
}



