:root {
	--primary-color: #5ea1c9;
	--scondary-color: #a1a1a1;
}
body, html {			
	margin:0;
	-webkit-font-smoothing: antialiased;
	font-family: 'Mona Sans';
	background: var(--color-bg);	
}

body {
	padding:48px;
}

.btn {
	position: relative;
	display: inline-block;
	line-height: 35px;
	border-radius: 35px;
	text-decoration: none;
	padding:0.25em 1.5em;
	font-size: 14px;
}
.btn.text-gradient { 
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

.btn.btn-bg-gradient {
	position: relative;
	display: inline-block;
	line-height: 35px;
	border-radius: 35px;
	padding: 0.25em 1.5em;
	z-index: 0;
	overflow: hidden;
}

.btn.btn-bg-gradient::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: inherit;
	z-index: -1;
	opacity: 0.6;
}

.btn.btn-bg-gradient:hover::before {
	opacity: 1;
}

.btn.btn-bg-gradient::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	right: 2px;
	bottom: 2px;
	border-radius: inherit;
	z-index: -1;
}

/* markdown before after */
.md_ba {
	position:relative;
	aspect-ratio: 16 / 9;
	height: auto;
	max-width:600px;
	width:100%;
	overflow:hidden;
	--var-offset: 50%;	
	margin: 0 auto;
}
.md_ba::after {
	content: "";
	pointer-events: none;
	position:absolute;
	width:1rem;
	height:1rem;
	border-radius:100%;
	background:#000;
	left:var(--var-offset);
	top:50%;
	transform:translate3d(-50%, -50%, 0);
}		
	.md_ba > div {
		width: 100%;
		height: 100%;
		inset: 0px;
		position: absolute;
		
	}
	.md_ba > img {
		width: 100%;
		height: 100%;
		inset: 0px;
		position: absolute;
	}
	.md_ba > img:nth-child(2) {
		clip-path: polygon(var(--var-offset) 0px, 100% 0%, 100% 100%, var(--var-offset) 100%);
	}
	.md_ba > input[type=range]{
		-webkit-appearance:none;
		-moz-appearance:none;
		position: relative;
		background-color: rgba(255,255,255,0.0);
		width: 100%;
		height:100%;
		margin: 0;
		cursor: pointer;
	}
	.md_ba > input[type=range]:focus,
	.md_ba > input[type=range]:active { 
		outline: none;  
	}
	.md_ba > input[type=range]::-moz-range-track { 
		display:none;  
	}
	.md_ba > input[type=range]::active { 
		border: none; 
		outline: none;
	}
	.md_ba > input[type=range]::-webkit-slider-thumb {
		-webkit-appearance:none;
		width: 1px; 
		height: 100vh;   
		background: #000;
		border-radius: 0;
		cursor:grab;
	}
	.md_ba > input[type=range]::-moz-range-thumb {
		-moz-appearance: none;
		width: 1px;
		height: 100vh;
		background: #000;
		border-radius: 0;
		cursor:grab;
	}  
/* markdown before after end */



/* header */

.header {
	position: relative;
	background-position: center;
	color: var(--header-text-color);
	margin: 0px auto 50px auto;
	border-radius: 15px 15px 0 0;
}
	.header > .content {
		max-width:1280px;
		font-weight 700;
		margin: 0 auto;
		text-align:center;
		
	}
		.header > .content h1 {
			font-size:64px;
			color:var(--header-text-color);
		}
		.header > .content p {
			font-size:28px;
			color:var(--header-text-color);
		}		

.projects {
	max-width:1300px;
	margin: 3em auto 0 auto;
}
	.projects > .title {
		text-align: center;
		font-size: 32px;
		color:#d3d3d3;
		text-transform: uppercase;
		width: 400px;
		margin: 75px auto 40px auto;
		border-bottom: 4px solid #d3d3d3;
		border-right: 10px solid transparent;
		border-left: 10px solid transparent;
	}
	.projects .grid-container {
		max-width:100vw;
		overflow-y: auto;
	}
	.projects .grid-container {
		display: grid;
		gap: 20px; 
		justify-content: center; 
	}
		
	.projects .grid-container::-webkit-scrollbar {
	  display: none;
	}
	.projects .card {
		border-radius: 5px;
		overflow: hidden;
		filter: grayscale( 100% );
		transition:filter 400ms ease-in-out;
	}
	.projects .card:hover {
		filter: grayscale( 0% );
	}
	.projects .card-content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.projects .heading  {
		background-image: var(--header-image);
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
		width: 100%;
		height: 75px;
		position:relative;
	}
		.projects .heading > .official,
		.projects .heading > .unofficial {
			font-size: 8px;
			position: absolute;
			right: 3px;
			top: 3px;
			text-transform: uppercase;
			font-weight: bold;
			background: #0e0e0e;
			padding: 4px 7px;
			border-radius: 5px;
			border: 1px solid #1e1e1e;
		}
		.projects .heading > .official {
			color: #3fb950eb;
		}
		.projects .heading > .unofficial {
			color: #d29922;
		}			

	.projects .body {
		width:100%;
		padding:10px;
		color:#878686;
	}
		.projects .body .title {
			font-size: 24px;
			display: block;
			text-align: center;
			color: #3d3d3d;
		}
		.projects .body .languages {
			margin: 0 0 20px 0;
			justify-content: center;
		}
		.projects .body .links {
			position: fixed;
			bottom: 5px;
			padding: 0 10px;
			width: 100%;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
		}
		.projects .body .links > div {
			display: flex;
			align-items: center;
			gap: 10px;
		}
		.projects .body .links a {
			transition: color 200ms ease-in-out;
		}
		.projects .body .links a.more {
			position:relative;
			text-decoration: none;
			font-size:12px;
			padding-right: 14px;
		}
			.projects .body .links a.more::before {
				content: "\f054";
				font-family: "Font Awesome 6 Free";
				font-weight: 900;
				font-size: 10px;
				position: absolute;
				right: 0px;
				top: 4px;
			}
	
#branch-body, #header-body {
	background: transparent;
	color: #fff;
}

/* common */
.text-grad-light-blue-purple {
	background: linear-gradient(91deg, #12adad 3%, #8dffc1 75%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.text-grad-light-red-orange {
	background: linear-gradient(310deg, #C2511A 3%, #eb654d 75%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}		
.text-grad-light-purple-grey {
	background: linear-gradient(91deg, #e8eaff 3%, #595959 75%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* new-content */ 
.new-container {
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 1300px;
	margin: 8em auto 0 auto;
	gap: 50px;
}

	.new-container .new-content {
		position: relative;
		overflow:hidden;
		display: flex;
		flex: 0 1 50%;
		border-radius: 15px;
		padding: 3% 0 3% 7%;
		line-height: 30px;
	}

		.new-container .new-content > div {
			flex: 0 1 auto;
			z-index: 3;
		}
			.new-container .new-content > div:nth-child(2) {
				width: 20%;
				z-index: 2;
			}
			.new-container .new-content > div .emphasize {
				border-left: 10px solid #f1f1f1;
				padding-left: 30px;
			}

			.new-container .new-content > div.git-icon {
				position: relative;
				text-align: right;
			}
				.new-container .new-content > div.git-icon > i {
					position: absolute;
					right: -35px;
					top: -30px;
					font-size: 288px;
					transition: transform 0.3s;
				}
				.new-container .new-content:hover > div.git-icon > i {
					transform: scale(1.01);
				}
		.new-container .new-content .git-badges {
			position:absolute;
			right:10px;
			top:10px;
		}
			.new-container .new-content .git-badges > a {
				text-decoration:none !important;
			}

		.new-container .new-content.dark {
			background: linear-gradient(305deg, #32343e 60%, #474747 100%);
			/*background: #32343e;*/
			color: #fff;
		}
		.new-container .new-content.light {
			background: #fff;
			box-shadow: var(--container-shadow);
		}

		.new-container .new-content.dark > div.git-icon > i {
			color: #464751;
		}
		.new-container .new-content.light > div.git-icon > i {
			color: #f1f1f1;
		}

		.new-container .new-content.dark > div .emphasize {
			border-color: #464751;
		}
		.new-container .new-content.light > div .emphasize {
			border-color: #f1f1f1;
		}

/* references */
.reference {
	position: relative;
	/*display: flex;*/
	display: inline-table;
	align-items: center;
	padding: 0px 10px;
	margin: 4px 0;
	background: #2a2a2d;
	height: 30px;
	line-height: 30px;
	color: #b9b9b9;
	text-decoration:none;
	border-radius: 5px;
	transition: color 200ms ease-in-out;
}
.reference:hover {
	color: #d1cfcf;
}
.reference:has(i) {
	padding-left:35px;
} 
.reference.fa-icon,
.reference.ja-icon {
	padding-left:35px;
}

.reference.ja-icon::before {
	content: "";
	border-radius: 15px;
	position: absolute;
	z-index: 0;
	bottom: 0;
	top: 0;
	left: 2px;
	width: 30px;
	background-image: var(--data-icon);
	background-size: cover;
	background-position: center; 
	background-repeat: no-repeat;
	mix-blend-mode: screen;
}
.reference i {
	position: absolute;
	top: 5px;
	left:4px;
	font-size: 1.3rem;
}
.reference i.fa-gamepad {
	color: #bdefff;
}
.reference i.fa-discord {
	color: #7289da;
}	
.reference i.fa-square-git {
	color: #939393;
	left: 9px;
}	

.languages {
	display:flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap:0.5em;
	margin: 1em 0;
}
	.languages > div {
		line-height: 20px;
		border-radius: 20px;
		padding: 0px 10px;
		font-size: 12px;
		font-weight: 500;
		display: inline-block;
	}

.profile {
	display: flex;
	flex-direction: row;
	max-width: 1300px;
	margin: 0 auto;
	padding: 6em 1em;
	border-radius: 15px;
	padding: 6em 1em;
	border-radius: 10px;
}
	.profile .me {
		display: flex;
		align-items: center;
		justify-content: center;
		flex:1;
	}
		.profile .me > div {
			border-radius:50%;
			border:2px solid #878787;
			width:250px;
			height:250px;
			background: url("../page/profile.png");
			background-size:cover;
			background-size: cover;
			background-position-x: center;
		}

	.profile .about {
		flex:2;
		display:flex;
		flex-direction: column;
	}
		.profile .about > h1 {
			margin-bottom:0;
			font-size: 1em;
			text-transform: uppercase;
		}
		.profile .about .title {
			font-size: 3.25em;
			background: linear-gradient(to right, #89b8fe, #ae93ff, #70c990);
			/*background: linear-gradient(to right, #b9ffc1, #93f5ff, #70c990);*/
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			background-clip: text;
			color: transparent;
			margin-bottom: 25px;
		}
		.profile .about p {
			color: var(--scondary-color);
			max-width: 600px;
		}
		.profile .about .actions
		{
			max-width: 600px;
			display:flex;
			flex-direction: row;
			justify-content: flex-start;
		}
		.profile .about .actions .btn-projects {
			text-transform: uppercase;
		}

.project-details-title {
	max-width: 1300px;
	margin: 8em auto 2em auto;
	font-size: 22px;
	text-align: center;
}
.project-details {
	max-width:1300px;
	margin:0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 50px;
}
	.project-details .card-container {
		padding:1em;
	}
		.project-details .card-container > h3:nth-child(1) {
			margin-top:0;
		}
	
	.project-details .markdown-body {
		height:100%;
		border-radius: 5px;
		color: var(--scondary-color);
	}
@media only screen and (max-width: 1000px) {
	body {
		padding: 24px;
	}
	.projects .grid-container {
		grid-template-columns: repeat(7, 200px) !important;
		justify-content: left;
		margin-left: 40px;
		margin-right: 40px;
	}
}
@media only screen and (max-width: 1366px) {
	body {
		padding: 24px;
	}
	.new-container {
		flex-direction: column;
	}
}
@media only screen and (min-width: 2300px) {
	.projects .grid-container {
		grid-template-columns: repeat(5, 1fr);
	}
}
@media only screen and (max-width: 1920px) {
	.projects .grid-container {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media only screen and (max-width: 1366px) {
	.projects .grid-container {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media only screen and (max-width: 1200px) {
	.projects .grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.profile {
		flex-direction: column;
		border:0px !important; 
	}
		.profile .about {
			text-align: center;
		}
		.profile .about .title {
			font-size: 2.25em;
		}
		.profile .about p {
			margin: 0 auto;
		}
		.languages {
			margin-top: 4em;
			justify-content: center;
		}
		.profile .about .actions {
			margin: 0 auto;
		}
}
@media only screen and (max-width: 900px) {
	.project-details {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (prefers-color-scheme: dark) {
	
	body, html {
		--color-bg: #0d1117;
		--container-shadow: 0px 30px 80px 0px rgba(0, 0, 0, 0.15);
		--header-text-color: #fff;
	}	
	.btn {
		border:2px solid #171c33;
		color:#fff;
	}
	.btn.text-gradient { 
		background: linear-gradient(248deg, rgb(74 229 208) 0%, rgb(42 161 189) 50%, rgb(170 152 246) 100%);
	}
	
	.btn.btn-bg-gradient {
		background-color: #171c33; /* fallback background */
		color:#fff;
	}
	.btn.btn-bg-gradient::before {
		background: linear-gradient(92deg, rgba(63, 116, 251, 1) 0%, rgb(114 78 211) 50%, rgb(70 218 252) 100%);
	}
	.btn.btn-bg-gradient::after {
		background-color: #171c33;
	}
	.projects > .title {
		color: #313741;
		border-bottom-color:#313741;
	}
	.projects .card {
		border: 2px solid #171c33;
	}
	.projects .body .title {
		color: #cbcaca;
	}
	.projects .body .links a {
		color:#adadad;
	}
	.projects .body .links a:hover {
		color:#f1f1f1;
	}
	.project-details .card-container > h3:nth-child(1) {
		color:#f1f1f1;
	}
	.new-container .new-content.light {
		background: #1c1c1c;
	}
	.new-container .new-content.light > div.git-icon > i {
		color: #232323;
	}
	.new-container .new-content.light > div .emphasize {
		border-color: #232323;
	}
	.profile {
		border: 2px solid #171c33;
	}
	.languages > div {
		border: 1px solid #363636;
		color: #94b399;
	}
}
@media (prefers-color-scheme: light) {
	
	body, html {
		--color-bg: #f9f9f9;
		--container-shadow: 0px 30px 80px 0px rgba(0, 0, 0, 0.15);
		--header-text-color: #000;
	}
	.btn {
		border:2px solid #f8f4fd;
		color:#3d3d3d;
	}
	.btn.text-gradient { 
		background: linear-gradient(248deg, rgb(74 229 208) 0%, rgb(42 161 189) 50%, rgb(170 152 246) 100%);
	}
	
	.btn.btn-bg-gradient {
		background-color: #f9f9f9; /* fallback background */
		color:#3d3d3d;
	}
	.btn.btn-bg-gradient::before {
		background: linear-gradient(92deg, rgba(63, 116, 251, 1) 0%, rgb(114 78 211) 50%, rgb(70 218 252) 100%);
	}
	.btn.btn-bg-gradient::after {
		background-color: #f8f4fd;
	}
	.projects > .title {
		color: #d3d3d3;
		border-bottom-color:#d3d3d3;
	}
	.projects .card {
		border: 2px solid #bcb7f1;
	}
	.projects .body .title {
		color: #3d3d3d;
	}
	.projects .body .links a {
		color:#adadad;
	}
	.projects .body .links a:hover {
		color:#3d3d3d;
	}
	.project-details .card-container > h3:nth-child(1) {
		color:#3d3d3d;
	}
	.new-container .new-content.light {
		background: #fff;
	}
	.new-container .new-content.light > div.git-icon > i {
		color: #f1f1f1;
	}
	.new-container .new-content.light > div .emphasize {
		border-color: #f1f1f1;
	}
	.profile {
		border: 2px solid #f0f0f1;
	}
	.languages > div {
		border: 1px solid #e4daef;
		color: #b3b0e3;
	}
}