/* Shirt view: the live page printed on a T-shirt (see shirt.js). Only applies
   while <html> has the "shirt" class. The page renders 900px wide, the shirt
   art is 900x1000, and the page is zoomed onto the chest. */

.shirt-art,
.shirt-fabric {
	display: none;
}

html.shirt {
	--shirt-fill: #fbf8f9;
	--shirt-seam: #e7d9de;
	--shirt-shadow: rgba(61, 34, 48, 0.18);
}

html.shirt.myspace {
	--shirt-fill: #151518;
	--shirt-seam: #2c2c33;
	--shirt-shadow: rgba(0, 0, 0, 0.6);
}

html.shirt #content > .wrapper {
	position: relative;
	flex: none;
	width: 900px;
	height: 1000px;
	min-height: 0;
	margin: auto 0;
	padding-top: 150px;
	box-sizing: border-box;
}

html.shirt .shirt-art,
html.shirt .shirt-fabric {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 900px;
	height: 1000px;
	pointer-events: none;
}

html.shirt .shirt-art {
	z-index: 0;
	filter: drop-shadow(0 18px 30px var(--shirt-shadow));
}

/* Shading and fabric grain sit over the print so it looks printed on. */
html.shirt .shirt-fabric {
	z-index: 2;
	mix-blend-mode: multiply;
}

html.shirt.myspace .shirt-fabric {
	mix-blend-mode: soft-light;
}

.shirt-body {
	fill: var(--shirt-fill);
}

.shirt-seam {
	fill: none;
	stroke: var(--shirt-seam);
	stroke-width: 3;
	stroke-linecap: round;
}

.shirt-collar {
	fill: none;
	stroke: var(--shirt-seam);
	stroke-width: 16;
	stroke-linecap: round;
}

/* The print */
html.shirt .page-container {
	position: relative;
	z-index: 1;
	zoom: 0.55;
	margin: 0 auto;
	padding: 0;
}

html.shirt:not(.myspace) .page-container {
	mix-blend-mode: multiply;
}

/* Page chrome that isn't part of the print */
html.shirt footer,
html.shirt .bglogo {
	display: none;
}

/* The 3D shirt overlay (see shirt3d.js) */
.shirt3d {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: radial-gradient(ellipse at 50% 40%, #fffafc 0%, #fbdde7 70%, #f6bfd2 100%);
}

html.myspace .shirt3d {
	background: radial-gradient(ellipse at 50% 40%, #2a1020 0%, #0b0b0d 70%);
}

.shirt3d-canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: grab;
}

.shirt3d-canvas:active {
	cursor: grabbing;
}

.shirt3d-close {
	position: absolute;
	top: calc(14px + env(safe-area-inset-top, 0px));
	right: 14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #f1c4d4;
	background: #fffafc;
	color: #a61e4d;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

html.myspace .shirt3d-close {
	background: #000;
	border-color: #ff2a8a;
	color: #ff2a8a;
}

.shirt3d-close:focus-visible {
	outline: 2px solid #d6336c;
	outline-offset: 2px;
}

.shirt3d-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	margin: 0;
	text-align: center;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-size: 18px;
	color: #a61e4d;
	pointer-events: none;
}

html.myspace .shirt3d-hint {
	font-family: Verdana, Tahoma, sans-serif;
	font-style: normal;
	font-size: 13px;
	color: #ff69b4;
}
