* {
	box-sizing: border-box;
}

html {
	height: 100%;
	background: #fff;
	font-size: 16px;
}

html,
button,
select {
	font-family: Cormorant Upright, serif;
}

same-menu-button button {
	padding: 0.2em 0.2em 0;
	font-size: 1em;
}

same-menu-button svg {
	height: 3rem;
}

same-menu-button path {
	fill: currentColor;
}

same-menu.is-open same-menu-button svg {
	/* color: whitesmoke; */
	transform: rotateY(190deg);
}

body {
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding-bottom: 45px;
	overflow-y: scroll;
}

iframe {
	display: block;
	max-width: 100%;
}

figure {
	margin: 0;
}

.Boy {
	position: absolute;
	left: 10%;
	z-index: 2;
	touch-action: none;
	user-select: none;
	margin: 1rem;
	width: 100px;
}

article {
	flex: 1;
	margin: 1.5rem;
}

wp-content,
same-menu,
same-social,
figma-image {
	display: block;
}

figma-image img {
	object-fit: cover;
}

same-social {
	margin-top: auto;
	display: flex;
	flex-flow: row wrap;
	margin-top: auto;
	justify-content: flex-end;
	font-size: smaller;
}

same-social a {
	padding: 0.6em;
	color: black;
}

img {
	max-width: 100%;
	height: auto;
}

wp-content iframe {
	margin-bottom: 1em;
}

same-social a:hover,
wp-content a:hover {
	background: blue;
	color: white;
}

.Figma {
	background: #dfdfdf;
	height: 60vh;
	position: relative;
	overflow: hidden;
}

.Figma iframe {
	width: 100%;
	height: calc(100% + 100px);
	transform: translate3d(0, -50px, 0);
	border: 0;
}

.Figma--full {
	height: 80vh;
	height: calc(100vh - 45px);
}

.Split {
	flex: 1;
	display: flex;
	flex-flow: column nowrap;
}

.Split > article {
	display: flex;
	flex-flow: column nowrap;
}

.Split .Figma {
	order: -1;
}

.Split--reverse .Figma {
	order: 2;
}

@media (max-width: 999px) {
	.Figma iframe {
		max-width: none;
		position: absolute;
		max-width: none;
		left: -75%;
		top: -75%;
		width: 250%;
		height: 250%;
	}
}

@media (min-width: 1000px) {
	html {
		font-size: 20px;
	}
	.Boy {
		left: 45%;
	}
	.Split {
		flex-flow: row nowrap;
	}
	.Split > article {
		/* width: 50%; */
		margin: 0;
		padding: 1rem;
		flex: 0 0 50%;
		background: white;
		position: relative;
	}
	.Figma {
		height: auto;
	}
	.Split .Figma,
	.Split figma-image {
		position: fixed;
		top: 0;
		left: 50%;
		bottom: 45px;
		/* At least fill the screen but expand to match left column */
		height: auto;
		width: 50%;
		/* width: 100%;
		height: 100%; */
	}
	.Figma iframe {
		position: absolute;
		max-width: none;
		left: -25%;
		top: -25%;
		width: 150%;
		height: 150%;
	}
}

same-menu {
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 1;
	font-size: 1.5em;
}

same-menu nav {
	display: flex;
	flex-flow: row wrap;
	padding: 0.5rem 0;
	background: black;
	background: hsl(153deg 71% 6%);
	height: 100%;

	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transform: translateZ(0);
}

same-menu.is-open nav {
	transition: opacity 400ms cubic-bezier(0.165, 0.84, 0.4, 1);
	opacity: 1;
	pointer-events: auto;
}

same-menu a {
	padding: 0.75rem;
	color: white;
	text-decoration: none;
}

same-menu a.is-active {
	text-decoration: underline;
}

same-menu-button {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 999;
}

@media (max-width: 999px) {
	same-menu {
		width: 0;
	}
	same-menu.is-open {
		width: 100%;
	}
}

@media (min-width: 1000px) {
	same-menu {
		height: auto;
		font-size: 1em;
	}
	same-menu nav {
		flex-flow: row wrap;
		height: auto;
		pointer-events: auto;
		opacity: 1;
	}
	same-menu a {
		padding: 0.35rem 0.75rem;
	}
	same-menu-button {
		display: none;
	}
}

