:root {
  --header-color: darkslategrey;
  --header-height: 3em;
  --near-black: rgb(19, 37, 31);
  --near-white: rgb(227, 227, 227);
  --content-width: 650px;
}

* {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html {
  margin: 0;
}

.page-content {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--near-white); 
  padding: 0 2em;
  padding-top: var(--header-height);
  box-sizing: border-box;
}

p, li {
  color: var(--near-black);
  font-size: 16px;
}

body {
  background-color: rgb(63, 76, 59);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.navbar {
  background-color: var(--header-color);
  display: flex;
  position: fixed;
  justify-content: space-around;
  padding: 0;
  margin: 0;
  min-width: var(--content-width);
  height: var(--header-height);
}

.navbar li {
  list-style: none;
  padding: .8em;
  background-color: var(--header-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar>a {
  color: var(--near-white);
  text-decoration: none;
}

.navbar li :link,
.navbar li :visited {
  color: var(--near-white);
  text-decoration: none;
}

li.active-navbar {
  background-color: var(--near-black);
}

img {
  margin: 0 auto;
  padding: .5em;
  background-color: none;
  display: block;
  border: thin double var(--near-black);
}

h2 {
  font-size: 28px;
  color: var(--near-black);
}

a:active {
  color: var(--near-white);
}

a:visited {
  color: rgb(78, 78, 169);
}

a:link {
  color: rgb(27, 132, 167);
}

.gallery {
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  justify-content: space-around;
  box-sizing: content-box;
}

.gallery li {
  list-style: none;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 2%;
  height: 16em;
  flex-wrap: wrap;
  align-content: center;
  flex-grow: 1;
  min-width: 16.848em;
}

.gallery li:nth-child(1) {
  background-color: brown;
}

.gallery li:nth-child(2) {
  background-color: purple;
}
    
.subsection-h2 {
  display: flex;
  justify-content: center;

}

.gallery li a {
  text-decoration: none;
}

.gallery li a * {
  color: var(--near-white);
  font-size: 1.8em;
}

@media only screen and (max-width: 650px) {
  .navbar {
    min-width: 100%;
    height: auto;
    flex-direction: column;
  }

  .page-content {
    padding-top: calc(var(--header-height) * 3);
  }
}