@font-face {
  font-family: pixel;
  src: url(pixel.ttf);
}

body {
	width: 100vw;
	height: 100vh;
  margin: 0 auto;
  padding: 0 auto;
  top: 0;
	display: flex;
	justify-content: center;
	align-items: center;

	background: url('snow.gif');
}

#content {
	position: relative;
	background: black;
	width: 400px;
	height: 700px;
	max-height: 80vh;
	margin: 0;

	border-style: solid;
	border-image: url(frame.png) 93 92 87 92 stretch stretch;
  border-image-width: 28px;
  border-image-outset: 0px;
  padding: 14px;
  box-sizing: border-box;
}

#flakes {
	position: absolute;
	top: 14px;
	display: flex;
	flex-direction: row;
	z-index: 2;
	justify-content: center;
	display: none;
}

#flakes > img {
	height: 30px;
	filter: saturate(3) opacity(1);
}
#flakes > div {
		height: 20px;
		font-family: "pixel";
		font-size: 30px;
		margin-left: 20px;
		margin-right: 10px;
		margin-top: 7px;
		color: #00d9f7;
		text-transform: uppercase;
}

#flakes .noflake {
	filter: saturate(0.3) opacity(0.4);
}

#panel {
	position: absolute;
	bottom: 0;
	margin: 20px;
	margin-bottom: 40px;
	width: calc(100% - 68px);
	height: 100px;
	background: transparent;
	display: flex;
	justify-content: space-around;
	display: none;
}

#log {
	position: absolute;
	top: 40px;
	margin: 10px;
	margin-bottom: 40px;
	width: calc(100% - 66px);
	min-height: 50px;
	background: lightgrey;
	z-index: 2;
	border: double black 4px;
	font-family: "pixel";
	font-size: 30px;
	display: block;
	padding: 5px;
	display: none;
}

#left, #right, #action {
	position: relative;
  border: none;
  color: white;
  text-decoration: none;
  height: 100%;
  padding: 0;
  z-index: 2;
}

#picturescene {
	position: absolute;
	height: calc(100% - 28px);
	width: calc(100% - 28px);
	z-index: 1;

}

#scene {
	position: relative;
	object-fit: cover;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
	filter: saturate(2) contrast(100%);   
}

#content > #picturescene::after {
		position: absolute;
    content: '';                                                                                                                                        
    width: 100%;                                                                                                                                        
    height: 100%;                                                                                                                                       
    pointer-events: none;                                                                                                                                       
    display: block;                                                                                                                                     
    z-index: 2;                                                                                                                                         
    top: 0px;
    left: 0px;                                                                                                                                 
    background-image: url("bluenoise.png");                                                                                      
    background-repeat: repeat;   
    image-rendering: pixelated;
    filter: saturate(0.5) contrast(100%) opacity(0.45);   
}

#left input[type=button], #right > input[type=button], #action > input[type=button] {
  background: #7C7C7C;
  background: url("marble.jpeg");
	border-bottom: 8px inset rgba(0,0,0,.5);
	border-left: 8px inset rgba(0,0,0,.5);
	border-right: 8px inset rgba(255,255,255,.5);
	border-top: 8px inset rgba(255,255,255,.5);
	box-sizing: border-box;
	color: white;
	cursor: pointer;
	height: 100%;
	width: 100px;
	padding: 0;
	image-rendering: pixelated;
	filter: saturate(0.5) contrast(100%); 
}

#left:hover input[type=button], 
#left:active input[type=button], 
#right:hover input[type=button], 
#right:active input[type=button], 
#action:hover input[type=button], 
#action:active input[type=button] {
	filter: saturate(0.5) contrast(50%); 
}

#action > input[type=button] {
	font-family: serif;
	font-size: 70px;
	color: #bacbe8;
	filter: sepia(100%) hue-rotate(-180deg) saturate(250%) contrast(100%); 
}

#left::after, #right::after, #action::after {
	position: absolute;
	content: "";
  background: url("arrow.svg");
  background-size: 100px;
  background-repeat: no-repeat;
  position: absolute;
  left: calc(50% - 30px);
  top: calc(50% - 20px);
  width: 60px;
  height: 60px;
  filter: invert(40%) opacity(0.45);
}

#action::after {
	position: absolute;
	content: "";
	background: url("hand.svg");
	width: 60px;
  height: 90px;
  background-size: 60px;
  top: calc(5px);
  transform: scaleX(-1);
  filter: invert(40%) opacity(0.3) sepia(100%) hue-rotate(-190deg) saturate(170%); 
}

#right::after {
	transform: rotate(180deg);
	top: calc(-50% + 60px);
}

#begin {
	position: absolute;
	top: calc(50% - 50px);
	left: calc(50% - 100px);
	height: 100px;
	width: 200px;
	z-index: 5;
}

#begin input {
	height: 100px;
	width: 200px;
	background: url("marble.jpeg");
	border-bottom: 8px inset rgba(0,0,0,.5);
	border-left: 8px inset rgba(0,0,0,.5);
	border-right: 8px inset rgba(255,255,255,.5);
	border-top: 8px inset rgba(255,255,255,.5);
	box-sizing: border-box;
	color: white;
	cursor: pointer;
	padding: 0;
	image-rendering: pixelated;
	filter: saturate(0.5) contrast(100%); 
	font-family: pixel;
	font-size: 60px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: grey;
}

#begin::before {
	position: absolute;
	content: "Anthony, Dewi, Joseph, and Zach's Holiday Card Point-n-click Adventure";
	top: -150px;
	left: -30px;
	padding: 15px;
	width: 230px;
	color: #00873E;
	text-align: center;
	font-family: pixel;
	font-size: 40px;
	background: lightgrey;
	border: double black 4px;
}


#begin::after {
	position: absolute;
	content: "";
	background: url(wisteria.png);
	background-repeat: no-repeat;
	top: -160px;
	right: -90px;
	height: 150px;
	width: 80px;
	background-size: 50px;
}

#claim {
	position: absolute;
	top: calc(50% - 50px);
	left: calc(50% - 150px);
	height: 100px;
	width: 200px;
	z-index: 5;
	display: none;
}

#claim input {
	height: 100px;
	width: 300px;
	background: url("marble.jpeg");
	border-bottom: 8px inset rgba(0,0,0,.5);
	border-left: 8px inset rgba(0,0,0,.5);
	border-right: 8px inset rgba(255,255,255,.5);
	border-top: 8px inset rgba(255,255,255,.5);
	box-sizing: border-box;
	color: white;
	cursor: pointer;
	padding: 0;
	image-rendering: pixelated;
	filter: saturate(0.5) contrast(100%); 
	font-family: pixel;
	font-size: 50px;
	letter-spacing: 4px;
	color: grey;
}


@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  #content {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
  }
}