@font-face {
    font-family: kauno;
    src: url(Birthstone/Birthstone-Regular.ttf);
}


body {
    background-color: rgb(234, 199, 255);
}

.container {
    background-color: rgb(182, 142, 255);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    background-image: url(header-kuva.jpg);
    height: 200px;
    background-size: cover;
    font-family: kauno, serif;
    font-size: 60px;
    color: #fff;
    text-shadow: 0px 0px 5px rgb(66, 0, 153);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
}

.nav {
    text-align: center;
    background-color: #f7dbff;
    padding: 8px;
    margin-bottom: 20px;
}


a:link {
    color: #a23eff;
}

a:visited {
    color: #713eff;
}

a:hover {
    text-decoration: none;
}

.nav a {
    color: inherit;
    margin: 10px;
}

.etusivu .main {
    text-align: center;
    color: #fff;
}

.tietosivu .main {
    padding: 40px;
    color: #fff;
}

.tietosivu .main p {
    max-width: 900px;
    text-align: left;
    color: #fff;
}

.oikealla {
    float: right;
}


img {
    border: 15px solid #efe5ff;
}

a img:hover {
    box-shadow: 4px 4px 20px #ffffff8e;
}

.footer {
    text-align: center;
    background-color: rgba(135, 28, 236, 0.815);
    color: #fff;
    padding: 30px;
    margin-top: 20px;
    clear: both;
}

figure {
    display: inline-block;
    position: relative;
    margin: 0;
}

figcaption {
    background-color: #cfa1fa;
    color:rgb(255, 255, 255);
    width: 200px;
    position: absolute;
    left: 15px;
    bottom: 17px;
    padding: 6px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}

figure:hover figcaption {
    visibility: visible;
}