/*! Brian Chesko Personal Webpage v0.1.0 | (c) 2021 Brian Chesko | MIT License */
/**
 * @section Base Styles
 */
:root {
	--primary: #bec1c7;
	--highlight: #ebedf0;
	--light-accent: #484749;
	--deep-accent: #232224;
	--accent: #2f2e30;
	--primary-font-face: Roboto, sans-serif;
	color: var(--primary);
	font-family: var(--primary-font-face);
	font-weight: 100;
}

body {
	width: 100%;
	margin: 0;
	background-color: var(--accent);
}

section {
	max-width: 88%;
	margin: 2em auto;
}

h1 {
	font-weight: 300;
	font-size: 3rem;
}

h2 {
	font-weight: 300;
	font-size: 2rem;
}

h3, h4, h5, h6 {
	font-weight: 200;
}

input,
textarea,
select,
button {
	font: inherit;
}

#nav_wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#nav_logo {
	font-size: 2em;
	margin-left: 2em;
}
#nav_logo:hover {
	text-decoration: none;
}

.nav_list {
	display: flex;
	width: 45%;
	padding: 8px;
	justify-content: space-around;
	align-items: flex-end;
}
.nav_list-item {
	display: inline;
}
.nav_link {
	text-decoration: none;
	font-weight: 300;
	color: var(--primary);
}
.nav_link:active {
	color: var(--primary);
}
.nav_link:hover {
	text-decoration: underline;
}
.nav_link__external {
	--offset: 2px;
	display: inline-block;
	white-space: nowrap;
}
.nav_link__external img.ext-icon {
	height: 1rem;
	margin-left: 0.5rem;
	position: relative;
	transform: translateY(var(--offset));
	padding-top: var(--offset);
	filter: invert(100%) sepia(0%) saturate(7463%) hue-rotate(215deg) brightness(109%) contrast(110%);
}

#banner_wrapper {
	width: 100%;
	max-width: 100%;
	position: relative;
	margin-top: 0;
}
#banner_wrapper:after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity 1.5s ease-in-out;
	background-color: var(--deep-accent);
}
#banner_wrapper.active:after {
	opacity: 0;
}
#banner_heading {
	position: relative;
	font-size: 4em;
	margin: 0 0 0 1em;
	padding: 2em 0;
	color: var(--highlight);
	font-weight: 300;
}

.banner_image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 2s ease;
}
.banner_image__active {
	opacity: 1;
}

#toc_box {
	display: inline-block;
	background-color: var(--light-accent);
	border: 2px solid var(--accent);
	padding: 1em;
	width: auto;
}
#toc_descriptor {
	font-size: 1em;
	text-align: center;
}
#toc_top-list {
	padding: 0 2em;
}
#toc_wrapper {
	padding-left: 3rem;
}

.toc_list {
	padding-left: 1.5em;
}
.toc_list-item a {
	text-decoration: none;
	font-weight: 300;
	color: var(--primary);
}
.toc_list-item a:active {
	color: var(--primary);
}
.toc_list-item a:hover {
	text-decoration: underline;
}

#coursework_list {
	display: block;
	width: auto;
	max-width: max-content;
	padding-left: 0;
	margin: 0 auto;
	transition: max-height 1s ease;
	overflow: hidden;
	max-height: 0;
}
#coursework_list[class*=visible] {
	max-height: 40em;
}

.coursework_subject {
	text-align: center;
}
.coursework_course {
	list-style: none;
}

section.main-content {
	margin: 2em 6%;
	min-width: 400px;
	max-width: 800px;
}
section.main-content h1 {
	margin-bottom: 0.4em;
}
section.main-content h2, section.main-content h3, section.main-content h4, section.main-content h5, section.main-content h6 {
	margin: 0.4em 0;
}

#resume-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0;
}
#resume-header_download-button {
	transform: translateY(0.25rem);
	margin-left: 1rem;
	height: 1.5rem;
	font-size: 1rem;
}
#resume-header_download-anchor {
	text-decoration: none;
	color: var(--light-accent);
}
#resume-header_download-anchor:visited, #resume-header_download-anchor:active {
	text-decoration: none;
}

.resume-line {
	display: flex;
	margin: 1.5em 0;
	align-items: center;
	/*
	 * Degrees, honors (very similar styling)
	 */
	/*
	 * Internships, work
	 */
}
.resume-line.honor-wrapper, .resume-line.degree-line {
	margin: 1em 0;
}
.resume-line_degree-names, .resume-line_honor-title {
	flex: 70;
	margin-right: 2.5em;
}
.resume-line_degree-date, .resume-line_honor-date {
	flex: 30;
	text-align: end;
}
.resume-line_title {
	align-self: flex-start;
	flex: 25;
	margin-right: 2em;
}
.resume-line_description {
	flex: 75;
}
.resume-line * {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}

.heading-link {
	text-decoration: none;
	color: var(--primary);
}
.heading-link:visited, .heading-link:active {
	text-decoration: none;
	color: var(--primary);
}
.heading-link:hover {
	text-decoration: underline;
}

#honors-heading, #school-name {
	font-size: 1.25em;
}

#portfolio {
	max-width: 88%;
}

.portfolio_project-content {
	max-height: 0;
	transition: max-height 1s ease;
}
.portfolio_project-content:first-child {
	margin-top: 0;
}
.portfolio_project-content > * {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.portfolio_project-desc {
	padding: 0 2rem;
	transition: max-height 1s ease, font-size 1s ease;
}
.portfolio_project-heading {
	position: relative;
	display: flex;
	padding: 0 1em;
	font-size: 1.5em;
	transition: font-size 1s ease;
}
.portfolio_project-heading:hover {
	background-color: var(--accent);
}
.portfolio_project-wrapper {
	background-color: var(--light-accent);
	border: 2px solid var(--highlight);
	border-radius: 0.25em;
	cursor: pointer;
	margin: 1em 0;
	max-width: 100%;
	transition: border-width 0.5s ease, max-width 1s ease, max-height 1s ease, margin 1s ease;
	overflow: hidden;
}
.portfolio_project-wrapper__hidden {
	border-width: 0px;
	max-width: 0;
	max-height: 0;
	margin: 0;
}
.portfolio_project-wrapper__hidden > h3 {
	font-size: 0;
}
.portfolio_project-wrapper__expanded {
	cursor: auto;
}
.portfolio_project-wrapper__expanded > p, .portfolio_project-wrapper__expanded span {
	font-size: 1em;
}
.portfolio_project-wrapper__expanded > h3 {
	cursor: pointer;
}
.portfolio_project-heading-text {
	flex: 85;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.portfolio_project-expand-collapse-arrow {
	flex: 15;
	max-width: 24px;
	transition: max-width 1s ease;
}
.portfolio_project-expand-collapse-arrow__hidden {
	max-width: 0px;
}
.portfolio_project-skills-wrapper {
	display: flex;
	padding: 0 2em;
}

.project-multimedia_wrapper {
	display: grid;
	grid-template-columns: auto minmax(300px, 80%) auto;
	grid-template-rows: minmax(auto, 600px) auto auto;
	transition: max-height 1s ease, margin 1s ease;
	overflow: hidden;
	margin: 0;
	margin-bottom: 1em;
}
.project-multimedia_gallery {
	display: block;
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	width: 100%;
	margin: 1em;
	overflow: hidden;
	white-space: nowrap;
	transition: max-height 1s ease;
	border: 1px solid var(--deep-accent);
	background-color: var(--accent);
}
.project-multimedia_item {
	object-fit: contain;
	width: 100%;
	height: 100%;
	transition: max-height 1s ease, transform 1s ease;
}
.project-multimedia_button {
	width: 50px;
	height: 50px;
	background-size: cover;
	align-self: center;
	border: none;
	border-radius: 50%;
	align-self: center;
}
.project-multimedia_button:hover {
	background-color: rgba(224, 224, 224, 0.521);
	cursor: pointer;
}
.project-multimedia_button__prev {
	grid-column: 1;
	grid-row: 1;
	background-image: url("https://img.icons8.com/ios/50/000000/less-than.png");
	justify-self: right;
	margin-right: 1em;
}
.project-multimedia_button__next {
	grid-column: 3;
	grid-row: 1;
	background-image: url("https://img.icons8.com/ios/50/000000/more-than.png");
	justify-self: left;
	margin-left: 1em;
}
.project-multimedia_caption {
	grid-column: 2;
	grid-row: 2;
	justify-self: center;
	align-self: center;
	opacity: 0;
	transition: opacity 0.25s linear;
}
.project-multimedia_caption__active {
	opacity: 1;
}

.skills_item {
	transition: font-size 1s ease, max-height 1s ease;
	margin: 0.15em 0.3em;
	padding: 0.25em;
	border: 2px solid var(--accent);
	border-radius: 0.5em;
}
.skills_item:first-of-type {
	margin-left: 0;
}
.skills_item:last-of-type {
	margin-right: 0;
}

.certification_cert-wrapper {
	margin: 1em 0;
}
.certification_cert-title {
	flex: 75;
	margin-right: 2.5em;
}
.certification_cert-date {
	flex: 25;
	text-align: end;
}

.image-modal {
	background-color: rgba(40, 40, 40, 0.5);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: none;
	position: fixed;
	z-index: 10;
}
.image-modal_wrapper {
	max-width: 90%;
	max-height: 90%;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	overflow: auto;
	background-color: var(--accent);
	border: 4px solid var(--light-accent);
	padding-top: 0.8em;
}
.image-modal_content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2em;
}
.image-modal_image {
	max-width: 90%;
}
.image-modal_caption {
	margin-bottom: 0;
}
.image-modal_close-button {
	display: flex;
	position: absolute;
	justify-content: center;
	align-items: center;
	top: 0.5em;
	right: 0.5em;
	border-radius: 50%;
	padding: 0;
	width: 30px;
	height: 30px;
	border: none;
	cursor: pointer;
	background: none;
	background-position: center;
	background-image: url("https://img.icons8.com/material-outlined/24/000000/delete-sign.png");
}
.image-modal__visible {
	display: block;
}