
@font-face {
    font-family: "VT323";
    src: url(../../sources/fonts/VT323-Regular.ttf);
}

button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

input[type=text] {   
    padding: 2px;
	background: none;
	border: none;
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

h1, p {
    margin: 0;
	text-shadow: 5px 0 5px #fff, -2px 0 5px #fff, 0 2px 5px #fff, 0 -2px 5px #fff,
               1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

body {
	height: 100vh;
    margin: 0;
    
	background-color: black;
    font-family: VT323;

	overflow: hidden;
}

#background {
	display: none;

	position: fixed;
	left: 0;
	top: 0;

	width: 100%;
	min-width: 400px;
	height: 100%;
	max-height: 100vh;

	z-index: -999;
}

#background img {
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
}

#main {
	display: none;

	max-width: 1000px;
	min-width: 300px;
	width: 100%;
	max-height: 100vh;
	margin-left: auto;
	margin-right: auto;
	margin-top: 50px;

	overflow: auto;
	scrollbar-width: none;
}

/* ---------------------------------- */

#windowContainer {
	display: none;

	position: fixed;
	left: 0;
	top: 0;

	width: 100%;
	height: 100%;
	max-height: 100vh;

	overflow: auto;
}

#windowBorder {
	width: 80%;
	min-width: 300px;
	max-width: 850px;
	height: 90vh;
	min-height: 600px;

	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, 0);

	border: 25px solid transparent;
    border-image: url(../sources/images/bordure.png) 150 / 300px round;

	z-index: 999;

	user-select: none;
	pointer-events: none;
}

#window {
	width: 80%;
	min-width: 300px;
	max-width: 850px;
	height: 90vh;
	min-height: 600px;

	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, 5vh);

	z-index: 50;
}

#windowBackground {
	width: 100%;
	height: 100%;

	z-index: -1;

	box-shadow: 0 0 50px black;
}

#windowBackground img {
	width: 100%;
	height: 100%;
	image-rendering: pixelated;

	filter: brightness(20%);
}

#windowContent {
	width: calc(100% - 50px);
	height: 100%;
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	padding-left: 25px;

	display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
}

#windowContent h1 {
	text-align: center;
	color: rgb(219, 219, 219);
	text-shadow: 5px 0 1px #000000, -2px 0 1px #000000, 0 2px 1px #000000, 0 -2px 1px #000000,
               1px 1px #777777, -1px -1px #ffffff, 1px -1px #ffffff, -1px 1px #5e5e5e;
}

#windowTitle {
	font-size: clamp(1.5rem, 5vw, 3rem);
}

#windowContent p {
	text-align: center;
	color: rgb(224, 224, 224);
	text-shadow: 5px 0 1px #000000, -2px 0 1px #000000, 0 2px 1px #000000, 0 -2px 1px #000000,
               1px 1px #777777, -1px -1px #4e4e4e, 1px -1px #ffffff, -1px 1px #5e5e5e;
}

#localisation {
	margin-top: 5px;
	text-align: center;
	font-size: clamp(1.5rem, 5vw, 2.5rem);
}

#windowButtons {
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

#windowButtons button {
	color: rgb(255, 255, 255);
	text-shadow: 5px 0 1px #000000, -2px 0 1px #000000, 0 2px 1px #000000, 0 -2px 1px #000000,
               1px 1px #777777, -1px -1px #ffffff, 1px -1px #ffffff, -1px 1px #5e5e5e;
	font-size: clamp(1rem, 4vw, 2rem);
	text-decoration: underline;
	margin: 20px;
}

#windowButtons button:active {
	transform: translate(5px, 5px);
}

/* ----------------------------------- */

#title {
	padding: 30px;
	width: calc(100% - 60px);
	max-width: 1000px;
	min-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

#title img {
	width: 100%;
	image-rendering: pixelated;

	filter: drop-shadow(5px 10px 5px rgb(255, 255, 255));

	z-index: 999;
}

#infos {
	width: fit-content;
	margin-left: auto;
	margin-right: auto;

	text-align: center;
}

#date h1 {
	font-size : clamp(2rem, 10vw, 5rem);
}

#artistes {
	width: 75%;
	margin: 50px auto 500px auto;
}

#artistes img {
	width: 100%;
	image-rendering: pixelated;

	filter: drop-shadow(5px 5px 2px rgb(255, 255, 255));
}

#description {
	width: 100%;

	margin-top: 20px;
}

#description p {
	text-align: center;
	font-size: clamp(0.7rem, 1.2vw, 1.1rem);
	text-shadow: none;

	padding: 0 clamp(0.5rem, 5vw, 5rem);
}

#ouvrir {
	margin-top: 50px;
	color: rgb(255, 255, 255);
	text-shadow: 5px 0 1px #000000, -2px 0 1px #000000, 0 2px 1px #000000, 0 -2px 1px #000000,
               1px 1px #777777, -1px -1px #ffffff, 1px -1px #ffffff, -1px 1px #5e5e5e;
	font-size: clamp(1rem, 4vw, 2rem);
	text-decoration: underline;
}

#ouvrir:active {
	transform: translate(5px, 5px);
}