html {
  height: 100vh;
  overflow: auto;
}

body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow: auto;
}

a, button {
  all: unset;
  cursor: pointer;
}

.main-container {
  height: 100%;
  position: relative;

}

#menu {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem;
  background-color: #001133;
}

a > button {
  color: #ffffff;  
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.3rem;
}

.nav-placeholder {
  height: 85px;
}

#virallinen-kaantaja {
  margin: 1rem auto;
  text-align: center;
}

#koti-otsikko {
  color: #ffffff;  
  font-size: 1.5rem;
  margin: 0.5rem
}

main {
  display: flex;
  flex-direction: row;  
  justify-content: center;
  width: 100%;
}

section {
  max-width: 1140px;
}

.main-section {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 1rem;
  padding: 0 3rem;
  border-left: 1px solid lightgrey;
  border-right: 1px solid lightgrey;
}

.right-section > section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-section, .left-section {
  margin-top: 50px;
  padding: 1rem;
}

.yhteystiedot > div > p, a, strong {
 margin: 0.2rem;
}



.contact-icon {
  display: flex;
  flex-direction: row;
  justify-content: baseline;
}

.book-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#kirjat {
  text-align: center;
}

.portretti {
  border-radius: 50%;
  height: 200px;
  width: 200px;
}

.kuva {
  height: 100%;
  width: 100%;
}

.kirja-kuva {
  width: 250px
}
#yhteystiedot-otsikko, #palvelut-otsikko, #virallinen-kaantaja {
  scroll-margin-top: 95px;
}

#tietoa-kääntäjästä {
  margin-top: 0.1rem;
}

@media(max-width: 950px) {
  main {
    flex-direction: column;
    align-items: center;
  }

  .main-section {
    order: 1;
    margin: 0;
    padding: 1rem;    
  }

  .right-section {
    order: 2;
  }

  .left-section {
    order: 3;
  }

  .right-section, .left-section {
    margin: 0 1rem;
    padding: 0 1rem;
    width: 100%;

  }
  
}
