@font-face {
 font-family: Impact;
 src: url("Trenda-Black.eot") /* EOT file for IE */
}
@font-face {
 font-family: Impact;
 src: url("Trenda-Black.ttf") /* TTF file for CSS3 browsers */
}
@font-face {
 font-family: CustomFont;
 src: url("Trenda-Black.eot") /* EOT file for IE */
}
@font-face {
 font-family: CustomFont;
 src: url("Trenda-Black.ttf") /* TTF file for CSS3 browsers */
}
@font-face {
 font-family: Roboto;
 src: url("Roboto-Regular.eot") /* EOT file for IE */
}
@font-face {
 font-family: Roboto;
 src: url("Roboto-Regular.ttf") /* TTF file for CSS3 browsers */
}

html, body
{
    width:  100%;
    height: 100%;
    margin: auto;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1000;
    background: #000;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -ms-touch-action: none;
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    -o-perspective: 800px;
    perspective: 800px;
	
}

p {
	
	font-family: Verdana;
	font-size:12px;
	
}

#chromeFix
{
    font: 16px CustomFont;
}

.toplista-otsikko{
	font: 35px CustomFont;
	color: #e4001b;
}

.toplista-numero{
	font: 20px CustomFont;
	color: #e4001b;
}
.toplista-teksti{
	font: 24px CustomFont;
	color: #000000;
}

.toplista-otsikko-2{
	font: 25px CustomFont;
	color: #e4001b;
}

canvas, #wade_main_div
{
    margin: auto;
    position: absolute;
    padding: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border: none;
    outline: none;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
	z-index:5;
}

.loadingImage_class
{
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
}

#vasen_kuva_div{
	z-index:9999;
}
#oikea_kuva_div{
	z-index:9998;
}

/* SOME ICONS */

div.icons{
	display: table;
    position:fixed;
    top:-300px;
    right: 5px; 
	border:0px;
}

.iconItemShare{
	display: table-cell;
    vertical-align: middle;
    padding-left: 5px;
	border:0px;
}

.iconItem{
	display: table-cell;
    vertical-align: middle;
    padding-left: 5px;
	border:0px;
}

.iconImage{
	width:50px;
	height:50px;
}

.iconImage:hover{
	width:47px;
	height:47px;
}

.vasen_kulma{
			position:fixed;
			top:-300px;
			left:0px;
			width:198px;
			height:132px;
			border:0px;
}
/* -------------------------------------------- BOXI -------------------------------------------- */

 /* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	display:table;
	position: relative;
    background-color: #fefefe;
    margin: auto; /* 15% from the top and centered */
    margin-top:20px;
	padding: 20px;
    width: 500px; /* Could be more or less, depending on screen size */
	height:90%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 25px;
    border: 4px solid #e4001b;	
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;	
	text-align:center;	
}
/* Modal Content/Box */
.modal-content-rekisteroidy {
	display:table;
	position: relative;
    background-color: #fefefe;
    margin: auto; /* 15% from the top and centered */
	margin-top:20px;
    padding: 20px;
    width: 500px; /* Could be more or less, depending on screen size */
	height:90%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 25px;
    border: 4px solid #e4001b;	
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;	
	text-align:center;	
}

/* The Close Button */
.close {
	position: absolute;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
	margin-left:220px;
	margin-top:-40px;
}

.closeButton{
	 height:75px;
	 width:75px;
	 cursor:pointer;
}

.navButton{
	 height:75px;
	 width:75px;
	 cursor:pointer;
}

/* for 980px or less */
@media screen and (max-width: 980px) {
	
	.iconItem{
		display: block;
		padding-left: 5px;
		border:0px;
	}
	
}

/* for 800px or less */
@media screen and (max-width: 800px) {
	
	#vasen_kuva_div{
		display:none;
	}	
	#oikea_kuva_div{
		display:none;
	}

}	

/* for 780px or less */
@media screen and (max-width: 780px) {
	
	div.icons{
		/*display:none;*/
	}	

	.iconItem{
		display:none;
	}

}	


/* for 650px or less */
@media screen and (max-width: 650px) {
	
	.modal-content {
		position: relative;
		background-color: #fefefe;
		margin: auto; /* 15% from the top and centered */
		padding: 20px;
		width: 80%; /* Could be more or less, depending on screen size */
		height:90%;
		text-align:center;
		margin-top:20px;
	}
	.modal-content-rekisteroidy {
		position: relative;
		background-color: #fefefe;
		margin: auto; /* 15% from the top and centered */
		padding: 20px;
		width: 80%; /* Could be more or less, depending on screen size */
		height:1150px;
		text-align:center;
		margin-top:20px;
	}	
	.close {
		right:-10px;
		margin-top:-30px;
		 cursor: pointer;
	}	
	
	.closeButton{
		 height:45px;
		 width:45px;
		 cursor: pointer;
	}

	.navButton{
		 height:55px;
		 width:55px;
		 cursor: pointer;
	}	
		
}

.formLeipa{
	font-family: Roboto;
	font-size:16px; 
	color: #666;
}
.formLinkki{
	color:#e4001b; 
	cursor:pointer;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}