@font-face {
    font-family: kauno;
    src: url(Cookie/Cookie-Regular.ttf);
}

@font-face {
    font-family: leipis;
    src: url(Arvo/Arvo-Regular.ttf);
}

body {
    font-family: leipis, sans serif;
    background-color: #c4a06a;
  }
  
  .kaikki {
    background-color: rgb(175, 129, 70);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 30px #383838;
  }
  
  .header {
    font-family: kauno, sans-serif;
    background-image: url(TAUSTA.jpg);
    height: 170px;
    background-size: cover;    
    font-size: 60px;    
    color: rgb(255, 255, 255);    
    text-shadow: 0px 0px 5px #1b1b1b;
    font-style: italic;
    display: flex;    
    align-items: flex-end;
    justify-content: flex-end;
    padding: 50px;
    box-sizing: border-box;
    line-height: 0.8;
    box-shadow: 0px -35px 20px -20px inset rgb(46, 70, 94);
  }
  
  .nav {
    background-color: #c79955;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0px 20px 20px -8px rgb(90, 69, 25);
  }

  a:link {
    text-decoration: underline;
    color: #8ffbff;
  }
  a:visited {
    color: #ff6565
  }
  a:hover {
    text-decoration: none;
    color: rgb(255, 255, 255);
  }
  a:active {
    background-color: rgb(0, 0, 0);
  }

  .nav a{
    color: inherit;
    margin: 10px;
  }
  
  .main {
    padding: 40px;
    min-height: 400px;
  }
  
  .footer {
    background-color: hsl(36, 42%, 42%);
    color: #fff;
    padding: 40px;
    clear: both;
    text-align: center;
  }

  
  table {
    border-collapse: collapse;
    color:#FFDBB5;
  }
  img{
    border: 18px solid #fff;
    margin: 5px;
  }

  .etusivu img:hover{
    box-shadow: 4px 4px 20px #725934;
  }

.etusivu .main {
text-align: center;
}

.yhteys .main{
padding: 40px;
}

.tietoa .main{
    padding: 40px;
    background-color: #ffffffce;
}

.oikealla{
float: right;
margin-left: 40px;
margin-bottom: 40px;
}

.tietoa .main .p{
    max-width: 700px;
}

h1{
    color: #fff;
}

figure{
  display: inline-block;
  position: relative;
  margin: 0;
}

figcaption{
  background-color: #1b1b1b91;
  color: white;
  width: 200px;
  position: absolute;
  left: 23px;
  bottom: 27px;
  padding: 6px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}

figure:hover figcaption {
  visibility: visible;
}