*
  {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding: 0;

  }

body
  {
  background-color: #ddf;
  }

article
  {
  width: 800px;
  max-width: 100%;
  xxxmargin-bottom: 10px;
  padding: 10px;
  background-color: #ddf;
  }

article h1
  {
  font-size: 2rem;
  text-align: center;
  }

article h2
  {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
  }

section
  {
  width: 100%;
  background-color: #eef;
  border: solid 1px gray;
  padding: 5px;
  margin-bottom: 10px;
  }

section h1
  {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 5px;
  }

ul
  {
  list-style-type: none;
  }

li
  {
  background-color: #fff;
  border: solid 0.5px #ccf;
  margin-bottom: 2px;

  overflow-x: hidden;
  }

li:hover
  {
  background-color: #e5e5ff;
  border: solid 0.5px #99c;
  }

a:link 
  {
  display: inline-block;
  width: 100%;
  padding: 2px 5px;
  text-decoration: none;
  }

a:visited 
  {
  display: inline-block;
  text-decoration: none;
  }

a:hover 
  {
  display: inline-block;
  text-decoration: none;
  }

a:active 
  {
  display: inline-block;
  text-decoration: none;
  }



@media only screen and (min-width: 640px) 
  {
  html, body
    {
    height: 100%;
    }

  body
    {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #88c;
    }

  .kappaleet
    {
    display: flex;
    justify-content: center;
    align-content: stretch;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    }

  section
    {
    width: 300px;
    max-width: 100%;
    margin-bottom: 0;
    }
  }