@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&family=Roboto&display=swap');

html {
  scroll-behavior: smooth;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	padding: 0 2%;
	margin: 0;
}

img,
video,
figure {
	border-radius: 0.3rem;
}

nav a {
	outline: none !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

a:link {
	color: #000;
	font-weight: 600;
	text-decoration: underline;
}


a:visited {
	color: #000;
}

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	background-color: white;
	position: sticky;
	top: 0;
	z-index: 10;

}

nav .profile {
	display: flex;
	align-items: center;
}

nav .profile img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

nav .profile h2 {
	margin-left: 10px;
	font-size: 15px;
}

nav ul {
	display: flex;
	list-style-type: none;
}

nav ul li {
	margin-left: 20px;
	cursor: pointer;
	border-bottom: 1px solid #fff;
}

nav ul li:hover {
	border-bottom-color: #000;
}

.page-content {
	padding: 0% 4%;
}

.page-content header {
	margin-top: 5%;
	max-width: 100%;
}

.page-content header h1 {
	margin: 0;
	text-transform: uppercase;
	font-family: 'Oswald', sans-serif;
	font-size: 3.5vw;
	color: #fff
}

.page-content header p {
	margin: 0;
	font-family: 'Oswald', sans-serif;
	font-size: 3vw;
	padding-bottom: 10%;
}

.page-content button {
	background-color: inherit;
	border: none;
	outline: none;
	padding: 0;
	font-size: 15px;
	font-weight: bold;
	padding-bottom: 5px;
	border-bottom: 1px solid #ccc;
	cursor: pointer;
}

.page-content button:hover {
	color: #ccc;
	border-bottom-color: #000;
}

.presentation-image-container {
	position: relative;
	width: 100%;
	padding: 0;
	height: fit-content;

	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.presentation-image-container img {
	width: 100%;
	object-fit: cover;
	object-position: center;



}

.presentation-image-container .title {
	position: absolute;
	top: 18%;
	width: 60%;
	height: 100%;
	padding: 1rem;
	color: white;
	text-shadow: rgb(2, 16, 3) 0px 0 30px;
}

.projects-section {
	margin-top: 2vh;
}

.projects-section h2 {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	font-size: 3vw;
}


.projects {
	display: grid;
	grid-template-rows: repeat(4, auto);
	grid-template-columns: 2fr 1fr 2fr;
	gap: 0.3;


}

.first {
	grid-row: 1 / span 1;
}

.second {
	grid-row: 2 / span 1;
}

.third {
	grid-row: 3 / span 1;
}

.fourth {
	grid-row: 4 / span 1;
}

.fifth {
	grid-row: 5 / span 1;
}

.sixth {
	grid-row: 6 / span 1;
}

.right {
	grid-column: 2 / span 2;
}

.left {
	grid-column: 1 / span 2;
}


.project {
	justify-self: center;
	border-radius: 0.3rem;
	padding: 0.3rem;

}

.project-content {
	display: flex;
	flex-flow: row wrap;
	gap: 0.3rem;
	justify-content: center;
	align-items: center;

}

.project-content video {
	height: 28vw;
	width: fit-content;
	margin: 0;
	padding: 0;
}

.project h3 {
	margin: 10px;
}

.description {
	font-size: 15px;

}



.projects .project_image {
	float: right;
	box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.project:hover {

	animation: fadeBackground 0.5s;
	animation-fill-mode: forwards;
	transition: all 0.3s ease-in-out;
}

.project:hover h3 {
	font-size: 200%;
	transition: all 0.3s ease-in-out;
}

@keyframes fadeBackground {
	from {
		background-color: #FFFFFF;
	}

	to {
		background-color: #cecece;
	}
}



footer {
	margin-top: 5%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 20px;
	background-color: #000;
	color: white;
}

footer .column p {
	font-size: 14px;
	color: #ccc;
	cursor: pointer;
	font-weight: 500;
}

footer .column p:hover {
	color: #e7e68c;
}

@media screen and (max-width: 700px) {
	nav {
		justify-content: center;
	}

	nav ul {
		display: none;
	}

	.page-content header {
		margin-top: 10%;
		max-width: 100%;
	}

	.page-content .projects-section {
		margin-top: 15%;
	}

	.page-content .projects-section h2 {
		font-size: 1.5em;
	}

	.page-content .projects-section .project {
		margin-right: 0;
		margin-bottom: 20px;
		max-width: 100%;
	}

	.page-content .projects-section .project .description {
		font-size: 13px;
	}

	footer {
		justify-content: flex-start;
	}

	footer .column {
		width: 80%;
	}
}


div#comparison {
	width: 60vw;
	height: 60vw;
	max-width: 600px;
	max-height: 600px;
	overflow: hidden;
}

div#comparison figure {
	background-image: url(images/diablo_no_text_high_qual.png);
	background-size: cover;
	position: relative;
	font-size: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

div#comparison figure>img {
	position: relative;
	width: 100%;
}

div#comparison figure div {
	background-image: url(images/diablo_high_qual.png);
	background-size: cover;
	position: absolute;
	width: 50%;
	box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	bottom: 0;
	height: 100%;
}

input[type=range] {
	-webkit-appearance: none;
	-moz-appearance: none;
	position: relative;
	top: -2rem;
	left: -2%;
	background-color: rgba(255, 255, 255, 0.1);
	width: 102%;
}

input[type=range]:focus {
	outline: none;
}

input[type=range]:active {
	outline: none;
}

input[type=range]::-moz-range-track {
	-moz-appearance: none;
	height: 15px;
	width: 98%;
	background-color: rgba(255, 255, 255, 0.1);
	position: relative;
	outline: none;
}

input[type=range]::active {
	border: none;
	outline: none;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 15px;
	background: #fff;
	border-radius: 0;
}

input[type=range]::-moz-range-thumb {
	-moz-appearance: none;
	width: 20px;
	height: 15px;
	background: #fff;
	border-radius: 0;
}

input[type=range]:focus::-webkit-slider-thumb {
	background: rgba(255, 255, 255, 0.5);
}

input[type=range]:focus::-moz-range-thumb {
	background: rgba(255, 255, 255, 0.5);
}

.img-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.img-column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.img-column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .img-column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .img-column {
    flex: 100%;
    max-width: 100%;
  }
}
