
*,
*:after,
*:before {
	box-sizing: border-box;
}

:root {
	--duration: 2s;
	--ease: cubic-bezier(0.34, 1.56, 0.64, 1);
	--header-outer-height: 110px;
	--header-inner-height: 70px;
	--header-height-difference: calc(
		var(--header-outer-height) - var(--header-inner-height)
	);
	--header-bg: #fff;
}

body {
	background-color: #f2f5f7;
	position: relative;
}

.responsive-wrapper {
	width: 90%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

/* Styles */


h1 {
	font-size: max(2rem, 4vw);
	color: #95a3b0;
	display: flex;
  	justify-content: center;
	line-height: 2;
}

h3 {
	font-size: max(3rem, 5vw);
	font-weight: 200;
	color: #5d5e62;
}

p {
	font-size: max(1rem, 2vw);
	margin-bottom: 0.8rem;
}


/* Header */

.header-outer {
	height: var(--header-outer-height);
	position: sticky;
	display: flex;
	align-items: center;
	top: calc(
		var(--header-height-difference) * -1
	); 
	box-shadow: 0 2px 10px 0 rgba(0,0,0, 0.1);
	background-color: var(--header-bg);
}

.header-inner {
	height: var(--header-inner-height);
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo */

.blinking-cursor { 
  animation-name: blinking-cursor;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(1,0,0,1);
  animation-duration: 2s;
 
  display: inline-block;
  width: 4px;
  height: max(1rem, 2vw);
  margin: 0 0 -2px 5px;
  background: #bacbdb;
}

@keyframes blinking-cursor { 
  from { opacity: .5; } to { opacity: 0.0; }
}

.header-logo {
	font-weight: 500;
	color: #bacbdb;
	font-size: max(1.5rem, 2vw);
	text-decoration: none;
	height: calc(var(--header-inner-height) - 40px);
}

.header-logo a {
	text-decoration: none;
	color: inherit;
}

.header-logo img {
	display: block;
	height: calc(var(--header-inner-height) - 30px);
}

/* Navigation */

.header-navigation {
	display: flex;
	flex-wrap: wrap;
}

.header-navigation a,
.header-navigation button {
	font-size: 1.125rem;
	color: inherit;
	margin-left: 1.75rem;
	position: relative;
	font-weight: 500;
}

.header-navigation a {
	display: none;
	font-size: 1.25rem;
	color: inherit;
	text-decoration: none;
}

.header-navigation a:hover:after,
.header-navigation button:hover:after,
.header-logo a:hover:after,
.header-logo button:hover:after  {
	transform: scalex(1);
}

.header-navigation a:after,
.header-navigation button:after {
	transition: 0.25s ease;
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background-color: currentcolor;
	transform: scalex(0);
	position: absolute;
	bottom: -2px;
	left: 0;
}

.header-navigation button, .header-logo button {
	border: 0;
	background-color: transparent;
	padding: 0;
}

@media (min-width: 300px) {
	.header-navigation a {
		display: inline-block;
	}

	.header-navigation button {
		display: none;
	}
}

/* Flashcard Panels */

.panel {
	align-content: center;
	padding: 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	perspective: 1200px;
	@media (width < 940px) {
		grid-template-columns: repeat(2, 1fr);
	}
	@media (width < 520px) {
		grid-template-columns: repeat(1, 1fr);
	}
}

details {
	pointer-events: none;
	position: relative;
	justify-self: normal;
	transform-style: preserve-3d;
	width: 100%;
	@media (prefers-reduced-motion: no-preference) {
	&:hover {
		rotate: 0deg;
	}
		rotate: var(--rotation);
		transition: transform var(--duration) var(--ease), rotate 0.2s var(--ease);
	}
	&[open] {
		transform: rotateY(180deg);
	}
}

summary,
.flipside {
	aspect-ratio: 2/3;
	border: 3px solid #5d5e62;
	border-radius: 1.5rem;
	padding: 5%;
	width: 100%;
	backface-visibility: visible;
	background: #bed7e5e7;
	img {
		width: 100%;
	}
	
}

summary {
	pointer-events: all;
	cursor:grab;
	list-style: none;
	transform: translateZ(2px);
	position: relative;
	overflow: clip;
}

::details-content {
	@media (prefers-reduced-motion: no-preference) {
		transition: content-visibility var(--duration) ease-out allow-discrete;
	}
}

.flipside {
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: rotateY(180deg) translateZ(-1px);
	align-content: end;
	p:first-child {
		font-size: max(2rem, 3vw);
	}
	p + p {
		margin-top: -1rem;
	}
	ul {
		margin-top: 0.58em;
		list-style-type: none;
		padding: 0;
		display: inline-flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		li {
			padding: 0.25em;
			border-radius: 0.25rem;
			font-family: monospace;
			font-size: 1rem;
			background: #95a3b0;
			color: #e9e9e9;
		}
	}
	
	.quote {

		blockquote {
			padding: 0%;
		}

		blockquote p {
			font-size: max(.8rem, 1.5vw);
		}

		blockquote p::before{
			content: "\201C";
			color:#95a3b0;
			font-weight: bolder;
			font-size: max(1rem, 2vw);
		}

		blockquote p::after{
			content: "\201D";
			color:#95a3b0;
			font-weight: bolder;
			font-size: max(1rem, 2vw);
		}

		blockquote cite{
			display: inline-block;
			line-height: 1.5rem;
			display: flex;
			justify-content: right;
		}
	}


}

/* Scroller */

.main {
	margin-top: 2rem;
}

.scroller {
	width: 80%;
	border-radius: 8px;
	box-shadow: 0 15px 30px 0 rgba(0,0,0, 0.1);
	background-color: #fff;
	padding: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
	font-size: 1rem;
}

.scroller > * + * {
	margin-top: 1.25em;
}

.scroller h2 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.scroller p {
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.25;
}

.scroller a {
	color: #627a91;
	font-weight: 400;
}

.scroller a:hover {
	color: white;
	font-weight: 500;
	text-decoration: none;
	background-color: #627a91;
	padding: 2px;
}

.scroller code {
	display: inline-block;
	padding: 0.125em 0.25em;
	font-size: 1rem;
	border-radius: 2px;
	background-color: #bee5d3;
}

.scroller strong {
	font-weight: 700;
}
