@font-face {
	  font-family: GTB25;
	  src: url("/fonts/GT-2px25pt.otf") format("opentype");
	}
	
	  @font-face {
		font-family: GT25;
		src: url("/fonts/GT-1px25pt.otf") format("opentype");
	  }
	
	   @font-face {
		font-family: GT20;
		src: url("/fonts/GT-1px20pt.otf") format("opentype");
	  }
	  
	  @font-face {
		  font-family: GTB20;
		  src: url("/fonts/GT-2px20pt.otf") format("opentype");
		}
	  
	  html
	  {
		  color: #ffffff;
		  font-size: 20px;
		  margin: 0;
		  padding: 0;
	  }
	  
	  /* Start auto-resizing */
	  @media screen and (min-width: 240px)
	  { 
		  html
		  { 
			  font-size: 1vw;
		  }    
	  }
	  
	  /* Stop auto-resizing */
	  @media screen and (min-width: 1000px)
	  { 
		  html 
		  { 
			  font-size: 10px;
		  }
	  }
	  
	  body {
		background-color: #ffffff;
		color: #000000;
		font-family: GT20;
		font-size: 4rem;
		letter-spacing: 0.2rem;
		display: flex;
		margin: 0 auto;
		justify-content: center;
		align-items: flex-start;
		padding: 1em 0;
	   -webkit-font-smoothing: antialiased;
	   -moz-osx-font-smoothing: grayscale;
	  }
	  
	  header
	  {
		  display: grid;
		  margin: 0 auto;
		  margin-top: 2rem;
		  grid-template-columns: auto;
		  grid-template-rows: auto;
		  align-items: center;
		  justify-items: center;
	  }

#page-content {
		position: relative;
		max-width: 20em;
	  }

	  h1 {
		font-family: GT25;
		font-size: 6rem;
		font-weight: normal;
		letter-spacing: 0.125em;
		margin: 0;
		align-self: center;
	  }
	  
	  main
	  {
		  text-align: center;
	  }
	  
		#presskit main
		{
			text-align: left;
		}
	  
	  a {
		color: black;
	  }
	  

.steam
{
	border-radius: 0.2em;
	border: 2px solid black;
}

input
{
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0.2em;
	border: 2px solid black;
	font-size: 4rem;
	line-height: 1.5em;
	padding: 0.25em 0.5em 0.25em 0.5em;
	font-family: inherit;
	flex: 0 1 100em;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	-o-user-select: text;
	user-select: text;
}

#logos
{
	margin: 1em auto;
	display: grid;
	grid-gap: 1rem;
	grid-template-columns: 1fr auto auto 1fr;
	align-items: center;
	justify-items: center;
	position: relative;
}

#logos a
{
	color: transparent;
	border: none;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: contain;
	display: block;
	width: 9rem;
	height: 9rem;
}
	
a#playables
{
	grid-column: 2;
	background-image: url("/img/logo-playables-1bit.png");
	image-rendering: crisp-edges;
	image-rendering: pixelated;

}

a#panic
{
	grid-column: 3;
	background-image: url("/img/logo-panic-1bit.png");
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

a#zurich
{
	/* 138 x 70 */
	grid-row: 2;
	grid-column: 2 / span 2;
	background-image: url("/img/logo-zh.png");
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	height: 9rem;
	width: 18rem;
}


footer p
{
	text-align: center;
	font-family: GT20;
	color: #000;
	margin: 1em auto;
}

#presskit
{
	/* font-family: sans-serif; */
}

h1,
h2
{
	font-family: GT25;
}

#presskit h1,
#presskit h2,
#presskit h3,
#presskit dt
{
	font-weight: normal;
	font-family: GT25;
	margin: 0.5em auto;
}

#presskit h3,
#presskit dt
{
	font-family: GTB20;

}

#presskit li,
#presskit dd,
#presskit details
{
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}

#trailer
{
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: grid;
	place-items: center;
	width: 100vw;
	height: 56.25vw;
	max-height: 45rem;
	max-width: 80rem;
	border-radius: 0.2em;
	border: .25rem solid #000;
	background-color: black;
	cursor: pointer;
	color: transparent;
	}

#trailer iframe
{
	transition: 1000ms all ease;
	overflow: hidden;
	object-fit: fill;
}

#trailer.poster iframe
{
	opacity: 0;
}

#trailer.poster,
#trailer.loading
{
	background-image: url("/img/thumbnail-video.png");
}

#trailer.loading
{
	animation-name: pulse;
	animation-duration: 1500ms;
	animation-iteration-count: infinite;
	animation-play-state: running;
	animation-timing-function: ease-in-out;
}

#trailer.playing
{
	animation-name: none;
}

@keyframes pulse
{
	from { opacity: 1; }
	50% { opacity: 0.35; }
	to { opacity: 1; }
}

#trailer.playing iframe
{
	opacity: 1;
}

#mailingList
{
	margin: 1em auto;
}

.hidden
{
	position: absolute;
	visibility: hidden;
	pointer-events: none;
	z-index: -1;
}

#mailingList form#elist_form
{
	justify-content: center;
	align-items: center;
	grid-gap: .5em;
	display: grid;
	grid-template-columns: auto;
}

form#elist_form label,
p#status
{
	text-align: center;
	font-size: 1em;
}

form#elist_form label
{
	grid-row: 1;
	grid-column: 1 / span 2;
}

p#status
{
	opacity: 0;
	transition-duration: 350ms;
	transition-timing-function: ease;
	transition-property: opacity;
	grid-row: 1;
	grid-column: 1;
	margin: -1.5em 0 0 0;
}

p#status.success,
p#status.error
{
	opacity: 1;
	margin: 0;
}

form#elist_form div.email
{
	grid-row: 2;
	grid-column: 1;
	place-self: center;
}

form#elist_form div.checkbox
{
	max-width: 100rem;
	grid-column: 1;
	grid-row: 4;
	text-align: center;
}

form#elist_form div.checkbox input

{
	webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
	padding: 0;
	width: 1.5ch;
	height: 1.5ch;
	vertical-align: -.25ch;
	background: white;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	background-image: url("/img/check.png");
	background-size: 0;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	border: 0.2rem solid;
}

form#elist_form div.checkbox input:checked
{
	background-color: black;
	background-size: 1.5rem;
}


form#elist_form div.checkbox span#disclaimer
{
	transition-duration: 350ms;
	transition-timing-function: ease;
	transition-property: max-height, opacity;
	display: block;
	margin-top: .5em;
	margin-right: auto;
	margin-left: auto;
	line-height: 1;
	font-weight: normal;
}

form#elist_form div.checkbox input+label+span#disclaimer
{
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	pointer-events: none;
}

form#elist_form div.checkbox input:checked+label+span#disclaimer
{
	opacity: 1;
	max-height: 8em;
	overflow: visible;
	pointer-events: all;
}

form#elist_form div.submit-button
{
	grid-row: 3;
	grid-column: 1;
	place-self: center;
}

input#elist_email,
button#elist_submit
{
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0.6rem;
	border: 0;
	font: inherit;
	border: 0.2rem solid;
	padding: 0.2em 1em 0.3em 1em;
	font-family: GTB20;
}

::placeholder
{
	color: black;
	position: relative;
}

input#elist_email
{
	background: white;
	font: inherit;
	text-align: center;
}

button#elist_submit
{
	background-color: black;
	border-color: black;
	color: white;
	cursor: pointer;
	transition: 250ms background ease;
}

button#elist_submit:hover
{
	background: white;
	color: black;

	transition-property: background, color;
	transition-timing-function: linear;
	transition-duration: 250ms;
}

@media (min-width: 670px)
{
	
	form#elist_form p#status
	{
		grid-row: 1;
		grid-column: 1 / span 2;
	}
	
	form#elist_form div.email
	{
		grid-row: 2;
		grid-column: 1 / span 1;
		justify-self: end;
	}
	
	form#elist_form div.checkbox
	{
		grid-row: 3;
		grid-column: 1 / span 2;
	}

	form#elist_form div.checkbox #disclaimer
	{
		grid-row: 2;
		grid-column: 1 / span 2;
		max-width: 60rem;
	}

	form#elist_form div.submit-button
	{
		grid-row: 2;
		grid-column: 2 / span 1;
		justify-self: start;
	}
}

#screenshots ul
{
	margin: 1em auto;
	list-style: none;
	padding: 0;
	display: grid;
	grid-gap: 2rem;
	grid-template-columns: auto;
}

#screenshots ul li
{
	margin: 0;
	position: relative;
	width: 80rem;
	height: calc(80rem * .5625);
	transition: 250ms transform ease;
}

@media (min-width: 670px)
{  
	#screenshots ul
	{
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	
	#screenshots ul li
	{
		width: 39rem;
		height: calc(39rem * .5625);
	}
}

#screenshots li a
{
	cursor: pointer;
}

#screenshots img
{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	border-radius: 0.2em;
	transition: 250ms border-color ease;
	transition-property: box-shadow, border-color;
	-webkit-object-fit: cover;
	object-fit: cover;
	border: .2rem solid;
}

#viewer
{
	width: 100%;
	height: 100%;
	display: grid;
	place-content: center;
	background: rgba(0,0,0,0.75);
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	transition: 250ms opacity ease;
	z-index: 100;
}

#viewer #image
{
	display: block;
	width: 100vw;
	height: 56.25vw;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	max-width: 100vw;
	max-height: 56.25vw;
	transform: scale(0);
	transition: 500ms transform ease;
	cursor: pointer;
	image-rendering: crisp-edges;	
	image-rendering: pixelated;
}

body.viewer
{
	overflow: hidden;
	pointer-events: none;
}

body.viewer #viewer
{
	opacity: 1;
	pointer-events: all;
}

body.viewer #viewer #image
{
	transform: scale(1);
}

body[data-viewer="screenshot-01"] #viewer #image { background-image: url("/img/timeflies-screenshot-01.png"); }
body[data-viewer="screenshot-02"] #viewer #image { background-image: url("/img/timeflies-screenshot-02.png"); }
body[data-viewer="screenshot-03"] #viewer #image { background-image: url("/img/timeflies-screenshot-03.png"); }
body[data-viewer="screenshot-04"] #viewer #image { background-image: url("/img/timeflies-screenshot-04.png"); }
body[data-viewer="screenshot-05"] #viewer #image { background-image: url("/img/timeflies-screenshot-05.png"); }
body[data-viewer="screenshot-06"] #viewer #image { background-image: url("/img/timeflies-screenshot-06.png"); }

.screenshot label,
#viewer label
{
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 10;
	cursor: pointer;
}

.screenshot label+a
{
	display: contents;
	pointer-events: none;
}

.hidden
{
	position: absolute;
	visibility: hidden;
	pointer-events: none;
	z-index: -1;
	margin: 0;
}

