:root {
--primary-font-family: "Playfair Display", serif;
--secondary-font-family: "Caveat", cursive;
--primary-color: #272044;
}

body {
  font-family: var(--primary-font-family);
  background: black;
}

section {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px;
}

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/sunset-mike-benna-unsplash.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 200px 0;
}

header h1 {
  font-family: var(--secondary-font-family);
  font-size: 150px;
  line-height: 1;
  font-weight: 700;
  margin: 0;
}

header h3 {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 5px;
  font-weight: 500;
  margin: 0;
}

header p {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 20px;
}

header a {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 3px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  padding: 12px 28px;
  border-radius: 12px;
  margin: 20px;
}

main {
  background-color: white;
}

main h2 {
  color: var(--primary-color);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 5px;
  opacity: 0.4;
  font-weight: 700;
  margin: 0;
}

main h3 {
  color:var(--primary-color);
  font-size: 34px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
}

main p {
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.8;
}

main h4 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: var(--primary-color);
  margin: 0;
}

main h5 {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  color: var(--primary-color);
  margin: 0;
}

section.secondary {
  background: #f8f8f8;
  text-align: center;
} 

section.tertiary {
  text-align: center;
}

section.tertiary h3 {
  padding-bottom: 30px;
}

footer {
  background-image: linear-gradient(rgba(39, 32, 68, 0.9), rgba(39, 32, 68, 0.9)), url("../images/footer-jeffrey-eisen-unsplash.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 50px 0;
}

footer li {
  list-style: none;
  padding: 0;
}

footer ul {
  margin: 0;
  padding: 0;  
}

footer h4 {
  font-family: var(--secondary-font-family);
  font-size: 26px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

footer p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  font-weight: 400;
  margin: 0;
}

footer a {
  color: white;
  opacity: 0.7;
  text-decoration: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.image-responsive {
  width: 100%;
}

.downtown-image {
  max-height: 640px;
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
}

.grid {
  display: grid;
  grid-gap: 64px;
}

.grid-2-columns {
  grid-template-columns: 1fr 1fr;
}

.grid-3-columns {
  grid-template-columns: 1fr 1fr 1fr;
}

.video-grid-2-columns {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
}

.video-grid-3-columns {
  width: 100%;
  display: grid;
  margin-top: 10px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
}

.video {
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  width: 100%;
}

.card {
  background: white;
  margin: 30px 0;
}

.card-header.grid {
  grid-gap: 0;
}

.card-body {
  text-align: left;
  padding: 30px;
}

.card-body p {
  margin-top: 7px;
}

.embed {
  width: 100%;
  aspect-ratio: 1/1;
}

.card-footer {
  padding: 0 30px 30px 30px;
}

.btn {
  display: block;
  color: white;
  background: #138487;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  border-radius: 8px;
  padding: 16px;
}

.grid-footer {
  grid-template-columns: 1fr 2fr 2fr;
}

.footer-note {
  background: black;
  color: white;
  font-size: 14px;
  text-align: center;
  padding:8px;
}

.footer-note a {
  text-decoration: none;
  color: blueviolet;
}

.coder {
    font-family: 'Courier New', Courier, monospace;
}

header a:hover {
  color: white;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 150ms ease-in-out;
}

.btn:hover {
  color: #138487;
  background: white;
  border: 2px solid #138487;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: all 150ms ease-in-out;
}

footer a:hover {
  color: white;
  font-weight: bold;
  text-decoration: underline;
}

.footer-note a:hover {
  text-decoration: underline;
  font-weight: bold;
}

@media (max-width: 850px) {
  h3 {
    padding-bottom: 10px;
  }
  
  section {
    padding: 0;
  }

  header {
    padding: 30px 0;
  }

  header h1 {
    font-size: 60px;
    margin-bottom: 20px;
  }

  header h3 {
    font-size: 15px;
  }

  header p {
    font-size: 16px;
    margin: 10px;
  }

  main {
    padding: 20px
  }

  main h3 {
    font-size: 28px;
  }

  main p {
    font-size: 16px;
  }

  footer {
    padding: 30px;
  }

  footer p {
    font-size: 14px;
  }
  
  section.secondary {
    background: white;
    padding-top: 0;
    padding-bottom: 30px;
  }

  section.main {
    padding-bottom: 30px;
  }

  section.tertiary {
    padding-top: 30px;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    text-align: center;
  }

  .grid-main {
    padding: 20px;
  }

  .grid.grid-3-columns {
    grid-gap: 50px;
  }

  .card {
    margin: 0;
  }

  .card-header img {
    display: none;
  }

  .card-body {
    padding: 15px 0;
    text-align: center;
  }

  .card-footer {
    padding: 0;
  }

  .embed {
    aspect-ratio: 16/9;
  }
  section.tertiary h3 {
  padding-bottom: 10px;
}

  .video-grid-2-columns,
  .video-grid-3-columns {
    grid-template-columns: 1fr;
  }
}