:root {
  --header-height: 4rem;
}

header {
  background-color: var(--primary-color);
  margin: 0;
  padding: 0.5rem;
  height: var(--header-height);
}

main {
  padding: 0.5rem;
}

nav {
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.active {
  background-color: var(--accent-color);
  border-radius: 15px;
}

nav ul li {
  width: 7rem;
  height: 100%;
  background-color: var(--background-color);
  margin-right: 0.5rem;
  border-radius: 15px;
}

nav ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: var(--text-color);
}

nav ul li a:hover {
  background-color: var(--secondary-color);
  border-radius: 15px;
}

.container {
  max-width: 40rem;
  margin: 0 auto;
}

.flex-center {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.h-100 {
  height: 100%;
}

.logo {
  height: 4rem;
  padding-top: 0.3rem;
  margin-right: 0.5rem;
}

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
}

.margin-header-height {
  margin-top: var(--header-height);
}


/*Mobile Navigation Section*/
@media screen and (max-width: 800px) {
  nav.desktop {
    display: none;
  }

  nav.mobile.open {
    top: 0;
  }
}

nav.mobile {
  position: fixed;
  top: 0;
  top: -300%;
  bottom: 0;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

nav.mobile ul {
  flex-direction: column;
  background-color: var(--primary-color);
  height: 90%;
  width: auto;
  margin-top: calc(var(--header-height) + 1rem);
  overflow: auto; 
}

nav.mobile ul li {
  height: 2rem;
  background-color: transparent;
  margin-top: 2rem;
  border-top-style: solid;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 4vh;
}

nav.mobile ul li:first-child{
  border-top-style: none;
}

nav.mobile ul li a {
  font-size: 2rem;
}

button#hamburger {
  position: relative;
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 2rem;
}

button#hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  display: block;
  height: 5px;
  transform: rotate(0deg);
  transition-duration: 250ms;
}

button#hamburger span:nth-child(1) {
  top: 10px;
}

button#hamburger span:nth-child(2) {
  top: 35px;
}

@media screen and (min-width: 800px) {
  button#hamburger {
    display: none;
  }
}

header {
  z-index: 100;
}
nav.mobile {
  z-index: 99;
}

hr {
  width: 30%;
  margin-top: 2rem;
}

.activeMobile {
  background-color: transparent;
  color: var(--accent-color);
}

hr:last-child{
  visibility: hidden;
}


button#hamburger.spanActive span:nth-child(1) {
  top: 25px;
  transform: rotate(45deg);
  transition-duration: 250ms;
}

button#hamburger.spanActive span:nth-child(2) {
  top: 25px;
  transform: rotate(-45deg);
  transition-duration: 250ms;
}
