
/*mobile device rules display under 767 pixels*/

* {
  box-sizing: border-box;
}
html {
  background-color: #f4f1f1;
  font-family: 'Montserrat', sans-serif;

}
img,
video,
embed {
  max-width: 98%;
}
main,
section,
article,
aside,
footer,
header {
  padding: 0.5rem;
}


header,
footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}
article {
  border-bottom: 1px #ff0000 solid;
}
aside {
  background-color: #ff0000;
}



header {
  display: flex;
  justify-content: center; 
  align-items: center;    
  height: 150px;          
  background-color: #000000; 
}

header h1 {
  margin: 0;
  color: #fd0000;
}

h1,
h2,
aside {
  text-align: center;
}
/* default navigation values */


nav ul {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  margin: 0;
  border: solid 1px #ffffff;
  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: #ff8383;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  padding: 8px;
  text-shadow: 3px 2px 1.7px rgba(0, 0, 0, 0.5); 
}
nav ul li a:hover {
  color: #ff0000;
  background-color: #ffffff;
  text-shadow: 3px 2px 1px rgba(255, 255, 255, 0.5); 
}
      
.img-shadow {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

figure {
    margin-top: 20px; /* Adjust the value to control the spacing */
}
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;
  }
  
  .float-right {
  float: right;
  margin-left: 15px;}

  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 #ff0000;
  }
  article {
    flex: 50%;
    border-right: solid #ff0000 1px;
    border-bottom: solid #ff0000 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 #ff0000 1px;
  }

  article:nth-child(3) {
    border-right: none;
  }
  body,
  p,
  a,
  h4 {
    font-size: 16px;
  }
}





