:root {
	--bg: #20a8a8;
	--fg: #109898;
	--hl: #008888;
	--links-position: min(25vh, calc(50vw - 100px));
}

* { margin: 0; padding: 0; }

body {
	font-family: monospace;
	font-size: 1.5em;
	line-height: 1.5;
	background-color: var(--bg);
	box-sizing: border-box;
}

ul {
	list-style: none;
}

a {
	color: black;
	text-decoration: none;
}

a:hover {
	color: black;
	text-decoration: underline;
}

svg {
	width: 3em !important;
	height: 3em !important;
}

#icon img {
	position: absolute;
	width: 10vw;
	left: calc(45vw);
	top: calc(50vh - 5vw);
}
#links li {
	a {
		width: 100px;
		height: 100px;
	}
	position: absolute;
	transform-origin: 50% var(--links-position);
	text-align: center;
	width: 100px;
	height: 100px;
}

#links {
	margin: calc(50vh - var(--links-position)) auto;
	width: 100px;
	height: var(--links-position);
	text-align: center;
}

#text-box {
	p {
		margin: auto;
	}
	position: absolute;
	left: 5vw;
	top: calc(90vh - 200px);
	width: 250px;
	height: auto;
	overflow-wrap: normal;
	background-color: var(--fg);
	box-shadow: 15px 15px var(--hl);
}

.floating-card {
	box-shadow: 15px 15px var(--hl);
	background-color: var(--fg);
	padding: 15px;
}

main.contact {
	.contact-card {
		.contact-icons {
			padding-top: 15px;
			display: flex;
			justify-content: space-evenly;
			width: 100%;
		}
		width: 20%;
		padding: 15px;
		place-self: center;
		text-align: center;
	}

	display: grid;
}

h1 {
	text-align: center;
	padding-top: 0.5em;
}

nav#back-button {
	float: left;
	width: 58.5px;
	padding-top: 0.5em;
}

nav {
	z-index: 1;
	position: relative;
}

header {
	height: 4em;
}

main {
	height: calc(100vh - 3em - 10vh);
}

main.projects {
	section {
		.project-image {
			a {
				* {
					max-height: 100%;
					max-width: 100%;
				}
				text-align: center;
			}
			max-height: 40%;
			display: flex;
			justify-content: center;
		}
		.project-details {
			.project-links {
				width: 100%;
				max-height: 5vh;
				padding: 1em 0;
				text-align: center;
				display: flex;
				align-content: center;
				justify-content: space-evenly;
				a {
					margin: auto 0;
				}
				a:hover {
					text-decoration: none;
				}
				svg {
					max-height: 5vh;
				}
			}
			.project-description {
				p {
					padding-bottom: 1em;
				}
			}
			line-height: 1.1;
			width: 100%;
		}
		h2 {
			background-color: var(--hl);
			width: 100%;
			text-align: center;
		}

		background-color: var(--fg);
		padding: 2vh;
		display: flex;
		flex-flow: column wrap;
		justify-content: flex-start;
		align-content: stretch;
		gap: 2vh;
		box-shadow: 2vh 2vh var(--hl);
		width: 100%;
		height: calc(100% - 5vh);
	}
	display: flex;
	justify-content: space-evenly;
	align-content: stretch;
	position: absolute;
	gap: 6vh;
	padding: 0 10vh;
}

main.friends {
	section {
		ul {
			list-style-type: "— ";
			list-style-position: inside;
		}
		h1 {
			text-align: left;
			padding: 0;
			line-height: 1.5;
		}
		&.my-friends{
			top: 15vh;
		}
		&.other-people{
			top: 41vh;
		}
		margin: auto;
		position: absolute;
		left: 5vw;
		height: auto;
		overflow-wrap: normal;
		line-height: 2;
	}
}

@media screen and (max-width: 70em) {
	body {
		font-size: 2.2em;
	}
	header {
	}
	main.projects {
		section {
			.project-image {
				max-width: 30%;
				max-height: 100%;
			}
			.project-details {
				.project-links {
					width: 100%;
					text-align: center;
				}
				.project-description {
					p {
						padding-bottom: 0.5em;
					}
					padding: 1em 0 0 0;
				}
			}
			flex-flow: row nowrap;
			box-shadow: 1.5vh 1.5vh var(--hl);
			height: fit-content;
			padding: 2vh;
			max-width: calc(100% - 4vh);
		}
		flex-flow: column nowrap;
		padding: 0 3vh 4vh;
		height: fit-content;
		gap: 4vh;
		justify-content: start;
	}
}