@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: rgb(241, 233, 198);
    text-align: center;
    font-family: "Bitter", serif;
}

h1 {
    font-family: "Alex Brush", cursive;
    font-weight: 400;
    color: #fff;
    margin: 0;
    font-size: 500%;
    line-height: 0.7;
    text-align: right;
    position: absolute;
    right: 20px;
    left: 300px;
    bottom: 5px;
    text-shadow: 0px 0px 4px #464646;
}

h2 {
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 3px rgb(80, 71, 129);
    font-size: 250%;
}

h3 {
    color: black;
    font-size: 200%;
    text-align: left;
    padding-left: 65px;
    padding-right: 350px;
    padding-top: 30px;
}

p {
    text-align: left;
    padding-left: 65px;
    padding-right: 350px;
    font-weight: 500;
}

.container {
    background-color: rgb(192, 186, 154);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    
}

.header {
    background-image: url(taustakuva.jpg);
    height: 240px;
    background-size: cover;
    position: relative;
    box-shadow: inset 0px -5px 10px #00000050;
}

.nav {
    text-align: center;
    background-color: #fff;
    color: black;
    padding: 15px;
    margin-bottom: 28px;
    box-shadow: 0px 10px 10px -5px #00000050;
}

.sisalto {
    padding-bottom: 80px;
}

a:link {
    color:rgb(80, 71, 129)
}

a.class2:link {
    color:#942c80
}

a:visited {
    color: ;
}

a:hover {
    text-decoration: none;
}

a:active {}

.nav a {
    color: rgb(80, 71, 129);
    margin: 10px;
}

.main {
    min-height: 400px;
}

img {
    border: 15px solid #fff;
    margin: 5px;
    box-shadow: 0px 0px 8px #00000050;
    max-width: 150px;
    max-height: 150px;
}

.oikealla {
    float: right;
    margin-right: 90px;
    margin-bottom: 80px;
}

a img:hover {
    box-shadow: 4px 4px 20px hsla(56, 21%, 16%, 0.763);
}

figure {
    display: inline-block;
    position: relative;
    margin: 0;
}

figcaption {
    background-color: rgba(161, 161, 126, 0.719);
    color: white;
    width: 145px;
    position: absolute;
    left: 22px;
    bottom: 26px;
    padding: 6px;  
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}

figure:hover figcaption {
    visibility: visible;
}

.footer {
    text-align: center;
    background-color: rgb(90, 89, 89);
    color: #fff;
    padding: 30px;
    margin-top: 20px;
    clear: both;
}