@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	display: grid;
	place-items: center;

	--bkg: #5eb3fd;
	--white: #e7e6e6;

	background-color: var(--white);
	background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
}

.container {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.title h1 {
	font-size: 25vmin;
	font-weight: 900;
	font-family: "Montserrat", sans-serif;
	color: black;
}

.ghost {
	width: 36vmin; /* Triple del tamaño original */
	height: 36vmin; /* Triple del tamaño original */
	position: relative;
	background-color: black;
	background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
	opacity: 0.9;
	mix-blend-mode: exclusion;
	animation: ghostMove 8s ease-in-out infinite;
}
@keyframes ghostMove {
	0%, 100% {
		transform: translateX(-35em);
	}
	50% {
		transform: translateX(35em);
	}
}

.ghost::before,
.ghost::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6vmin; /* Triple del tamaño original */
	height: 36vmin; /* Triple del tamaño original */
	background-color: var(--white);
	transform: translate(-50%, -50%) rotate(45deg);
}

.ghost::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.ghost div {
	display: none;
}
