/*mobile device rules display under 767 pixels*/
* {
  box-sizing: border-box;
}
html {
  background-color: #f5f5f5;
  font-family: trebuchet, geneva, sans-serif;
  height:100%;
}
img,
video,
embed {
  max-width: 100%;
}

.images{
  width: 100%;
  height: 100%;
}

.floatright{
  background-color: white;
  border-radius: 167px;
  float:left;
  margin-left: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: solid 2px gold;
  
}

aside{
  clear:both;
}

main,
section,
article,
aside,
footer,
header {
  padding: 0.3rem;
  background-color: white;
}
header{
  background-color: rgba(40, 0, 255, 0.09);
  border: solid rgba(255, 255, 255, 0);
  border-radius: 5px;
  text-align: center;
  color:royalblue;
  margin-bottom: 3px;
  min-height:335px;
  background-image: url(images/fourthtitle.png);
  background-repeat: no-repeat;
  background-position: 11% 22%;
}

footer {
  background-color: gold;
  border: solid royalblue;
  text-align: center;
  color:royalblue;
}
article {
  border-bottom: 1px black solid;
}
aside {
  background-color: white;
}

.title{
  color:gold;
  text-shadow: 4px 4px royalblue;
  font-size:22px;
}

h1,
h2,
aside {
  text-align: center;
}
/* default navigation values */
nav{
  margin-bottom: 24px;
  margin-top:5px;
}

.dropdown {
  position: relative;
}

.dropdown-1 {
  display: none;
  position: absolute;
  background-color: gold;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 180px;
  top: 100%; /* positions it just below the parent */
  left: 0;
  z-index: 2;
}

.dropdown:hover .dropdown-1 {
  display: block;
}

.dropdown-1 li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: gold;
}

.dropdown-1 li a:hover {
  background-color: royalblue;
  color: gold;
}



nav ul {
  display: flex;
  flex-direction: column;
  background-color: #486bd3;
  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: #486bd3;
  color: gold;
  text-decoration: none;
  text-align: center;
  padding: 33px;
  font-size:19px;
}
nav ul li a:hover {
  color: gold;
  /*background-color: royalblue;*/
  /*text-decoration-color: royalblue; */
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}


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-top: solid black 1px;
    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 0px gold;*/
  /*}*/
  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;
  }
}
