*, *::before, *::after {
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}
body {
	width: auto !important;
	font-family: Verdana;
	background-color: #2C2C2C;
	color: #ACACAC;
	min-height: max(100vh, 40em);
	display: grid;
	place-items: center;
	cursor: url("images/kursorit/kursori.png"), auto !important;
	/* visibility: hidden; */
	overflow: hidden; /* Hide scrollbars */ 
}
::-moz-selection {
	color: #333;
	background: #E8E8E8;
}

::selection {
	color: #333;
	background: #E8E8E8;
}
a {
	color: #30498d;
	text-decoration: none;
}
a:hover {
	  cursor: url("images/kursorit/kursori_a.png"), auto !important;
	  color: #ACACAC;
}
#ympyrasisalto {
	/* white-space: pre; */
	position: absolute;
	margin: auto;
	/* border: 2px solid #666; */
	/* top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /*
	background-color: #2C2C2C; /* For browsers that do not support gradients */
	background-image: linear-gradient(to bottom right, black, #2C2C2C);
	border-radius: 50%;
	/* transition: all 0.6s ease; effecttest.css */
	/* box-shadow:
		0px 0px 28px rgba(0, 0, 0, 0.30),
		0 -10px 20px -5px rgba(0, 0, 0, 0.80); */
	overflow: hidden; /* ! efektiin alla */
	transition: all 0.6s ease; /* ! efektiin alla */
}
#ympyrasisalto::before { /* ! efekti */
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(48, 73, 141,0.3)
  ); hover effect */
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}
#ympyrasisalto:hover { /* ! efekti */
  /* transform: scale(1); / 1 = stays same size, e.g. 1.05 grows */
  /* box-shadow: 0 0 20px rgba(48, 73, 141,0.5); hover effect */
}
.spinningtexts:has(.tsrunoja:hover) .tsrunoja {
	color: #999 !important;
}
.spinningtexts:has(.tspoems:hover) .tspoems {
	color: #999 !important;
}
.spinningtexts:has(.tskuva:hover) .tskuva {
	content: url("images/camera.png");
}
.spinningtexts {
	position: fixed;
	perspective: 15em;
	rotate: 180deg;
		-webkit-animation:spin 120s linear infinite;
		-moz-animation:spin 120s linear infinite;
		animation:spin 120s linear infinite;
	.textstring {
		font-family: "Kavivanar";
		position: absolute;
		width: 1em;
		/* font-size: 60px; */
		white-space: nowrap;
		text-indent: calc(var(--i) * -1em);
		overflow: hidden;
		transform:
		translate(-50%, -50%)
		rotate(calc(15deg * var(--i)))
		translateY(calc(-1em / sin(15deg) + 0.1em))
		rotateX(-90deg); 
	}
	.pviivat {
		visibility: hidden;
	}
}


.spin {
	-ms-transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
}
#keskikuva {
	position: absolute;
	-webkit-transition: transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}
	#keskikuva img {
		width: 150px;
		/* box-shadow:
		-webkit-filter: drop-shadow(3px 2px 3px #ACACAC);
		filter: drop-shadow(3px 2px 3px #ACACAC); */
		/* filter: drop-shadow(0 0 4px #ACACAC); */
		transition: all 0.5s ease;
	}
		#keskikuva img:hover {
			cursor: url("images/kursorit/kursori_a.png"), auto !important;
		}

#binfo {
	/* z-index: -1; hover ei toimi */
	width: 100%;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 10px;
	position: absolute;
	/* direction: rtl; */
	text-align: justify;
	text-align-last: justify; 
	line-break: loose;
	line-height: 14px;
	/* writing-mode: vertical-lr; */
	/* transform: rotate(-90deg); */
}
	#binfo:hover {
		cursor: url("images/kursorit/kursori_a.png"), auto !important;
	}
	#fi, #en {
		background-color: #111;
		color: #eee;
		padding: 0 8px;
		margin: 0 5px 0 0 !important;
	}
	#fi, #en, #fiinfo, #eninfo, #cinfo {
		font-size: 14px;
		margin: 0;
	}
			#fiinfo:hover, #eninfo:hover {
				opacity: 100%;
			}
		#eninfo {
			padding: 0 8px 0 35px;
		}
	.dop {
		opacity: 20%;
		filter: alpha(opacity=20)
		transition: opacity 2s ease-out;
	}
	.visible {
		opacity: 1;
		filter: alpha(opacity=100);
		transition: opacity 2s ease-out;
	}
.noticebox {
	position: absolute;
	width: 200px;
	text-align: center;
	font-style: italic;
}
	.finotice .ennotice {
		
	}
		.noticeb {
			font-size: 16px;
			margin: 0;
		}
		.notices {
			font-size: 12px;
		}
		.notices.one {
			padding-bottom: 20px;
		}
/* biggest screen */ @media screen and (min-width: 1925px) {
	a {
		color: !important;
	}
	#ympyrasisalto {
		width: 760px;
		height: 760px;
	}
	.textstring {
		font-size: 76px;
	}
	.tskuva {
		width: 82px;
	}
	#keskikuva img {
		width: 190px;
	}
}
/* bigger screen */ @media screen and (max-width: 1920px) {
	a {
		color: !important;
	}
	#ympyrasisalto {
		width: 650px;
		height: 650px;
	}
	.textstring {
		font-size: 66px;
	}
	.tskuva {
		width: 74px;
	}
}
/* medium screen */ @media screen and (max-width: 768px) {
	a {
		color: !important;
	}
	#ympyrasisalto {
		width: 480px;
		height: 480px;
	}
	.textstring {
		font-size: 52px;
	}
	.tskuva {
		width: 60px;
	}
}
/* small screen */ @media screen and (max-width: 480px) {
	a {
		color: !important;
	}
	#ympyrasisalto {
		width: 360px;
		height: 360px;
	}
	.textstring {
		font-size: 40px;
	}
	.tskuva {
		width: 54px;
	}
	#keskikuva img {
		width: 120px;
	}
}
/* pyöriminen */ @-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 