:root {
	--iframeWidth: 550;
}

* {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

body {
	position: absolute;
	min-height: 100%;
	width: 100%;
	background: #1e1e1e;
}

#bg {
	top: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(60deg, hsl(125, 37%, 74%), hsla(160, 56%, 41%, 0.5));
	z-index: -1;
}

nav a[href="/projets"] {
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 0.25);
	background: hsl(0, 0%, 93%, 0.05);
	padding: 7.5px;
}

h1 {
	text-align: center;
	margin: calc(1em + 42px + 4rem) auto;
	margin-bottom: 4rem;
}

h2 {
	margin-bottom: 1.5rem;
}

h1, h2, h3, p, ul, a {
	color: #fff;
}

#projects {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-between;
	margin: 0 5rem;
}

#projects > .project, .project-group {
	margin-bottom: 2rem;
}

.project {
	background: hsl(0, 0%, 93%, 0.05);
	padding: 1rem;
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	border-radius: 15px;
	width: calc(var(--iframeWidth) * 1px);
}

iframe {
	background: #fff;
	border-radius: 50px;
	filter: blur(10px);
	pointer-events: none;
	width: 100%;
	height: 100%;
}

#iframe-container {
	position: relative;
	margin-bottom: 1rem;
	width: calc(var(--iframeWidth) * 1px);
	height: calc(1080px / 1920 * var(--iframeWidth));
}

#iframe-scaler {
	transform: scale(calc(var(--iframeWidth) / 1920));
	transform-origin: top left;
	width: 1920px;
	height: 1080px;
}

img {
	margin-right: .5rem;
	width: 1em;
}

.project a {
	display: flex;
	width: max-content;
	margin: auto;
  align-items: center;
}

p {
	margin-bottom: 1rem;
}

.project-group {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.link {
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 100;
	width: 100%;
	height: 100%;
	position: absolute;
}

.btn {
	text-decoration: none;
	padding: .5rem 2rem;
	color: #fff;
	background: hsl(0, 0%, 93%, 0.05);
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	box-shadow: 8px 8px 8px hsl(0, 0%, 0%, 1);
	border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.btn:hover {
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 1);
}

.btn:focus {
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 1) inset;
}

@media (max-width: 1350px) {
	:root {
		--iframeWidth: 275;
	}

	#projects {
		justify-content: space-around;
		align-items: center;
		margin: 0 1rem;
	}

	.project-group {
		gap: 2rem
	}
}