/* contact.css */

.input-container {
	display: grid;
	--grid-item-width: calc(50% - 8px);
	grid-template-columns: auto auto;
	gap: 16px;
	margin: 32px auto;
}

label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
}

input {
	width: 100%;
	height: 48px;
	border: 1px solid var(--col-black);
	outline: var(--col-black);
	border-radius: 8px;
	font-size: 20px;
	padding: 0 16px;
	position: relative;

	&::after {
		content: attr(data-label);
		display: block;
		position: absolute;
		top: -16px;
		left: 0;
		width: 100%;
	}

	&:focus {
		border: 2px solid var(--col-primary-dark);
		outline: var(--col-primary-dark);
	}
}

textarea {
	width: 100%;
	height: 96px;
	border: 1px solid var(--col-black);
	outline: var(--col-black);
	border-radius: 8px;
	font-size: 20px;
	padding: 8px 16px;
	position: relative;
	resize: vertical;

	&::after {
		content: attr(data-label);
		display: block;
		position: absolute;
		top: -16px;
		left: 0;
		width: 100%;
	}

	&:focus {
		border: 2px solid var(--col-primary-dark);
		outline: var(--col-primary-dark);
	}
}

.input-pair {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;

	&.full-width {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 1280px) {
	.input-container {
		grid-template-columns: auto;
		gap: 16px;
		margin: 32px 0;
	}

	label {
		margin: 0;
	}
}

/* arcade.css */

.arcade {
	position: absolute;
	width: 100%;
	border-radius: 0;
	top: 0;
	left: 0;
	right: 0;
	min-height: 100svh;
	background-color: var(--col-primary-dark);
	padding: 80px 0;
	display: flex;
	flex-direction: column;
    justify-content: space-between;
    align-items: center;

	& .arcade-header {

		max-width: min(1280px, calc(100vw - 32px));
		display: flex;

		& .arcade-info {
			padding: 0;
		}

		& .arcade-header-logo {
			margin-right: 16px;
			cursor: pointer;
		}

	}

	& .arcade-games {
		display: flex;
        max-width: 1280px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
		padding: 32px;

		& .arcade-game {
			display: flex;
			flex-direction: column;
			gap: 12px;
			cursor: pointer;
			transition-duration: 200ms;

			&:hover {
				scale: 1.05;
			}

			& .arcade-game-image {
				width: 340px;
				height: 240px;
				background-color: grey;
				background-image: var(--bg-image);
				background-size: cover;
				background-position: center;
				box-shadow: var(--shadow-dark);
				z-index: 0;
			}

			& .arcade-game-info {
				color: var(--col-primary-light);
				font-size: 16px;
				z-index: 1;

				& .small {
					color: var(--col-secondary-dark);
					font-size: 14px;
				}
			}

		}
	}

	& .arcade-footer {
		max-width: min(1280px, calc(100vw - 32px));
		padding: 0;
	}
}

@media screen and (max-width: 1280px) {
	& .arcade-footer {
		& .btn.right {
			margin-right: auto;
		}
	}
}

/* hero.css */

section.hero {

	background-color: var(--col-primary-dark);
	margin: 32px;
	width: min(2400px, calc(100vw - 64px));
	height: calc(100svh - 160px);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	padding: 0;

	& .hero-photo {
		width: 50%;
		height: 100%;
		background-image: url(images/me.png);
		background-size: cover;
		background-position: center;
	}

	& .hero-container {
		min-width: max(40%, 460px);
		display: flex;
		flex-direction: column;
        justify-content: center;
        align-items: center;
		gap: 32px;

		& p {
			color: var(--col-primary-light);
			font-size: 24px !important;
		}

	}

	& .hero-btn-container {
		display: flex;
		gap: 16px;
	}
}

.more {
	height: 16px;
	margin-top: -80px;
	font-size: 48px;
	color: var(--col-primary-dark);
	cursor: pointer;
}

@media screen and (max-width:1280px) {
	section.hero {
		margin: 16px;
		width: calc(100vw - 32px);
		height: calc(100svh - 128px);
		flex-direction: column;
		justify-content: space-between;
		align-items: center;

		& .hero-photo {
			width: 100%;
			height: 50%;
			background-image: url(images/me.png);
			background-size: cover;
			background-position: center;
		}

		& .hero-container {
			height: 50%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			gap: 32px;

			& p {
				color: var(--col-primary-light);
				font-size: 16px !important;
			}

		}

		& .hero-btn-container {
			flex-direction: column;
		}
	}
}

/* game-modal.css */

dialog.game-modal {
	width: calc(100vw - 64px);
	height: calc(100svh - 64px);
	top: 50%;
	left: 50%;
	transform-origin: 0 0;
	transform: translate(-50%, -50%);
	outline: none;
	border: none;
	background-color: var(--col-primary-dark);
	box-shadow: var(--shadow-dark), var(--shadow-dark);

	& .modal-header {
		position: absolute;
		width: 100%;
		border-radius: 0;
		top: 0;
		left: 0;
		right: 0;
		height: 48px;
		padding: 0 0 0 32px;
		display: flex;
		justify-content: space-between;

		& .modal-title {
			display: flex;
			align-items: center;
			color: var(--col-primary-light);
		}

		& .modal-close-btn {
			background-color: var(--col-secondary-dark);
			width: 48px;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;

			&::after {
				content: '✖';
			}
		}
	}

	& .modal-content {
		background-color: var(--col-black);
		position: absolute;
		width: 100%;
		border-radius: 0;
		top: 48px;
		left: 0;
		right: 0;
		bottom: 32px;
		padding: 0;
		overflow: hidden;

		& iframe {
			width: 100%;
			height: calc(100% + 1px);
			margin: 0;
			border: none;
		}
	}

	& .modal-footer {
		position: absolute;
		width: 100%;
		border-radius: 0;
		bottom: 0;
		left: 0;
		right: 0;
		height: 32px;
		padding: 0 32px;
		color: var(--col-secondary-dark);
		display: flex;
		align-items: center;
		justify-content: flex-end;
		font-size: 14px;
		text-transform: uppercase;
	}
}

@media screen and (max-width: 1280px) {
	dialog.game-modal {
		width: 100vw;
		height: 100svh;
		max-width: 100vw;
		max-height: 100svh;
	}
}

/* games.css */

.game {
	overflow: hidden;
	position: relative;
	margin: 32px auto 0 auto;

	&.pig {
		width: 480px;
		height: 192px;
	}

	& canvas {
		transform-origin: top left;
	}

}

/* global.css */

* {
	margin: 0;
	padding: 0;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

:root {
	--col-white: #FCFDFE;
	--col-black: #454E73;
	--col-primary-dark: #6017D8;
	--col-primary-light: #DBFFFD;
	--col-secondary-dark: #FF709B;
	--col-secondary-light: #C3FCF8;

	--shadow-dark: 0 4px 40px rgba(28, 0, 152, 0.5);
}

body {
	background-color: var(--col-primary-light);
	display: flex;
	flex-direction: column;
	align-items: center;
    justify-content: space-between;
	gap: 64px;
	perspective: 400px;
	overflow-x: hidden;
	width: 100vw;
}



/* case-study.css */

.case-study-header {
	max-width: min(1280px, calc(100vw - 32px));
	display: flex;
	position: relative;
	padding: 80px 128px;

	& .case-study-info {
		padding: 0;
	}

	& .case-study-header-logo {
		margin-right: 16px;
		cursor: pointer;
	}

	&::after {
		content: '';
		position:absolute;
		width: 1px;
		height: 1px;
		bottom: -64px;
		left: 50%;
		transform-origin: 50% 100%;
		scale: 6400 640;
		rotate: -5deg;
		background-color: var(--col-primary-dark);
		z-index: -1;
	}
}

section.case-study {
	max-width: 960px;
	padding: 64px 64px;
	border-radius: 0;
	background-color: var(--col-white);
	margin-top: -96px;

	& h1 {
		margin-bottom: 0;
	}

	& h2 {
		color: var(--col-secondary-dark);
		margin-bottom: 32px;
		font-size: 24px;
	}

	& h3 {
		margin: 32px auto;
		text-transform: none;

		&::before {
            display: inline-block;
            content: '';
            width: 169px;
            height: 8px;
            margin-right: 16px;
            background-image: url(images/squiggle-primary.svg);
		}

		&::after {
			display: none;
		}
	}

	& p {
		font-size: 16px;
		font-weight: 400;
		margin-bottom: 16px;
		color: var(--col-black);
	}

	& img {

		&.float-left {
			float: left;
			margin: 16px 16px 32px -128px;
			max-width: 60%;
		}

		&.float-right {
			float: right;
			margin: 16px -128px 32px 16px;
			max-width: 60%;
		}

		&.main-image {
			margin: -64px 64px 64px -64px;
			max-width: calc(100% + 128px);
		}

	}
}

@media screen and (max-width: 1280px) {
	section.case-study {
		width: 100%;

		& h3 {
			&::before {
				display: none;
			}

			&::after {
				display: none;
			}
		}

		& img {

			&.float-left {
				float: none;
				display: block;
				margin: 16px auto;
				max-width: 100%;
			}

			&.float-right {
				float: none;
				display: block;
				margin: 16px auto;
				max-width: 100%;
			}

		}

	}
}

/* partners.css */

.partners {
	position: relative;
	margin-bottom: 192px;
}

.partners-marquee {
	position: absolute;
	background-image: url(images/partner-logos.svg);
	width: 6048px;
	height: 128px;
	animation: partners-marquee-scroll 20s linear infinite;
	rotate: 3deg;
	margin-top: 160px;
	scale: 1.25;
}

@keyframes partners-marquee-scroll {
	0% {
		transform: translateX(-1512px);
	}
	100% {
		transform: translateX(-3024px);
	}
}

/* footer.css */

footer {
	width: 100%;
	background-color: var(--col-secondary-light);
	margin-bottom: -64px;
	display: flex;
	justify-content: center;
	align-items: center;

	& .footer-container {
		width: 100%;
		max-width: 1440px;
		padding: 128px;
		display: flex;
		justify-content: space-between;
		color: var(--col-primary-dark);
	}
}

@media screen and (max-width: 1280px) {
	footer {
		& .footer-container {
			padding: 32px;
			flex-direction: column;
			gap: 64px;

			& .footer-logo {
				display: flex;
				justify-content: flex-end;
			}
		}
	}
}

/* button.css */

.btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 224px;
	height: 48px;
	border-radius: 24px;
	background-color: var(--col-secondary-dark);
	color: var(--col-white);
	cursor: pointer;
	font-size: 20px;
	font-weight: 600;
	transition-duration: 100ms;

	&.secondary {
		background-color: transparent;
		color: var(--col-secondary-dark);
		border: 2px solid var(--col-secondary-dark);
	}

	&.right {
		margin-right: 0;
		margin-left: auto;
	}

	&:hover {
		transform: rotate(-3deg);
		z-index: 1;
		box-shadow: var(--shadow-dark);
	}
}

button {
	border: none;
}

/* play.css */

.play-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

@media screen and (max-width: 1280px) {
	.play-flex {
		display: block;

		& .btn {
			margin: 32px auto;
		}
	}
}

/* section.css */

section {
	width: min(1280px, calc(100vw - 64px));
	padding: 80px 160px;
	color: var(--col-primary-dark);
	border-radius: 16px;

	&.light {
		background-color: var(--col-white);
		color: var(--col-black);

		& h3 {
			&::after {
				background-image: url(images/squiggle-dark.svg);
			}
		}
	}

	&.dark {
		background-color: var(--col-primary-dark);
		color: var(--col-primary-light);

		& h3 {
			&::after {
				background-image: url(images/squiggle-light.svg);
			}
		}
	}

	& h3 {
		&::after {
			content: '';
			position: absolute;
			bottom: -24px;
			left: 0;
			width: 169px;
			height: 8px;
			background-image: url(images/squiggle-primary.svg);
		}
	}
}

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

	section {
		width: calc(100vw - 32px);
		padding: 32px 16px;
	}

}

/* process.css */

.process-timeline {
	position: relative;
	display: flex;
	justify-content: space-between;
    align-items: flex-start;
	margin: 64px;

	&::after {
		content: '';
		width: 144px;
		height: 144px;
		background-image: url(images/will-discover.svg);
		background-position: center;
		background-repeat: no-repeat;
		background-size: 160px;
		position: absolute;
		top: 0;
		left: calc(50% - 64px);
		animation: process-illustration-move 10s linear infinite;
	}

	& .arrow {
		margin-top: 188px;
	}

	& .process-step {
		width: 256px;
		display: flex;
		gap: 12px;
		flex-direction: column;
		align-items: center;

		& img {
			width: 160px;
			height: 160px;
			opacity: 0;
		}

		& .timeline-title {
			display: flex;
            align-items: center;
            justify-content: center;
			width: 224px;
			height: 48px;
			font-size: 24px;
			border: 2px solid var(--col-black);
			border-radius: 4px;
			animation: process-title-switch 10s linear infinite;
		}

		& p {
			font-size: 14px;
			margin: 0 8px;
		}
	}
}

@keyframes process-title-switch {
	0%, 32% {
		border: none;
		background-color: var(--col-primary-dark);
		color: var(--col-white);
		transform: rotate(-2deg);
	}
	33%, 100% {
		border: 2px solid var(--col-black);
		background-color: transparent;
		color: var(--col-black);
		transform: rotate(0deg);
	}
}

@keyframes process-illustration-move {
	0%, 32%, 100% {
		left: 64px;
		background-image: url(images/will-discover.svg);
	}
	33%, 65% {
		left: calc(50% - 64px);
		background-image: url(images/will-build.svg);
	}
	66%, 99% {
		left: calc(100% - 192px);
		background-image: url(images/will-space.svg);
	}
}

@media screen and (max-width: 1280px) {
	.process-timeline {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		gap: 32px;
		margin: 64px auto;

		&::after {
			content: '';
			background-image: none !important;
		}

		& .arrow {
			margin-top: 0;
			rotate: 90deg;
		}

		& .process-step {

			& img {
				width: 160px;
				height: 160px;
				opacity: 0.25;
				transition-duration: 200ms;
			}

			& .timeline-title {
				animation: none;
				transition-duration: 200ms;
			}

			&.active {
				& img {
					opacity: 1;
				}

				& .timeline-title {
					border: none;
					background-color: var(--col-primary-dark);
					color: var(--col-white);
					transform: rotate(-2deg);
				}
			}
		}
	}
}

/* typography.css */

body {
	font-family: "Lexend", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 20px;
}

h1 {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 32px;
}

h3 {
	position: relative;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	overflow: visible;
	margin-bottom: 48px;
	min-width: 170px;
}

a {
	color: var(--col-secondary-dark);
	text-decoration: none;

	&:hover {
		color: var(--col-white);
		background-color: var(--col-secondary-dark);
	}
}

@media screen and (max-width: 1280px) {
	body {
		font-size: 16px;
	}
}

span.emphasis {
	color: var(--col-secondary-dark);
	font-weight: 700;
}

span.larger {
	font-size: 28px;
}


/* case-studies.css */

.case-studies-container {
	display: flex;
	width: 100%;
	justify-content: center;
	gap: 16px;

	& .case-study {
		position: relative;
		background-image: var(--bg-image);
		background-size: cover;
		background-position: center;
		border-radius: 8px;
		width: 300px;
		height: 420px;
		overflow: hidden;
		cursor: pointer;
		transition-duration: 200ms;

		&:hover {
			scale: 1.05;
			box-shadow: var(--shadow-dark);
		}

		& .case-study-info {
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;
			padding: 16px;
			background-color: var(--col-white);
			color: var(--col-black);
			font-size: 16px;

			& .small {
				color: var(--col-secondary-dark);
				font-size: 14px;
			}
		}
	}
}

@media screen and (max-width: 1280px) {
	.case-studies-container {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
}

