* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background-color: #f8f8f8;
}

/* Style the header */
header {
  background-image: url('consumption-banner1.svg');
  background-size: cover;
  background-position: center;
  padding: 60px;
  text-align: center;
  font-size: 35px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  background-color: #3498db;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

header h2 {
  position: relative;
  z-index: 1;
  font-family: 'Georgia', serif;
}

/* Container for flexboxes */
section {
  display: -webkit-flex;
  display: flex;
  min-height: 70vh;
}

/* Style the navigation menu */
nav {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: #2c3e50;
  padding: 20px;
  box-shadow: inset -5px 0 5px -5px rgba(0,0,0,0.3);
}

/* Style the list inside the menu */
nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  margin-bottom: 10px;
  border-bottom: 1px solid #34495e;
  padding-bottom: 5px;
}

nav ul li a {
  text-decoration: none;
  color: #ecf0f1;
  display: block;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #3498db;
  padding-left: 15px;
  color: #fff;
}

/* Style the content */
article {
  -webkit-flex: 3;
  -ms-flex: 3;
  flex: 3;
  background-color: white;
  padding: 25px;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

article h1 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

article h2 {
  color: #2980b9;
  margin-top: 30px;
  font-family: 'Georgia', serif;
}

article h3 {
  color: #16a085;
  margin-top: 25px;
  font-family: 'Georgia', serif;
}

article p {
  margin-bottom: 15px;
  text-align: justify;
}

article ul, article ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

article ul li, article ol li {
  margin-bottom: 8px;
}

/* Style the footer */
footer {
  background-color: #2c3e50;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* Responsive layout - makes the menu and the content (inside the section) sit on top of each other instead of next to each other */
@media (max-width: 768px) {
  section {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  nav {
    padding: 10px;
  }
  article {
    padding: 15px;
  }
  header {
    padding: 30px;
  }
}