/*
 * [x] Menu bar:
 * 		[x] Merge menu bar plain and menu bar blog into 1 menu bar
 * 		[x] Make the menu bar stack vertically when width 350-599px
 * 		
 *
 * [x] Optimization for mobile views:
 * 			[x] pagination
 * 			[x] @project section:
 * 				[x] cover_project with images and projtect_item with images need to be adjusted
 * 		
 * [x] Hacks section update:
 * 			[x] Pagination with numbers next to page next button
 * 			[x] Copy button should be on the right side -.-
 *
 * [ ] Side widget #1 on the right side of homepage (social media icon tabs that redirect to appropriate sites)
 *
 * [ ] Blog post has readmore button which when clicked:
 * 			[x] Opens up a box with scrollable content that is zoomed in to about 70-80% of screen size
 * 			[ ] Custom scroll bar buttons to scroll page
 *
 * [ ] Custom designed widget to add posts to a file with tags and other meta data information
 *
 * [ ] Blog post addon: 
 *
 * 		[ ] Script to load blog posts from file, sort them based on timestamp information, 
 * 			  and display a limited number of posts based on the screen size
 *
 * 		[ ] Archived post widget which displays last few entries
 *
 * 		[ ] Widget #2 on the right sort of like a clickable word cloud that:
 * 				[ ] Can lookup posts by tag that increases overall size of tag based on the number of found correlations
 * 				[ ] Can take the shape of any transparent image that is provided to the function
 *
 * 	Bug Fixes:
 *
 *
 */

body {
	background: #01070a;
	background: linear-gradient(10deg, rgba(2, 10, 19, 1) 1%, rgba(6, 20, 33, 1) 51%, rgba(2, 10, 19, 1) 100%);
	padding: 0;
	margin: 0;
	outline: 0;
	justify-content: center;
	flex-direction: row;
	width: 100%;
	display: flex;
	overflow-y: auto;
	min-height: 100vh;
	height: 100%;
	/** Other useful gradients **/
	/*
	background: #dcebf2;
background: linear-gradient(219deg, rgba(220, 235, 242, 1) 0%, rgba(195, 218, 232, 1) 28%, rgba(174, 209, 232, 1) 52%, rgba(148, 201, 235, 1) 100%);
	*/

/** white with cyan **/
/*
background: #f5f9fa;
background: linear-gradient(183deg, rgba(245, 249, 250, 1) 0%, rgba(230, 243, 247, 1) 21%, rgba(210, 244, 247, 1) 38%, rgba(200, 250, 250, 1) 56%, rgba(230, 243, 247, 1) 76%, rgba(245, 249, 250, 1) 98%);
*/
}



/******************************
	Hex messages on the side
*******************************/

.hex_container {
	overflow: hidden;
}

.hex_msg_style1 {
	visibility: hidden;
	overflow: hidden;
	padding: 0;
	margin:  0;
	display: flex;
	flex-direction: column;
	background: transparent;
	color: rgba(100,184,216, 0.91);
	backdrop-filter: brightness(1.2);
	font-family: "Source Sans", "Unlock", "serif";
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1.23px;
	word-spacing: 2.0px;
	line-height: auto;
	transform: rotate(270deg);
	/** animation: [fn name] [duration (s)] [mode] [infitnite/numerical value (s)] **/
}

.hex_msg_style2 {
	visibility: hidden;
	display: flex;
	flex-direction: column;
	background: transparent;
	color: rgb(157,79,9);
	color: rgba(157,79,9,1);
	text-shadow: 6px 4px 10px rgba(157,79,9,0.30);
	backdrop-filter: blur(8px) brightness(0.7);
	font-family: "Source Sans", "Unlock", "serif";
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1.23px;
	line-height: 41px;
	transform: rotate(270deg);
}


@keyframes scrolltext {
	0% {
		opacity: 0;
		visibility: visible;
		top: -2%;
	}


	49% {
		filter: brightness(0.9);	
		opacity: 1;
	}

	84% {
		opacity: 0;
		top: 75%;
		visibility: hidden;
		filter: brightness(0.4);	
	}
}

#msg1 {
	position: absolute;
	left: 2vw;
	animation: scrolltext 10s linear infinite;
	animation-delay: 4s;
	overflow: hidden;
	opacity: 0.71;
}

#msg2 {
	position: absolute;
	left: 4vw;
	top: 0;
	animation: scrolltext 10s linear infinite;
	animation-delay: 1s;
}

#msg3 {
	position: absolute;
	left: 6vw;
	top: 0;
	animation: scrolltext 10s linear infinite;
	animation-delay: 3s;
}

#msg4 {
	position: absolute;
	left: 8vw;
	top: 0;
	animation: scrolltext 10s linear infinite;
	animation-delay: 6s;
}


/*************************************
  Data download / Page load animation
**************************************/

.error_fetch_data {
	display: none;
	justify-content: center;
}

.error_fetch_data p {
	font-family: "Nova Square", "serif";
	font-weight: 600;
	font-size: 0.90rem;
	background: rgba(0,0,0,0.06);
	border-radius: 4px;
	color: red;
	text-shadow: 2px 0px 1px rgba(0,0,0,0.19);
	padding: 5px 10px;
	text-align: center;
}

.loading_animation {
	border: 0;
	outline: 0;
	border-radius: 9px;
	row-gap: 10px;
	position: absolute;
	left: 44%;
	top: 30vh;
	background: rgba(0,0,0,0.36);
	opacity: 0.61;
	z-index: 30;
	width: 100px;
	height: 30px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	column-gap: 10px;
	box-shadow: inset 1px 1px 2px rgba(255,255,255,0.21), 1px 1px 2px rgba(0,0,0,0.51);
}

.circle {
	width:  8px;
	height: 8px;
	border-radius: 50%;
	z-index: 21;
	border:0;
	outline:0;
}

.progress_inactive {
	/* background-color: rgba(50,83,138,1); */
	background-color: rgba(255,255,255,0.64);
}

.progress_active {
	background-color: rgba(177,87,26,1);
	filter: brightness(1.5);
	opacity: 1;
}


/******************************
  Page turn animation
*******************************/

@keyframes fade_vert {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}

	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}


.animation_post_load  {

	/** animation: [fn name] [duration (s)] [mode] [infitnite/numerical value (s)] **/
	animation: fade_vert 0.8s ease;
}

/* Page navigation */

.pagination {
	display: none;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	row-gap: 15px;
	margin-right: 5%;
	margin-top: 15px;
}

.page_prev {
	list-style: none;
	text-decoration: none;
	font-family: "unlock";
	font-size: 18px;
	font-weight: 700;
	font-style: bold;
	border-radius: 6px;
	border: none;
	padding: 0px 5px;
	margin: 0;
	box-shadow: 0px 1px 2px 1px #6995bb;
	cursor:pointer;
	background: #d3e2e6;
	opacity: 0.8;
}

.page_prev a {
	text-decoration: none;
}

.page_prev:hover {
	transform: scale(1.14);
	transition: transform 0.15s ease-in;
}

.page_prev_inactive {
	list-style: none;
	font-family: "unlock";
	font-size: 18px;
	font-weight: 700;
	font-style: bold;
	border-radius: 6px;
	border: none;
	padding: 0px 5px;
	margin: 0;
	box-shadow: 0px 1px 2px 1px #6995bb;
	background: #d3e2e6;
	opacity: 0.3;
}

.page_prev_inactive a {
	text-decoration: none;
}

.page_next {
	list-style: none;
	text-decoration: none;
	font-family: "unlock";
	font-size: 18px;
	font-weight: 700;
	font-style: bold;
	border-radius: 6px;
	border: none;
	padding: 0px 5px;
	margin: 0;
	box-shadow: 0px 1px 2px 1px #6995bb;
	cursor:pointer;
	background: #d3e2e6;
	opacity: 0.8;
}

.page_next a {
	text-decoration: none;
}

.page_next:hover {
	transform: scale(1.14);
	transition: transform 0.15s ease-in;
}

.page_next_inactive {
	list-style: none;
	font-family: "unlock";
	font-size: 18px;
	font-weight: 700;
	font-style: bold;
	border-radius: 6px;
	border: none;
	padding: 0px 5px;
	margin: 0;
	box-shadow: 0px 1px 2px 1px #6995bb;
	cursor:pointer;
	background: #d3e2e6;
	opacity: 0.3;
}

.page_number {
	/*
	position: absolute;
	right: 35px;
	*/
	border: none;
	border-radius: 9px;
	padding: 7px 7px;
	/*
	margin-top: 18px;
	margin-left: 10px;
	*/
	background: #132b44;
	opacity: 0.9;
	font-family: "Nova Square", "serif";
	font-size: 12px;
	font-weight: 700;
	font-style: bold;
	letter-spacing: 3px;
	color: darkorange;
}


/******************************
	   	   Menu bar 
*******************************/
.menu_bar {
	min-height: 100px;
	/* background-color: rgba(18,35,53, 0.95); */
	/* box-shadow: 4px 4px 5px #09121c; */
	color: black;
	display: flex;
	justify-content: center;
	/* padding-top: 20px 20px; */
	padding: 0;
	margin: 0;
	align-items: center;
	font-weight: 600;
	overflow: hidden;
	list-style: none;
	border-radius: 10px;
	column-gap: 20px;
	max-width: 799px;
}

.menu_bar li a {
	border: none;
	outline: none;
	list-style: none;
	justify-content: center;
	padding:  10px 30px 10px 30px;
	overflow: hidden;
	color:	  rgba(255,255,255,0.68);
	border-radius: 10px;
	text-decoration: none;
	font-family: "Nova Square", "serif";
	font-weight: 600;
	/* font-size: 12px; */
	font-size: 0.84rem;
	letter-spacing: 1.05px;
	cursor: pointer;
	/* box-shadow: 4px 4px 5px #09121c, -2px -2px 1px #385f87; */
	box-shadow: 1px 3px 4px rgba(9,18,28,0.25), 2px 6px 4px rgba(0,0,0,0.21),-1px -2px 3px rgba(56,95,135,1);
	filter: brightness(0.95) contrast(1.2);
}

.menu_bar li a:hover {
	background-color: rgba(9,18,28, 0.25);
	/* color: rgba(216,125,19, 1); */
	color: rgba(100, 184, 216, 0.91);
	cursor: pointer;
}

.menu_bar_selected li a{
	border: none;
	outline: none;
	list-style: none;
	justify-content: center;
	padding:  10px 30px 10px 30px;
	overflow: hidden;
	/* background-color: rgba(19,44,67,0.6); color:	  rgba(255,255,255,0.68); */
	border-radius: 10px;
	text-decoration: none;
	font-family: "Nova Square", "serif";
	font-weight: 600;
	/* font-size: 12px; */
	font-size: 0.84rem;
	letter-spacing: 1.05px;
	cursor: pointer;
	/* box-shadow: 4px 4px 5px #09121c, -2px -2px 1px #385f87; */
	box-shadow: 1px 3px 4px rgba(9,18,28,0.25), 2px 6px 4px rgba(0,0,0,0.21),-1px -2px 3px rgba(56,95,135,1);
	background-color: rgba(9,18,28, 0.25);
	color: rgba(100, 184, 216, 0.91);
}

.menu_bar_selected li a:hover {
	/* background-color: transparent; color: darkorange; */
	/* background-color: rgba(19,44,67,0.6); color:	  rgba(255,255,255,0.68); */
	background-color: rgba(9,18,28, 0.25);
	color: rgba(100, 184, 216, 0.91);
}

/* Social media links */

.social_media_links {
	display: flex;
	flex-direction: column;
	row-gap: 21px;
	position: fixed;
	right: 15%;
	top: 40%;
	padding: 15px 15px;
	border-radius: 12px;
	background: rgb(9,78,121);
	background: linear-gradient(180deg, rgba(9,78,121,1) 15%, rgba(46,116,130,1) 91%);
	border: none;
	box-shadow: 2px 1px 4px #ade8e7;
}

.social_media_links a img {
	width: 37px;
	height: 37px;

}

.social_media_links a img:hover {
	transform: scale(1.2);
	
}


/******************************
 	  Blog Section 
*******************************/
.cover_img_blog {
	display: flex;
	justify-content: right;
	margin-right: 20vw;
}

.cover_img_blog {
	opacity: 0.61;
}

.container_blog {
	position: static;
	/* background: linear-gradient(rgb(215,211,208), rgb(219,210,193), rgb(216,142,83)); */
	background: linear-gradient(#19314b, #162233, #101e2d);
	box-shadow: 6px 0px 0px 4px rgba(64,165,183,0.1), inset 25px 0px 30px 0px rgba(148,208,220,0.05), 
				inset 35px 0px 30px 0px rgba(148,208,220,0.02), inset 55px 0px 90px 0px rgba(148,208,220,0.01);
	/* height:87vh; */
	height: 100vh;
	margin: 0;
	border-radius: 9px;
	border: 0;
	/* padding: 15px 10px 0px 10px; */
	max-width: 799px;
}

.point_before_post_insertion {
	height: 55px;
}

.post {
	padding: 10px 0 30px 0;
}

.post_header{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	margin-left: 18%;
	column-gap: 15px;
}

.post_date {
	/*
	position: absolute;
	top: -18px;
	right: 10%;
	*/
	margin-left: auto;
	margin-right: 30px;
}

.post_date p {
	padding: 4px 15px;
	margin-top: 0;
	margin-bottom: 0;
	border-radius: 8px;
	font-family: "Nova Square", "Sans", "serif";
	/* font-size: 14px; */
	font-size: 0.70rem;
	font-weight: 600;
	letter-spacing: 1.2px;
	color: darkorange;
	background: rgba(0,0,0,0.18);
	text-shadow: 0px 2px 2px rgba(10,24,40,1);/* #0a1828; */
}

.post_title {
	font-family: "Nova Square", "Sans", "serif";
	/* font-size: 14px; */
	/* font-size: 0.80rem; */
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	word-spacing: 1.12px;
	padding: 0;
	display: flex;
	justify-content: center;
	margin-left: auto;
	color: rgba(100,184,216, 0.71);
	text-shadow: 0px 4px 3px rgba(10,24,40,1);/* #0a1828; */
	filter: brightness(1.1) contrast(1.2);
}

.post_title::selection {
	background-color: rgba(0,0,0,0.30);
	filter: brightness(1.1) contrast(1.2);
}

.post_body {
	position: relative;
	overflow: hidden;
	height: 180px;
	padding: 5px;
	margin: 15px;

	/*
	background: rgb(89,125,164);
background: linear-gradient(0deg, rgba(89,125,164,1) 18%, rgba(110,148,189,1) 38%, rgba(157,182,210,1) 62%, rgba(225,230,235,1) 91%);
	*/
	/** We're using rgba with transparency, so even with black color, it has a darkening effect on the bg **/
	color:		rgba(255,255,255,0.81);
	background: rgba(0,0,0,0.21);
	opacity:    0.91;
	border-radius: 20px;
	box-shadow: inset 1px 1px 3px rgba(84,133,172,0.31), 3px 3px 4px #0a1828;
}

.post_body div {
	margin: 10px;
	padding: 10px 10px 8px 25px;
	box-sizing: border-box;
	text-shadow: 0px 2px 1px rgba(0,0,0,0.30);
	font-family: "Ubuntu", "serif";
	font-weight: 400;
	font-size:   12px;
	text-align: left;
	word-spacing: 1.23px;
	letter-spacing: 1.18;
	line-height: 2.0;
	white-space: pre-line;
	position: relative;
	overflow: hidden;
	height: 115px;
	padding: 16px 10px 10px 30px;
}

.post_body div::selection {
	background-color: rgba(0,0,0,0.14);
}

/** This is the button in blog posts, that allows for zooming **/

.post_body button {
	position: absolute;
	bottom: 15;
	right: 15;
	width: 18px;
	height: 18px;
	margin-left: 24px;
	padding: 3px;
	border-radius: 10px;
	border: none;
	background-color: black;
	color: cyan;
	box-shadow: 2px 1px 2px #3b5979;
	font-weight: 500;
	transform: scale(1.1);
	transition: transform 0.15s ease;
}

.post_body button:hover {
	color: darkorange;
	box-shadow: 2px 1px 2px #b56e12;
	transform: scale(1.25);
	transition: transform 0.21 ease-out;
}

.blog_post_zoomed {
	display: none;
	position: fixed;
	z-index: 21;
	padding: 0;
	margin:  0;
	top: 0;
	left: 10vw;
	min-width: 70vw;
	width: 80vw;
	height: 100vh;
	border-radius: 15px;
	overflow: auto;
	background: rgba(10,20,30,0.95);
	/*background:linear-gradient(10deg,rgba(2, 10, 19, 1)1%,rgba(6, 20, 33, 1) 51%,rgba(2, 10, 19, 1) 100%);*/
	/* background-color: rgba(8,21,31,0.91); */
	box-shadow: inset 2px 2px 3px rgba(20,48,70,1), 5px 5px 21px rgba(0,0,0,0.74);
	/* opacity: 1; */
	opacity: 1;
	overflow-x: hidden;
	overflow-y: hidden;
	
}

.blog_post_zoomed button {
	position: absolute;
	right: 24px;
	font-family: "Unlock";
	font-size: 15px;
	font-weight: 700;
	font-style: bold;
	border-radius: 6px;
	padding: 4px 6px;
	margin-bottom: 20px;
	margin-top: 20px;
	cursor:pointer;
	/* background: #d3e2e6; 
	background-color: rgba(255,255,255,0.78);
	box-shadow: inset -1px -2px 2px #daecfb; */
	background-color: rgba(0,0,0,0.15);
	color: rgba(255,255,255,0.64);

	opacity: 0.70;
	z-index: 22;
	transform: scale(0.8);
	transition: transform 0.15s ease;
}

.blog_post_zoomed button:hover {
	transform: scale(0.9);
	/* transition: transform 0.21 ease-out;
	   background-color: rgba(255,255,255,1); */
	color: darkorange;
	transition: transform 0.21 ease-out;
}

#zoomed_post_title {
	width: 100%;
	padding: 30px 0 0 0;
	text-align: center;
	font-family: "Ubuntu", "serif";
	/* font-size: 13px; */
	font-size: 14px;
	font-weight: 600;
	word-spacing: 1.3px;
	letter-spacing: 1.3;
	/*color: rgba(255,255,255,0.95);*/
	color: rgba(100,184,216, 0.91);
}

/* id=zoomed_content */
#zoomed_content {
	display: block;
	position: relative;
	height: 81vh;
	border:none;
	outline:none;
	/* padding: 20px 15px; 
	   padding-left: 3vw;
	   padding-right: 3vw; */
	padding: 20px 3vw 30px 3vw;
	color:	 rgba(255,255,255,0.91);
	font-family: "Ubuntu", "serif";
	/* font-size: 12px; */
	font-size: 14px;
	font-weight: 400;
	white-space: pre-line;
	letter-spacing: 1.2;
	line-height: 1.5;
	background: transparent;
	min-height: 80vh;
	min-width:  68vw;
	align-items: center;
	margin-top: 61px;
	margin-left: 2vw;
	margin-right: 3vw;
	margin-bottom: 20px;
	align-items: center;
	z-index: 23;
	opacity: 1;
	overflow-y: auto;
	overflow-wrap: break-word;
	filter: brightness(0.84) contrast(1.1);
}


/************************************
	   Project section 
************************************/
.cover_project {
	display: flex;
	justify-content: center;
	padding: 50px 0px 80px 0px;
}

.cover_project img {
	width: 290px;
	height: 180px;
	opacity: 0.88;
	border-radius: 9px;
	filter: brightness(0.9) drop-shadow(8px 8px 8px rgba(0,0,0,0.49));
}

.container_project {
	/* background: linear-gradient(rgb(202,246,236), rgb(177,214,236), rgb(149,198,249)); */
	background: linear-gradient(#19314b, #162233, #101e2d);
	box-shadow: 6px 0px 0px 4px rgba(64,165,183,0.1), inset 25px 0px 30px 0px rgba(148,208,220,0.05), 
				inset 35px 0px 30px 0px rgba(148,208,220,0.02), inset 55px 0px 90px 0px rgba(148,208,220,0.01);
	border: 0;
	border-radius: 9px;
	min-height: 40vh;
	align-items: center;
	height: 100vh;
	max-width: 799px;
}

.project_item {
	display: flex;
	justify-content: center;
	padding-bottom: 30px;
}

.project_item a img {
	background-image: url('assets/brushed_metal_light.png');
	/* width: 400px; height: 140px; */
	width: 360px;
	height: 126px;
	/*border: 3px solid #1d8eec;*/
	border-radius: 15px; 
	border:none;
	transition: transform 0.15s ease;
	box-shadow: 2px 2px 4px #6995bb;
	filter: brightness(0.78) drop-shadow(12px 12px 12px rgba(0,0,0,0.41));
}

.project_item a img:hover {
	background-image: url('assets/brushed_metal_light_selected.png');
	transform: scale(1.04);
	filter: brightness(0.81);

}


/******************************
	Mobile view optimization
*******************************/

/** Menu bar (tiling vertically) **/
@media (min-width: 350px) and (max-width: 649px){

	/* Aligning menu bar as vertical columns */
	.menu_bar {
		margin: 0;
		padding: 15px 0px 8px 0px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		row-gap: 15px;
	}

	.menu_bar li {
		min-width: 219px;
		max-width: 219px;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	.menu_bar li a {
		display: block;
		box-sizing: border-box;
		min-width: 219px;
		max-width: 219px;
		width: 100%;
		padding-left: 5px;
		padding-right: 5px;
		text-align: center;
	}

	.menu_bar_selected li {
		max-width: 219px;
		width: 100%;
		padding: 0;
		padding-left: 5px;
		padding-right: 5px;
		margin: 0;
		cursor: default;
	}

	.menu_bar_selected li a {
		display: block;
		box-sizing: border-box;
		min-width: 219px;
		max-width: 219px;
		width: 100%;
		text-align: center;
		cursor: default;
	}
}


/* Blog, Project */
@media (min-width: 350px) and (max-width: 799px){

	/** Blog section **/
	.container_blog {
		max-width: 799px;
		width: 100vw;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
	}

	#msg1 {
		display: none;	
	}
	#msg2 {
		display: none;	
	}
	#msg3 {
		display: none;	
	}
	#msg4 {
		display: none;	
	}

	.point_before_post_insertion {
		height: 25px;
	}

	.post{
		padding: 10px 0 15px 0;	
	}

	.post_body div {
		font-size: 11px;
		line-height: 1.8;
	}

	.blog_post_zoomed {
		background:linear-gradient(10deg,rgba(2, 10, 19, 1)1%,rgba(6, 20, 33, 1) 51%,rgba(2, 10, 19, 1) 100%);
		left: 0;
		width: 100vw;
		margin: 0;
	}

	#zoomed_post_title {
		font-size: 14px;
	}

	#zoomed_content {
		font-size: 13px;
		margin-left: 10px;
		margin-right: 10px;
		line-height: 1.6;
	}

	/** Projects section **/

	.container_project {
		max-width: 799px;
		width: 100%;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.cover_project img {
		width: 232px;
		height: 144px;
	}

	.project_item a img {
		width: 95vw;
		height: 14vh;
		width: 344px;
		height: 120px;
	}
}

@media (min-width: 800px) {

	/* Blog section */
	.container_blog {
		width: 799px;
	}

	/* Project section */
	.container_project {
		width: 799px;
	}

}

/*
@media (min-width: 1400px) {


	#zoomed_content {
		width: 80vw;
		padding: 20px 150px 30px 150px;
		margin-left: 0;
		margin-right: 0;
		overflow-x: hidden;
	}
}
*/
