
@import url("font-style.css");

html, body {
	margin: 0px;
	padding: 0px;
	height: 100%;
	min-height: 100%;
}

img#preloader {
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 50%;
	margin-left: -100px;
	margin-top: -100px;
}

/*----------  HUD  ----------*/
#hud {
	width: 100%;
	height: 60px;
	background-color: #000000;
}

#hud-close-button {
	color: red;
	line-height: 60px;
	font-size: 25px;
	float: right;
	padding-right: 15px;
	padding-left: 15px;
	cursor: pointer;
}

.timer-container {
    float: right;
    display: none;
}

.timer-container p {
	color: white;
	float: left;
	font-family: 'Luckiest Guy', cursive;
	line-height: 60px;
	margin-top: 5px;
	font-size: 30px;
}

p.timer-label {
	color: green;
	margin-right: 10px;
}


.hud-player-container{
	float: left;
    height: 60px;
    opacity: 0.5;
}

.hud-player-icon {
    display: block;
    margin-top: 5px;
    margin-left: 5px;
    float: left;
}

p.hud-player-text {
    float: left;
    line-height: 60px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 15px;
    font-family: 'Open Sans', sans-serif;
    color: white;
    font-size: 20px;
}

div#hud-devider {
    width: 2px;
    height: 50px;
    float: left;
    background-color: white;
    margin-top: 5px;
    margin-left: 25px;
    margin-right: 20px;
    display: none;
}





/*----------  BUTTONS  ----------*/
.text-button {
	float: left;
	position: absolute;
	
	cursor: pointer;
}

.screen .text-button p {
	margin: 0;
	line-height: 50px;
	padding-top: 10px;
	padding-left: 20px;
	padding-right: 20px;
	font-family: 'Luckiest Guy', cursive;
	font-size: 30px;
	color: white;
}


.screen {
	width: 100%;
	height: calc(100% - 60px);
	position: absolute;
	top: 0;
	left: 0;
	background-color: white;
	top: 60px;
}

.screen p {
	font-family: 'Luckiest Guy', cursive;
	font-size: 30px;
	color: #6D7A6D;
	margin: 0;
	padding-left: 20px;
	padding-right: 20px;
}

.black-background {
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0.7;
}

.content-container {
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    padding: 20px;
}

.screen .screen-player-name {
	color: #019508;
	font-size: 60px;
	margin-top: 35px;
	margin-bottom: 60px;
}







/*----------  START SCREEN  ----------*/
#start-screen-wrapper {
    max-width: 1200px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    top: 0;
    height: 100%;
    text-align: center;
}

#start-screen-info-wrapper {
	position: relative;
    height: calc(100% - 90px);
}

#start-screen-wrapper h1 {
    min-height: 60px;
    margin: 0px;
    padding-top: 20px;
    font-family: 'Open Sans', sans-serif;
    color: #BA4647;
    font-weight: bold;
    font-size: 40px;
}

#start-screen-image {
	/*margin-top: 10px;
	margin-bottom: 10px;
	max-width: 100%;*/
}

#start-screen-description {
	font-family: 'Open Sans', sans-serif;
	position: absolute;
	bottom: 10px;
}

div#intro-image-wrapper {
    
}

.screen p#intro-ok-button {
	color: white;
}



/*----------  START SCREEN BUTTON GROUP  ----------*/
#sb-horizontal-button-group {
	width: 100%;
	position: absolute;
}

#sb-horizontal-button-group .sb-button-wrapper {
	float: left;
	width: calc(100% / 3);

}

#sb-horizontal-button-group .sb-text-button {
	margin: 10px;
	cursor: pointer;
}

#sb-horizontal-button-group p {
	color: white;
	font-family: 'Titillium Web', cursive;
	margin: 0;
	line-height: 70px;
	font-size: 30px;
}

#player-one-button {
	background-color: #008d24;
}

#player-two-button {
	background-color: #5900bd;
}

#hi-score-button {
	background-color: #bd0044;
}

@media only screen and (min-width : 320px) {
	#sb-horizontal-button-group p {
		font-size: 15px;
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media only screen and (min-width : 768px) {
	#sb-horizontal-button-group p {
		font-size: 30px;
		padding-left: 20px;
		padding-right: 20px;
	}	
}






/*----------  CREATE PLAYER SCREEN  ----------*/
#create-player-screen-container {
	background-color: white;
	width: 100%;
	height: calc(100% - 60px);
	position: absolute;
	top: 60px;
	left: 0px;
	overflow: hidden;
}

div#create-player-wrapper {
    float: left;
}

#create-player-screen-label {
	text-align: center;
}

div#gravatar-area {
    float: left;
}

span#left-button {
    font-size: 40px;
    padding: 10px 15px;
    cursor: pointer;
    float: left;
    opacity: 0;
}

#gravatarContainer {
    float: left;
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gravatar {
	width: 200px;
	height: 300px;
	position: absolute;
	top: 0px;
	left: 0px;
}



span#right-button {
    font-size: 40px;
    padding: 10px 15px;
    cursor: pointer;
    float: left;
}

.user-ok-button {
    float: left;
    clear: both;
    margin-top: 10px;
}


.text-input {
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    float: left;
    clear: both;
	margin-top: 10px;
}

.text-input:focus {
    box-shadow: none;
}


img.intro-image {
    max-height: calc(100% - 80px);
    max-width: calc(100% - 20px);
}






/*----------  GAME SCREEN  ----------*/
.tile {
	/*border: 6px solid black;*/
	width: 100px;
	height: 100px;
	position: absolute;
	text-align: center;
	cursor: pointer;
	background-color: red;
}

#tile-background {
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-color: #CE0C0C;
}

.tile p {
	
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	color: #000000;
	margin: 0;
	word-break: break-word;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	padding: 3px;
}

img.tile-image {
	width: calc(100% - 10px);
	display: block;
	padding: 5px;
}


.popup-background {
    position: absolute;
    background-color: #000000;
    opacity: 0.7;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.popup-container {
	background-color: #ffffff;
	position: absolute;
	top: 0;
	left: 0;
	text-align: center;
	padding-top: 20px;
	padding-bottom: 20px;
	z-index: 100;
}

input#answer-text-input {
    font-size: 25px;
    line-height: 40px;
    height: 40px;
    max-width: 95%;
}

p.question-label {
	font-size: 40px;
}

p.feedback-text {
    font-family: 'Open Sans', sans-serif;
    color: black;
    margin-bottom: 20px;
}

img.gravatar-tile-image {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
}

p.player-ready-label {
	color: #019508;
	font-size: 70px;
	margin-top: 30px;
}

.ok-button-container {
	width: 100%;
	float: left;
	margin-top: 50px;
}

.ok-button {
	font-family: 'Luckiest Guy', cursive;
	color: white;
	font-size: 30px;
	background-color: #FF7100;
	padding: 40px;
	padding-top: 15px;
	padding-bottom: 5px;
	cursor: pointer;
}

span#question-sound-button {
    font-size: 30px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    display: none;
}







/*----------  INTRO POPUP  ----------*/
div#intro-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 150;
    /*background-color: rgba(0, 0, 0, 0.8);*/
    background-color: #000000;
}

div#intro-popup-container {
	width: 500px;
	height: 500px;
	background-color: white;
	position: absolute;
	top: 20px;
	visibility: hidden;
}

.screen p#intro-ok-button {
	color: white;
	background-color: orange;
	line-height: 50px;
	float: left;
	position: absolute;
	bottom: 15px;
	padding-left: 30px;
	padding-right: 30px;
	padding-top: 7px;
	cursor: pointer;
}

p#intro-popup-text {
    position: absolute;
    bottom: 80px;
    font-family: 'Open Sans';
    color: black;
    text-align: center;
	padding-left: 0;
	padding-right: 0;
}

#intro-popup-image-wrapper {
	position: absolute;
	top: 15px;
	left: 15px;
}


#intro-popup-image {
	position: absolute;
}










/*----------  CONGRATULATION SCREEN  ----------*/
div#congratulation-screen-container {
    background-color: #FFFFFF;
    z-index: 70;
}

img#play-again-button {
    margin-top: 10px;
    cursor: pointer;
    margin-left: calc(50% - 100px);
}

p#podium {
	position: absolute;
	bottom: 0;
	background-color: #FF7100;
	padding-top: 30px;
	padding-bottom: 20px;
	color: #FFFFFF;
	width: 700px;
	text-align: center;
}

#vinner-character {
    position: absolute;
    display: block;
}





/*----------  HISCORE LIST SCREEN  ----------*/
#hiscore-list-screen-container {
	background-color: #120F0E;
	min-height: calc(100% - 60px);
	overflow: auto;
}

#hiscore-list-screen-wrapper {
	max-width: 1200px;
	margin: auto;
	background-color: white;
}

p.hiscore-list-button {
    background-color: #EAE8E8;
    width: calc(100% / 2 - 25px);
    line-height: 50px;
    text-align: center;
    margin: 0;
    float: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
}

p.hiscore-list-button.hiscore-list-button-selected{
	background-color: white;
}

p.hiscore-list-button:hover {
	background-color: lightblue;
}

.hiscore-list-close-button {
    background-color: #EAE8E8;
    width: 50px;
    line-height: 50px;
    text-align: center;
    margin: 0;
    float: left;
    cursor: pointer;
}

.hiscore-list-close-button:hover {
	background-color: lightblue;
}

ul, li {
	list-style: none;
}

ul#hiscore-list {
    float: left;
    margin: 0px;
    padding: 0px;
    width: 100%;
}

ul#hiscore-list li {
	float: left;
    width: 100%;
    background-color: #FFFFFF;
}

ul#hiscore-list li:nth-child(even) {
    background-color: #EAE8E8;
}

ul#hiscore-list li p {
	float: left;
	font-family: 'Open Sans', sans-serif;
	line-height: 50px;
    margin-top: 0;
    margin-bottom: 0;
}

p.list-position {
    margin-left: 20px;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.star-icon {
	font-size: 30px;
	vertical-align: middle;
}

p.first-place {
	color: #FFD700;
}

p.secound-place {
	color: #C0C0C0;
}

p.third-place {
	color: #CD7F32;
}

ul#hiscore-list li p.list-score {
    float: right;
    margin-right: 20px;
}























