body, html {
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: black;
}

#bg-img {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

#page-fade {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 1;
	pointer-events: none;
	transition: opacity 1s ease;
	z-index: 9999;
}

#page-fade.loaded {
	opacity: 0; /* Diminue progressivement */
}

#page-fade.active {
	opacity: 1;
	pointer-events: auto;
}

.blur-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(5, 0, 0, 0.3);
	backdrop-filter: blur(3px);
	border-radius: 1.5vw;
	padding: 0.5vw;
	z-index: 100;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px red, -2px -2px blue; }
    25% { text-shadow: -2px -2px red, 2px 2px blue; }
    50% { text-shadow: 2px -2px blue, -2px 2px red; }
    75% { text-shadow: -2px 2px red, 2px -2px blue; }
    100% { text-shadow: 2px 2px red, -2px -2px blue; }
}

.glitch {
    font-weight: bold;
    color: white;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    position: relative;
    animation: glitch 0.5s infinite;
}

h1 {
	font-family: 'VT323', monospace;
	font-size: 1.5vw;
	text-align: center;
}

.a {
	text-decoration: none;
	color: inherit;
}

.nav img {
	cursor: pointer;
	transition: 0.3s;
}

.nav img:hover {
	transform: scale(1.2);
}

.nav img:active {
	transform: scale(1);
}

#close {
    position: fixed;
    top: 1%;
    right: 1%;
	height: auto;
	width: 3vw;
	cursor: alias;
}

