/******************************** STYLE CSS FOR GENERAL CSS ON ALL PAGES ********************************/

/********************************
				FONTS
********************************/

/* font 1 of 3 for Titles (h1)*/
@font-face {
	font-family: 'righteous';
	src: url('./font/righteous/righteous-regular.eot');
	/* IE9 Compat Modes */
	src: url('./font/righteous/righteous-regular.eot?#iefix') format('embedded-opentype'),
		/* IE6-IE8 */
		url('./font/righteous/righteous-regular.woff2') format('woff2'),
		/* Super Modern Browsers */
		url('./font/righteous/righteous-regular.woff') format('woff'),
		/* Pretty Modern Browsers */
		url('./font/righteous/righteous-regular.ttf') format('truetype'),
		/* Safari, Android, iOS */
		url('./font/righteous/righteous-regular.svg#righteous') format('svg');
	/* Legacy iOS */
	font-weight: normal;
	font-style: normal;
}

/* font 2 of 3 for Headings (h2-h6)*/
@font-face {
	font-family: 'titilliumweb';
	src: url('./font/titilliumweb/titilliumweb-regular.eot');
	src: url('./font/titilliumweb/titilliumweb-regular.eot?#iefix') format('embedded-opentype'),
		url('./font/titilliumweb/titilliumweb-regular.woff') format('woff'),
		url('./font/titilliumweb/titilliumweb-regular.ttf') format('truetype'),
		url('./font/titilliumweb/titilliumweb-regular.svg#titilliumweb') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* font 3 of 3 for text*/
@font-face {
	font-family: 'robotoslab';
	src: url('./font/robotoslab/robotoslab.eot');
	src: url('./font/robotoslab/robotoslab.eot?#iefix') format('embedded-opentype'),
		url('./font/robotoslab/robotoslab.woff2') format('woff2'),
		url('./font/robotoslab/robotoslab.woff') format('woff'),
		url('./font/robotoslab/robotoslab.ttf') format('truetype'),
		url('./font/robotoslab/robotoslab.svg#robotoslab') format('svg');
	font-weight: normal;
	font-style: normal;
}

/********************************
			GENERAL CSS
********************************/

/* resetting css */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/*background gradient*/
body {
	background-image: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity .8s;
}

/* setting default fonts */
h1 {
	font-family: 'righteous', sans-serif;
}

h2,
h3,
h4,
h5,
h6,
label {
	font-family: "titilliumweb", sans-serif;
}

html,
input {
	font-family: 'robotoslab', sans-serif;
}

/* general links */
ul {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

/* link-animation-1: hover to underline from center*/
.link-animation-1 {
	display: block;
	position: relative;
	padding: 0.3em 0;
}

.link-animation-1::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 0.1em;
	background-color: black;
	transition: opacity 300ms, transform 300ms;
	opacity: 1;
	transform: scale(0);
	transform-origin: center;
}

@media (hover: hover) {
	
	.link-animation-1:hover::after,
	.link-animation-1:focus::after {
		transform: scale(1);
	}
}

/*page wrapper for flex page layout. 
wraps around <header(s)>, <page-specific-main>, [<etc>], and <footer> for all pages*/
.page-wrapper {
	display: flex;
	flex-direction: column;
	flex-flow: column;
	height: 100%;
	min-height: 100vh;
}

/********************************
			HEADER
********************************/

/* Header */
header {
	font-family: 'righteous', sans-serif;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	height: clamp(30px, 6vh, 60px);
}

/* Header Logos */
.home-logo {
	padding-left: 10px;
}

.hamb-logo {
	padding-right: 10px;
	cursor: pointer;
}

@media (hover: hover) {

	.header a:hover,
	label.hamb-logo:hover {
		background-color: transparent;
		color: white;
		text-shadow: 0 0 5px black;
	}
}

/* Nav menu */
.menu {
	display: flex;
	gap: 50px;
	justify-content: space-around;
	padding-right: 10px;
}

.menu li {
	display: none;
}

/* Hide checkbox */
.side-menu {
	display: none;
}

/* Toggle menu icon */
.side-menu:checked~nav {
	max-height: 100%;
}

.mobile-overlay {
	height: 0%;
	width: 100%;
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 1.0);
	overflow-y: hidden;
	transition: 0.5s;
}

.mobile-overlay-content {
	position: relative;
	top: 25%;
	width: 100%;
	text-align: center;
	margin-top: 30px;
	font-family: 'righteous', sans-serif;
}

.mobile-overlay a {
	padding: 8px;
	text-decoration: none;
	font-size: 36px;
	color: white;
	display: block;
	transition: 0.3s;
}

@media (hover: hover) {

	.mobile-overlay a:hover,
	.overlay a:focus {
		color: #f1f1f1;
	}
}

.mobile-overlay .closebtn {
	position: absolute;
	top: -10px;
	right: 11px;
	font-size: 60px;
}

@media screen and (max-height: 450px) {
	.mobile-overlay {
		overflow-y: auto;
	}

	.mobile-overlay a {
		font-size: 20px
	}

	.mobile-overlay .closebtn {
		font-size: 40px;
		top: 15px;
		right: 35px;
	}
}

/*code above is targeting all sizes in a mobile first design approach */
/* Responsiveness targeting only BIGGER screens*/
@media (min-width: 550px) {
	.menu li {
		display: flex;
		flex-direction: row;
	}


	.hamb-logo {
		display: none;
	}
}

/********************************
			FOOTER
********************************/
.page-footer {
	font-family: 'righteous', sans-serif;
	display: flex;
	z-index: 2;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	height: clamp(30px, 5vh, 60px);
	padding-left: 10px;
	padding-right: 10px;
}

@media (hover: hover) {
	footer a:hover {
		background-color: transparent;
		color: white;
		text-shadow: 0 0 5px black;
	}
}