@font-face{
	font-family: 'FuturaHandwritten';
	font-style: normal;
	src: url('FuturaHandwritten.ttf') format('truetype');
}

html,body{
	width: 100%;
	height: 100%;
}

body{

	margin:0;
	overflow: hidden;

	background: #fff;

	font-family: 'FuturaHandwritten';
	color: #333;
	font-size: 40px;

}
#preloader{
	position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 50px;
    font-size: 30px;
    text-align: center;
}
#main{
	width: 100%;
	height: calc(100% - 100px);
	position: relative;
	overflow: hidden;
}

#footer{
	position: absolute;
	z-index: 1000;
	width: 100%;
	height: 100px;
	background: #222;
}
s{
	text-decoration: line-through;
}

#translations{
	margin: 10px auto;
    font-size: 10px;
    line-height: 19px;
    color: #fff;
    text-align: center;
    width: 960px;
    letter-spacing: -0.5px;
}
#translations a{
	color:#dd4040;
}
#translations a:hover{
	color:#ee5151;
}

.textbox a {
    color: #e26d6d;
}

/*************************/
/******* SOUND *******/
/*************************/
#sound{
	position: absolute;
	left:13px;
	top:5px;
	width: 100px;
	height: 50px;
	cursor: pointer;
}
#sound > div{
	position: absolute;
}
#sound #sound_icon{
	background: url(../assets/ui/sound.png);
	background-size: auto 100%;
	width: 40px;
	height: 40px;
	top: 5px;
	left:2px;
}
#sound #sound_on, #sound #sound_off{
	left: 52px;
    font-size: 30px;
    line-height: 55px;
}
#sound #sound_on{
	color:#fff;
}
#sound #sound_off{
	color:#595959;
}
#sound[sound=off] #sound_icon{
	background-position: -40px 0;
}
#sound[sound=on] #sound_on, #sound[sound=off] #sound_off{
	display: block;
}
#sound[sound=off] #sound_on, #sound[sound=on] #sound_off{
	display: none;
}

.sharing{
	position: absolute;
	width:220px;
	height:70px;
	top:13px;
	right:13px;
}
.sharing img{
	width: 70px;
	height: 70px;
}

/*************************/
/******* SLIDESHOW *******/
/*************************/

#slideshow_container{
	width:0; height:0;
	position:absolute;
	margin:auto;
	top:0; left:0; right:0; bottom:0;
}
#slideshow{

	/*border: 1px solid rgba(0,0,0,0.2);*/
	width:960px;
	height:540px;

	/* Center this thing */
	position: absolute;
	left:-480px;
	top:-270px;

}
.object{
	position: absolute;
	transition: left 0.5s ease-in-out, top 0.5s ease-in-out;
}
.fader{
	transition: opacity 0.5s ease-in-out !important;
}

/******** Text Box ********/

.textbox{}
.textbox > div{
	position: absolute;
}
/* fake bold */
.textbox b{
	font-weight: normal;
	text-shadow:1px 0 0 currentColor;
}


.label{
	position: absolute;
}

/********* Button ********/

.no-select{
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
}
.button{
	z-index: 0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	transform-origin: 97.5px 27.5px;
	transition: transform 0.1s ease-out;

	text-align: center;
}
.button #background{
	position: absolute;
	background: url(../assets/ui/button.png);
	width:250px; height:125px;
	background-size: 100%;
	top:-35px; left:-30px;
	pointer-events:none;
	cursor: default;
}
.button #text{

	font-family: 'FuturaHandwritten';
	color: #000;
	/*font-size: 24px;*/

	width: 180px;
	height: 30px;
	text-align: center;

	position: absolute;
	top:14px; left:5px;

	cursor: default;

}
.button #hitbox{
	position: absolute;
	width:195px; height:55px;
	cursor: pointer;
}
.button[hover=yes]{
	z-index: 100;
	transform: scale(1.02, 1.02);
}
.button[hover=yes] #background{
	background-position: 0px -126px;
}
.button[hover=yes][size=long] #background {
    background-position: 0px -158px !important;
}
.button[deactivated=yes] #background{
	background-position: 0px -307px !important;
}
.button[deactivated=yes] #text{
	color: #CCCCCC;
}
.button[deactivated=yes] #hitbox{
	display: none;
}
.button[size=short]{
	transform-origin: 57.5px 27.5px;
}
.button[size=short] #background{
	background: url(../assets/ui/button_short.png);
	background-size: 100%;
	width:150px; left:-20px;
}
.button[size=short] #text{
	width:105px;
	/*font-size: 18px;
    top: 18px;*/
}
.button[size=short] #hitbox{
	width:115px;
}
.button[size=long]{
	transform-origin: 172.5px 27.5px;
}
.button[size=long] #background{
	background: url(../assets/ui/button_long.png);
	background-size: 100%;
	background-position-y: -8px;
	width:480px;
}
.button[size=long] #text{
	width:400px;
	top: 11px;
	font-size: 32px;
}
.button[size=long] #hitbox{
	width:420px;
}
.button:active{
    transform: scale(0.95, 0.95);
}

.object.button {
    margin-top: 300px;
}

/*************************/
/******* SCRATCHER *******/
/*************************/

.scratcher{
	position: absolute;
	top:0; left:0;
	width: 100%; height: 100%;
	background: url(../assets/ui/scratch.png);
	background-size: 200% 2000%;
	display: none;

	z-index: 200;
}

/*************************/
/******* CHARACTERS *******/
/*************************/

/*.character{
	position: absolute;
	height: 114px;
}
.character #peep{
	background: url(../assets/tournament/peep_characters.png);
	background-size: auto 100%;
	width: 105px;
	height: 114px;
	top: -5px;
    left: -10px;
}
.character #desc{
	width: calc(100% - 100px);
	font-size: 18px;
	height: 114px;
	right: 0;
	line-height: 1.2em;
}
.character #peep[char=tft]{    background-position: 0 0; }
.character #peep[char=all_d]{  background-position: -105px 0; }
.character #peep[char=all_c]{  background-position: -210px 0; }
.character #peep[char=grudge]{ background-position: -315px 0; }
.character #peep[char=prober]{ background-position: -420px 0; }
.character #peep[char=tf2t]{   background-position: -525px 0; }
.character #peep[char=pavlov]{ background-position: -630px 0; }
.character #peep[char=random]{ background-position: -735px 0; }

.tft{ color:#4089DD; }
.all_d{ color:#52537F; }
.all_c{ color:#FF75FF; }
.grudge{ color:#efc701; }
.prober{ color:#f6b24c; }
.tf2t{ color:#88A8CE; }
.pavlov{ color:#86C448; }
.random{ color:#FF5E5E; }*/

.icon{
	width:25px; height:25px;
	background: url(../assets/ui/sandbox_hats.png);
	background-size: auto 100%;
	display: inline-block;
	position: relative;
    top: 1px;
}
.icon_label{
	display: inline-block;
	font-size: 20px;
	position: relative;
    top: -3px;
}
/*.tft .icon{ 		background-position: 0 0; }
.all_d .icon{ 	background-position: -25px 0; }
.all_c .icon{ 	background-position: -50px 0; }
.grudge .icon{ 	background-position: -75px 0; }
.prober .icon{ 	background-position: -100px 0; }
.tf2t .icon{ 	background-position: -125px 0; }
.pavlov .icon{ 	background-position: -150px 0; }
.random .icon{ 	background-position: -175px 0; }*/

/*************************/
/******* MISC STUFF *******/
/*************************/

/*.score_small{
	width:40px; height:40px;
	background: url(../assets/tournament/score_small.png);
	background-size: auto 100%;
	display: inline-block;
}
.score_small[payoff=R]{ background-position: 0 0; }
.score_small[payoff=T]{ background-position: -40px 0; }
.score_small[payoff=S]{ background-position: -80px 0; }
.score_small[payoff=P]{ background-position: -120px 0; }*/

/*************************/
/***** SLIDE SELECT ******/
/*************************/

#select{
	width:80%;
	text-align: center;
    padding-top: 15px;
}
#select .dot{
	width: 60px;
	height: 60px;
	border-radius: 60px;
	border: 1px solid #fff;
	display: inline-block;
	margin: 0 5px;
	cursor: pointer;
}
#select .dot[selected]{
	background: #fff;
}

img.hidemobile {
	display:initial;
}
img.hidedesktop {
	display:none;
}

/*************************/
/***** CREDITS ******/
/*************************/

.credits{
	color: #888;
}
.credits .big{
	font-size:40px;
	line-height: 42px;
	color:#fff;
}
.credits .divider{
	display: block;
	height: 40px;
}
.credits a{
	color:#dd4040;
}
.credits a:hover{
	color:#ee5151;
}

/*************************/
/***** RESPONSIVE ******/
/*************************/

/* For desktop */
@media screen and (min-width: 1025px) {
	body {
		font-size: 24px;
	}
	.titulo {
		margin-top: -100px;
	}
	img.logo {
		margin-top: -260px;
	}
	#main{
		height: calc(100% - 60px);
	}
	#footer{
		height: 60px;
	}
	.sharing{
		width:120px;
		height:30px;
		top:10px;
	}
	.sharing img{
		width: 30px;
		height: 30px;
	}
	#select {
		width: 100%;
	}
	#select .dot{
		width: 30px;
		height: 30px;
		border-radius: 40px;
	}
	.object.button {
		margin-top: 64px;
	}
	.object.textbox {
		margin-top: 200px;
	}
	img.hidemobile {
		display:none;
	}
	img.hidedesktop {
		display:initial;
	}
}

@media screen and (min-aspect-ratio: 5 / 4) and (max-height: 760px) {
	#main {
		height: 100% !important;
	}
}
