body {
  font-family: 'Actor';font-size: 18px;
  color: rgb(88, 88, 88);
  line-height: 140%;

}

.body2020 {
  margin: 0px;
  background-color:lightgray;
  width: auto;
  max-width: auto;
  border: 0px solid #f2f2f2;
  padding: 0px;
}


a:link, a:visited {
  color:rgb(73, 73, 73);
  text-decoration: underline;
  cursor: pointer;
}


p {
  max-width: 800px;
  text-align: left;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 10px;
}
/**
h4, h5 {
  text-align: left;
}
*/

h1, h2, h3, h4, h5, h6 {
  max-width: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 10px;

}



ul {
  text-align: left;
}

/* TOP NAVIGATION */

/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
  
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 18px;
  font-variant-caps: all-petite-caps;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: rgb(94, 100, 94);
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). 
Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when 
the user clicks on the icon. This class makes the topnav look good on small screens 
(display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


/*   ---------- END OF TOP NAV CSS ------------------------- */

/* -------------- SIDE NAV ------------------- */

.sidenav {
  width: 300px;
  position: absolute;
  /* height: auto;
  scroll-behavior: auto;*/
  z-index: 1;
  top: 70px;
  left: 10px;
  background: none;
  overflow-x: hidden;
  padding: 8px 0px;
  border: 0px solid black;
}

.sidenav a {
 /* padding: 2px 2px 2px 16px; */
  text-decoration: underline;
  font-size: 13px;
  color: rgb(73, 73, 73);
  display: block;
}

.sidenav a:hover {
  color: #181818;
}
.sidenav p {
  text-decoration: none;
  font-size: 13px;
  color: rgb(73, 73, 73);
  display: block;
}
.main {
  margin-left: 140px; /* Same width as the sidebar + left position in px */
  font-size: 28px; /* Increased text to enable scrolling */
  padding: 0px 10px;
}

@media screen and (max-width: 1100px) {
  .sidenav {
    width: 100%;
    max-height:300px;
    position: static;
    text-align: center;
    overflow: scroll; 
/*    display: none; */
  }

}


/*  --------------- END OF SIDE NAV ------------------- */

.header { 
  text-align: center;
  padding-top: 30px;
  border: 0px solid lightgrey;
  background-color: none;
}

.container { 
  position: relative;
  border: solid 0px orange;
}

section {
  position: relative;
  background-color:none;
  border: 0px solid black;
  display: block;
  max-width:800px;
 /*  max-width: 1200px;  This creates a black container for each section  */
  margin-left: auto;
  margin-right: auto; 
}

figcaption {
  color: rgb(47, 47, 47);
  margin-left: auto;
  margin-right: auto;
  /** font-variant-caps: all-petite-caps; */
  size: 20px;
  text-align: center;
}

.kuvateksti { 
  color: rgb(47, 47, 47);
  text-align: center;
  padding-bottom: 20px;
  border: 0px solid lightgrey;
  background-color: none;
}


.intro {
    display: block;
    padding:20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid green;
}


img.display-center {
  border: solid 1px rgba(0, 0, 0, 0.445);
  width: 100%;
  height: auto;
  
}

.display-center {
    display: block;
    margin: 10px 0px 20px 0px;
   /* margin-left: 10px;
    margin-right: 10px; */
    border: 0px solid blue;
    }
  
.display-left {
  display: block;
  float: left;
  text-align: left;
  line-height: 1.6;
  padding: 5% 0px;
  margin: 0px 20px;
  max-width: 500px;
  border: 0px solid blue;
  }

.flex-container {
  padding: 15px 0px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color:lightgray;
  
}

.flex-container > div {
  background-color: none;
  margin: 0px;
  text-align: center;
  line-height: 75px;
  font-size:25px;
}

.flex-container-gallery {

  justify-content: center;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
 /* background-color: DodgerBlue; */
}

.flex-container-gallery > div {
  /* background-color: #f1f1f1; */

  margin: 10px;
  text-align: center;
  line-height: 35px;
  font-size: 20px;
  border: 0px solid black;
}