@import url('https://fonts.googleapis.com/css?family=Oswald:700|Lexend%20Deca:400');

@media (prefers-color-scheme: light) {
  :root {
    --text: #0f0f0f;
    --textInvert: #f0f0f0;
    --background: #F5EDE5;
    --primary: #3f6525;
    --secondary: #8eed5e;
    --accent: #5a7fce;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0f0;
    --textInvert: #0f0f0f;
    --background: #1A120A;
    --primary: #6a8e52;;
    --secondary: #41a112;
    --accent: #3156a5;
  }
}

body {
  color: var(--text);
  background-color: var(--background);
}

body {
  font-family: 'Lexend Deca';
  font-weight: 400;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald';
  font-weight: 700;
}

html {font-size: 100%;} /* 16px */

h1 {font-size: 4.210rem; /* 67.36px */}

h2 {font-size: 3.158rem; /* 50.56px */}

h3 {font-size: 2.369rem; /* 37.92px */}

h4 {font-size: 1.777rem; /* 28.48px */}

h5 {font-size: 1.333rem; /* 21.28px */}

small {font-size: 0.750rem; /* 12px */}

.topnav {
  height: 60px; /* Set a fixed height for the navbar */
  background-color: var(--primary);
  color: var(--textInvert);
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo, .title, .topnav a {
  color: var(--text);  /* Add this line */
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 17px;
}

.logo {
  height: 100%; /* Make the logo height equal to the navbar height */
  width: auto; /* This will keep the aspect ratio of the logo */
  object-fit: contain; /* This will make sure the logo is resized to fit within the given area */
  max-width: 100px; /* Adjust the maximum width as per your requirement */
}

.topnav a.active {
  color: var(--textInvert);  /* Add this line */
  background-color: #04AA6D;
  color: white;
}
