/**
 * @author Josh Theriault
 * @description Main style sheet for portfolio page
 * @updated 3/16/2023
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

*, ::before, ::after
{
	box-sizing: border-box;
}

html, body
{
	margin: 0;
	height: 100%;
	width: 100%;
}

body
{
	font-family: 'Source Sans Pro', sans-serif;
	background-color: #000000;
	color: #ffffff;
	text-shadow: 0 0 5px #000000;
	font-size: 1.2rem;
}

main
{
	padding: 2rem 20%;
}

@media only screen and (max-width: 1200px)
{
	main { padding: 2rem 10%; }
}

@media only screen and (max-width: 1024px)
{
	main { padding: 2rem 10%; }
}

@media only screen and (max-width: 768px)
{
	main { padding: 2rem 15px; }
}

@media only screen and (max-width: 480px)
{
	main { padding: 2rem 15px; }
}

h1
{
	margin-bottom: 0;
}

p
{
	text-align: justify;
	margin: 10px 0;
}

:any-link, :any-link:visited
{
	text-decoration: none;
	color: #55b2ff;
}

:any-link:hover
{
	text-decoration: underline;
}

main::before
{
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-image: url("background.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	filter: blur(15px);
	z-index: -1;
	opacity: 0;
	animation: fadeinbg ease-in-out 3s;
	animation-delay: 0.5s;
	animation-fill-mode: forwards;
}

@keyframes fadeinbg
{
	from { opacity: 0; }
	to { opacity: 0.4; }
}

body *[data-fade="1"]
{
	opacity: 1;
	animation: fadein 1s;
}

body *[data-fade="0.5"]
{
	opacity: 1;
	animation: fadeinhalf 1s;
}

@keyframes fadein
{
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeinhalf
{
	from { opacity: 0; }
	to { opacity: 0.5; }
}

.container-y, .container-x
{
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}

.container-y
{
	flex-flow: column wrap;
	align-items: center;
	gap: 30px;
}

.container-x
{
	flex-flow: row wrap;
	justify-content: space-around;
	width: 100%;
	gap: 50px;
}

header
{
	animation: fadein ease-in-out 2s;
	animation-delay: 0.25s;
	animation-fill-mode: both;
}

#title, #subtitle
{
	display: block;
	text-shadow: 0 0 5px #000000;
}

#title
{
	font-size: 3rem;
	font-weight: 700;
}

#subtitle
{
	font-size: 1.2rem;
	text-align: center;
}

ul#links
{
	list-style-type: none;
	padding: 0;
	margin: 10px 0 0 0;
	text-align: center;
}

ul#links > li
{
	display: inline-block;
	padding: 0 10px;
}

section
{
	padding: 0 15px;
	animation: fadein ease-in-out 3s;
	animation-delay: 0.5s;
	animation-fill-mode: both;
}

section > h1:first-child
{
	margin: 10px 0;
}

section:target
{
	background-color: rgba(255, 255, 255, 0.1);
}

.w-100
{
	width: 100%;
}