@font-face {
    font-family: 'rubik-lightitalic';
    src: url('../fonts/rubik-lightitalic.woff2') format('woff2'),
         url('../fonts/rubik-lightitalic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'amble-regular';
    src: url('../fonts/amble-regular.woff2') format('woff2'),
         url('../fonts/amble-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*mobile device rules display under 767 pixels*/
* {
  box-sizing: border-box;
}
html {
  background-color: white;
  font-family: trebuchet, geneva, sans-serif;
}
img,
video,
embed {
  max-width: 100%;
}

.images{
  width: 100%;
  height: 100%;
}

.floatright{
  float:right;
  position: relative;
}

aside{
  clear:both;
}

main,
section,
article,
aside,
footer,
header {
  padding: 0.5rem;
}
header{
  background-color: gold;
  border: solid royalblue;
  border-radius: 5px;
  text-align: center;
  color:royalblue;
  margin-bottom: 3px;
  min-height:180px;
}

footer {
  background-color: gold;
  border: solid royalblue;
  text-align: center;
  color:royalblue;
}
article {
  border-bottom: 1px black solid;
}
aside {
  background-color: white;
}
h1,
h2,
aside {
  text-align: center;
}
/* default navigation values */

nav ul {
  display: flex;
  flex-direction: column;
  background-color: gold;
  margin: 0;
  border: solid 2px gold;
  padding-left: 0;
}
nav ul li {
  flex: auto;
  list-style-type: none;
}
nav ul li:nth-child(5) {
  border-right: none;
}
nav ul li a {
  display: block;
  background-color: royalblue;
  color: gold;
  text-decoration: none;
  text-align: center;
  padding: 8px;
}
nav ul li a:hover {
  color: royalblue;
  background-color: gold;
}
body,
p,
a,
h4 {
  font-size: 14px;
}
/* the rules below adjust and override the properties of the rules above to change the page's appearance when displayed on a wider screen. These rules are designed for a two-column tablet display*/
@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 98%;
    margin: auto;
  }
  
  
  main {
    display: flex;
    border-right: solid black 1px;
    border-left: solid black 1px;
    flex-wrap: wrap;
  }
  nav,
  header {
    order: -1;
  }
  nav ul {
    flex-direction: row;
  }
  nav ul li {
    border-right: solid 1px #000;
  }
  article {
    flex: 50%;
    border-right: solid black 1px;
    border-bottom: solid black 1px;
  }
  article:nth-child(2) {
    border-right: none;
  }
  article:nth-child(3) {
    border: none;
  }
  body,
  p,
  a,
  h4 {
    font-size: 15px;
  }
}

/* the rules below adjust and override the properties of the rules above to change the page's appearance when displayed on a wider screen. These rules are designed for a three-column desktop display*/
@media screen and (min-width: 1024px) {
  article {
    flex: 33%;
    border-bottom: none;
  }
  article:nth-child(2) {
    border-right: solid black 1px;
  }

  article:nth-child(3) {
    border-right: none;
  }
  body,
  p,
  a,
  h4 {
    font-size: 16px;
  }
}
