article,aside,details,figcaption,figure,footer,header,hgroup,hr,menu,nav,section{display:block}a,hr{padding:0}abbr,address,article,aside,audio,b,blockquote,body,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:0 0}ins,mark{background-color:#ff9;color:#000}body{line-height:1}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}a{margin:0;font-size:100%;vertical-align:baseline;background:0 0}ins{text-decoration:none}mark{font-style:italic;font-weight:700}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{height:1px;border:0;border-top:1px solid #ccc;margin:1em 0}input,select{vertical-align:middle}

html, body {
	height: 100%;
}

.page-wrapper {
	height: 100%;
	display: flex;
	flex-direction: column;
}

header, article, footer {
	flex: 1;
}

header {
	background: rgb(59,57,57);
	background: linear-gradient(90deg, rgba(59,57,57,1) 0%, rgba(183,194,210,1) 50%, rgba(0,0,0,1) 100%);
	display: flex;
}

article {
	background: rgb(59,57,57);
	background: linear-gradient(90deg, rgba(59,57,57,1) 0%, rgba(183,194,210,1) 50%, rgba(0,0,0,1) 100%);
	display: flex;
	flex: 5;
}

article .box {
	flex: 1;
}

article .box.content {
	flex: 2;
	border-style: solid;
  border-width: 70px;
  border-color: rgb(59,57,57);
  border-image: radial-gradient(circle, rgba(59,57,57,1) 0%, rgba(183,194,210,1) 50%, rgba(0,0,0,1) 100%)1;
	background-color: darkorange;
	animation: liekit 7s 1s ease infinite alternate forwards;
}

.luukku {
	background: rgb(189,237,255);
	background: radial-gradient(circle, rgba(189,237,255,0.8) 0%, rgba(119,138,164,0.7) 100%, rgba(119,138,164,1) 100%);
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 2;
	perspective-origin: left;
	perspective: 400px;
	animation: luukkuauki 8s infinite;
	transform-origin: 0% 0%;
	transform: perspective(300px) rotate(0deg);
}

@keyframes	luukkuauki {
	0% {
		transform: perspective(300px) rotateY(0deg);
	}
	
	25% { 
    transform: perspective(300px) rotateY(0deg); 
  }

  50% {
  	transform: perspective(300px) rotateY(50deg); 
  }

  75% {
  	transform: perspective(300px) rotateY(0deg); 
  }

	100% {
		transform: perspective(0px) rotateY(0deg);
	}
}

@keyframes liekit {
  25% {
    background-color: darkred;
  }
  50% {
  	background-color: darkorange;
  }
  75% {
    background-color: orangered;
  }
}



footer {
	background: rgb(59,57,57);
	background: linear-gradient(90deg, rgba(59,57,57,1) 0%, rgba(183,194,210,1) 50%, rgba(0,0,0,1) 100%);
}


.savu {
	background-image: url(savu.png);
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;  
	opacity: 0.0;
  animation: savua 4s ease-in-out alternate infinite;
  animation-delay: 2s;
}

@keyframes savua {
  100% {
    opacity: 0.8;
  }
}

.linkit	{
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
}

.linkki {
	flex: 1;
}

.linkki:nth-child(1) {
	cursor: w-resize;
}

.linkki:nth-child(2) {
	cursor: e-resize;
}