
#xmas img {
	max-width: 100%;
	height: auto
}

#xmas {
    position: relative;
    z-index: 10;
}

#xmas .container {
	position: absolute;
	height: 100%;
	width: 100%;
	overflow: hidden;
	background: url("./img.jpg") center center no-repeat;
	background-color: #000;
	background-size: cover;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 8;
}

.clouds {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	transform: translate3d(0, 0, 0)
}

.viewport {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-ms-perspective: 400px;
	-o-perspective: 400px;
	perspective: 400px;
	transition: opacity .5s ease
}

.viewport.faded {
	opacity: 0
}

.texts {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	text-align: center;
	line-height: 1;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-left: 2rem;
	padding-right: 2rem;
	font-size: 40px;
	max-width: 40rem
}

@media(min-width: 768px) {
	.texts {
		font-size: 6.4rem;
		max-width: 60rem
	}
}

@media(min-width: 1280px) {
	.texts {
		font-size: 9.6rem;
		max-width: 100rem
	}
}

.world {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 512px;
	height: 512px;
	margin-left: -256px;
	margin-top: -256px;
	transform-style: preserve-3d
}

.centered {
	position: absolute;
	bottom: 0rem;
	left: 0rem;
	padding: 2rem;
	z-index: 20
}

#request {
	display: none;
	height: 4rem;
	width: 4rem;
	font-size: 1rem;
	border-radius: 3.2rem;
	background-color: #f5f5f7;
	background-color: #f5f5f7;
	background-image: none;
	border-width: 0;
	color: currentColor;
	align-items: center;
	justify-content: center
}

#request svg {
	display: block;
	width: 2rem;
	height: 2rem;
	margin: 0 auto
}

.devicemotion.touchevents .world {
	transition: ease transform 600ms
}

.devicemotion.touchevents #request {
	display: flex
}

.granted #request {
	display: none !important
}

.cloudBase {
	position: absolute;
	width: 20px;
	height: 20px;
	left: 256px;
	top: 256px;
	margin-left: -10px;
	margin-top: -10px;
	transform-style: preserve-3d
}

.cloudLayer {
	position: absolute;
	width: 256px;
	height: 256px;
	left: 50%;
	top: 50%;
	margin-left: -128px;
	margin-top: -128px;
	background-image: url("./particles.png");
	transition: all ease 300ms
}

@media screen and (max-width: 769px) {
	.clouds {
		position: absolute;
		overflow: hidden
	}
}
