:root {
	--default-opacity: 0.05;
}

body {
	background-color: #011;
	margin: 0;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;

	&& div {
		background-color: #000;
		opacity: 0;
		margin: 0;
		height: 100dvh;
		width: 100%;
		position: fixed;
		z-index: -1;
		transition: opacity 0.25s ease-out;
	}

	&& h1 {
		color: #AF1;
		font-family: monospace, serif;
		text-shadow: 0 0 5px #AAFF11, 0 0 10px #AAFF11, 0 0 20px #AAFF11, 0 0 40px #AAFF11;
		animation: respirar 0.07s ease-in-out infinite alternate;
		pointer-events: none;
		user-select: none;
		filter: blur(1px);
		font-size: 2rem;
	}

	&& h1 > #msg {
		outline: none;
	}

	&& h1 > .cursor-blink {
      animation: blink 1s steps(1, start) infinite;
      opacity: 1;
    }

    && a {
	  position: absolute;
	  bottom: 5px;
	  right: 5px;
	  font-family: monospace, serif;
	  text-decoration: none;
	  color: #AF1;
	  text-shadow: 0 0 3px #AAFF11, 0 0 6px #AAFF11;
	  user-select: none;
	  filter: blur(0.5px);
	  font-size: 0.9rem;
	  padding: 40px 50px;
	}

	&& video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      z-index: -1;
      pointer-events: none;
      animation: fadeInOut 50s ease-in-out forwards;
    }
}

.visible {
  opacity: 1;
  z-index: 1;
}

@keyframes respirar {
  from {
    text-shadow:
      0 0 5px  #AAFF11,
      0 0 10px #AAFF11,
      0 0 20px #AAFF11,
      0 0 25px #AAFF11;
      filter: blur(0.75px);
      font-size: 2rem;
  }
  to {
    text-shadow:
      0 0 6px  #AAFF11,
      0 0 12px #AAFF11,
      0 0 22px #AAFF11,
      0 0 27px #AAFF11;
      filter: blur(1.25px);
      font-size: 2.005rem;
  }
}

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: var(--default-opacity);
  }
  90% {
    opacity: var(--default-opacity);
  }
  100% {
    opacity: 0;
  }
}