#header {
	margin-top: 10vh;
	height: 20vh;
	margin-left: 5vw;
}
#projects {
	height: 60vh;
	display: flex;
	justify-content: center;
	gap: 2vw;
	flex-wrap: wrap;
}
.project {
	position: relative;
	width: 25vw;
	height: 18.75vw; /* 4:3 */
	border-radius: 15px;
	filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.1));
	transform: scale(1);
	transition: transform 0.1s;
	cursor: pointer;
}
.project:hover {
	transform: scale(1.02);
	transition: transform 0.1s;
}
.project:active {
	transform: scale(1);
	transition: transform 0.1s;
}
.project img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.5;
	object-fit: cover;
	clip-path: inset(0 round 15px);
}
.project div {
	position: relative;
	z-index: 1;
}
.tags {
	padding-top: 5px;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.flex-start {
	justify-content: flex-start;
}
.tag {
  	background-color: #333;
	color: #fff;
	font-weight: bold;
  	padding: 5px 10px;
	border-radius: 5px;
	display: inline-block;
	white-space: nowrap;
}
.tag-category {
	background-color: var(--primary-color);
}
.tag-language-script {
	background-color: #707000;
}
.tag-language-programming {
	background-color: maroon;
}
.tag-language-db {
	background-color: darkblue;
}
.tag-framework {
	background-color: #005b80;
}
.tag-environment {
	background-color: crimson;
}
.tag-role {
	background-color: green;
}
.tag-product {
	background-color: darkslategrey;
}

/* Modals */
#modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}
.modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	height: 70%;
	border-radius: 10px;
}
.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	transition: color 0.2s;
}
.modal-body {
	display: flex;
	flex-direction: row;
	gap: 20px;
}
.modal-close:hover,
.modal-close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}
.scrolling-text-box {
	height: 60vh;
	width: 80%;
	padding-right: 20px;
	overflow-y: scroll;
	text-align: justify;
	user-select: text;	/* Allow selection just this once */
}
.image-gallery {
	/* Styles for image gallery */
}
.project-metadata {
	position: relative;
	min-height: 100%;
	width: 20%;
}
.modal-project-links {
	position: absolute;
	bottom: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.modal-project-links a {
	padding: 10px 20px;
	display: flex;
	justify-content: center;
	text-decoration: none !important;
	gap: 10px;
	flex-wrap: wrap;
	color: white;
	font-weight: bold;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.5s, color 0.5s;
}
.modal-project-links a:hover {
	position: relative;
	background: white !important;
	color: black !important;
	margin: -1px;
	border: 1px solid black;
}
.modal-project-links a svg {
	width: 16px;
	height: 16px;
}
.modal-project-links a svg path {
	fill: white;
	transition: fill 0.5s;
}
.modal-project-links a:hover svg path {
	fill: black;
}
a .tooltip {
	position: absolute;
	width: 100%;
	bottom: calc(100% + 10px);
	display: inline-block;
	background-color: rgb(0,0,0);
	color: #fff;
	text-align: center;
	padding: 0 10px;
	border-radius: 5px;
	z-index: 1;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.5s;
	transition-delay: 0s;
}
a:hover .tooltip {
	visibility: visible;
	opacity: 1;
	transition-delay: 0.3s;
}