header {
  width: 100%;
  height: 50px;
  background-color: #1b1b32;
  display: flex;
}

body {
  width: 100%;
  font-family: Helvetica;
  margin: 0;
  background-color: #312F2F;
}

form.passw {
  text-align: center;
  margin-bottom: 25px;
}

ul.aineet {
  list-style-type: none;
  padding: 0;
}


/* TEXT */
/* TEXT */
/* TEXT */


h1.name {
  color: #D5FFD0;
  vertical-align: center;
  font-size: min(6vw, 1.3em);
  margin-left: 10px;
  margin-right: 20px;
  margin-top: 12px;
}

h1.title {
  text-align: center;
}

h1.infotitle, h1.notestitle, h1.gallerytitle {
  text-align: center;
}

h1.notesptitle {
  text-align: center;
  margin-top: 5%;
  margin-bottom: 25px;
}

li.aineteksti {
  margin-top: 10px;
  margin-bottom: 10px;
}

h2.ainetitle {
  text-decoration: underline;
}


/* LINKS */
/* LINKS */
/* LINKS */


a#updateslink {
  color: #5B9A8B;
  text-decoration: none;  
}

a#homelink:link {
  color: #D5FFD0;
  text-decoration: none;
}

a#homelink:visited {
  color: #D5FFD0;
  text-decoration: none;
}

a#noteslink:link {
  color: #5B9A8B;
  text-decoration: none;
}

a#noteslink:visited {
  color: #5B9A8B;
  text-decoration: none;
}

a#gallerylink:link {
  color: #5B9A8B;
  text-decoration: none;
}

a#gallerylink:visited {
  color: #5B9A8B;
  text-decoration: none;
}

a#infolink:link {
  color: #5B9A8B;
  text-decoration: none;
}

a#infolink:visited {
  color: #5B9A8B;
  text-decoration: none;
}

a.ainelink {
  color: #6D4C3D;
  text-decoration: none;
}


/* NAVIGATION BAR */
/* NAVIGATION BAR */
/* NAVIGATION BAR */


nav {
  width: 50;
  max-width: 300px;
  height: 50px;
  white-space: normal;
}

nav > ul {
  display: flex;
  justify-content: space-evenly;
  white-space: normal;
  direction: rtl;
  padding-left: 45%;
  max-width: 100%;
}

ul.navibar li {
  display: inline-block;
  min-width: 6rem;
  text-align: center;
  padding: 0 0.1rem;
  color: #5B9A8B;
  max-width: 100%;
}


/* DIVS */
/* DIVS */
/* DIVS */


div.infodiv, div.notespdiv, div.divaineet, div.aineetmdiv, div.gallerydiv {
  margin: 30px auto;
  width: 50%;
  background-color: antiquewhite;
  padding: 10px;
  height: 100%;
  border: 5px solid #252B48;
  border-radius: 10px;
}

div.infotext {
  margin: 45px auto;
  width: 75%;
  height: 65%;
}

div.divaineet {
  text-align: center;
}

div.title {
  background-color: antiquewhite;
  width: 30%;
  margin: 25px auto;
  border: 3px solid #252B48;
  border-radius: 10px;
}

div.index {
  margin: 30px auto;
  width: 50%;
  background-color: antiquewhite;
  padding: 10px;
  height: 100%;
  border: 5px solid #252B48;
  border-radius: 10px;
}


/* IMGS */
/* IMGS */
/* IMGS */


img.gimg {
  height: 29%;
  width: 27%;
  border-radius: 10px;
  margin: 10px;
}