
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;

  /* stripes pattern */
  background: repeating-linear-gradient(
    -45deg,
    yellow 0 10px,
    black 10px 20px
  );

  /* mask everything except the border area */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  /* border width (controls frame thickness) */
  padding: 6px;
  box-sizing: border-box;
}
html::after{
  content: '🔴 AMBIENTE DE PRUEBAS 🔴';

  position: absolute;
  top: 0px;
  left: 50%;
  z-index: 10000;
  /* pointer-events: none; */
  transform: translateX(-50%);

  background-color: yellow;
  color: black;
  font-size: 16px;
  font-weight: 700;
  font-family: sans-serif;
  border-radius: 0 0 10px 10px;
  border-width: 0px 2px 2px 2px;
  border-style: solid;
  border-color: black;

  text-align: center;
  min-width: 60vw;

  /* key: compute letter-spacing for the 22 gaps */
  /* clamp prevents absurd negative/huge values on very small screens */
  letter-spacing: clamp(
    0px,
    calc((50vw - 23ch) / 22),
    1vw
  );
}

/*
html::after {
  content: '⚠ AMBIENTE DE PRUEBAS ⚠';

  position: absolute;
  top: 0px;
  left: 50%;
  z-index: 10000;
  pointer-events: none;
  transform: translateX(-50%);

  letter-spacing: 0.4vw;
  background-color: yellow;
  color: black;
  font-size: 20px;
  font-weight: 600;
  font-family: sans-serif;
  border-radius: 0 0 10px 10px;
  border-width: 0px 2px 2px 2px;
  border-style: solid;
  border-color: black;

  text-align: center;
  min-width: 60vw;
} */

/*
html::after {
  content: '🔴🔴🔴 AMBIENTE DE PRUEBAS 🔴🔴🔴';

  position: fixed;
  bottom: 4px;
  left: 50%;
  z-index: 9999;
  transform: translateX(-50%);

  background-color: black;
  color: yellow;
  padding: 2px 4px;
  font-size: 19px;
  font-weight: 900;
  font-family: monospace;
  border-radius: 10px 10px 0 0;
  text-align: center;
  min-width: 400px;

  pointer-events: none;
} */

/*
html::after {
  content: '🔴ESTE ES UN AMBIENTE DE PRUEBAS🔴';

  position: fixed;
  top: 0px;
  z-index: 9999;
  animation: scroll-left-to-right 20s linear infinite;

  background-color: black;
  color: yellow;
  padding: 2px 4px;
  font-size: 16px;
  font-weight: 900;
  font-family: monospace;
  border-radius: 0 0 15px 15px;

  pointer-events: none;
}

@keyframes scroll-left-to-right {
  0% {
    transform: translateX(-400px);
  }
  100% {
    transform: translateX(100vw);
  }
} */


/*
@keyframes scroll-left-to-right {
  0% {
    transform: translateX(-400px);
  }
  100% {
    transform: translateX(100vw);
  }
}

@keyframes scroll-right-to-left {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-400px);
  }
}

html::before {
  content: '🔴ESTE ES UN AMBIENTE DE PRUEBAS🔴';

  position: fixed;
  top: 20vh;
  z-index: 9999;
  animation: scroll-left-to-right 31s linear infinite;

  opacity: 0.6;
  background-color: orange;
  color: black;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 900;
  font-family: monospace;
  border-radius: 20px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) !important;

  pointer-events: none;
}


html::after {
  content: '🔴ESTE ES UN AMBIENTE DE PRUEBAS🔴';

  position: fixed;
  bottom: 20vh;
  z-index: 9999;
  animation: scroll-right-to-left 37s linear infinite;

  opacity: 0.6;
  background-color: orange;
  color: black;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 900;
  font-family: monospace;
  border-radius: 20px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) !important;

  pointer-events: none;
} */


