#seeMore {display: none;}

:root {
	--SITE-WIDTH: 1500px;
	--BORDER-WIDTH: 4px;
	--BACKGROUND-COLOR: #fff3db;
}

* {
	box-sizing: border-box;
}

html,body {
	font-size: 23px;
	min-height: 100%;
	height: 100%;
	padding: 0;
	background-color: var(--BACKGROUND-COLOR);
	
	font-family: 'Montserrat',"微軟正黑體", "Microsoft JhengHei", sans-serif;

	scroll-behavior: smooth;
}

a {
	transition:all 0.15s ease-out;
	text-decoration: none;
	color: black;
}
.strokedText a:hover {
	color: #d8d8d8;
	text-shadow: 2px 2px 0 var(--BACKGROUND-COLOR), 4px 4px 0 #d8d8d8;
}
img {max-width: 100%;}

.mainHR {
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	width: 100%;
	height: 4px;
	background-color: black;
	padding: 0;
	margin: 0;
	border: 0;
}

.textCenter{text-align: center;}

.strokedText {
	text-shadow: 2px 2px 0 var(--BACKGROUND-COLOR), 4px 4px 0 black
}


.mainWrap {
	width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: calc(239px + var(--BORDER-WIDTH));
}

.container {
	max-width: var(--SITE-WIDTH);
	width: 100%;
}

header {
	transition: transform 0.15s ease-out;
	transform: none;
	background-color: #fff3db;
	display: flex;
	justify-content: center;
	width: 100%;
	position: fixed;
	top: 0;

	border-bottom: var(--BORDER-WIDTH) solid black;

	z-index: 1;
}

header .container{
	display: flex;
}

.headQuote {
	display: flex;
	justify-content: center;
	align-items: center;
	
	width: 25%;
	padding: 1.25rem 0 1.25rem;

	border-right: 4px solid #000000;
}
.headQuote >div{
	font-size: 1.75rem;
	font-weight: 900;
	transition: 0.2s all ease-out;
}

.headQuote span {display: block;}
header .nav {
	
	display: flex;
	flex:1;
	justify-content: flex-end;
	align-items: flex-end;
}

header .nav ul {
	margin:0;
	padding:0;
	list-style-type: none; /* Remove bullets */
	display: flex;
	padding-bottom: 1.25rem;
}

header .nav ul li {
	margin-right: 3rem;
	font-size: 1.3rem;
	font-weight: 900;
}

header.compact {
	
	transform: translateY(-100%);
}



section {
	flex:1;
	width: 100%;
	display: flex;
	justify-content: center;
}

section .container {
	display: block;
}

#me_cover.mainPageItemRow {
	border-top:none;
}

#me_cover.mainPageItemRow .img{
	background-size: 70%;
}


#me_cover.mainPageItemRow article {
	text-align: left;
}

#me_cover.mainPageItemRow article h1{
	text-align: left;
	font-size: 1.75rem;
	line-height: 2.25rem;
	font-weight: 900;
}

.mainPageItemRow {
	display: flex;
	width: 100%;
	border: 2px solid black;
	border-bottom: 2px solid black;
	
}

.mainPageItemRow >div {
	display: flex;
	justify-content: center;
	align-items: center;

	width: 50%;
	border-left: 2px solid black;
	border-right: 2px solid black;
}

.mainPageItemRow .img {
	background-size: auto 101%;
	background-position: center;
	background-repeat: no-repeat;
	transition: 0.15s ease-out background-size;
}

.mainPageItemRow .img:hover {
	background-size: auto 105%;
	
}

.mainPageItemRow .img img{
	max-width: 100%;
	visibility: hidden;
}

.mainPageItemRow:nth-child(odd) .content >article{
	text-align: right;
}

.mainPageItemRow:nth-child(even) div:first-child {
	order: 1;
}



.mainPageItemRow .content {
	padding: 3.25rem;
}

.mainPageItemRow article{
	padding: 0.75rem;
	line-height: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	background-color: white;
	border: var(--BORDER-WIDTH) solid black;
	
	box-shadow: 8px 8px black;
}



.mainPageItemRow .content >article h1 {
	line-height: 1.5rem;
	margin: 0;
	margin-top: 0;
	margin-bottom:0;
	
	font-size: 1.25rem;
	font-weight:800;
}

.sectionTitle {
	background-color: #424242;

	padding-top: 2rem;
	padding-bottom: 2rem;

	font-size: 1.3rem;
	font-weight: 800;
	border: solid black;
	border-width: 2px 4px 4px 4px;
}

#otherProject .sectionTitle {
	background-color: #424242;
	padding-left: 4rem;
}

.otherProjectRow {
	display: flex;
	flex-wrap: wrap;
	border: solid black;
	border-width: 0px 2px 0px 2px;
}

.otherProjectItem {
	max-width: 50%;
	width: 50%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	border: solid black;
	border-width: 0px 2px 2px 2px;
}

.otherProjectItem {
	background-size: auto 101%;
	background-position: center;
	background-repeat: no-repeat;
	transition: 0.15s ease-out background-size;
}

.otherProjectItem:hover {
	background-size: auto 105%;
	
}

.otherProjectItem img {
	width: 100%;
	height: 100%;
	opacity: 0;
}

#seeMore .sectionTitle {
	text-align: center;
}

.flatButton {
	padding: 0.3rem;
	font-size: 1.05rem;
	font-weight: 900;
	background-color: white;
	border: var(--BORDER-WIDTH) solid black;
	box-shadow: 8px 8px black;
}

footer {
	font-weight: 900;
	font-size: 1.05rem;
	padding: 2rem;
	width: 100%;
	text-align: center;
	background-color: #fff3db;
	border-top: var(--BORDER-WIDTH) solid black;
}

.switchToggle {
	position: fixed;
	top: 30%;
	right: 0.25rem;
}

.switchToggle >div{
	position: relative;
}



.switchToggle a {
	width: 100%;
	display:none;
}

.switchToggle a.active {
	display:block;
}

.homepageSwitchToggle {
	top: calc(30% + 1rem);
	transform: scale(0.7);
	transform-origin: top right;
}

@media only screen and (max-width: 768px) {

	header .nav {
		text-align: right;
	}

	header .nav ul {
		display:block;
	}
	header .nav ul li {
		font-size: 0.75rem;
		margin-right: 1rem;
		margin-top: 1rem;
	}

	.mainWrap {
		padding-top: calc(163px + var(--BORDER-WIDTH));
	}

	.headQuote {
		width: 40%;
	}

	.headQuote >div {
		font-size: 1rem;
	}

	#me_cover .content{
		margin-top: 0;
		opacity: 1;
	}

	#me_cover.mainPageItemRow .img {
		background-size: 55%;
	}

	#me_cover.mainPageItemRow article h1 {
		font-size: 1.25rem;
	}
	
	.mainPageItemRow {
		display: block;
	}

	.mainPageItemRow >div{
		width: 100%;
		min-height: 400px;
	}

	.mainPageItemRow .img{
		transition:opacity 0.3s ease-out;
	}
	
	.mainPageItemRow .content{
		padding: 1rem;
		margin-top: -400px;
		transition:opacity 0.3s ease-out;
		opacity: 0;
	}
	.mainPageItemRow.active .content{
		opacity: 1;
	}
	

	.switchToggle {
		max-width: 1.5rem;
		top: 75vh;
		transform: none;
		left: 50%;
		transform-origin: center center;
		transform: scale(0.8) translate(-50%) rotateZ(-90deg);
	}

	footer {
		padding: 1rem 0;
		font-size: 0.75rem;
	}
}