* {
  font-family: sans-serif;
}

header {
  background-color: #211a1d;
  color: #ffffff;
  width: 100%;
  padding: 20px;
}

nav {
  display: inline-block;
  width: 100%;
}

header ul {
  margin: 20px 0 0 0;
  padding: 0;
}

header ul li {
  display: inline-block;
  margin-right: 10px;
}

section {
  padding: 5%;
  background-color: #f8f0fb;
}

img {
  border: 5px solid #8075ff;
}

h1,
h2,
h3,
h4,
h5 {
  /*Purple*/
  color: #6320ee;
  margin-bottom: 1em;
}

h1 {
  font-size: 250%;
}

h2 {
  font-size: 175%;
}

h3 {
  font-size: 150%;
}

button {
  display: inline-block;
  border-radius: 3px;
  cursor: pointer;
  padding: 10px 20px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
  background-color: #372772;
  border: 2px solid black;
  color: #fff;
}

footer {
  background-color: #211a1d;
  color: #ffffff;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
}

.introduction {
  background-color: white;
}

.text-spacing {
  line-height: 1.8em;
}

#logo {
  border: 0px;
}

#badge {
  height: 120px;
  width: 120px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  margin-left: auto;

  top: 10px;
  right: 10px;

  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;

    /* add smooth to the changing color when a user hovers over the badge */
  transition: background-color 0.3s ease-in-out;
}

#badge:hover {
  background-color: yellow;
}

#badge p {
  text-align: center;
  font-size: 125%;
}

.image-container img {
  vertical-align: top;
  border: 5px solid #747c92;
}

.image-container img:first-of-type {
  /*vertical-align: bottom;*/
  border-color: #56e39f;
}

.image-container img:last-of-type {
  border-color: #06a288;
}

.tigers {
  background-color: #0b3c49;
  color: #f9d077;
}

.tigers h2, h3 {
  color: #ffc261;
}

.panda {
  background-color: #f2fcf5;
  color: #012c45;
}

.panda h2, h3 {
  color: #ff6f61;
}

.giraffe {
  background-color: #483C46;
  color: #BEEE62;
}

.giraffe h2, h3 {
  color: #F4743B;
}

.news h2 {
  text-align: center;
}

.card {
  display: inline-block;
  background-color: white;
  padding: 20px;
  margin: 10px;
  width: 26%;
  border: 1px solid black;
  border-radius: 10px;
}

.card h4 {
  margin-bottom: 1em;
}

.card a {
  text-decoration: underline;
  font-weight: bold;
}

.card time {
  opacity: 0.5;
  display: inline-block;
  margin-bottom: 10px;
}

/*Education*/

.education {
  height: 500px;
  background-image: url("https://source.unsplash.com/1200x900/?tiger");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 100px 5%;
}

.education-container {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 50px;
  max-width: 400px;
  border-radius: 10px;
}

.education-container h3,
.education-container p {
  margin-bottom: 1em;
}

/* change the font-size of a button in education section */
.education-container button {
  font-size: 150%;
}

.education-container button:hover {
  background-color: #6742ee;
}

/*Membership*/

.membership {
  text-align: center;
  background-color: #fffffc;
}

.membership h2 {
  color: #ff3f00;
}

.membership strong {
  color: #ff7f11;
}

.membership p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/*Programs*/
/* commenting out to fix the layout issue with cards stacking vertically*/
/*.programs .card {
  display: block;
}
*/