html, body {
	height: 100vh;
	width: 100vw;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: fixed;
	background-color: #1e1e1e;
}

@font-face {
	font-family: "Minecraft Seven";
	src: url("assets/fonts/minecraft-seven.otf") format("truetype");
}

@font-face {
	font-family: "Minecraft Ten";
	src: url("assets/fonts/minecraft-ten.otf") format("truetype");
}

#background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	transform: scale(1.05);
	transform-origin: center center;
	z-index: -1;
}

.blur-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	filter: blur(30px);
	transform: translateZ(0);
	will-change: filter;
	min-width: 100vw;
	min-height: 100vh;
}

.blur-container-long {
	transition: filter 1s ease-out;
}
.blur-container-short {
	transition: filter 0.3s ease-out;
}

.blur-container.blur-active {
	filter: blur(30px);
}

.blur-container.un-blurred {
	filter: blur(0px);
}

.animation-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	transform: scale(1.05);
	transform-origin: center center;
	display: none;
	z-index: -1;
	min-width: 100vw;
	min-height: 100vh;
}

.animation-frame.visible {
	display: block;
}

.loading-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	width: 100px;
	height: 100px;
	text-align: center;
	z-index: 2;
	background: rgb(56, 56, 56);
	padding: 40px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 10px solid #ffffff22;
	border-radius: 0;
	clip-path: polygon(
	0px 10px, 10px 10px, 10px 0px, calc(100% - 10px) 0px, 
	calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), 
	calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 
	10px 100%, 10px calc(100% - 10px), 0px calc(100% - 10px)
	);
}
.loading-percentage {
	font-size: 24px;
	color: #ffffff;
	font-family: "Minecraft Seven";
	bottom: 15px;
	position: absolute;
	text-shadow: 2px 2px 0px #000000;
}

#loading-circle {
	width: 80px;
	height: 80px;
	display: block;
	image-rendering: pixelated;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	bottom: 0;
	margin: 0;
}

.main-menu {
	z-index: 10;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	color: #ffffff;
	font-family: "Minecraft Seven";
	overflow: hidden;
}

.main-menu #header {
	font-size: 80px;
	margin: 32px 0 0 0;
	padding: 0;
	font-family: "Minecraft Ten";
	position: relative;
	text-shadow: 2px 2px 0px #000000;
	width: 100%;
	text-align: center;
}

.main-menu .menu {
	margin-bottom: 50px;
}

.main-menu .menu-item {
	font-size: 24px;
	margin: 0 0 20px 0;
	padding: 10px 32px;
	width: 320px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #e0e0e0 0%, #bcbcbc 100%);
	border: 4px solid #888888;
	/* border-radius: 8px; */
	box-shadow: 0 4px 0 #888888, 0 8px 16px #00000033;
	cursor: pointer;
	align-self: center;
	color: #222222;
	font-family: "Minecraft Seven";
	letter-spacing: 1px;
}

.main-menu .menu-item:hover {
	background: linear-gradient(180deg, #f5f5f5 0%, #d6d6d6 100%);
	border-color: #aaaaaa;
	box-shadow: 0 2px 0 #aaaaaa, 0 8px 24px #00000044;
}

@keyframes menuScaleIn {
	0% {
		scale: 10;
	}
	100% {
		scale: 1;
	}
}

@keyframes menuBlurOut {
	0% {
		filter: blur(30px);
	}
	100% {
		filter: blur(0px);
	}
}

.dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100vw - 40px);
	max-width: 600px;
	min-width: 200px;
	padding: 20px;
	background: linear-gradient(180deg, #e0e0e0 0%, #bcbcbc 100%);
	border: 4px solid #888888;
	/* border-radius: 8px; */
	clip-path: polygon(
	0px 5px, 5px 5px, 5px 0px, calc(100% - 5px) 0px, 
	calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), 
	calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 
	5px 100%, 5px calc(100% - 5px), 0px calc(100% - 5px)
	);
	box-shadow: 0 4px 0 #888888, 0 8px 16px #00000033;
	color: #1e1e1e;
	z-index: 20;
	display: none;
	flex-direction: column;
	box-sizing: border-box;
	top: -30%;
	animation: dialogSlideIn 0.3s ease-out forwards,
	menuBlurOut 0.3s ease-out forwards;
}

.dialog-slide-out {
	animation: dialogSlideOut 0.3s ease-in forwards;
}

@keyframes dialogSlideIn {
	0% {
		top: -30%;
		opacity: 0;
	}
	100% {
		top: 50%;
		opacity: 1;
	}
}
@keyframes dialogSlideOut {
	0% {
		top: 50%;
		opacity: 1;
	}
	100% {
		top: -30%;
		opacity: 0;
	}
}

.dialog-header {
	margin: 0 0 10px 0;
	font-size: 26px;
	text-align: center;
	font-family: "Minecraft Ten";
	height: 40px;
	line-height: 40px;
	color: #1e1e1e;
	text-shadow: 2px 2px 0px white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog-content {
	background-color: #1e1e1e;
	color: #d0d0d0;
	font-family: "Minecraft Seven";
	padding: 20px;
	overflow: hidden;
	border: 2px solid #bdbdbd;
	
	/* box-shadow: 2px 2px 0px white; */
	
}

.dialog button {
	margin-top: 20px;
	padding: 10px 32px;
	/* width: 320px; */
	width: 100%;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #e0e0e0 0%, #bcbcbc 100%);
	border: 4px solid #888888;
	/* border-radius: 8px; */
	box-shadow: 0 4px 0 #888888, 0 8px 16px #00000033;
	cursor: pointer;
	color: #222222;
	font-family: "Minecraft Seven";
	letter-spacing: 1px;
	font-size: 24px;
	align-self: center;
	/* transition: background 0.2s, box-shadow 0.2s, border 0.2s; */
}

.dialog button:hover {
	background: linear-gradient(180deg, #f5f5f5 0%, #d6d6d6 100%);
	border-color: #aaaaaa;
	box-shadow: 0 2px 0 #aaaaaa, 0 8px 24px #00000044;
}

.dialog-content-container {
	gap: 10px;
	display: flex;
	flex-direction: column;
}
.item-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.icon{
	width: 64px;
	height: 64px;
	margin-right: 10px;
	position: relative;
	left: 0;
	image-rendering: pixelated;
}
.skill-text{
	font-size: 24px;
	order: 2;
	text-align: left;
}
.skill-caption{
	text-align: right;
	font-size: 14px;
	color: #888;
}

.skill-text-container {
	display: flex;
	gap: 10px;
	flex-direction: column-reverse;
	justify-content: center;
	align-items: flex-end;
}

#projects-dialog .dialog-content {
	height: 400px;
	padding: 1px;
	
}

#projects-dialog img {
	/* filter: invert(1); */
	width: 128px;
	height: 128px;
	image-rendering: pixelated;
	position: relative;
	top: 0;
}

#projects-dialog span {
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
}

.contact-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	/* justify-content: center; */
	width: 100%;
	height: 100%;
}

.contact-caption-container{
	display: flex;
	flex-direction: column;
	/* align-items: center; */
	justify-content: center;
	width: 100%;
}

.contact-text {
	font-size: 24px;
	order: 2;
	text-align: left;
}

.contact-button {
	width: 100px;
	height: 40px;
	background: linear-gradient(180deg, #e0e0e0 0%, #bcbcbc 100%);
	border: 4px solid #888888;
	box-shadow: 0 4px 0 #888888, 0 8px 16px #00000033;
	color: #222222;
	font-family: "Minecraft Seven";
	letter-spacing: 1px;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-right: 10px;
	position: relative;
	left: 0;
	image-rendering: pixelated;
	/* transition: background 0.2s, box-shadow 0.2s, border 0.2s; */
}

.contact-text-container {
	display: flex;
	gap: 10px;
	flex-direction: column-reverse;
	justify-content: center;
	align-items: flex-end;
	flex-grow: 1;
	margin-right: 10px;
	min-width: 0;
}

.contact-text {
	font-size: 24px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.contact-caption {
	font-size: 14px;
	color: #888;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.contact-button {
	flex-shrink: 0;
	min-width: 64px;
}
.contact-button:hover {
	background: linear-gradient(180deg, #f5f5f5 0%, #d6d6d6 100%);
	border-color: #aaaaaa;
	box-shadow: 0 2px 0 #aaaaaa, 0 8px 24px #00000044;
}

@media screen and (max-width: 900px) {
	.main-menu .menu-item {
		width: 280px;
		font-size: 20px;
		width: 50vw;
		height: 30px;
	}
	
	.main-menu .menu {
		margin-bottom: 160px;
	}
	
	.main-menu #header {
		font-size: 30px;
	}
}

@media screen and (max-width: 440px) {
	#contacts-dialog .icon {
		display: none;
	}
}

@media screen and (max-height: 890px) {
	.main-menu #header {
		font-size: fit-content;
		width: fit-content;
		margin: 16px 0 0 0;
	}
	
	/* .main-menu .menu { */
	/* margin-bottom: 20px; */
	/* } */
	
	.main-menu .menu-item {
		width: 280px;
		font-size: 20px;
		width: 50vw;
		height: 30px;
	}
}