@import url('https://fonts.googleapis.com/css?family=Arapey:400,400i|Montserrat:400,400i,700,700i&display=swap');

body {
  background-image: url('tausta.jpg');
  background-repeat: none;
  background-size: cover;
  background-attachment: fixed;
  background-position: center bottom;
}

a {
  color: #61489b;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
  text-decoration: none;
  position: relative;
}

.dark-content-box a {
  color: #fff;
}

.content-box p a:before, .dark-content-box p a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #855ce3;
  visibility: hidden;
  -webkit-transform: scaleX(0.3);
  transform: scaleX(0.3);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content-box p a:hover:before, .dark-content-box p a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

a:hover {
  color: #855ce3;
  -webkit-transition: color .5s; /* For Safari 3.0 to 6.0 */
  transition: color .5s;
  text-shadow: 0px 2px 3.92px rgba(0, 0, 0, 0.25);
}

.wrapper {
  width: 1100px;
  margin: 100px auto 0 auto;
  padding-bottom: 20px;
  border: 1px solid rgb(105, 78, 115);
  background: url('otsikko_bg.png') no-repeat 0px 0px, rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 29.4px 0.6px rgba(255, 184, 242, 0.1);
  border-radius: 45px 0 45px 0;
}

header {
  position: absolute;
  top: 0;
  width: 1100px;
}

.img-header {
  display: block;
  margin: 0 auto;
}

header a:hover:before {
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

nav {
  width: 1000px;
  margin: 320px auto 0 auto;
  display: table; 
  position: relative;
  z-index: 25;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

nav ul li {
  display: inline-block;
  margin: 0 35px;
  padding: 10px 0;
}

nav ul li a {
  color: rgb(255, 255, 255);
  font-family: 'Arapey', serif;
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 0px 0px 13.5px rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-bottom: 5px;  
  position: relative;
  padding: 0 0 5px 0;
}

nav ul li a:hover, nav ul li:hover a {
  color: #d6c2ff;
  -webkit-transition: color .5s; /* For Safari 3.0 to 6.0 */
  transition: color .5s;
  text-shadow: 0px 0px 13.5px rgba(255, 255, 255, 0.85);
}

nav ul li a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #d6c2ff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

nav ul li a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.content-box {
  width: 1000px;
  background-color: #fff;
  box-shadow: 0px 1px 12px 3px rgba(255, 184, 242, 0.47);
  padding: 10px 60px 30px 60px;
  margin: 20px auto;
  border-radius: 35px 0 35px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #272727;
  line-height: 1.7;
  text-align: justify;
  position: relative;
  box-sizing: border-box;
}

.dark-content-box {
  width: 1000px;
  padding: 10px 50px 30px 50px;
  margin: 10px auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #988db4;
  line-height: 1.7;
  text-align: justify;
  position: relative;
  box-sizing: border-box;
}

footer {
  width: 900px;
  margin: 20px auto 20px;
  text-align: center;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 15px;
  color: #988db4;
  text-shadow: 0px 1px 11.76px rgba(35, 22, 32, 0.33);
  position: relative;
  z-index: 25;
}

h1 {
  color: #77669d;
  font-weight: normal;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 35px;
  text-shadow: 0px 1px 13.5px rgba(88, 66, 152, 0.22);
  margin-left: 20px;
}
  
h2 {
  color: #77669d;
  font-family: 'Arapey', serif;
  font-weight: normal;
  font-size: 25px;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
}

h3 {
  color: #808080;
  font-family: 'Arapey', serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
  padding: 5px 20px;
}


h4{
	text-align: center;
font-family: 'Dancing Script', cursive;
color:#77669d;
font-size: 24px;
margin:0px;
font-weight: normal;
font-style: normal;
text-shadow: #ccc 1px 1px 3px;
}

.dark-content-box h2 {
  color: #cdc5e0;
}



ul li {
  text-align: left;
}

table {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #272727;
  line-height: 1.7;
}



.koriste img {max-width: 25%; border: 5px solid #fff; margin: 20px 10px; box-shadow: 0px 0px 5px rgba(0,0,0,0.6);}


.osal {
  font-size: 11px;
  text-align: left;
  font-style: verdana;
  line-height: 1.3;

}


hr {
	width:80%;
  	height: 1px; 
  	background:#ddd;
  	border:0;
  	margin:30px auto;
}


