body {
margin:0;
font-family:verdana, helvetica, sans;
color:#000000;
font-size:12px;
overflow-y:scroll;
background-color:#000;
}

.topnav {
position: fixed;
top: 0px;
width: 100%;
z-index: 10;
overflow: hidden;
background-color: #669999;
}

.topnav a {
float: left;
display: block;
color: #000000;
text-align: center;
padding: 10px 10px;
text-decoration: none;
font-size: 16px;
}

.topnav a:hover {
background-color: #eeeeee;
color: dddddd;
}

.topnav .icon {
display: none;
}

@media screen and (max-width: 800px) {
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: left;
display: block;
}
}

@media screen and (max-width: 800px) {
.topnav.responsive {position: fixed;}
.topnav.responsive .icon {
position: fixed;
left: 0;
top: 0;
}

.topnav.responsive a {
float: none;
display: block;
text-align: center;
}
}

@media screen and (max-width: 800px) {
img {
max-width:100%;
}
}

img {
max-width: 100%;
height: auto;
}

.otsikko {
max-width: 100%;
position:relative;
top:30px;
margin-top: 30px;
margin-left: auto;
margin-right: auto;
color:#fff;
white-space: nowrap;
z-index: 1;
text-align:center;
font-weight: bold;
}

h1 {
font-size: min(5vw,34px);
}

.asettelu {
max-width: 100%;
position:relative;
top:40px;
margin-left: auto;
margin-right: auto;
color:#fff;
}

.pohja {
top:50px;
max-width: 100%;
margin-left: auto;
margin-right: auto;
color:#fff;
}

.center {
text-align:center;
}

.rivitys {
overflow-y: scroll;
scrollbar-color: #222 #000;
scrollbar-width: thin;
height:550px;
max-width: 350px;
/*
float:left;*/
}

p {
max-width: 400px;
padding: 10px 10px;
}

.mugstexts {
top:50px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
color:#fff;
position:relative;
border: 1px solid #ffAF50;
}

.vasen {
float:left;
padding: 10px 10px;
}

.oikea {
padding: 10px 10px;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.wall {
  width: 100%;
  position: relative;
}

.mason {
  position: absolute;
  /*text-align: center;
  font-size: 2em;
  font-weight: white;
  color: white;
  line-height: 1.5em;
  border-radius: 5px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient( 135deg, #F761A1 10%, #AC46C8 100%);
  overflow: hidden;*/
}

/* If the screen size is 801px wide or more, set the font-size of <div> to 80px */
@media screen and (min-width: 801px) {
  div.cases {
    font-size: 28px;
  }
}

/* If the screen size is 800px wide or less, set the font-size of <div> to 30px */
@media screen and (max-width: 800px) {
  div.cases {
    font-size: 16px;
  }
}

/* Map hover actions */

#mappihover
{
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	color: #FFFFFF00;
	transition-duration: .3s;
	transition-timing-function: ease-out;
	/*transition-timing-function: cubic-bezier(0.2, -2, 0.8, 2);*/
	transition-property: top, left, right, bottom, color;
}

#mappihover.hover {
  color:#FFFFFF60;
}

#mappihover:after {
	content: '';
	position: absolute;
	background: currentColor;
	top: inherit;
	left: inherit;
	bottom: inherit;
	right: inherit;
	
	background: currentColor;
	transition-duration: .3s;
	transition-timing-function: ease-out;
	/*transition-timing-function: cubic-bezier(0.2, -2, 0.8, 2);
	transition-timing-function: steps(5, jump-both);*/
	transition-property: top, left, right, bottom, background;
	pointer-events: none;
}