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

* {
	margin: 0;
	padding: 0;
}

body,
html {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	font-family: sans-serif;
}

body {
	background-color: #292d3f;
	color: #fff;
}

@font-face {
	font-family: LogoFont;
	src: url("./fonts/logo.woff2") format("woff2"), url("./fonts/logo.woff") format("woff")
}

::-webkit-scrollbar {
	width: 0
}

#projects {
	height: 75vh;
	padding-top: 25vh;
	display: flex;
	justify-content: center
}

#logoContainer {
	display: flex;
	height: 100vh;
	box-sizing: border-box;
	padding-bottom: 10vh;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

#logo {
	display: flex;
	font-family: "LogoFont", sans-serif;
	font-size: 15vmin;
	line-height: 1em;
	margin-bottom: 0.1em;
}

#logo img {
	height: 1em;
	margin-right: clamp(0.5ch, 3rem, 2vmin);
}

#logo h1 {
	font-size: 1em;
	font-weight: 200;
	margin: 0;
}

#hinter {
	cursor: pointer;
	height: 30px;
	max-width: 12vmin;
}

#hinter #arrow {
	transition: transform 200ms ease;
}

#hinter:hover #arrow {
	transform: translateY(-20%);
}

#projectsContainer,
#socialContainer {
	box-sizing: border-box;
	max-width: 100vw;
	overflow-x: hidden;
	padding: 1em;
}

#projectGrid {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

@media (min-width:600px) {
	#logoContainer {
		padding-bottom: 0;
	}

	#projectsContainer {
		padding: 2em;
	}

	#projectGrid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
	}

	.project {
		font-size: 1.5vmin;
	}
}

.project {
	position: relative;
	background: transparent;
	transition: background 200ms ease;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	overflow: hidden;
}

.project a {
	color: white;
	text-decoration: none;
}

.project .text {
	transition: opacity 200ms ease, transform 200ms ease;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
	position: relative;
}

.project .background {
	position: absolute;
	z-index: -1;
	width: 100%;
	height: 100%;
}

.project .text {
	opacity: 1;
	transform: none;
}

.project {
	background: rgba(45, 45, 60, 0.7);
	box-shadow: 2px 2px 5px rgb(0, 0, 0, 65%);
}

@media not all and (hover: none) {
	.project:hover .text {
		opacity: 1;
		transform: none;
	}

	.project:hover {
		background: rgba(45, 45, 60, 0.7);
	}

	.project:hover .background {
		filter: blur(2px);
	}

	.project .text {
		opacity: 0;
		transform: translateY(10%);
	}

	.project {
		background: unset;
	}
}

.project .text h2 {
	font-family: "Montserrat", sans-serif;
	margin-bottom: 5px;
	text-decoration: underline;
}

span {
	font-family: 'Segoe UI', sans-serif;
}

#socialContainer {
	height: 50vh;
	display: flex;
	justify-content: space-around;
	align-items: center;

	font-size: clamp(4px, 2vmin, 1rem);
}

#socialContainer a {
	text-decoration: none;
	color: white;
	background-color: #272A37;
	padding: 1em;
	border-radius: 10px;
	height: 6em;
	box-sizing: border-box;

	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

#socialContainer .name {
	margin-left: 15px;
	font-size: 1.5em;
}

#socialContainer span {
	font-family: monospace;
}

#socialContainer svg {
	height: 4em;
	max-width: 4em;
}

@font-face {
	font-family: XmasFont;
	src: url("./fonts/cartoon-blocks-christmas.regular.ttf") format("truetype")
}

.xmas body {
	background: linear-gradient(to bottom, #000000 0%, #000009 50%, #00000D 95%, #00000C 100%);
}

.xmas #logo {
	font-family: "XmasFont", serif;
	color: white;
}

.xmas #socialContainer {
	background-image: url("snow.png");
	background-size: 100vw;
	background-repeat: no-repeat;
	background-position: 0px calc(100% + 320px);
}