body { /*most important part*/
  margin-top: 0px;
  background-color: #434343;
  color: #CAE7FA;
}

html { /*makes the background colour extend all the way down*/
  height: 100%;
}

h1 { /*title*/
  font-family: Belwe;
  font-size: 3em;
  font-weight: 600;
  text-align: center;
  text-shadow: 5px 5px black;
  margin-bottom: 0px;
  margin-top: 0px;
}

h1+p { /*subtitle*/
  font-family: Candara;
  font-variant: normal;
  font-style: normal;
  font-size: 1.25em;
  text-align: center;
  color: #A5BCCC;
  margin-top: 0px;
}

h2 { /*subheadings*/
  font-family: Belwe;
  text-shadow: 2px 2px black;
}

p { /*body text*/
  font-family: Constantia;
  font-size: 1em;
}

img+p { /*captions*/
  font-family: Constantia;
  font-variant: normal;
  font-style: italic;
  text-align: center;
  color: #A5BCCC;
  margin-top: 0px;
}

footer p { /*footer text*/
  font-family: Candara;
  text-align: center;
  color: #A5BCCC;
  margin-bottom: 0px;
}

b { /*bold formatting*/
  font-variant: small-caps;
  text-shadow: 2px 2px black;
}

a:link { /*links*/
  color: #99D1F6;
}

a:visited {
  color: #99D1F6;
}

#central { /*central strip*/
    background-color: #434343;
    margin: auto;
    width: 50%;
    padding-left: 2.5%;
    padding-right: 2.5%;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    height: 100%;
}

/* nav buttons */

.button {
  float: left;
}

.button2 {
  float: right;
}

.button, .button2{
  width: 8em;
  height: 3em;
  vertical-align: middle;
  line-height: 3em;
  margin: 1.5em;
  text-align: center;
}

.button>a, .button2>a {
  line-height: 0;
  vertical-align: middle;
  text-decoration-line: none;
  font-size: 1.25em;
  font-family: Candara;
  color: #A5BCCC;
}

.button>a:link, .button2>a:link, .button>a:visited, .button2>a:visited {
  color: #CAE7FA;
}

#wrap {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
      
@media only screen and (max-width : 479px) {
  .tile {
    width: 50%;
    position: relative;
    float: left;
  }
  #central {
    width: 100%;
  }
  h1 {
    margin-bottom: 5px;
  }
}
@media only screen and (max-width : 799px) and (min-width : 480px) {
  .tile {
    width: 33.3%;
    position: relative;
    float: left;
  }
  #central {
    width: 100%;
  }
  h1 {
    margin-bottom: 5px;
  }
}
@media only screen and (max-width : 1119px) and (min-width : 800px) {
  .tile {
    width: 25%;
    position: relative;
    float: left;
  }
}
@media only screen and (max-width : 1439px) and (min-width : 1120px) {
  .tile {
    width: 20%;
    position: relative;
    float: left;
  }
}
@media only screen and (min-width : 1440px) {
  .tile {
    width: 16.66%;
    position: relative;
    float: left;
  }
}

img {
  width: 95%;
  padding: 2.5%;
}