@keyframes rotateMoon {	
	from { transform: rotate(-180deg) translateY(42.5vw) rotate(180deg); }
	to { transform: rotate(180deg) translateY(42.5vw) rotate(-180deg); }
}

@keyframes rotateSun {	
	from { transform: rotate(-180deg) translateY(-42.5vw) rotate(180deg); }
	to { transform: rotate(180deg) translateY(-42.5vw) rotate(-180deg); }
}



@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

:root {
	--front-height: calc(472.75px - (0.195 * 100vw));
}

#about {
    font-family: 'Open Sans', sans-serif;
	position: absolute;
	opacity: 0.5;
	bottom: 0;
	right: 0;
	background-color: white;
	height: auto;
	z-index: 5;
}


.scene {
	display: flex;
	height: 100vh;
	align-items: center;
    justify-content: space-between;
	flex-wrap: wrap;
	position: inherit;
	z-index: 1;
}

.sun {
  position: absolute;
	bottom: calc(var(--front-height) - 7.5vw);
  left: 42.5vw;
  animation: rotateSun 48s infinite linear;
  width: 15vw;
  height: 15vw;
  background-image: url("media/Jermasun.png");
  background-size: cover;
}

.moon {
	position: absolute;
	bottom: calc(var(--front-height) - 7.5vw);
	left: 42.5vw;
	animation: rotateMoon 48s infinite linear;
  width: 15vw;
  height: 15vw;
  background-image: url("media/Jermamoon.png");
  background-size: cover;
}

* {
	margin: 0;
	padding: 0;
	height: 100%;
}

svg {
	position: absolute;
	width: 100vw;
	height: 100vh;
}

body { 
  margin: 0; 
  padding: 0;
  background-color: #000;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

video {
	z-index: 0;
	position: absolute;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	z-index: 3;
}

canvas {
	z-index: 0;
	position: absolute;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	image-rendering: crisp-edges;
}

#clouds{
	height: 100vh;
	width: 100vw;
	padding: 11.82033096926714vh 0;
	position: absolute;
	z-index: 4;
}
  
@keyframes moveclouds {
	0% {transform: translateX(100vw);}
	100% {transform: translateX(-16vw);}
}
  
.cloud{ 
	animation: moveclouds linear infinite;
	position: absolute;
	/* width: auto; */
	image-rendering: crisp-edges;
	height: auto;
}

#front {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	position: absolute;
	/* top: 90vh; */
	width: 100vw;
	z-index: 5;
	bottom: 0;
	height: var(--front-height);
}

#topLayer {
	background-image: url(media/grass.png);
	background-repeat: repeat-x;
	width: 100%;
	height: 32px;
	z-index: 1;
	top: 0;
}

#bottomLayer {
	background-image: url(media/dirt.png);
	background-repeat: repeat;
	width: 100%;
	height: 100%;
	z-index: 0;
}

#clock {
	--clock-font-size: 8vw;
	position: absolute;
	top: calc(50% - var(--clock-font-size) / 2);
	left: 0;
	text-align: center;
	width: 100%;
	height: var(--clock-font-size);
	font-size: var(--clock-font-size);
	font-family: 'Open Sans', sans-serif;
	color: white;
	z-index: 10;
}
