/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@200;400;700&family=Manrope:wght@400;700;800&display=swap");

:root {
	/* --primary-color: #e2e2e2; */
	/* --accent-color: #020202; */

	--border: 2px solid var(--accent-color);
	--padding: 5px 20px;
}

* {
	-webkit-transition: all 0.2s;
	-o-transition: all 0.2s;
	transition: all 0.2s;

	text-underline-offset: 10px;
}

a {
	text-decoration: none;
	cursor: url("../assets/cursor.svg") 12.5 12.5, auto;
}

a:hover {
	text-decoration: underline;

	cursor: url("../assets/hover-cursor.svg") 40 40, auto;
}

html,
body {
	height: auto;
}

body {
	padding: 0px;
	margin: 0px;

	font-family: "Manrope", sans-serif;

	cursor: url("../assets/cursor.svg") 12.5 12.6, auto;
	-webkit-transition: cursor 1s ease;
	-o-transition: cursor 1s ease;
	transition: cursor 1s ease;
}

.nav {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;

	-ms-flex-line-pack: center;

	align-content: center;
}

.btn {
	text-decoration: none;

	/* border-radius: 50px;
	border: var(--border); */

	padding: var(--padding);
	margin: 0px;
	margin-right: 4px;
	margin-bottom: 4px;

	text-transform: uppercase;

	height: -webkit-fit-content;

	height: -moz-fit-content;

	height: fit-content;

	font-family: Manrope;
	font-size: 32px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	text-transform: uppercase;
}

.btn:hover {
	/* color: var(--primary-color); */
	/* background: var(--accent-color); */
}

.intro-title {
	/* color: #020202; */
	font-family: Manrope;
	font-size: 64px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
	text-transform: uppercase;
}

.intro-description {
	/* color: #020202; */
	font-family: Manrope;
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

.contact-text {
	/* color: #020202; */
	font-family: Manrope;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.credit-heading {
	/* color: #020202; */
	font-family: Manrope;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

.credit-value {
	/* color: #020202; */
	font-family: Manrope;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

.comma-after:not(:last-child)::after {
	content: ", ";
}

main {
	-ms-scroll-snap-type: y mandatory;
	scroll-snap-type: y mandatory;

	overflow: hidden;
}

section {
	top: 0;

	scroll-snap-align: start; /* Enables snapping behavior */
}

.horizontal-text {
	/* color: #e2e2e2; */
	font-family: Manrope;
	font-size: 40px;
	font-style: normal;
	font-weight: 800;
	line-height: 39px; /* 97.5% */
	text-transform: uppercase;
}

.project-title {
	font-family: Manrope;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.marquee {
	position: relative;
	width: 100vw;
	overflow: hidden;
}

.track {
	position: absolute;
	white-space: nowrap;
	will-change: transform;
	-webkit-animation: marquee 30s linear infinite;
	animation: marquee 30s linear infinite;
}

@-webkit-keyframes marquee {
	from {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	to {
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
	}
}

@keyframes marquee {
	from {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	to {
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
	}
}

a.flip-animate {
	-webkit-perspective: 1000px;
	perspective: 1000px;
}
a.flip-animate span {
	position: relative;
	display: inline-block;
	padding: 0;
	-webkit-transition: transform 0.3s;
	-webkit-transition: -webkit-transform 0.3s;
	transition: -webkit-transform 0.3s;
	-o-transition: transform 0.3s;
	transition: transform 0.3s;
	transition: transform 0.3s, -webkit-transform 0.3s;
	-webkit-transform-origin: 50% 0;
	-ms-transform-origin: 50% 0;
	transform-origin: 50% 0;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

a.flip-animate span:before {
	/* opacity: 0; */

	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 100%;
	content: attr(data-hover);
	-webkit-transition: color 0.3s;
	-o-transition: color 0.3s;
	transition: color 0.3s;
	-webkit-transform: rotateX(-90deg);
	transform: rotateX(-90deg);
	-webkit-transform-origin: 50% 0;
	-ms-transform-origin: 50% 0;
	transform-origin: 50% 0;
}
a.flip-animate:hover span,
a.flip-animate:focus span {
	-webkit-transform: rotateX(90deg) translateY(-22px);
	transform: rotateX(90deg) translateY(-22px);
}
a.flip-animate:hover span:before,
a.flip-animate:focus span:before {
	/* opacity: 1; */
}

.scroll-down {
	-webkit-animation: rotation 80s infinite linear;
	animation: rotation 80s infinite linear;
}

@-webkit-keyframes rotation {
	from {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	to {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

@keyframes rotation {
	from {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	to {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

img {
	user-drag: none;
	-webkit-user-drag: none;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.flip-container {
	-webkit-perspective: 1000;
	perspective: 1000;
}

.flip-container:hover .card {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.card {
}
.card {
	-webkit-transition: 0.5s;
	-o-transition: 0.5s;
	transition: 0.5s;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	position: relative;
}
.front,
.back {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	position: absolute;
}
.front {
	z-index: 1;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}
.back {
	z-index: 2; /* back side, placed above front */
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
}

.square {
	aspect-ratio: 1 / 1;
	max-height: 100%;
	width: 100%;

	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	display: -ms-grid;

	display: grid;
	place-content: center;
}

.hover-paused-animate:hover {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}
.hover-paused-animate:hover > * {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}
