html {
 height: 100%;
 margin: 0;
 padding: 0;
}

body{
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Droid Sans Mono","Courier New", Courier, monospace;
  text-align: center;
}

main {
  position: relative;
  top: 20%;
}


a {
 color: grey;
 font-family: monospace;
 text-align: center;
 text-decoration: none;
 font-size: 0.8em;
 padding-top: 0.2em;
 padding-bottom: 0.2em;
 padding-left: 0.4em;
 padding-right: 0.4em;
 position: relative;
 display: inline-block;
 width: 5em;
 border-radius: 5px;
 border-width: 1px;
 border-style: solid;
 border-color: rgb(90,90,90);
 border-color: lightgrey;
}

.center-horiz-vert {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
}


.logo {
  font-size: 400%;
  font-weight: bold;
  text-align: center;
  font-family: monospace;
}


nav {
 margin-bottom: 0.3em;
}

@media only screen and (min-width: 400px) {
  body{
  font-size: 24px;
  }
}


@media only screen and (max-width: 400px) {
  
  #main {
    top: 0.5em;
  }
  
  header{
   margin-bottom: 0.1em;
  }
  .center-horiz-vert {
    width: 80%;
    top: 23%;
  }
  
  a {
    display:block;
    margin: auto;
    margin-bottom: 0.4em;
    border-radius: 4px;
    width: 80%;
    height: 2em;
    vertical-align: bottom;
    line-height: 2em; /*same as height*/
    font-size: 1.2em;
    font-weight: bold;
    padding: 0;
  }


  
}