*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Properties */

:root {
  --ff-primary: "National Park";
  --ff-secondary: "Open Sans";

  --fw-reg: 400;
  --fw-bold: 900;

  --clr-light: #fcfbfc;
  --clr-dark: #1b1b1b;
  --clr-accent: #061d61;
  --clr-accent2: #f3ad0f;

  --fs-h1: 3rem;
  --fs-h2: 2rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);
}

@media (min-width: 755px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.35rem;
    --fs-body: 1.125rem;
  }
}

@media (min-width: 954px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.125rem;
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--ff-primary);
  font-weight: var(--fw-reg);
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

/* General Styling */

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  font-family: var(--ff-secondary);
  font-size: var(--fs-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* 

Header

*/
header {
  background-image: url(assets/marcy.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;
  height: 75vh;
}

.header__img {
  width: 100%;
  background: rgb(255, 255, 255);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background-attachment: scroll;
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.header__logo {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.header__text {
  color: var(--clr-accent);
}

/* 

Body

*/

h1 {
  text-align: center;
  margin: 5rem 0;
  padding: 0 5rem;
}

.class__cards {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10rem;
}

.card {
  margin: 1rem;
}

.card a {
  display: block;
  text-align: center;
  color: inherit;
}

.image_card {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.card a:hover .image_card {
  box-shadow: var(--bs);
  transition: all 150ms ease;
  transform: scale(1.02);
}

.card a:hover h2 {
  color: var(--clr-accent2);
  transition: color 150ms ease;
}

footer {
  background-color: var(--clr-accent);
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: var(--clr-light);
}

a:hover {
  color: var(--clr-accent2);
}

@media only screen and (max-width: 700px) {
  .class__cards {
    flex-direction: column;
  }
}
