html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #3C474D url(../img/bubbles_bg.jpg) fixed center no-repeat;
  font-family: 'Raleway', sans-serif;
}

h1 {
  font-size: 42px;
}

#logo {    
  text-align: center;
  color: #fff;
  background: #8EC63F;
  position: fixed;
  z-index: 11;
  top: 15px;
  left: 15px;
  width: 150px;
  height: 150px;
  border-radius: 150px;
  padding: 42px 0 0 0;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;    
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

nav.subnav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
}
nav.subnav a {
  display: inline;
}

nav a {
  font-family: 'Oswald', sans-serif;
    text-align: center;
    font-size: 20px;
    color: #fff;
    border-radius: 15px;
    padding: 4px 12px;
    text-decoration: none;
    background: #1d8fd5;
    display: block;
    width: 220px;
    margin: 10px auto;
}
body#etusivu nav {
  margin: 9% auto;
}
nav a:hover {
  background: #8ec63f;
}

#again {
  display: none;
}
body#muistipeli #again, body#arvo_ryhmat #again {
  display: inline;
}

.hand-writing {
  font-family: 'Caveat', cursive;
  color: #fff;
}


form {
  background: #1d8fd5;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  padding: 10px 51px 10px 10px;
  position: fixed;
  z-index: 12;
  top: 0;
  right: 0;  
}
#loginForm {
  display: none;
}
#loginForm.show {
  display: block;
}

form label {
 display: block;
}

#showForm {
  cursor: pointer;
  border: none;
  width: 40px;
  height: 40px;
  background: url(../img/arrow.svg) no-repeat;
  transform: rotate(90deg);
  position: fixed;
  z-index: 13;
  top: 3px;
  right: 3px;
}

#showForm.down {
  transform: rotate(270deg);
}

input[type=submit] {
  display: block;
  margin: 10px 0 0 0;
  background: #1f92d3;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  cursor: pointer;
}

@media screen and (min-width: 1920px) {
  body {
    background-size:100% 100%;
  }
}