@import url("https://puuli.fi/lib/leaflet/leaflet.css");
@import url("https://puuli.fi/lib/leaflet/MarkerCluster.css");
@import url("https://puuli.fi/lib/leaflet/MarkerCluster.Default.css");

* {box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui; font-size: 16px; font-weight: 400;}

:root 
  {
  --teematDisplay: block;
  --mapDisplay:    none;
  --infoDisplay:   none;
  }

html, body {height: 100%;}

body 
  {
  padding: 10px;
  background: #710075;
  background: linear-gradient(360deg,rgba(113, 0, 117, 0.8) 0%, rgba(140, 122, 255, 1) 100%);
  }

.kehys
  {
  display: grid;
  grid-template-areas:
    "header header header"
    "menu   menu   menu"
    "left   main   right"
    "footer footer footer";
  grid-template-columns: 100px auto 250px;
  grid-template-rows: 50px 33px auto 20px;
  gap: 2px;

  margin: 0 auto;
  padding: 4px;
  height: 100%;
  width:  1400px;
  max-width: 100%;
  background-color: #ccc;

  -webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.75);
  }

.kehys>*
  {
  border: solid 1px grey; 
  overflow: auto;
  background-color: #eee;
  }

header
  {
  grid-area: header;

  display: grid;
  justify-content: center;
  align-items: center;
  }

nav
  {
  grid-area: menu;

  display: flex;
  justify-content: space-between;
  }

#back
  {
  border: solid 1px grey;
  border-radius: 0px;
  margin: 2px;
  padding: 2px 8px;
  cursor: pointer;
  }

.haku
  {
  display: flex;
  width: 1
  border: none;
  }

.haku>*
  {
  border: solid 1px grey;
  border-radius: 0px;
  padding: 2px 8px;
  }

.hakunappi
  {
  width: 50px;
  height: 100%;
  padding: 3px;
  background-image:  url("img/haku.png");
  background-repeat: no-repeat;
  background-size:   contain;
  background-origin: content-box;
  background-position: center;
  }

main
  {
  grid-area: main;
  }

form
  {
  grid-area: left;
  padding: 2px;
  }

form>button
  {
  width: 100%;
  margin-bottom: 2px;
  border: solid 1px #aaa;
  border-radius: 2px;
  background-color: #cff;
  cursor: pointer;
  }

form>button:hover
  {
  background-color: #bee;
  }

#info
  {
  grid-area: right;
  padding: 1px;
  }

#info *
  {
  border: solid 1px #ccf;
  padding: 1px;
  }

#kuva
  {
  height: 100px;
  }



footer
  {
  grid-area: footer;

  display: grid;
  justify-content: center;
  align-items: center;

  font-size: 0.8rem;
  }

#map
  {
  overflow: hidden;
  }

.osm
  {
  font-size: 10px;
  }

.valittu, .valittu:hover
  {
  background-color: yellow;
  }

h2
  {
  font-size: 16px;
  }

h3
  {
  font-size: 14px;
  }

ul
  {
  list-style-type: circle;
  list-style-position: outside;
  }

li {
list-style: disc outside none;
display: list-item;
margin-left: 1em;
}

.vale
  {
  color: #777;
  text-decoration: line-through;
  }

/*-----------------------------------------*/

@media screen and (max-width: 600px) 
  {
  .kehys
    {
    grid-template-areas: "header" "menu" "main" "footer";
    grid-template-columns: auto;
    }

  #teemat {display: var(--teematDisplay); grid-area: main;}
  #map    {display: var(--mapDisplay);}
  #info   {display: var(--infoDisplay); grid-area: main;}
  }

/*-----------------------------------------*/