/* Dark theme */
:root {
  --background-color: #343a40;
  --header-color: #202225;
  --headings-color: #ffffff;
  --font-color: #eeeeee;
  --border-color: #141414;
  --line-color: #ffffff;
  --link-color: #CC99FF;
  --link-color-hover: #ffffff;
}

/* Light theme */
html[data-theme='light'] {
  --background-color: #ffffff;
  --headings-color: #181818;
  --font-color: #181818;
  --line-color: #181818;
  --nav-link-color: #2599fd;
  --nav-link-color-hover: #000000;
  --link-color: #CC99FF;
  --link-color-hover: #000000;
}

body {
  background-color: var(--background-color);
  color: var(--font-color);
  font-family: 'Open Sans', sans-serif;
  font-display: swap;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  color: var(--headings-color);
  font-weight: bold;
  line-height: 1.2;
}

hr {
  background-color: var(--line-color);
}

/* Navigation */
header {
  background-color: var(--header-color);
  padding-top: 4px;
  padding-bottom: 4px;
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color 0.1s linear;
}

a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* Banner */
.overlay {
  background-size: cover;
  background-position: center;
  border-top: 2px solid var(--border-color);
  border-bottom: 4px solid var(--border-color);
  display: flex;
  height: 200px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.title {
  display: inline-block;
  font-size: 3rem;
  text-decoration: none;
}

/* Content */
main {
  margin-top: 20px;
}

section {
  border-radius: 5px;
  padding: 5px 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 3px solid var(--border-color);
  color: var(--font-color);
  font-family: var(--font1);
  margin-top: 30px;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .title {
    display: block;
    text-align: center;
  }
}

@media (max-width: 576px) {
  footer {
    flex-direction: column;
  }
}