@keyframes pagemoveacw {
	0% {
		rotate: -15deg;
	}

	100% {
		rotate: 0;
	}
}

@keyframes pagemovecw {
	0% {
		rotate: 15deg;
		top:0;
	}

	100% {
		rotate: 0;
		top:var(--page-height);
		/*top:76rem;*/
	}
}

.floatingNav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	position: fixed;
	top: 0;
	z-index: 100;
	width: 100%;
	height: var(--nav-height);
	background-color: var(--nav-background);
}

	.floatingNav > div {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		height: 100%;
		flex: 1;
		width: 50px;
	}

	.floatingNav form {
		height: var(--nav-contentheight);
	}

	.floatingNav fieldset {
		height: 100%;
		width: auto;
		border: none;
		display: flex;
		gap: 0.5rem;
	}

	.floatingNav .leftNav {
		justify-content: left;
		padding-left: 5vw;
		flex-basis: content;
	}

	.floatingNav .rightNav {
		justify-content: right;
		padding-right: 5vw;
		gap: 0.8rem;
		flex-basis: content;
	}

	.floatingNav a {
		min-width: calc(var(--nav-height) * 0.9);
		width: fit-content;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		text-decoration: none;
		font-size: calc(0.9rem + 0.3vw);
		color: var(--nav-contrast);
		font-weight: bolder;
		font-variant-caps: small-caps;
	}

		.floatingNav a:hover {
			font-weight: 400;
		}

	.floatingNav #linkedinlink {
		height: var(--nav-contentheight);
		background-image: url("assets/linkedin.png");
	}

	.floatingNav #githublink {
		height: var(--nav-contentheight);
		background-image: var(--github-logo,"assets/github-mark.svg");
	}

	.floatingNav input[type="radio"] {
		appearance: none;
		height: 100%;
		aspect-ratio: 1/1;
		border: 2px solid var(--nav-contrast);
		border-radius: 50%;
		margin: auto;
	}

		.floatingNav input[type="radio"]:checked {
			background-image: radial-gradient(var(--nav-themecontrast),var(--nav-themecolour),var(--nav-themecolour));
		}

	.floatingNav #dark {
		--nav-themecolour: #22272e;
		--nav-themecontrast: #bdbdbd;
	}

	.floatingNav #light {
		--nav-themecolour: white;
		--nav-themecontrast: black;
	}

.navspace {
	height: var(--nav-height);
}

.resume-wrapper{
	padding-top: 4rem;
	background: var(--table-overlay), url('assets/wood.png');
	z-index: 0;	
}

.a4 h1, .a4 h2 {
	margin: 0.3rem 0;
	max-width: unset;
	color:var(--a4-contrast);
}

.a4 h2 {
	font-size: 1.8rem;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-weight: 800;
}

.a4 h1 {
	text-decoration: underline;
	font-size: 3rem;
}

.smallcaps {
	font-variant: small-caps;
	font-style: normal;
}

#wordsaboutme {
	font-size: 0.94rem;
	margin-block-start: 0.7rem;
}

.a4 .blue {
	color: #66afd9;
}

.linkedin {
	height: 2rem;
	display: inline-block;
}

.mylogo {
	aspect-ratio: 1.26;
	height:2rem;
}

.a4 a {
	display: flex;
	align-items: center;
	color: var(--a4-contrast);
	text-decoration: none;
}

.a4 li>a{
	display:inline;
}

.wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	width: min(50rem, 100dvw);
	min-height: 152rem;
	position: relative;
}

.a4 {
	--page-height:76rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: min(calc(38rem + 2 * 3rem), calc(100dvw - 6rem));
	min-height: calc(62rem + 2 * 3rem);
	padding: 3rem;
	border: 1px solid black;
	box-shadow: 0 0 5px black;
	margin: 0 auto 2rem auto;
	position: absolute;
	background: var(--a4-background);
	color:var(--a4-contrast);
	font-family: Cambria, serif;
	box-sizing: content-box;
}

	.a4:nth-child(1) {
		animation: pagemoveacw 3s ease-in-out forwards;
		z-index: 2;
		right: 0;
		top: 0;
	}

	.a4:nth-child(2) {
		animation: pagemovecw 3s ease-in-out forwards;
		z-index: 1;
		left: 0;
		top: 76rem;
	}

	.a4 section {
		width: 100%;
	}

	.a4 p {
		text-align: justify;
		font-size: 1.1rem;
		line-height: 1.35rem;
		letter-spacing: -0.01rem;
	}

	.a4 ul {
		list-style: none;
		padding: 0;
		font-size: 1.1rem;
		line-height: 1.5rem;
	}

		.a4 ul ul {
			padding-left: 2rem;
			display: grid;
			grid-template-columns: 1fr 1fr 1fr;
			grid-template-rows: 1fr 1fr 1fr 1fr;
		}

	.a4 .bullets {
		list-style: disc;
		padding-left: 2rem;
	}

.shrinkscondaryschool {
	font-size: 1rem;
}

.a4 h3 {
	margin: 0;
}

.a4 h4 {
	display: inline;
	margin: 0;
	font-weight: 500;
}

.background-detail {
	width: 300px;
	position: absolute;
	top: 30px;
	left: 0;
	rotate: 45deg;
	opacity: 0.5;
	z-index: 0;
}

#phone {
	width: 210px;
	aspect-ratio: 34/73;
	position: absolute;
	top: 54rem;
	right: 95px;
	rotate: 10deg;
	z-index: 9;
	border-radius: 10px;
	background: black;
	box-shadow: 0 0 4px black;
	cursor:move;
	touch-action: none;
}

#camera {
	position: absolute;
	top: 10px;
	left: 25px;
	width: 4px;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid grey;
}

#speaker {
	margin:12px auto;
	height: 4px;
	width: 66px;
	border-radius: 2px;
	background: grey;
}

#phonescreen {
	position: absolute;
	top: 30px;
	left: 5px;
	width: 200px;
	height: 377px;
	border-radius: 5px;
	background: white;
	overflow: hidden;
}

#phonelinkedin{
	position: absolute;
	top:43%;
	width: 92%;
	text-align: center;
	background: #0072b1;
	border-radius: 16px;
	margin: 4%;
	height: 6%;
	line-height: 25px;
	color: white;
	font-size: 12px;
}

#phoneuitop {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(255,255,255,0.6);
	height: 10px;
	width: 100%;
}

#phoneuibottom {
	position: absolute;
	bottom: 0;
	left: 0;
	background: rgba(255,255,255,0.8);
	height: 15px;
	width: 100%;
}

#time {
	position: absolute;
	top: 1px;
	font-size: 7px;
	font-family: sans-serif;
	left: 10px;
}

#phonescreen img {
	display: block;
	width: 100%;
}

#back {
	position: absolute;
	top: 0;
	left: 30px;
	font-size: 14px;
	font-weight: 900;
}

#menu {
	position: absolute;
	top: 6px;
	left: 90px;
	height: 4px;
	border-radius: 2px;
	width: 23px;
	background: black;
}

.polaroid {
	width: 150px;
	height: 175px;
	position: absolute;
	top: 500px;
	rotate: 15deg;
	z-index: 0;
	background: white;
	box-shadow: 0 0 4px black;
}

.frame {
	position: absolute;
	inset: 5px 5px 30px 5px;
	text-indent: -26%;
	overflow: hidden;
	z-index: 0;
}

.polaroid span {
	font-family: 'Permanent Marker',cursive;
	position: absolute;
	z-index: 0;
	bottom: 5px;
	left: 25px;
	font-size: 20px;
	rotate: 3deg;
}

.polaroid img {
	height: 140px;
}

#wedding {
	top: 80rem;
	left: 30px;
	rotate: 15deg;
}

	#wedding .frame {
		text-indent: 0;
	}

	#wedding span {
		letter-spacing: 5px;
		left: 19px;
	}

	#wedding img {
		height: unset;
		width: 140px;
	}

#lobster {
	top: 100rem;
	right: 50px;
	rotate: 35deg;
}

	#lobster span {
		left: 15px;
	}

#gig {
	top: 120rem;
	left: 50px;
	rotate: -19deg;
}

	#gig span {
		letter-spacing: -1px;
		left: 11px;
	}

#kids {
	top: 140rem;
	right: 30px;
	rotate: 20deg;
}

	#kids .frame {
		text-indent: unset;
	}

	#kids img {
		height: unset;
		width: 140px;
		position: absolute;
		top: -42px;
	}

#printlink{
	cursor:pointer;
}

#icons{
	position: absolute;
	height: 11px;
	width: 53px;
	right:11px;
	top:-4px;
}