/* Global styles */

/* small screens first */

body{
	background-color: #fff;
	font-family: "Myriad Pro", Helvetica, Arial, "sans-serif";
	text-align: center;
	position: relative;
	padding: 0px;
	margin: 0px;
	font-size: 2.25em;
	min-height: 1300px; /* needed for portrait iPhones */ 
	}



a:link, a:visited, .link{
	color: #0077d8;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	}
a:hover, .link:hover{
	color: #50a8ff;
	}

.link-red{
	color: #b50000;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	}
.link-red:hover{
	color: #ff3333;
	}

hr{
	clear: both;
	padding: 0px;
	margin: 20px 0px 0px 0px;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc; 
	}
h1{
	color: #d1864a;
	padding: 15px 0px 10px 0px;
	margin: 0px 0px 0px 0px;
	font-size: 1.6em;
	text-align: left;
	font-weight: bold;
	}
h2{
	font-weight: normal;
	font-size: 1.3em;
	padding-top: 10px;
	}
h3{
	font-weight: bold;
	font-size: .9;
	padding-top: 10px;
	}
p {
	font-size: .9em;
	}
li, dd {
	font-size: .9em;
	padding-bottom: 3px;
	}
.out{
	display: none;
	}	
.print-only{
	display: none;
	}
#gameWrapper{
	display: block;
	position: relative;
	text-align: left;
	width: 840px;
	padding: 0px 0px 0px 0px;
	margin: 0px auto 30px auto;
	border-bottom: 1px solid #ccc;
	min-height: 200px;
	}
#footer{
	margin: 10px auto 10px auto;
	position: relative;
	text-align: left;
	width: 850px;
	}	
#footer p{
	font-weight: normal;
	font-size: .8em;
	margin: 5px 0px 5px 10px;
	color: #aaa;
	}	
#footer a{
	font-weight: normal;
	color: #aaa;
	}
#footer a:hover{
	color: #50a8ff;
	text-decoration: underline;
	}				

/* scene buttons */
#gameWrapper .buttonIn{
	display: inline-block;
	}
/* anchor links */
.bookmarks{
	padding-bottom: 10px;
}			
/* buttons */	
.sceneButton{
	display: inline-block;
	position: relative;
	padding: 0px 3px 0px 3px;
	border-radius: 1em;
	cursor: pointer;
	font-weight: bold;
	margin-top: 3px;
	margin-left: 0;
	margin-right: 0;
	background-color: #AEDAFF;
	border: 1.5px solid #fff;
	}
.sceneButton p{
	padding: 15px 10px 15px 10px;
	margin: 0px;
	font-size: .85em;
	color: #000;
	}
.sceneButton:hover{
	background-color: #77C2FF;
	z-index: 50;
	position: relative;
	}
.sceneButton a:hover, .sceneButton a:link, .sceneButton a:visited{
	color: #000;
	}	
.clear{
	clear: both;
	padding: 0px;
	margin: 0px;
	}
/* for quit button */
.quit{
	float: none;
	background-color: #ff3333;
	}	
.quit:hover{
	background-color: #b50000;
	}
.quit a:hover, .quit a:link, .quit a:visited,
.remove a:hover, .remove a:link, .remove a:visited{
	color: #fff;
	}	
.quit p, .remove p{
	color: #fff;
	}	
/* for "Remove Monster from Gallery" button*/	
.remove{
	float: right;
	background-color: #8352a0;
	}	
.remove:hover{
	background-color: #5a3072;
	}	
/* active button */		
.button-active{
	background-color: #FCC49D;
	}	
.button-active:hover{
	background-color: #EFAF84;
	}		
/* first, middle, last button */	

.button-first{
	border-radius: 1em 0em 0em 1em;
	margin-left: 0px;
	margin-right: -4px;
	}
.button-middle{
	border-radius: 0em;
	margin-left: -4px;
	margin-right: -4px;
	}
.button-last{
	border-radius: 0em 1em 1em 0em;
	margin-left: -4px;
	margin-right: 0px;
	}

.float-left{
	padding: 0px;
	margin: 0px auto 0px auto;
	width: 70%;
	position: relative;
	clear: both;
	}
.float-left-small{
	padding: 0px;
	margin: 0px auto 0px auto;
	width: 60%;
	position: relative;
	}		
.float-right{
	padding: 0px;
	margin: 0px auto 0px auto;
	width: 70%;
	position: relative;
	clear: both;
	}	
.float-right-small{
	padding: 0px;
	margin: 0px auto 0px auto;
	width: 60%;
	position: relative;
	}	
.screenshot{
	width: 95%;
	margin: 0px auto 0px auto;
	text-align: center;
	}	
.float-left img, .float-right img, .screenshot img{
	width: 100%;
	}
.float-right-small img{
	width: 100%;
	max-height: 550px;
	}	
.float-left p, .float-right p, .float-right-small p{
	padding: 0px;
	margin: 0px;
	color: #aaa;
	font-size: .825em;
	}	
.top-padding{
	padding-top: 20px;
	}

#intro-scene, #credits-scene, #play-scene, #howPlay-scene, #library-scene, #animalInfo-scene{
	padding: 5px 20px 20px 20px;
	}

/* Back to top button */
#back-to-top{
	position: fixed;
	width: 3.8em;
	height: 3.8em;
	background-color: rgba(0,0,0,0.45);
	right: 0px;
	bottom: 0px;
	border-radius: 50%;
	text-align: center;
	margin-right: 1em;
	margin-bottom: 1em;
	padding-top: 0em;
	z-index: 1000;
	display: none;
	}
#back-to-top:hover{
	background-color: rgba(0,0,0,0.65);
	}
#tri {
  	width: 0; 
  	height: 0;
  	border-left: 1.2em solid transparent;
  	border-right: 1.2em solid transparent;
  	border-bottom: 1.5em solid #fff;
	margin: auto;
	padding-top: .9em;
	}	


		
/* MAIN SCENE ------------------- */	
#main-scene{
	text-align: center;
	padding: 0px;
	}
#main-scene h1{
	font-family: 'Luckiest Guy';
	text-align: center;
	font-weight: normal;
	font-size: 2.5em;
	line-height: .9em;
	padding: 50px 0px 30px 0px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	}
#main-scene h2{
	font-weight: bold;
	font-size: 1.1em;
	margin: 0px 30px 0px 30px;
	padding: 0px;
	}	

/* ROUND ICONS */		
ul.tripleIcons{
	text-align: center;
	padding: 10px 0px 0px 0px;
	margin: 0px;
	}	
ul.doubleIcons{
	text-align: center;
	padding: 10px 0px 30px 0px;
	margin: 0px;
	}		
ul.tripleIcons li{
	display: inline-block;
	width: 30%;
	padding: 0px;
	margin: 0px auto 0px auto;
	text-align: center;
	vertical-align: top;
	color: #000;
	}
ul.doubleIcons li{
	display: inline-block;
	width: 30%;
	padding: 0px;
	margin: 0px auto 0px auto;
	text-align: center;
	vertical-align: top;
	color: #000;
	}	
ul.tripleIcons li img, ul.doubleIcons li img{
	width: 90%;
	display: block;
	margin: 0px auto 10px auto;
	}		
ul.tripleIcons p.icon-details, ul.doubleIcons p.icon-details{
	line-height: 1.15em;
	margin-top: 10px;
	padding: 0px 5px 0px 5px;
	}

/* FACTS LIST */
#mainFactsWrapper{
	margin-top: 30px;
	padding-bottom: 20px;
	}
#mainFactsWrapper h3{
	font-weight: bold;
	font-size: 1.5em;
	color: #d1864a;
    border-top: 1px solid #ccc; 
    margin: 0px;
    padding: 30px 0px 0px 0px;
    }	
#mainFactsWrapper p{
	margin-top: 5px;
	line-height: 1.25em;
	margin: 10px 40px 30px 40px;
   	} 


/* HOW TO PLAY */

/* icons */
#howPlay-scene dl{
	clear: both;
	padding: 12px 0px 12px 0px;
	margin: 0px;
	}
#howPlay-scene dd{
	padding: 10px 0px 0px 35px;
	}	
#howPlay-scene dt{
	float: left;
	width: 7%;
	}
#howPlay-scene dt img{
	width: 100%;
	padding-bottom: 1px;
}

/* GAME PORTION */	

#boxWrappers{
	margin: 20px 0px 20px 0px;
	padding: 0px;
	background-repeat: repeat-y;
	background-size: 16px;
	background-position: top;
	background-image: url("../assets/images/border.svg");
	}

#inputBoxWrapper{
	margin: 0px;
	padding-right: 15px;
	float: left;
	width: 380px;
	}

#outputBoxWrapper{
	margin: 0px;
	float: right;
	width: 380px;
	}

#mainAnimalImage, #mainCreatureWrapper{
	position: relative;
	background-color: #aaaaaa;
	width: 380px;
	height: 380px;
	display: block;
	position: relative;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	}
#mainAnimalImage img{
	width: 80%;
	height: 90%;
	padding-top: 5%;
	padding-left: 10%;
}	
#mainAnimalImage p, #mainCreatureWrapper p{
	padding: 130px 20px 20px 20px;
	font-size: .85em;
	text-align: center;
	color: #ffffff;
	margin: 0px;
	height: 210px;
	}
.attachmentPoint {
    position: absolute;
    display: block;
   	width: 22px;
    height: 22px;
    margin-top: 3px;
    margin-left: 3px;
    background-color: rgba(0,0,0,.4);
    border: 2px solid rgba(200,0,0,1);
    border-radius: 50%;
    transition: all 300ms;
	}
.attachmentPoint:hover{
	background-color: rgba(0,0,0,0.25);
	border: 2px solid rgba(255,0,0,1);
	width: 28px;
    height: 28px;
    margin-top: 0px;
    margin-left: 0px;
}	

#creatureGraphicsWrapper{
	position: absolute;
	display: block;
	top: 0px;
	left: 0px;
	height: 380px;
	width: 380px;
}
#attachmentPointWrapper{
	top: 0px;
	left: 0px;
	position: absolute;
	z-index: 300;
	transition: all 300ms;
}


.textBox{
	padding: 0px 15px 8px 0px;
	font-size: .95em;
	}	
.animalMenu, .creatureMenu{
	position: relative;
	padding: 0px 15px 15px 0px;
	margin: 0px;
	color: #0077d8;
	font-weight: bold;
	font-size: 1.1em;
	z-index: 500;
	text-align: center;
	}
.animalMenu p, .creatureMenu p{
	margin-top: 5px;
	margin-bottom: 5px;
	}	
.animalMenu span:hover, .creatureMenu span:hover{
	color: #50a8ff;
	cursor: pointer;
	text-decoration: underline;
	}	
.animalMenu span.active, .creatureMenu span.active{
	color: #d1864a;
	}	
#boxWrappers h3{
	padding: 0px;
	margin: 0px;
	font-size: 1em;
	font-weight: bold;
	}
#scientificName p, #commonName p, #creatureOutcome p{
	padding: 0px;
	margin: 0px;
	}
/* for the parts list displayed in the creature box */
.creaturePartsAdded{
	margin-bottom: 10px;
	}

/* MATCHING MISHAPS */

#creatureMatchingMishapsWrapper{
	list-style-type: none;
	}
.mishapsSystemBlock{
	padding: 5px 0px 25px 0px;
	}
.mishapSystemTitle{
	cursor: pointer;
	color: #0077d8;
	text-decoration: none;
	font-weight: bold;
	padding: 0px;
	margin: 0px;
	}
p.mishapsSystemShortSummary{
	margin: 0px;
	padding: 0px;
	}	
p.numberMishaps{
	color: #BBB;
	margin: 0px;
	padding: 0px;
	}		
.mishapSystemTitle:hover{
	color: #50a8ff;
	text-decoration: underline;
	}
.mishapsSystemSummary{
	margin: 0px;
	padding: 0px;
	}
.matchingMishapsList{
	padding: 10px 0px 0px 0px;
	margin: 0px 0px 0px 0px;
	list-style-type: none;		
	}
.matchingMishapsList li{
	padding: 0px 0px 10px 40px;
	margin: 5px 0px 0px 0px;
	background-image: url("../assets/images/xmark.svg");
	background-repeat: no-repeat;
	background-size: 1.2em;
	}			
.matchingMishapsList li.checkMark{
	background-image: url("../assets/images/checkmark.svg");
	}

/* METER AND SCORE */
#creatureMishapsMeter{
	position: relative;
	display: block;
	width: 100%;
	height: 40px;
	margin: 0px 0px 30px 0px;
	background-image: url("../assets/images/meter-bg.png");
	background-repeat: repeat-y;
	background-size: 100%;
	border: 1px solid #000000;
	}
#meterBar{
	position: absolute;
	height: 100%;
	top: 0px;
	width: 3px;
	background-color: #000000;
	left: 30%;
	padding: 0px;
	}
#creatureMishapsScore p{
	padding:0px;
	margin: 0px;
	}
.matchingMishapsIntroText{
	color: #FF0000;
	font-weight: bold;
}


/* CREATURE ABOUT and PROJECT POSITIVES */
#creatureAboutWrapper{
	padding-bottom: 20px;
	}
#projectPositivesWrapper p{
	margin: 20px 0px 5px 0px;
	}
#projectPositivesWrapper{
	padding: 0px 0px 0px 0px;
	margin: 0px;
	}
#projectPositives{
	padding: 0px 0px 0px 0px;
	margin: 0px 0px 0px 0px;
	list-style-type: none;
	}


#projectPositives li{
	padding: 0px 0px 0px 40px;
	margin: 10px 0px 0px 0px;
	background-image: url("../assets/images/checkmark.svg");
	background-repeat: no-repeat;
	background-size: 1.2em;
	}	

#animalCategoriesWrapper{
	padding-top: 10px;
	padding-bottom: 10px;
	}
#animalCategoriesWrapper p{
	padding: 0px 0px 3px 0px;
	margin: 0px;
	}	
#animalCategories{
	padding: 0px 0px 0px 0px;
	margin: 0px 0px 0px 10px;
	}
#animalCategories li{
	padding: 3px 0px 3px 0px;
	margin: 0px 0px 0px 5px;
	}
#animalCategories li .term{
	cursor: pointer;
	color: #0077d8;
	text-decoration: none;
	}
#animalCategories li .term:hover{
	color: #50a8ff;
	text-decoration: underline;
	}


#creaturePartsList{
	margin: 0px 0px 10px 0px;
	}
#creaturePartsList div{
	padding-bottom: 10px;
	}	
#creaturePartsList p.common{
	margin: 0px;
	padding: 0px;
	font-weight: bold;
	}	
#creaturePartsList p.scientific{
	margin: 0px;
	padding: 0px;
	font-style: italic;
	}



/* ADD PARTS */
#animalRestartButtonWrapper{
	margin-top: 25px;
	}
#animalRestartButtonWrapper p{
	margin-bottom: 5px;
	}			
.animalButtonWrapper{
	text-align: center;
	}		
.animalButton{
	padding: 6px 12px 6px 12px;
	margin: 0px 3px 15px 3px;
	color: #000;
	background-color: #AEDAFF; 
	display: inline-block;
	border-radius: 1em;
	cursor: pointer;
	}	
.animalButtonActive{
	padding: 6px 12px 6px 12px;
	margin: 0px 3px 5px 3px;
	color: #000;
	background-color: #EFAF84; 
	display: inline-block;
	border-radius: 1em;
	cursor: pointer;
	}		
.animalButton:hover{
	background-color: #77C2FF;
	}	
#animalRestartButtonWrapper .animalButton{
	background-color: #D1C2FF;
	}
#animalRestartButtonWrapper .animalButton:hover{
	background-color: #BBA4F4;
	}






/* original 125h x 160w, scale 1.2*/
.creatureBodyPart{
	position: absolute;
	width: 192px;
	height: 150px;
	padding: 0px;
	margin: 0px;
	user-select: none;
	transform-origin: center bottom;
	z-index: 50;
}
.creatureBodyPart img{
	padding: 0px;
	margin: 0px;
	border:none;
	vertical-align: bottom;
	width: 100%;
	height: 100%;
}




/* Animal list */
#selectAnimalWrapper{
	user-select: none;
	display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    grid-gap: .5rem;
	}
#selectAnimalList{
	display: flex;
	padding: 10px 0px 0px 0px;
	margin: 0px;
	}
#selectAnimalList li{
	width: 90px;
	height: 90px;
	margin: 0px 2px 0px 2px; 
	list-style-type: none;
	padding: 0px;
	border: 4px solid #fff;
    border-radius: .5rem;
	background-color: #aaaaaa;
	display: inline-block;
	cursor: pointer;
	}
#selectAnimalList li img{
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
	}	
#selectAnimalList li:hover{
	border-color: #AEDAFF;
	}
#selectAnimalList li.active{
	border-color:#FF7F00;
	}
#selectAnimalList li p{
	position: absolute;
}	
.arrow{
	width: 70px;
	height: 120px;
	background-image: url("../assets/images/animalList-arrow-base.svg");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	cursor: pointer;
	user-select: none;
	}
#selectAnimalRight{
	transform: scale(-1);
	}	
.arrow:hover {
	background-image: url("../assets/images/animalList-arrow-hover.svg");
	}


/* Name */
#playerNameWrapper p, #creatureNameWrapper p {
	padding: 0px 0px 0px 0px;
	margin: 0px;
	}
#playerName, #creatureName{
	border: none;
	font-size: 1em;
	margin: 0px 0px 20px 0px;
	padding: 3px 5px 3px 5px;
	color: #2d2d2d;
	font-weight: normal;
	display: block;
	position: relative;
	width: 50%;
	}	
/* ICONS */	
#iconWrapper{
	padding: 0px 0px 0px 0px;
	margin: 0px;
	display: inline-block; 
	vertical-align: top;
	}		
#buttonSubWrapper{
	float: left;
	}
#soundButton, #muteButton{	
	position: relative;
	cursor: pointer;
	margin: 5px 0px 0px 7px; 
	padding: 0px;
	vertical-align: top;
	width: 1.8em;
	display: inline-block;
	}	
#howPlayButton{
	cursor: pointer;
	display: inline-block;
	width: 1.8em;
	padding: 0px;
	margin: 0px 0px 0px 0px; 
	}	
#printButton{
	cursor: pointer;
	display: inline-block;
	width: 2em;
	padding: 0px;
	margin: 0px 0px 0px 3px; 
	border: none;
	}
#saveButton{
	cursor: pointer;
	display: inline-block;
	width: 2em;
	padding: 0px 0px 0px 8px; 
	margin: 0px; 
	border: none;
	}						
	

.infoBox{	
	background-color: #D4EEFF;
	padding: 5px 20px 15px 20px;
	margin: 30px 0px 20px 0px;
	position: relative;
	display: none;
	clear: both;
	}
.closeX{
	width: 1.25em;
	position: absolute;
	right: 10px;
	top: 10px;
	cursor: pointer;
	}

#conclusionWrapper input{
	margin-left: 0px;
	margin-right: 10px;
	margin-bottom: 15px;
	padding: 8px;
	font-size: 1em;
	}				


/* for animal info page */
.animalInfoBlock{
	margin-top: 20px;
	}
.animalInfoBlock h3{
	margin-bottom: 0px;
	margin-top: 10px;
	}
.animalInfo-scientific{
	font-style: italic;
	padding-top: 0px;
	margin-top: 0px;
	}
.animalInfoBlock hr{
	margin-top: 30px;
	}	
.animalInfoBlock ul{
	padding: 0px 0px 0px 15px;
	margin: 0px;
	}	
.animalInfoBlock ul li{
	line-height: 1.2em;
	padding: 5px 0px 5px 0px;
	}	
#preload{display: none}

#libraryLinkWrapper{
	padding-top: 30px;
}

/* tablet ------------------------------------------- */

@media (min-width:400px) {

	body{
		font-size: 1.35em;
		background-color: #fff;
		min-height: 0px;
	}
	
	h1{
		padding: 10px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
		font-size: 2.5em;

	}
	h2{
		font-size: 1.6em;
	}
	h3{
		font-weight: bold;
		font-size: .9;
	}
	/* buttons */	
	.sceneButton{
		border-radius: 1em;
	}
	.padding1{
		margin-top: 50px;
	}
	.sceneButton p{
		padding: 13px;
	}
	.quit{
		float: right;
	}
	/* first, middle, last button */	
	.button-first{
		border-radius: 1em 0em 0em 1em;
		margin-left: 0px;
		margin-right: -2px;
	}
	.button-middle{
		border-radius: 0em;
		margin-left: -2px;
		margin-right: -2px;
	}
	.button-last{
		border-radius: 0em 1em 1em 0em;
		margin-left: -2px;
		margin-right: 0px;
	}
	#main-scene h1{
		padding: 40px 0px 0px 0px;
		line-height: .8em;
		font-size: 4em;
		color: #d1864a;
	}
	#main-scene h2{
		margin: 10px auto 0px auto;
		font-size: 1.2em;
	}	
	ul.tripleIcons li, ul.doubleIcons li{
		font-size: 1em;
		width: 30%;
	}
	ul.tripleIcons p.icon-details, ul.doubleIcons p.icon-details{
		line-height: 1.15em;
		margin-top: 10px;
	}		
	#buttonSubWrapper{
		float: left;
	}

	#footer{
		margin: 0px auto 20px auto;
	}
	.float-left{
		padding: 0px 40px 20px 0px;
		margin: 0px;
		width: 45%;
		float: left;
	}
	.float-left-small{
		padding: 0px 40px 20px 0px;
		margin: 0px;
		width: 30%;
		float: left;
	}
	.float-right{
		padding: 0px 0px 20px 40px;
		margin: 0px;
		width: 45%;
		float: right;
	}	
	.float-right-small{
		padding: 40px 0px 20px 40px;
		margin: 0px;
		width: 30%;
		float: right;
	}
	.float-right-small img{
		max-height: 340px;
	}
	.screenshot{
		width: 85%;
	}
	#howPlay-scene dt{
		width: 5%;
	}
	#howPlay-scene dd{
		padding: 10px 0px 0px 5px;
	}
	/* play */
	#mainAnimalImage p, #mainCreatureWrapper p{
		padding: 150px 20px 20px 20px;
		font-size: 1.15em;
	}
	.infoBox{	
		margin: 5px 0px 10px 0px;
	}
	/* METER AND SCORE */
	#creatureMishapsMeter{
		height: 25px;
	}
	#projectPositives li{
		padding: 0px 0px 0px 25px;
	}
	.matchingMishapsList li{
		padding: 0px 0px 10px 25px;
	}
}







/* larger screens ------------------------------------------- */
@media (min-width:850px) {
	
		
	body{
		font-size: 1em;
		background-color: #fff;
		}
	#gameWrapper{
		margin: 10px auto 10px auto;
		border: 1px solid #ccc;
	}		
	#main-scene h1{
		padding: 30px 0px 20px 0px;
		line-height: .9em;
		font-size: 5.4em;
	}
	ul.tripleIcons li, ul.doubleIcons li{
		width: 21%;
	}

	.float-left{
		width: 35%;
		padding: 0px 30px 0px 0px;
	}
	.float-left-small{
		width: 21%;
		padding: 0px 30px 0px 0px;
	}
	.screenshot{
		width: 65%;
	}
	.float-right{
		width: 35%;
		padding: 0px 0px 10px 30px;
	}	
	.float-right-small{
		padding: 0px 0px 10px 40px;
		width: 31%;
	}
	#howPlay-scene dt{
		width: 4%;
	}
	#howPlay-scene dd{
		padding: 10px 0px 0px 5px;
	}	
	.sceneButton p{
		padding: 7px;
	}
	#mainAnimalImage p, #mainCreatureWrapper p{
		padding: 180px 30px 20px 30px;
		font-size: 1.15em;
	}
	.animalButton{
		margin: 0px 3px 5px 3px;
	}
	#creatureMishapsMeter{
		height: 16px;
	}
	#projectPositives li{
		padding: 0px 0px 0px 20px;
	}
	.matchingMishapsList li{
		padding: 0px 0px 10px 20px;
	}
}
