:root {
  --header-image: url('/assets/banner.png');
  --content: #43256E;
  --color1: #3E3F29; /*background color*/
  --color2: #7D8D86; /*top, side, navbar*/
  --color3: #F1F0E4; /*main*/
  --color4: #BCA88D; /*details*/
  --color5: black; /*text*/
  --color7: white; /*other text*/
  --color6: #ceb99e; /*header image color*/
}

body {
  font-family: sans-serif;
  margin: 0;
  background-color: var(--color1);
  color: white;
}

* {
  box-sizing: border-box;
}

#container {
  max-width: 900px;
  margin: 0 auto;
  border-width: 4px;
  border-color: var(--color3);
  border-style: none solid;
}

#container a {
  color: var(--color5);
  font-weight: bold;
  text-decoration:none;
}

#header {
  width: 100%;
  background-color: var(--color6);
  color: var(--color7);
  height: 150px;
  background-image: var(--header-image);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

#navbar {
  height: 40px;
  background-color: var(--color2);
  width: 100%;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 10px;
}

#navbar li a {
  color: var(--color7);
  font-weight: 800;
  text-decoration: none;
}

#navbar li a:hover {
  color: var(--color4);
  text-decoration: underline;
}

#flex {
  display: flex;
}

aside {
  background-color: var(--color2);
  width: 200px;
  padding: 20px;
  font-size: smaller;
}

main {
  background-color: var(--color3);
  color: black;
  flex: 1;
  padding: 20px;
  order: 2;
}

#rightSidebar {
  order: 2;
}

footer {
  background-color: var(--color2);
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
}

h1, h2, h3 {
  color: black;
}

h1 {
  font-size: 1.5em;
}

.box {
  background-color: var(--color4);
  border: 1px solid black;
  padding: 10px;
  color: black;
}

#topBar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  background-color: var(--color2);
}

@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  main {
    order: 1;
  }

  #rightSidebar {
    order: 2;
  }

  #navbar ul {
    flex-wrap: wrap;
  }
}