@font-face {
    font-family: Switzer Semibold;
    src: url(switzer-semibold.ttf);
}

@font-face {
    font-family: Switzer Regular;
    src: url(switzer-regular.ttf);
}

:root {
	--regular: Switzer Regular;
  --bold: Switzer Semibold;
  
  --white: #F5F2EC;
  --black: #0A2340;
  --grey:  #EFECE3;
  --dark-grey: #23395B;
}


body {
	font-family: var(--regular);
	font-size: 16px;
	line-height: 1.5;
	
	background-color: var(--white);
	color: var(--black);
	max-width: 1320px;
  margin: 40px auto 40px auto;
}

header {
  padding: 20px 40px;
	margin: 0px;
  margin-left: 0px;
  margin-right: 0px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header p {
  margin-top: 16px;
}


.intro {
  max-width: 40%;
}

h1 {
  font-family: var(--regular);
  color: var(--black);
	font-size: 20px;
	font-weight: 400;
}

h6 {
  font-size: 16px;
  font-family: var(--bold);
}

header a {
  text-decoration: none;
  color: var(--dark-grey);
  border-bottom: 1px solid var(--dark-grey);
  transition: 0.5s all ease;
}

a:hover header {
  color: var(--black);
}

.date {
  font-size: 13px;
  font-family: var(--regular);
  color: var(--dark-grey);
  margin-bottom: 8px;
}

#darkMode {
  font-size: 16px;
  margin: 0;
  padding: 4px 16px;
  border-radius: 40px;
  background-color: var(--grey);
  color: var(--black);
  transition: all 0.2s ease-in-out;
}

#darkMode:hover {
  background-color: var(--white);
  border-radius: 40px;
}

section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.filters {
  text-align: center;
}

.filters a {
  background-color: var(--grey);
  color: var(--black);
  font-size: 16px;
  border-radius: 200px;
  padding: 12px 20px;
	margin: 24px 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.filters .selected {
  font-family: var(--bold);
  background-color: var(--black);
  color: var(--white);
}
.filters a:hover {
  font-family: var(--regular);
  background-color: var(--black);
  color: var(--white);
}

.filters li {
  display: inline;
  margin-bottom: 4px;
}

.show-filters {
  display: none;
}

.filters .show-filters {
  color: var(--black);
}

.container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 80px 0px 20px 20px;
  border-radius: 10px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 10px;
}

.card {
  width: 33.33%;
}

.card p {
  color: var(--dark-grey);
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box {
  background-color: var(--grey);
  border: 1px solid var(--grey);
  border-radius: 10px;
  padding: 16px;
  margin: 20px;
  transition: all 0.3s;
}

.box:hover {
/*   box-shadow:  0px 0px 7px rgba(68, 68, 68, 0.2); */
  border: 1px solid var(--black);
}

.box a {
  text-decoration: none;
  color: var(--black);
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--black);
  padding: 16px 40px 16px 40px;
}

footer a {
  color: var(--black);
  text-decoration: none;
  transition: all 0.3s;
}

footer a:hover {
  border-bottom: 1px solid;
}

.footer {
  max-width: 30%;
}

@media (max-width:1240px) {
  body {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width:800px) {
  header {
		padding-top: 0px;
    flex-direction:column-reverse;
    align-content:flex-start;
    padding-left:0px;
    padding-right:0px;
  }
  header div {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .toggle a {
    font-size: 16px;
  }
  section {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .container {
    border: 1px solid var(--black);
    padding: 0px;
    margin-top: 20px;
    flex-direction: column;
  }
  .cards {
  	display: block;
    padding: 0px;
  }
  .card {
    width: 100%;
  }
  .box {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-right: 0px;
    margin-left: 0px;
  }
  .show-filters,
  .filters li {
    display: block;
    margin: 8px;
  }
  .filters a {
  padding: 0px;
  border-radius: 0px;
  background: none;
  color: var(--black);
  transition: all 0.3s;
  padding: 0px;
  margin: 8px;
}
.filters .selected,
.filters a:hover {
background: none;
color: var(--black);
border-bottom: 1px solid var(--black);
border-radius: 0px;
}
  a.show-filters:hover {
    border: none;
  }
  .filters-list {
    display: none;
  }
  footer {
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 0px;
    padding-left: 0px;
  }
  footer p {
    margin-bottom: 12px;
  }
  .intro,
  .footer {
  max-width: 100%;
}
}

@media (max-width:460px) {
    h1 {
    font-size: 20px;
  }
  h6 {
    font-size: 16px;
  }
    body {
      font-size: 14px;
      margin: 20px;
    }
  .date {
    font-size: 12px;
  }
    header {
    padding-top: 0px;
    padding-bottom: 20px;
    text-align: center;
    display: block;
  }
#darkMode {
  background: none;
  color: var(--black);
  transition: all 0.2s ease-in-out;
}
#darkMode:hover {
  background: none;
  border-radius: 40px;
}
    footer {
    justify-content: center;
  }
}

