body {
  font-family: 'Open Sans', sans-serif;
  font-display: swap;
  font-size: 1rem;
  line-height: 1.8;
}

.overlay {
  display: flex;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

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

nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* flexbox navbar test*/
nav ul {
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  font-size: 1rem;
  text-align: center;
  padding: 5px;
}

nav li {
  list-style-type: none;
}

/* Change color on hover */
nav li a {
  margin-left: 20px;
  margin-right: 20px;
  text-decoration: none;
}

main {
  margin-top: 30px;
}

/* Content types */
section {
  border-radius: 5px;
  padding: 5px 20px;
}

/*Simple css to style it like a toggle switch*/
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 40px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .2s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .2s;
  width: 16px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* 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;
  }

  nav {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    margin: 0 auto;
  }

  nav ul li a {
    text-align: center;
    margin: 0 auto;
  }
}
