body {
	margin: 0;
	font-family: Monospace;
	font-size: 13px;
	line-height: 24px;
	color: #444;
	background: #014925;
	/* background-image: url('./textures/background.png'); */
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	overflow-x: hidden; /*Hide vertical scrollbar */
	overflow-y: hidden; /* Hide vertical scrollbar */
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
}

.pageUI{
	position: absolute;
	left:-50%;
	right:-50%;
	bottom:0;
	margin:auto;
  z-index: 2;
}

.image {
	position:absolute;
	max-width: 100%;
	top:0;
	left:0;
	right:0;
	bottom:0;
	margin:auto;
}

#fading {
	position:absolute;
	background-color: black;
	width: 100%;
	height: 100%;
	opacity: 1;
	-webkit-transition: opacity 1s ease-in-out;
	-moz-transition: opacity 1s ease-in-out;
	-ms-transition: opacity 1s ease-in-out;
	-o-transition: opacity 1s ease-in-out;
	transition: opacity 1s ease-in-out;
	z-index: 25;
}
#fading.fadein{
	opacity: 1;
}
#fading.fadeout{
	opacity: 0;
}

.horsescreen {
	width: 52vh;
  height: 72vh;
  top:-13vh;
}
.logo {
  margin-bottom: 3vh;
  height: 13%;
}
#tap {
  position: absolute;
  height: 1.5%;
  top: 43%;
  left: -12.5vh;
}
#startBtn {
	position: absolute;
  width: 25vh;
  height: 5vh;
  font-size: 1.8vh;
	word-spacing:0.5vh;
  background-color: rgba(176,176,176, .85);
  color: white;
  border-radius: 8px;
  top:35%;
  left:-2%;
  right:0;
  bottom:0;
  margin:auto;
}
#startText{
  color: rgba(176,176,176, 100);
  position: absolute;
  top: 71.5%;
  left: 49.5%;
  transform: translate(-50%, -50%);
	text-align: center;
	font-size: 1.5vh;
	word-spacing:-0.45vh;
}

a {
	color: gray;
	text-decoration: none;
}
.colorPicker {
	display: inline-block;
	margin: 0 10px
}

a:hover {
	text-decoration: underline;
}

div.scrollmenu {

  margin: 0 auto;
  z-index: 3; /* TODO Solve this in HTML */

}
@media(min-width:990px){
  	div.scrollmenu {margin: 0 auto;}
 }

div.scrollmenu a:hover {
  background-color: #777;
}

.button {
  border: 0.1em solid rgba(0,0, 0, 0);
  color: white;
  cursor: pointer;
}
.button:active,
.button:focus
{
  border:0.1em solid #000000; /* here configure as your needs */
  color:#000000;
}
.colorbutton {

	height: 25px;

}
@media only screen and (max-width: 600px) {
	.colorbutton {

		height: 25px;

	}
}

.button1 {background-color: #4CAF50;}
.button2 {background-color: #008CBA;} /* Blue */
.button3 {background-color: #FF0000;} /* Red */
.button4 {background-color: #FF00FF;} /* Fuchsia */
.button5 {background-color: #454343;} /* Black */
.button6 {background-color: #FFFF00;} /* Yellow */
.button7 {background-color: #ffa436;} /* orange */
.button8 {background-color: #D35564;}
.button9 {background-color: #00008B;} /* Dark Blue  */
.button10 {background-color: #DAA520;} /* goldenrod   */
.button11 {background-color: #A52A2A;} /* Brown   */
.button12 {background-color: #095C82;}
.button13 {background-color: #ADFF2F;} /* GreenYellow  */
.button14 {background-color: #E0FFFF;} /* LightCyan   */
.button15 {background-color: #FA8072;} /* Salmon */
.button16 {background-color: #DA70D6;} /* Orchid  */
.button17 {background-color: #708090;} /* SlateGray  */
.button18 {background-color: #FFF8DC;} /* Cornsilk   */
.button19 {background-color: #DAA520;} /* GoldenRod  */
.button20 {background-color: #BA55D3;} /* MediumOrchid   */
.button21 {background-color: #460982;}
.button22 {background-color: #FFE4C4;} /* Bisque   */
.button23 {background-color: #808000;} /* Olive    */
.button24 {background-color: #056B68;} 
.menuBtn{
	position: absolute;
	border: none;
	width: 4.5vh;
	height: 4.5vh;
	top:-92%;
	bottom:0;
	margin:auto;
	background: transparent;
	cursor: pointer;
}
.reset{
	left:-6.5%;
	right:-93.5%;
}
.back{
	left:-92%;
	right:-10%;
}
.rotateBtn {
	position: absolute;
	border: none;
	width: 4vh;
	height: 4vh;
	top:-20%;
	bottom:0;
	margin:auto;
	background: transparent;
}
.rotate_l {
  left:-90%;
  right:-10%;
}
.rotate_r {
  left:-10%;
  right:-90%;
}

a, button, input, select {
	pointer-events: auto;
}

.dg.ac {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	z-index: 2 !important; /* TODO Solve this in HTML */
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0,0,0,0.7);
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

.submitBtn{
	padding:10px 30px;
	text-align: center;
	background-color: #01762F;;
	color: white;
	border-radius: 30px;
	z-index: 3;

}

@media(max-width:767px){
		.submitBtn{font-size:14px;}
	}

.paintLogo{
	width: 4.5vh;
	height: 2.5vh;
	top:28%;
}
.paintTxt{
  width: 5vh;bottom: 27vh;
	display: none;
}

.pinZoom{
	width: 5vh;
  height: 6vh;
	top:55%;
}

.pinZoomTxt{
  color: rgba(176,176,176, 100);
	text-align: center;
	font-size: 2vh;

	width: 20vh;
	height: 3vh;
	top: 68%;
	display: none;
}

#video{
	position:absolute;
	width:100vw;
	height:100vh;
	object-fit:cover;
	z-index:-1;
}

.canvas{
	position:absolute;
	width:100vw;
	height:100vh;
	object-fit:cover;
	z-index:-1;
}

.bottombg{
	background-color: rgba(176,176,176, 1);
	width: 100%;
  height: 12vh;
	top:88%;
}
.capture{
	width: 8vh;
  height: 8vh;
	top:0;
	cursor: pointer;
}
.camera{
	width: 5vh;
	height: 4vh;
	top:-93%;
}
.taptext{
	width: 35vh;
	height: 10vh;
	top:72.5%;
	font-size: 2.75vh;
	word-spacing:-0.85vh;
	line-height: 1em;
	text-align: center;
	color: rgba(176,176,176, 1);
}
.taptextmid{
	width: 45vh;
	height: 10vh;
	top:0;
	font-size: 2.75vh;
	line-height: 1em;
	word-spacing:-0.85vh;
	text-align: center;
	color: rgba(176,176,176, 1);
}

#photoModeContainer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 15;
  pointer-events: none;
}

#flash {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: white;
  z-index: 10;
  opacity: 0;
  transition: 0.5s;
}

.flash #flash {
  opacity: 1;
  transition: 0s;
  pointer-events: auto;
}

#photoModeImage{
  position: absolute;
  max-width: 72%;
  max-height: 72%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52.5%);
  box-shadow: 0px 0px 0px 5px white;
  border-radius: 2vmax;
  opacity: 0;
  transition: 0.5s;
	z-index: 15;
}

#playback {
	position: absolute;
	width: 72%;
	height: 72%;
	left: 0;
	top: -3.5%;
	bottom: 0;
	right: 0;
	box-shadow: 0px 0px 0px 5px white;
	border-radius: 2vmax;
	margin:auto;
	z-index: 15;
	pointer-events: auto;
	cursor: pointer;
}

.photo #photoModeImage {
  opacity: 1;
  transition: 0s;
  pointer-events: auto;
}

#shutterButton{
  position: absolute;
  width: 15vmin;
  height: 15vmin;
  bottom: 2vmax;
  left: 50%;
  transform: translateX(-50%);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: auto;
	cursor: pointer;
}

#recordButton{
  position: absolute;
  width: 15vmin;
  height: 15vmin;
  bottom: 2vmax;
  left: 50%;
  transform: translateX(-50%);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: auto;
	cursor: pointer;
}

#closeButton {
  position: absolute;
  width: 8vmin;
  height: 8vmin;
  top: 5vmax;
  left: 10%;
  transform: translateX(-50%);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: auto;
	cursor: pointer;
	z-index: 15;
}

/*#downloadButton{
  position: absolute;
  width: 15vmin;
  height: 15vmin;
	bottom: 8vmax;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
	cursor: pointer;
}*/

.previewBtn{
	position: absolute;
	width: 30vmin;
	height: 10vmin;
	bottom: 5vmax;
	background-color: rgba(176,176,176, .85);
	border-radius: 8px;
	pointer-events: auto;
	cursor: pointer;
	color:white;
	z-index: 15;
}
.saveBtn{
  left: 30%;
  transform: translateX(-50%);
}
.finishBtn{
  right: 30%;
  transform: translateX(50%);
}

#shareButton{
	position: absolute;
	width: 14vmin;
	height: 5vmin;
	top: 13vmax;
	left: 77.5%;
	transform: translateX(-50%);
	pointer-events: auto;
	cursor: pointer;
}

.photo #shutterButton {
  display: none;
}

.photo #closeButton {
  display: block;
}

#previewPageBg {
	position:absolute;
	background-image: url('./textures/background.png');
	width: 100%;
	height: 100%;
	opacity: 1;
	z-index: 8;
}
