/* /////////////////////////////// прелоадер ///////////////////////////////// */
#before-load {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1001;
}
#before-load i {
  font-size: 70px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -35px 0 0 -35px;
}
/* /////////////////////////////// reset ///////////////////////////////// */
body{
    margin: 0px;
    padding: 0px;
    font-family: 'Roboto', sans-serif;
    border-left: 3px solid rgba(0, 0, 0, 0.7);
    border-right: 3px solid rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}
a{text-decoration: none !important;}
/* /////////////////////////////// Flexbox ///////////////////////////////// */
.wrap{flex-wrap: wrap;}
.fx1{display: flex;flex-direction: column;justify-content: center;align-items: center;}
.fx2{display: flex;flex-direction: row;justify-content: center;align-items: center;}
.fx3{display: flex;flex-direction: row;justify-content: flex-start;align-items: flex-start;}
.fx4{display: flex;flex-direction: row;justify-content: space-around;align-items: flex-start;}
.fx5{display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;}

/* ///////////////////////////////////////////////////////////////// */

.header{
    height: 100vh;
    color: #fff;
    position: absolute;
    z-index: 2;
    overflow-y: auto;
    width: 100%;
}
.sun1{
    padding: 0px 17px 12px 17px;
    margin: 5px 0px 5px 0px;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 140px;
}
.sun2{
    margin: 5px 0px 5px 0px;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    min-height: calc(100% - 243px);
}    
.containers{
    padding: 0px 17px 12px 17px;
}
.header h1{
    font-size: 70px;
    margin: 0px 0px 0px 0px;
    color: #fff !important;
}
@media (max-width: 600px) {
    .header h1{
        font-size: 45px !important;
    }
    .header h2{
        font-size: 17px !important;
    }
}
.header h2{
    font-size: 19px;
    margin: 0px 0px 0px 0px;
    font-weight: 400;
    padding: 5px 16px;
    text-align: center;
}
.fax1{
    font-size: 22px !important;
    margin: 0px 0px 0px 0px;
}
.btn1{
    background: rgba(48, 105, 181, 0.9);
    padding: 8px 14px;
    color: #fff;
    transition: 0.3s;
    width: 100%;
}
.btn1:hover{
    background: #50729c;
    color: #fff !important;
    transition: 0.3s;
}

.box-preload{
    height: 100px;
}
.preload{
    position: absolute;
    z-index: -1;
    width: 100%;
}
.box-content_box{ 
    width: 98%;
    margin: 1%;
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
}
.player-title{
    font-size: 18px;
    font-weight: 800;
    padding: 3px 17px 4px 17px;
    margin: 0px 0px 12px 0px;
    background: #30a555;
    width: fit-content;
    border-radius: 0px 0px 25px 0px;
}
.player{
    width: fit-content;
    padding: 4px 10px;
    color: #fff;
    font-weight: 800;
    margin: 5px 5px 5px 5px;
    cursor: pointer;
    background: #30a555;
    border-radius: 2px;
}
.play-on-title{
    color: #fff;
    font-size: 20px;
    padding: 0px 8px 0px 8px;
}
.player-count{
    min-width: 30px;
    height: 30px;
    color: #fff;
    width: fit-content;
    position: relative;
    bottom: 0px;
    margin: 0px 0px 0px 3px;
    font-size: 17px;
    line-height: 2px;
}
.footer{
    height: 40px;
    margin: 7px 0px 0px 0px;
    background: rgba(0, 0, 0, 0.6);
}

/* /////////////////////////////// панорама ///////////////////////////////// */

[type="checkbox"]:checked + label {
	left: calc(50% - 250px);
}
[type="checkbox"]:not(:checked) + label {
	left: calc(50% + 200px);
}
[type="checkbox"]:checked + label div::after {
	position: fixed;
	font-size: 30px;
	left: calc(50% - 250px + 25px - 15px / 2);
	bottom: 50%;
	line-height: 0;
	content: "<";
}
[type="checkbox"]:not(:checked) + label div::after {
	position: fixed;
	font-size: 30px;
	left: calc(50% + 200px + 25px - 15px / 2);
	bottom: 50%;
	line-height: 0;
	content: ">";
}
html, body {
	cursor: default;
	overflow: hidden;
	margin: 0;
	padding: 0;
	height: 100%;
	}
@keyframes spin {
	0% {
		transform: translateZ(586.451px) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) translate(50%, 50%);
	}
	100% {
		transform: translateZ(586.451px) matrix3d(0.999848, 0, 0.0174524, 0, 0, -1, 0, 0, -0.0174524, 0, 0.999848, 0, 0, 0, 0, 1) translate(50%, 50%);
		/*Idk why but if you go any further that 269 degrees it will rotate the wrong way so you just have to live with the skip*/
	}
}
/*spins panorama cube*/
#panoramacontainer {
	overflow: hidden;
	width: 100%;
	height: 100%;
	perspective: 586.451px;
    position: absolute;
	z-index: -1;
}
#panorama {
	animation-name: spin;
	animation-duration: 240s;
	/*I just timed the rotation of the mcpe panorama with my stopwatch*/
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	transform-style: preserve-3d;
	width: 100%;
	height: 100%;
	z-index: -1;
}
#panorama img {
	z-index: -1;
}
#gradient {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient(white, #010202);
	z-index: 0;
	opacity: calc(89/255);
	/*got gradient from panorama_overlay.tga in mcpe resourses*/
}
#screengrid {
	position: fixed;
	height: auto;
	width: 100%;
	display: grid;
	/*the only way I could get mouse position without javascript*/
	grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
	grid-gap: 0;
	top:0;
	right:0;
	bottom:0;
	left:0;
	perspective: 1000px;
	/*using CSS perspective to render steve head (and background)*/
	perspective-origin: 50% 50%;
}
.mousepos {
	z-index: 2;
}
#cube {
	width: 200px;
	z-index: 1;
	left: calc(50% - 100px);
	bottom: calc(50% + 100px);
	position: absolute;
	transform-style: preserve-3d;
}
#cube figure {
	-ms-interpolation-mode: nearest-neighbor;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: -moz-crisp-edges;
	image-rendering: pixelated;
	/*so it won't get blurry*/
	background-size: cover;
	background-repeat: no-repeat;
	margin: 0;
	width: 201px;
	height: 201px;
	/*offset dimensions by one pixel to get rid of gaps*/
	display: block;
	position: absolute;
}
#cube .front {
	transform: rotateY(0deg) translateZ(100px);
}
#cube .back {
	transform: rotateX(180deg) translateZ(100px);
}
#cube .right {
	transform: rotateY(90deg) translateZ(100px);
}
#cube .left {
	transform: rotateY(-90deg) translateZ(100px);
}
#cube .top {
	transform: rotateX(90deg) translateZ(100px);
}
#cube .bottom {
	transform: rotateX(-90deg) translateZ(100px);
}
#cube {
	transform: translateZ(-100px);
	transition: transform 0.3s;
	/* smooth transition to hide blocky grid positioning (no pun intended)*/
}

