body {
	background: fixed;
	background-image: url('../img/wallpaper.jpg');
	height: 98%;
	background-repeat: no-repeat;
	background-position: center;
}

.virsraksts {
	font-size: 300%;
	margin-left: 59%;
	margin-top: 1.2%;
	font-family: 'bangers';
	color: darkred;
	position: fixed;
	float: left;
	padding: 20px;
}

canvas {
	position: fixed;
	top: 56%;
	left: 50%;
	width: 640px;
	height: 640px;
	margin: -320px 0 0 -320px;
}

@media screen and (max-width: 600px) {
	.spelesborders,
	.virsraksts {
		width: 100%;
	}
}

@font-face {
  font-family: 'bangers';
  font-style: normal;
  font-weight: 400;
  src: local('Bangers Regular'), local('Bangers-Regular'), url('../font/bangers.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'digital-7';
	src: url('../font/digital-7.ttf');
	font-style: normal;
}

::selection {
	background: #333;
}

::-moz-selection {
	background: #111;
}

*,
html {
	margin: 0;
}



figure {
	width: 210px;
	height: 210px;
	position: absolute;
	top: 30%;
	left: 15%;
	margin-top: -105px;
	margin-left: -105px;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	-webkit-transform: rotateX(-35deg) rotateY(45deg);
	transform: rotateX(-35deg) rotateY(45deg);
	transition: 2s;
}

figure:hover {
	-webkit-transform: rotateX(-50deg) rotateY(45deg);
	transform: rotateX(-50deg) rotateY(45deg);
}

.face {
	width: 100%;
	height: 100%;
	position: absolute;
	-webkit-transform-origin: center;
	transform-origin: center;
	background: #000;
	text-align: center;
}

p {
	font-size: 180px;
	font-family: 'digital-7';
	margin-top: 20px;
	color: #2982FF;
	text-shadow: 0px 0px 5px #000;
	-webkit-animation: color 10s infinite;
	animation: color 10s infinite;
	line-height: 180px;
}

.front {
	-webkit-transform: translate3d(0, 0, 105px);
	transform: translate3d(0, 0, 105px);
	background: #111;
}

.left {
	-webkit-transform: rotateY(-90deg) translate3d(0, 0, 105px);
	transform: rotateY(-90deg) translate3d(0, 0, 105px);
	background: #151515;
}

.top {
	-webkit-transform: rotateX(90deg) translate3d(0, 0, 105px);
	transform: rotateX(90deg) translate3d(0, 0, 105px);
	background: #222;
}

@keyframes color {
	0% {
		color: #2982ff;
		text-shadow: 0px 0px 5px #000;
	}
	50% {
		color: #cc4343;
		text-shadow: 0px 0px 5px #ff0000;
	}
}

@-webkit-keyframes color {
	0% {
		color: #2982ff;
		text-shadow: 0px 0px 5px #000;
	}
	50% {
		color: #cc4343;
		text-shadow: 0px 0px 5px #ff0000;
	}
}