@import url("kuvat.css");
@import url("teksti.css");
@import url("musiikki.css");
@import url("usr.css");

*, *: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;
  }

html, body {height: 100%;} 

body 
  {
  padding: 6px;
  display: flex;
  justify-content: center;
  background-color: #567;
  }

main 
  {
  position: relative;

  height: 100%;

  aspect-ratio: 16 / 9;

  /* Jos ruutu on kapeampi kuin 16/9 ... */
  width: 100%;

  /* Estetään elementtiä leviämästä yli 16/9 suhteen leveillä näytöillä. */
  max-width: calc(100vh * (16 / 9));

  background-color: #abc;
  border: solid 40px #a98;

  border-image: url('img/puu1.jpg') 60 repeat;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  }

.koti-nappi
  {
  position: absolute;
  top: -32px;
  left: 0px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.0);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 900;
  line-height: 0.8;
  }

.koti-nappi:hover
  {
  color: black;
  }

.valintaruutu
  {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;

  padding: 1rem;
  background-color: #677;
  overflow-y: auto;
  }

.ryhmänValintaruutu
  {
  z-index: 30; 
  }

.kohteenValintaruutu
  {
  z-index: 29; 
  }

.valintaruutu button
  {
  padding: 1rem;
  margin: 0.2rem;
  border: solid 5px #aaa;
  border-radius: 0.5rem;

  font-size: 1.8rem;
  cursor: pointer;
  }
