/*div {
    border: 1px solid red;
}*/

html {
      /* The image used */
    background-image: url("/kuvat/bg.jpg");
  
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    scroll-behavior: smooth;
    font-family: 'Mate', serif;
}

body {
    margin: auto;
    margin-top: 2rem;
    max-width: 1200px;
}

ul, ol{
    margin-top: 0;
    padding-left: 0;
}

li {
    display: block;
}

ul ul {
    margin-top: -24px;
}

.minilink {
    outline: none;
    text-decoration: none;
    text-align: center;
    line-height: 0.5;
    color: rgb(245, 243, 236);
    cursor: pointer;
}

.minilink:link,
.minilink:visited,
.minilink:focus {
    color: rgb(245, 243, 236);
}

.minilink:hover {
    color: #FDA932;
}

.tekstilista {
    font-size: 17px;
    margin-left: 40px;
    margin-right: 40px;
    color:rgb(231, 224, 197);
}

.tekstilista li {
    padding-bottom: 10px;
}

.keskitettylistaus {
    font-size: 17px;
    text-align: center;
    margin-left: 40px;
    margin-right: 40px;
}

ul > ul {
    margin-top: -24px;
}

.minilink {
    outline: none;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    color: rgb(245, 243, 236);
    cursor: pointer;
}

.minilink:link,
.minilink:visited,
.minilink:focus {
    color: rgb(245, 243, 236);
}

.minilink:hover {
    color: #FDA932;
}
  
a {
    outline: none;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    line-height: 2.5;
    color: rgb(245, 243, 236);
}
  
a:link, a:visited, a:focus {
    color: rgb(245, 243, 236);
}
  
a:hover {
    color: #FDA932;
}
  
a:active {
    color: white;
}

h1 {
    font-size: 30px ;
    color: rgb(245, 243, 236);
    text-align: center;
    margin-left: auto;
    margin-top: 40px;
}

.updateotsikko {
    font-size: 20px;
    color: rgb(245, 243, 236);
    text-align: left;
    margin-left: 40px;
    margin-top: 40px;
}

.updateteksti {
    font-size: 15px;
    text-align: left;
    margin-left: 40px;
    margin-right: 40px;
}

h2 {
    font-size: 17px;
    color: rgb(245, 243, 236);
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 10px;
}

p {
    font-size: 17px;
    text-align: center;
    margin-left: 40px;
    margin-right: 40px;
}

p a {
    display: inline;
    color: #FDA932 !important;
    text-decoration: underline; 
}

p a:hover {
    color: rgb(245, 243, 236) !important;
}

.leftalign {
    text-align: left !important;
}

h3 {
    display: inline;
    font-family: 'Mate SC', serif;
    font-size: 22px;
    color:rgb(245, 243, 236);

}

.väliotsikko {
    margin-left: 40px;
}

.pieniväliotsikko {
    font-family: 'Mate SC', serif;
    font-size: 24px;
    color:rgb(245, 243, 236);
    margin-left: 40px;
    margin-right: 40px;
    text-align: center;
}

.miniväliotsikko {
    font-family: 'Mate SC', serif;
    font-size: 20px;
    color:rgb(245, 243, 236);
    margin-left: 40px;
    margin-right: 40px;
    text-align: center;
}

.liityotsikot {
    font-family: 'Mate SC', serif;
    font-size: 19px;
    color: rgb(245, 243, 236);
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 25px;
    text-align: center;
}

/* .banner {
    height: 300px;
} */

.banner img {
    width: 100%;
    max-width: 1200px;
}

.links {
    font-size: 23px;
    font-family: 'IM Fell English SC', serif;
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer {
    padding: 10px;
}

.footerteksti {
    font-size: 12px ;
    color:rgb(245, 243, 236);
    text-align: center;
}

.container {
    display: flex;
    align-items: stretch;
    margin-top: -6px;
}

.left, .right{
    width: 280px;
}

.middle {
    width: 640px;
}

.sticky {
    position: sticky;
    top: 0;
}

.centering {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.linkinvaihto {
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
}

.linkinvaihto a {
    width: auto;
    margin: 4px;
}

.liitynappi {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    border-bottom: 2px solid transparent;
}
.liitynappi:hover {
    border-bottom-color: #FDA932;
}

foorulle a {
    font-family: 'Mate SC', serif;
    font-size: 19px;
    border: 1px solid red;
}

.tilanjakaja2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    margin-top: 40px;
}

.border {
    border: 15px solid transparent;
    border-image: url(/kuvat/MenuBorder1.png) 218 stretch;
    background: rgba(0, 0, 0, 0.9);
}

#main {
    color: rgb(231, 224, 197);
    background-color: rgba(0, 0, 0, 0.7);
    padding-bottom: 20px;
    border-right: 0.25rem solid black;
}

#updates {
    color:  rgb(231, 224, 197);
    background-color: rgba(0, 0, 0, 0.7);
}

#kartta {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  #kartta:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (Image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
  }
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation - Zoom in the Modal */
  .modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

/* @media only screen and (max-width: 600px)  {
    .banner img {
        width: auto;
}
} */