/* desktop */
@media only screen and (min-width: 768px) {
	html[data-theme="light"] body {
		background-attachment: fixed;
		background-color: #ffffff;
		background-position: bottom left;
		background-repeat: no-repeat;
		color: #000000;
		font-family: Arial, Verdana, Helvetica, Geneva;
		text-align: left;
	}

	html[data-theme="dark"] body {
		background-attachment: fixed;
		background-color: #000000;
		background-position: bottom left;
		background-repeat: no-repeat;
		color: #ffffff;
		font-family: Arial, Verdana, Helvetica, Geneva;
		text-align: left;
	}

	html[data-theme="light"] a:link { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:visited { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:active { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:hover { color: #000000; font-weight: bold; text-decoration: underline; }

	html[data-theme="dark"] a:link { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:visited { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:active { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:hover { color: #ffffff; font-weight: bold; text-decoration: underline; }

	div#loading_dialog {
		text-align: center;
		overflow: hidden;
		z-index: 200 !important;
	}

	div#loading_dialog img {
		padding: 10px;
		z-index: 200 !important;
	}

	#contact_me_dialog {
		font-size: 1.5rem;
	}

	#contact_me_dialog > form > div {
		margin-bottom: 1rem;
	}

	#contact_me_dialog input#forms_email, #contact_me_dialog input#forms_subject, #contact_me_dialog textarea#forms_message {
		width: 90%;
	}

	#contact_me_dialog #contact_me_div_captcha {
		align-items: center;
		display: flex;
		gap: 10px;
	}

	#light_dark_toggle_wrapper {
		position: relative;
	}

	#light_dark_toggle_wrapper #light_dark_toggle {
		position: absolute;
		right: 20px;
		top: 10px;
		z-index: 9999 !important;
	}

	#header {
		height: calc(var(--vh, 1vh) * 100); /* JS-based fallback */
		height: 100dvh; /* Modern browsers will override with this */
		max-width: 100%;
		position: relative;
		width: 100dvw;
	}

	#canvas {
		width: 100%;
		height: 100%;
		position: absolute;
	}

	#header_background {
		bottom: 0px;
		height: 0;
		left: 0px;
		max-width: 100%;
		position: absolute;
		width: 100vw;
		background-repeat: no-repeat;
		background-position-y: bottom;
		background-size: contain;
		padding-top: 66.64%; /* (img-height / img-width * container-width) */ /* (750 / 2652 * 100) */
		z-index: 1000;
	}

	html[data-theme="light"] #header_background {
		background-image: url("../images/toronto_light.png");
	}

	html[data-theme="dark"] #header_background {
		background-image: url("../images/toronto_dark.png");	
	}

	#light_wrapper {
		width: 400px;
		height: 100px;
		/* the next three lines aligns the bottom-left of the div to the centre of the tower */
		position: absolute;
		left: 35.8%;
		bottom: 30%;
		animation: rotate 4s infinite;
		transform-origin: left;
	}

	#light {
		width: 100%;
		height: 100%;
	}

	#light img {
		margin-top: 45px; /* about 50% of the height of this div */
		max-height: 100%;
		max-width: 100%;
	}

	@keyframes rotate {
		0% { transform: rotatey(0deg); opacity: 0; }
		15% { opacity: 1; }
		50%{ opacity: 1; }
		60% { transform: rotatey(180deg); }
		61%	{ opacity: 0; }
		100% { opacity: 0; }
	}

	#header_parham {
		margin-left: 2rem;
		margin-top: 2rem;
		text-align: left;
	}

	#header_parham img {
		width: 70%;
		height: auto;
	}

	#header_text_container {
		margin-top: 1rem;
		font-size: 4rem;
		text-align: left;
		padding: 0.25rem;
	}

	#header_text_container h1 {
		font-weight: bold;
	}
	
	#header_text_container #header_text_typewriter {
		font-size: 3rem;
	}

	#header_text_container div.header_text_typewriter_underscore_hidden {
		opacity: 0;
	}

	#header_text_container div.header_text_typewriter_underscore {
		display: inline-block;
		position: relative;
		top: -0.14rem;
		left: 10px;
	}

	.section_title {
		font-size: 2rem;
		margin: 4rem 0rem 0.5rem 0rem;
	}

	#section_buttons {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 80%;
	}

	#section_buttons .button {
		border-radius: 5%;
		cursor: pointer;
		display: inline-block;
		font-size: 1.5rem;
		margin-right: 1rem;
		padding: 1rem 2rem;
		box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
	}

	html[data-theme="light"] #section_buttons .button {
		background-color: #000000;
		color: #ffffff;
	}

	html[data-theme="dark"] #section_buttons .button {
		background-color: #ffffff;
		color: #000000;
	}

	#section_social {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 80%;
	}

	html[data-theme="light"] #section_social img {
		filter: invert(0);
	}

	html[data-theme="dark"] #section_social img {
		filter: invert(1);
	}

	#section_projects {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 80%;
	}

	#section_projects img {
		background-color: #ffffff;
		max-width: 50%;
	}

	#section_slideshow {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 80%;
	}

	#section_slideshow #slideshow {
		text-align: center;
		width: 60%;
		margin-left: auto;
		margin-right: auto;
	}

	#section_slideshow img {
		width: 100%;
		height: auto;
	}

	#section_social img {
		width: 4rem;
		height: auto;
		margin: 0.5rem;
	}

	div.show_error_icon {
		background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNTA4LjUyIDUwOC41MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA4LjUyIDUwOC41MjsiIHhtbDpzcGFjZT0icHJlc2V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vZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);
		background-repeat: no-repeat;
		background-size: 100% 100%;
		height: 50px;
		margin-bottom: 10px;
		margin-right: 20px;
		width: 50px;
	}

	html[data-theme="light"] #section_slideshow button.slick-arrow {
		filter: invert(1);
	}

	html[data-theme="dark"] #section_slideshow button.slick-arrow {
		filter: invert(0);
	}

	html[data-theme="light"] #section_slideshow .slick-dots button {
		filter: invert(0);
	}

	html[data-theme="dark"] #section_slideshow .slick-dots button {
		filter: invert(1);
	}
}

/* mobile */
@media only screen and (max-width: 767px) {
	html[data-theme="light"] body {
		background-attachment: fixed;
		background-color: #ffffff;
		background-position: bottom left;
		background-repeat: no-repeat;
		color: #000000;
		font-family: Arial, Verdana, Helvetica, Geneva;
		text-align: left;
	}

	html[data-theme="dark"] body {
		background-attachment: fixed;
		background-color: #000000;
		background-position: bottom left;
		background-repeat: no-repeat;
		color: #ffffff;
		font-family: Arial, Verdana, Helvetica, Geneva;
		text-align: left;
	}

	html[data-theme="light"] a:link { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:visited { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:active { color: #000000; font-weight: bold; text-decoration: none; }
	html[data-theme="light"] a:hover { color: #000000; font-weight: bold; text-decoration: underline; }

	html[data-theme="dark"] a:link { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:visited { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:active { color: #ffffff; font-weight: bold; text-decoration: none; }
	html[data-theme="dark"] a:hover { color: #ffffff; font-weight: bold; text-decoration: underline; }

	div#loading_dialog {
		text-align: center;
		overflow: hidden;
		z-index: 200 !important;
	}

	div#loading_dialog img {
		padding: 10px;
		z-index: 200 !important;
	}

	#contact_me_dialog {
		font-size: 1.5rem;
	}

	#contact_me_dialog > form > div {
		margin-bottom: 1rem;
	}

	#contact_me_dialog input#forms_email, #contact_me_dialog input#forms_subject, #contact_me_dialog textarea#forms_message {
		width: 90%;
	}

	#contact_me_dialog #contact_me_div_captcha {
		align-items: center;
		display: flex;
		gap: 10px;
	}

	#light_dark_toggle_wrapper {
		position: relative;
	}

	#light_dark_toggle_wrapper #light_dark_toggle {
		position: absolute;
		right: 20px;
		top: 10px;
		z-index: 9999 !important;
	}

	#header {
		height: calc(var(--vh, 1vh) * 100); /* JS-based fallback */
		height: 100dvh; /* Modern browsers will override with this */
		position: relative;
		width: 100vw;
	}

	#canvas {
		width: 100%;
		height: 100%;
		position: absolute;
	}

	#header_background {
		bottom: 0px;
		height: 0;
		left: 0px;
		position: absolute;
		width: 100vw;
		background-repeat: no-repeat;
		background-position-y: bottom;
		background-size: contain;
		padding-top: 66.64%; /* (img-height / img-width * container-width) */ /* (750 / 2652 * 100) */
		z-index: 1000;
	}

	html[data-theme="light"] #header_background {
		background-image: url("../images/toronto_light.png");
	}

	html[data-theme="dark"] #header_background {
		background-image: url("../images/toronto_dark.png");	
	}

	#light_wrapper {
		width: 120px; /* always 4:1 with height because the image original width and height are 2000x500, 4:1 */
		height: 30px;
		/* the next three lines aligns the bottom-left of the div to the centre of the tower */
		position: absolute;
		left: 35.8%;
		bottom: 30%;
		animation: rotate 4s infinite;
		transform-origin: left;
	}

	#light {
		width: 100%;
		height: 100%;
	}

	#light img {
		margin-top: 12px; /* about 50% of the height of this div */
		max-height: 100%;
		max-width: 100%;
	}

	@keyframes rotate {
		0% { transform: rotatey(0deg); opacity: 0; }
		15% { opacity: 1; }
		50%{ opacity: 1; }
		60% { transform: rotatey(180deg); }
		61%	{ opacity: 0; }
		100% { opacity: 0; }
	}

	#header_parham {
		margin-left: auto;
		margin-top: 0.5rem;
		text-align: center;
	}

	#header_parham img {
		width: 60%;
		height: auto;
	}

	#header_text_container {
		margin-top: 0.5rem;
		font-size: 3.5rem;
		text-align: center;
		padding: 0.25rem;
	}

	#header_text_container h1 {
		font-weight: bold;
	}

	#header_text_container #header_text_typewriter {
		font-size: 2.5rem;
	}

	#header_text_container div.header_text_typewriter_underscore_hidden {
		opacity: 0;
	}

	#header_text_container div.header_text_typewriter_underscore {
		display: inline-block;
		position: relative;
		top: -0.14rem;
		left: 10px;
	}

	.section_title {
		font-size: 2rem;
		margin: 4rem 0rem 0.5rem 0rem;
	}

	#section_buttons {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 90%;
	}

	#section_buttons .button {
		border-radius: 5%;
		cursor: pointer;
		display: inline-block;
		font-size: 1.5rem;
		padding: 1rem 2rem;
		box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
	}

	html[data-theme="light"] #section_buttons .button {
		background-color: #000000;
		color: #ffffff;
	}

	html[data-theme="dark"] #section_buttons .button {
		background-color: #ffffff;
		color: #000000;
	}

	#section_social {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 90%;
	}

	html[data-theme="light"] #section_social img {
		filter: invert(0);
	}

	html[data-theme="dark"] #section_social img {
		filter: invert(1);
	}

	#section_projects {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 90%;
	}

	#section_projects img {
		background-color: #ffffff;
		max-width: 50%;
	}

	#section_slideshow {
		margin-left: auto;
		margin-right: auto;
		margin-top: 4rem;
		text-align: center;
		width: 90%;
	}

	#section_slideshow #slideshow {
		text-align: center;
		width: 90%;
		margin-left: auto;
		margin-right: auto;
	}

	#section_slideshow img {
		width: 100%;
		height: auto;
	}

	#section_social img {
		width: 3rem;
		height: auto;
		margin: 0.5rem;
	}

	div.show_error_icon {
		background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZ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jM5LTMxLjc4MiwzMS43ODJ2MTU4LjkxMg0KCQkJCQljMCwxNy41NDQsMTQuMjM5LDMxLjc4MiwzMS43ODIsMzEuNzgyczMxLjc4Mi0xNC4yMzksMzEuNzgyLTMxLjc4MlYxMjcuMTNDMjg2LjA0MiwxMDkuNTg2LDI3MS44MDQsOTUuMzQ3LDI1NC4yNiw5NS4zNDd6Ii8+DQoJCQkJPGNpcmNsZSBzdHlsZT0iZmlsbDojMDEwMDAyOyIgY3g9IjI1NC4yNiIgY3k9IjM4MC44ODEiIHI9IjMxLjc4MiIvPg0KCQkJPC9nPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);
		background-repeat: no-repeat;
		background-size: 100% 100%;
		height: 50px;
		margin-bottom: 10px;
		margin-right: 20px;
		width: 50px;
	}

	html[data-theme="light"] #section_slideshow button.slick-arrow {
		filter: invert(1);
	}

	html[data-theme="dark"] #section_slideshow button.slick-arrow {
		filter: invert(0);
	}

	html[data-theme="light"] #section_slideshow .slick-dots button {
		filter: invert(0);
	}

	html[data-theme="dark"] #section_slideshow .slick-dots button {
		filter: invert(1);
	}
}

/* for floating labels start */

div.form_field_container {
	border: 1px solid #a3a3a3;
	display: inline-block;
	/* this should be the same as label font size */
	padding-bottom: 0.7rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	width: 95%;
}

div.form_field_label {
	color: #a3a3a3;
	font-size: 0.7rem;
	text-align: left;
}

div.form_field_container input, div.form_field_container textarea, div.form_field_container select {
	border: none;
	border-color: transparent;
	font-size: 1.25rem;
	width: 100%;
}

div.form_field_container textarea:focus, div.form_field_container input:focus, div.form_field_container select:focus {
	outline: none;
}

/* for floating labels finish */