html {
    box-sizing: border-box;
    overflow-x: hidden;
    height: auto;
    /* Leikataan ylivuoto*/
}

body {
    margin: 0px;
    font-family: "Lato", Verdana, sans-serif;
/*    color: #727272; */
/*    background-image: linear-gradient(to right, black, #121212, black); */
    line-height: 1.4; /* Oli 1.7 aiemmin */
    text-align: justify;
    min-height: 100vh;
    height: auto;
}

.content {
    max-width: 1366px;
    /* top right bottom left */
    padding: 10px 30px 10px 50px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

pre {
    font-size: 1.00em;
    font-family: Consolas, monospace;
}

a:link {
    font-weight: bold;
    color: #909090;
    text-decoration: none;
}

a:visited {
    font-weight: normal;
    color: #828081;
    text-decoration: none;
}

a:hover {
    font-weight: bold;
    color: #E9C893;
    text-decoration: none;
    transition: 0.2s;
}

a:visited:hover {
    font-weight: normal;
    color: #E9C893;
    text-decoration: none;
}

a:active {
    font-weight: bold;
    color: #E9C893;
    text-decoration: none;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), #BB86FC, rgba(255, 255, 255, 0));
}

h1,
h2,
h3,
h4 {
    color: #727272;
    letter-spacing: 1.2px; /* oli 2 */
    font-variant: small-caps;
    background: -webkit-linear-gradient(#121212, #E9C893, #121212);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

.img1,
.img_secondary_title,
.img_story_page_title,
.img3,
.img_mstausta,
.img_misc_page_title {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Kaikkien sivujen otsikko */
.img_story_page_title {
/*    background-image: linear-gradient(to right, black, #121212, black); */
    min-height: 150px;
/* Pitää olla näin korkea, koska lasketaan sivun yläosasta. Jos määrittelee suoraan top: xxpx, niin alemmat elementit eivät muotoudu oikein. */
}

/* Kaikkien sivujen toinen otsikko, jos sellaisia on. */
.img_secondary_title {
/*    background-image: linear-gradient(to right, black, #121212, black); */
    min-height: 40px;
}

.img_misc_page_title, 
.img_mstausta,
.img3 {
    background-attachment: fixed;
}

.img3 {
    position: relative;
    background-image: url(http://www.kuittaa.fi/newrpg/test/sword3.jpg);
    min-height: 50px;
}

.img_mstausta {
    position: relative;
    background-image: url(http://www.kuittaa.fi/newrpg/images/Nimetyt_saaren_sankarit.jpg);
    min-height: 50px;
}

.img_misc_page_title {
    background-image: url(http://www.kuittaa.fi/newrpg/test/sword3.jpg);
    min-height: 170px;
}

.otsikkoalue_sivun_ylaosa {
    position: absolute;
    top: 80%; /* Sivujen ylimmän otsikon sijainti */
    left: 50%;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-0%, -0%)
}

.otsikkoteksti_sivun_ylaosa {
    font-family: 'Kodchasan', sans-serif;
    font-variant: small-caps;
    font-weight: 900;
    letter-spacing: 2px; /* Oli 5 */
/*    color: #121212; */
    font-size: 32px;
    text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081;       
 /*   text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081; */
}

/* Otsikkoalueet ovat toinen otsikko, ja kaikki alaotsitkot sivuilla. */
.otsikkoalue {
    position: absolute;
    white-space: nowrap;
/*    border-radius: 155px; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%)
}

.otsikkoteksti {
    font-family: 'Kodchasan', sans-serif;
    font-variant: small-caps;
    font-weight: 900;
    letter-spacing: 1.5px; /* Oli 2 */
/*    color: yellow; */
    font-size: 26px;
 /*   text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081; */    
    text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081;    

}

/* Nämä valuu alas, ellei määritellä erikseen. Vaikuttaa esim. teksteihin. */

#menu {
    position: fixed;
    z-index: 100;
    width: 100%;
    letter-spacing: 1px;
    font-variant: small-caps;
    font-size: 24px;
    list-style: none;
    padding: 0px;
    margin: 0px;
 /*  background: black;
    color: #727272; */
    text-decoration: none;
    white-space: nowrap;
/*    text-shadow: 1px 1px 3px #1F1B24, 1px 1px 5px #3700B3; */
}

/* Tämä saattaa olla turha? 

#menu ul {}

*/

#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Tässä menussa määritellään listan taustat, esim. väkästen taustat */
#menu ul li {
    display: block;
    position: relative;
    float: left;
    opacity: 0.99;
    padding-right: 24px;
 /*  background: black; */
}

/* This hides the dropdowns */
#menu li ul {
    display: none;
}

/* 1. Tason - Aloitustason - linkkien tyylit. Vaikuttaa tekstiin. */

#menu ul li a {
    display: block;
    padding: 20px 0px 20px 10px;
 /*  background: black; */

}

#menu ul li::before {
    content: '';
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #BB86FC; /* Alanuoliväkänen */
    position: absolute;
    right: 8px;
    top: 50%;
    -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

/*
Menu font sizes:
1st level       24px
2nd level       16px
2nd level link  14px
*/

#menu ul .link::before {
    padding-right: 0px;
    display: none;
}

#menu ul li ul li a {
    padding: 12px;
}

#menu li .link {
    font-size: 14px;
    font-variant: normal;
}

#menu ul li {
/* 
Tarvitaan 2. tason ja alempien ei-linkkien kohdalla. Jos tätä ei ole, normaali variant periytyy myös ei .link-soluille!
*/
    font-variant: small-caps;
}

#menu ul li ul li {
    font-size: 16px;
    transition: 0.2s;
}

#menu > ul li ul li::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #BB86FC;
    position: absolute;
    right: 8px;
    top: 50%;
    -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

/* 2. Tason linkkien on-mouse määrittelyjä */
#menu ul li a:hover {
    color: #E9C893;
    transition:all 0.4s ease;
    -webkit-transition:all 0.4s ease;
}

#menu > ul li ul li:hover {
    background: #333;
}



/* Display the dropdown */


#menu li:hover > ul {
    display: block;
    position: absolute;
}

#menu li:hover li {
    float: none;
}

.main-navigation li ul li {
    border-top: 0;
}

/* Displays second level dropdowns to the right of the first level dropdown */


#menu ul ul ul {
    left: 100%;
    top: 0;
}

/* Simple clearfix */
#menu ul:before,
#menu ul:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

#menu ul:after {
    clear: both;
}



figure {
    float: right; 
    margin-left: 1.5em; 
    margin-right: 1.0em; 
    text-align: center
}

figcaption {
    font-weight: bold;
    font-size: 18px;
    font-variant: small-caps;
}

img.figure {
}

.border-gradient {
    position: relative;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(hsla(37, 66%, 75%, 0.7), hsla(0, 0%, 7%, 1));
    background-clip: padding-box;
    padding: 3px;
}

.footer {
    position: inherit;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    font-family: 'Kodchasan', sans-serif;
    font-variant: small-caps;
    letter-spacing: 1px;
    color: black;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081;
}

.footer a:link {
    color: #BB86FC;
    text-shadow: 1px 1px 3px #3700B3 , 2px 2px 5px #E9C893;
}

#selostus {
    float:left;
    width:530px;
}

#wrapper {
width: 90%;
margin-left: auto;
margin-right: auto;
}

#hahmoslider {
    float:right;
    width:300px;
}

tr {
    color: #727272;
}

#title span {
/*   background: -webkit-linear-gradient(black, darkred, red, darkred, black); */
    background: -webkit-linear-gradient(#BB86FC, #727272, #E9C893);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#title {
  color: #FFF;

font-variant: small-caps;
  text-align: left;
  font-weight: 300;
  font-size: 48px;
 
}

/* Color Scheme: 

main text color:        color: #727272;
Background color:       background-color: #121212;
link color:             color: #909090;
visited link color:     color: #828081;
hover link              color: #E9C893;
visited hover link      color: #E9C893;
active link             color: #E9C893;

header shadows:         text-shadow: 1px 1px 3px #E9C893, 2px 2px 5px #828081;

menu text color:        color: #727272;
menu shadows            text-shadow: 1px 1px 3px #1F1B24, 1px 1px 5px #3700B3;
menu link color         color: #909090;		(#727272)
menu link hover color   color: #E9C893;
menu triangles:         color: #E9C893;	

figure image borders:   background: linear-gradient(rgba(233, 200, 147, 0.7), rgba(18, 18, 18, 1));

horizontal line gradi.  #BB86FC
Unused colors:          #3700B3
                        #1F1B24

*/