:root {
    --blue: #1e90ff;
    --white: #ffffff;
    --green: #25754F;
    --sky: #A6B9C9;
    --darkgreen: #0d2f22;
    --betoni: #eae2d7;
    --main: #b4b1af;
  }
  
  body {
      margin: 0;
      font-size: 1rem;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
      background-color: var(--sky);
      background-image: url(sky.webp);
      background-repeat: repeat-x;
  }
  
  h1.contenttop {
      margin-top: 0.5em;
      border-bottom: 1px solid var(--green);
  }
  
  h2 {
      margin-top: 1.5em;
      border-bottom: 1px dashed var(--green);
  }
  
  p {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  table {
      border-spacing: 0;
      border: 0;
      border-left: 1px solid var(--green);
      border-top: 1px solid var(--green);
  }
  
  table th {
      padding: 0.5em;
      padding-right: 1em;
      margin: 0;
      text-align: left;
      background-color: #e0ddda;
      border-bottom: 1px solid var(--green); 
      border-right: 1px solid var(--green); 
  }
  table td {
      padding: 0.5em;
      padding-right: 1em;
      margin: 0;
      text-align: left;
      border-bottom: 1px solid var(--green); 
      border-right: 1px solid var(--green); 
  }
  
  dl dt {
      margin-top: 0.3em;
      font-weight: bold;
  }
  
  img {
      border: 0;
  }
  
  
  a, a:visited {
      color: var(--darkgreen);
  }
  a:hover {
      color: var(--green);
  }
  
 
  /* YlÃ¤otsikko */
  div.otsikko {
      clear: both;
      
      background-color: white;
      border: 1px solid var(--green);
      border-bottom: 0;
  
  
      padding: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  div.otsikko ul {
      list-style: none;
      margin: 0px;
      padding: 0.2em;
  }
  
  div.otsikko a{
      color:  var(--darkgreen);
/*       background-image: url('more.png');
      background-position: left;
      background-repeat: no-repeat;
      text-decoration: none; */
      padding: 0.2em 0.2em 0.2em 10px;
  }
  
  div.otsikko a:visited {
      color: var(--darkgreen);
  }

  div.otsikko a:hover {
      color: var(--green);
      border-bottom: none;
  }
  
  div.otsikko li {
      color: var(--darkgreen);
      display: inline;
      list-style: none;
      margin-left: 0.5em;
      padding: 0 0.1em 0 0.1em;
      font-weight: bold;
  }
  
  .yhteys {
      float: right;
  }
  
  .logo {
      margin-left: 0;
      width: 457px;
      height: 200px;
      background-color: var(--sky);
      background-image: url(ta-logo.webp);
  }
  
  /* Muuta */
  .everything {
    padding-right: 2em;
    min-width: 800px;
    max-width: 1750px;
  }
  
  
  div.mainarea {
      border: 1px solid #b4b1af;

      margin-left: 88px;
      margin-top: -110px;
      background-position: bottom left;
      background-color: var(--betoni);
      background-image: url(concrete.webp);
  }
  
  div.right {
      margin-left: 210px;
      background-color: white;
      border: 1px solid var(--green);
      position: relative;
  }
  
  div.content {
      padding: 15px;
  }
  
    .footer {
      clear: both;
      padding: 20px;
      color: #D9DBDD;
      background-color: #2D3C4E; 
  }
    
  /* Valikko */
  
  div.menu {
      float: left;
      padding: 5px 5px 136px 5px;
      width: 199px;
      /* height: 133px; */  /* jos koskee niin navi ei toimi*/

      background-color: white;
      border: 1px solid var(--green);
  }
  
/* New rule for the div that sits below the menu items */
.after-menu-image {
    width: 100%;
    height: 150px; /* or any appropriate height */
    background-image: url('ta-toimii-s.webp');
    background-repeat: no-repeat;
    background-position: bottom left;
    /* optionally:
    background-size: cover; 
    or 
    background-size: contain; 
    depending on the design you want.
    */
  }


  div.menu h2.menutitle {
      text-align: center;
      margin-top: 0.3em;
      margin-bottom: 0.3em;
      border-bottom: 1px solid var(--green);
  }
  
  div.menu h3{
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 0px;
}

  div.menu hr {
      border: none;
      border-bottom: 1px solid var(--green);
  }
  
  div.menu ul {
      padding: 0px;
      margin: 0px;
      list-style-type: none;
  }
  
  div.menu li {
      margin: 0px 0px 5px 0px;
      padding: 0px;
  }
  
  div.menu ul ul {
      margin-left: 15px;
  }
  
  div.menu ul ul li {
      margin-bottom: 0px;
  }
  
  div.menu a, div.menu span {
      margin-left: 10px;
  }
  
 
  div.menu a, div.menu a:visited, div.contentmenu a, div.contentmenu a:visited {
      color: var(--darkgreen);
  }
  
  div.menu a, div.menu a:visited {
      text-decoration: none;
  }
  
  div.menu a:hover, div.contentmenu a:hover {
      color: var(--darkgreen);
  }
  
  div.toplistitems {
      margin-left: 2em;
      margin-bottom: 0.5em;
  }
  
  li.spacebefore {
      margin-top: 0.5em;
  }