* {
	box-sizing: border-box;
}

html {
	height: 100%;
	width: 100%;
	min-height: 100%;
	overflow-x: hidden;
}

::-webkit-scrollbar {
	display: none;
}

body {
	background: white;
	display: block;
	font-family: Helvetica;
	margin: 0;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a.link:link {
	color: black;
	text-decoration: underline;
}

a.link:visited {
	color: black;
}

a.link:hover {
	text-shadow: -0.1em 0 red, 0.1em 0 cyan;
}

.container {
	min-width: 100%;
	min-height: 100%;
	height: 100%;
	width: 100%;
	padding-left: 70px;
}

#nav-bar {
	background: black;
	width: 70px;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 3;
	text-align: center;
}

.nav-text {
	visibility: hidden;
	text-decoration: none;
	color: white;
	font-size: 12px;
	font-family: Helvetica;
	top: -10px;
	position: relative;
	height: 5px;
	text-align: center;
}

.nav-item:hover .nav-text {
	visibility: visible;
}

.nav-item a:hover {
	text-decoration: none;
}

.nav-icon {
	text-shadow: none;
	padding: 2px 0;
	color: white;
	font-size: 30px;
	width: 70px;
	height: 40px;
	text-align: center;
}

.nav-item:hover .nav-icon {
	text-shadow: -0.1em 0 red, 0.1em 0 cyan;
}

.nav-item a.current .nav-icon {
	text-shadow: -0.1em 0 red, 0.1em 0 cyan;
}

.nav-item a.current .nav-text {
	visibility: visible;
}

#home {
	width: 100%;
	position: relative;
	min-height: 100vh;
	padding: 50px;
	line-height: 1.4;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

#home-text {
	padding-right: 10%;
}

#home-subtitle {
	max-width: 400px;
	font-size: 20px;
}

#home-picture-wrapper {
	padding-right: 10%;
	flex-shrink: 0;
}

#home-picture {
	height: 200px;
	width: 200px;
	object-fit: cover;
	border-radius: 50%;
}

#about,
#skills,
#work,
#contact {
	position: relative;
	width: 100%;
	min-height: 100vh;
	align-items: center;
	display: flex;
	justify-content: center;
	padding: 50px;
}

#about-text {
	line-height: 1.4;
	width: 75%;
}

#skills-text {
	line-height: 1.4;
	width: 75%;
}

#skills-columns {
	display: flex;
	width: 100%;
	gap: 24px;
}

#work-container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}

#home-container,
#about-container,
#skills-container,
.work {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

#skills-container {
	width: 100%;
	justify-content: center;
}

.work {
	align-items: flex-start;
	gap: 16px;
}

.work-image {
	flex: 0 1 320px;
}

.work-image img {
	width: 100%;
	max-height: 350px;
	object-fit: contain;
	border: 1px solid #000;
}

.work-copy {
	padding: 10px;
	flex: 1 1 280px;
}

#js-icon-text {
	color: white;
	font-size: 35px;
	font-family: Helvetica;
	top: 0;
	margin-top: 10px;
	text-align: center;
}

#js-icon:hover {
	text-decoration: none;
}

#js-icon:hover #js-icon-text {
	text-shadow: -0.1em 0 red, 0.1em 0 cyan;
}

.nav-icon-sm {
	width: 20px;
	height: 20px;
	padding: 10px 0;
	font-size: 20px;
	color: white;
	text-align: center;
}

.nav-item-ext:hover .nav-icon-sm {
	text-shadow: -0.1em 0 red, 0.1em 0 cyan;
}

#links {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 170px;
	display: block;
}

#page-nav {
	position: absolute;
	height: 280px;
	top: 50%;
	margin-top: -195px;
	background-clip: padding-box;
}

#languages,
#software,
#frameworks {
	width: 33%;
}

#work-text {
	width: 75%;
}

#contact-text {
	width: 75%;
}

@media screen and (max-width: 768px) {
	.container {
		padding-left: 0;
		padding-top: 24px;
		padding-bottom: 56px;
	}

	#nav-bar {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		height: auto;
		min-height: 0;
		background: transparent;
		padding: 0;
		overflow: visible;
		pointer-events: none;
		z-index: 4;
	}

	#js-icon,
	#page-nav {
		display: none;
	}

	#links .navbar-nav {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	#links .nav-item-ext {
		margin: 0;
	}

	#links .nav-item-ext a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	.nav-text {
		display: none;
	}

	#links {
		position: relative;
		width: 100%;
		height: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		background: black;
		padding: 4px 8px env(safe-area-inset-bottom, 4px);
		pointer-events: auto;
	}

	.nav-icon-sm {
		width: 32px;
		height: 32px;
		padding: 0;
		font-size: 18px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#home,
	#about,
	#skills,
	#work,
	#contact {
		min-height: 0;
		height: auto;
		padding: 32px 20px;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
	}

	#home {
		text-align: center;
	}

	#home-text {
		padding-right: 0;
		order: 2;
	}

	#home-subtitle {
		max-width: none;
		font-size: 18px;
		margin: 0 auto;
	}

	#home-picture-wrapper {
		padding: 0 0 24px;
		order: 1;
		display: flex;
		justify-content: center;
	}

	#home-picture {
		height: 140px;
		width: 140px;
	}

	#about-text,
	#skills-text,
	#work-text,
	#contact-text {
		width: 100%;
	}

	#skills-columns {
		flex-direction: column;
		gap: 20px;
	}

	#languages,
	#software,
	#frameworks {
		width: 100%;
	}

	.work {
		flex-direction: column;
	}

	.work-image,
	.work-copy {
		flex: 1 1 auto;
		width: 100%;
		padding: 0;
	}

	.work-image img {
		max-height: none;
	}
}

@media screen and (max-width: 480px) {
	#home,
	#about,
	#skills,
	#work,
	#contact {
		padding: 24px 16px;
	}

	#links .navbar-nav {
		justify-content: center;
		gap: 8px;
	}
}
