.centered {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .centered2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .container-lg {
  background-image: url("IMG_9204.JPG");
    background-repeat: no-repeat;
    background-position: center;
   width: auto;
   height: 350px;
  }

  .full-width{
      width: 100%;
  }

  .center{
      text-align: center;
  }

  .left{
      float: left;
  }
      
  .rounded{
      width: 200px;
      
  }


  .jumbotron{
      background-image: url("IMG_3254.JPG");
      background-size: cover;
      background-position-y: bottom;
      margin-top: 5px;
  }

  .kartta{
      float: right;
  }

  main{
      margin-bottom: 150px;
  }
  
  .col-sm-4{
      margin-top: 100px;
      border-color: darkgray;
      border-bottom: groove;
      border-radius: 2px;
  }

  .col-md-2 {
      border-right: solid grey;
  }

  .fa {
    padding: 20px;
    font-size: 20px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
  }

  .fa:hover {
    opacity: 0.7;
  }

  .fa-facebook {
  background: #3B5998;
  color: white;
  }

  .carousel-item img{
    width: auto;
    height: 800px;
    max-height: 800px;
    margin: auto; 
    display: block;
    }

.carousel-control-prev-icon .carousel-control-next-icon {
    filter: invert(100%);
}

.carousel-caption {
    text-shadow: 2px 2px black;
    font-size: 20px;
}

body {
    background-color: lightgray;
}

.nav-link {
    color: black;
}

.nav-link:hover{
    color: white;
    background-color: grey;
    transition: 1s;
}

.navbar-brand {
    font-weight: bold;

}

.navbar-brand:hover {
    color: white;
    background-color: grey;
    transition: 1s;
}

.varauslinkki {
    color: white;
    text-decoration: underline;
}

.varauslinkki:hover {
    color: pink;
    background-color: darkgray;
    transition: 1s;
}

.jumbolinkki {
    color: white;
    background-color: pink;
}

.jumbolinkki:hover {
    color: pink;
    background-color: darkgray;
    transition: 1s;
}
    
.alasivut {
    color: white;
    text-shadow: 2px 2px rgb(32, 29, 29);

}

footer {
    background-color: gainsboro;
}

.sivukartta{
    font-weight: bold;
}

li {
    list-style-type: none;
  margin: 5px;
  padding: 0;
}

.fb a {
    color: black;
}



.footerlinkki:hover  {
    display: inline-flex;
    color: white;
    background-color: darkgrey;
    transition: 1s;
}

.footer-brand {
    color: black;
    font-weight: bold;
    
}

.footer-brand:hover  {
    display: block;
    color: white;
    background-color: darkgrey;
    transition: 1s;
}

.kuvalinkki:hover {
    color: white;
    opacity: 50%;
    
}

.container-info {
   margin-left: 100px;
   margin-right: 100px
}

.taulukko {
    
    margin-top: 50px;
}
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    background-color: white;
    max-width: 60%;
  }

tr :nth-child(even) {
    background-color: lightgray;
}

.rukataulukko {
    caption-side: top;
    color: black;
}

.ruka-isolla {
    font-weight: bold;
}

@media (max-width: 850px) {
    
    body {
        margin: 0;
        padding-top: 150px;
    }
}

.puhelin {
    color: black;
}

.puhelin:hover {
    display: block;
    color: white;
    background-color: darkgrey;
    transition: 1s;
}

@media (min-width:800px) {
    .puhelin {
        visibility: hidden;
    }
}


@media (max-width: 850px) {
    .heiluva {
        animation: shake 0.5s;
    animation-iteration-count: 40;
  }
  
  @keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
  }
}