*, *:before, *:after 
  {
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: system-ui, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.0;
  hyphens: auto;
  overflow-wrap: break-word;
  }

:root 
  {
  --tausta: #4cc;
  }

html
  {
  height: 100%;
  padding: 5px;
  background: rgb(60,60,100);
  }

body
  {
  height: 100%;
  display: grid;
  grid-template-rows: 5rem auto;

  max-width: 1200px;
  margin: auto;
  border: solid 15px var(--tausta);
  border-radius: 0.5rem;
  background-color: #88a;

  box-shadow: 0px 0px 4px 1px #333;
  }

main
  {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 0.8rem;

  padding: 1.0rem 1.0rem;
  overflow-y: auto;
  }

main>*
  {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;

  text-align: center;

  max-width: 900px;
  height: 130px;
  border: solid 5px white;
  overflow-y: hidden;

  border-radius: 0.5rem;
  font-size: 2.0rem;
  color: #333;
  user-select: none;
  box-shadow: 0px 0px 4px 1px #333;
  outline-offset: -8px;
  }

main>*:hover
  {
  cursor: pointer;
  outline: 4px solid #99f;
  color: #000;
  }

main>*:active:hover 
  {
  outline: 4px solid #99f;
  }

button
  {
  text-transform: uppercase;
  }

h1
  {
  text-transform: uppercase;
  font-size: clamp(1.5rem, 9vw, 3rem);
  text-align: center;
  color: #557;
  text-shadow: 0px 0px 8px #fff;
  background-color: var(--tausta);
  padding: 0 32px;
  }

h2
  {
  font-size: clamp(1.2rem, 9vw, 2.0rem);
  text-align: center;
  padding: 0 32px;
  }

h3
  {
  font-size: 1rem;
  color: #88a;
  }

a {text-decoration: none;}

#koti
  {
  position: fixed;
  width:  clamp(2.5rem, 10vw, 4rem);
  height: clamp(2.5rem, 10vw, 4rem);
  }

/*----------------------------------------*/

@media only screen and (max-width: 1000px) 
  {
  html {padding: 0;}
  body {border-radius: 0;}
  }

@media only screen and (max-width: 400px) 
  {
  main {grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));}
  }

/*----------------------------------------*/

