/* index (landing) page */
/*-- common fonts and colour -----------------------------------*/
@font-face {
  font-family: "AvenirNext";
  src: url("../fonts/Avenir_Next.ttf");
}
/*--------------------------------------------------------------*/
.topnavgrid{                /* The navbar at the top of the landing page - using grid/flexbox layout*/
  display: flex;            /*flex box*/
  flex-wrap: wrap;          /* get everything inline and wrap to next line*/
  position: absolute;
  top: 25px;                /* location offset */
  right: 0vw;
  width: 43vw;              /* width of horizontal list */
  overflow: hidden;
  background-color: transparent;
  justify-content: flex-end; /* align buttons to right side of box/page*/
}
.topnavgrid > * { 
  flex: 0 1 18%;            /*shrink grow basis/width*/
}
.tnbutton {						      /* Navbar links */
  min-width: 6em;
  overflow: hidden;
  margin: 0.25em 0.4em;       /* top/botom right/left */
  text-align: center;
  padding: 0.7em 0.3em;       /* top/botom right/left */
  text-decoration: none;
  border: 4px solid white;
  border-radius: 10px;
  font-family: "AvenirNext";
  font-size: 1.25rem; /*20px*/
  color: white;
  font-weight: bold;
}
.tnbutton:hover, .tnbutton:focus {
  background-color: rgb(130, 185, 195);
  color: black; 				    /* change text colour when hovering */
  text-decoration: none;
  outline: none;            /* remove default border outline for focus */
}
/*--------------------------------------------------------------*/
@media screen and (min-width: 36em) and (max-width: 50em) {
  .tnbutton {
    padding: 0.5em 0.4em;
    font-size: 1.125rem; /*18px*/
    border: 3px solid white;
  }
}
@media screen and (max-width: 35.99em) {
  .topnavgrid {
  top: 5px;
  right: 0px;
  max-width: 7.5em; /*120ox*/
  }
.tnbutton {
	margin: 0.12em 0.2em;
	padding: 0.15em 0.15em;
	font-size: 0.875rem; /*14px*/
	border: 2px solid white;
	font-weight: normal;
  }
}
/*--------------------------------------------------------------*/