html,
body {
  font-size: 20px;
  margin: 0;
  background-color: white;
  font-family: "Spartan", "Quicksand", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  /* padding: 1rem; */
  scroll-behavior: smooth;
}

.hero {
  height: 30rem;
  padding-top: 1rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: linear-gradient(
      rgba(81, 169, 204, 0.63),
      rgba(1, 0, 0, 0.5)
    ),
    url("./image/snowtreegif.gif");
  width: 100%;
  margin: 0 auto;
}

.hero h2,
h4 {
  color: rgb(0, 0, 0);
  text-align: center;
}

.hero h4 {
  font-size: 1.85em;
  font-weight: 700;
  text-shadow: 1px 1px 1px #000, 3px 3px 5px #51a9cc;
}

h2 {
  font-size: 4em;
  padding-top: 2em;
  font-family: "Permanent Marker";
}

/* hero media queries */
@media only screen and (max-width: 960px) {
  .hero {
    padding-top: 0;
  }
}

@media only screen and (max-width: 375px) {
  nav li {
    padding: 0.75rem 0.25rem;
  }
}

/* nav  */
nav,
a {
  top: 0;
  background-color: rgb(0, 0, 10);
  color: rgb(230, 250, 250);
  position: relative;
  z-index: 2;
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

nav li {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fixed-nav nav {
  position: fixed;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
}

li.logo {
  max-width: 0;
  overflow: hidden;
  background: black;
  transition: all 0.5s;
  height: 2rem;
}

nav img {
  max-height: 2rem;
  display: inline-block;
  transition: all 0.2s;
}
.fixed-nav li.logo {
  max-width: 500px;
}

.container-bio {
  max-width: 1200px;
  margin: 0 auto;
}
.supporting {
  display: flex;
  align-items: flex-start;
  margin: 4em auto;
  padding: 0 1rem;
  line-height: 1.5em;
}

.supporting img {
  height: 20%;
  width: 20%;
  margin-right: 5%;
  border-radius: 10rem;
}

@media only screen and (max-width: 700px) {
  .supporting img {
    display: none;
  }
  li.logo {
    /* display: none; */
  }
}

/* cards css */

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

.projects {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn a {
  color: #000000;
  text-decoration: none;
  background: transparent;
  z-index: 1;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-hide {
  display: none;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
  display: flex;
  padding: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.2em;
}

@media (min-width: 40rem) {
  .cards_item {
    width: 50%;
  }
}

@media (min-width: 56rem) {
  .cards_item {
    width: 33.3333%;
  }
}

.card {
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.4s;
}

.card_image {
  flex: 1;
}

.card_content {
  flex: 2;
  padding: 1rem;
  background: linear-gradient(
    to bottom left,
    #51a9cc 40%,
    rgb(241, 247, 255) 100%
  );
}

.card_title {
  color: #000000;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0px;
}

.card_text {
  color: #000000;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.card:hover {
  transform: scale(1.1, 1.1);
  box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.25),
    -5px -5px 30px 15px rgba(0, 0, 0, 0.22);
}

.contact h2 {
  font-size: 2em;
  padding-top: 0.8em;
}

.contact {
  text-align: center;
  margin-bottom: 3em;
}

#footer {
  position: relative;
}

/* Initial state of cards - hidden to the right */
.cards_item {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Visible state of cards - slide in and fade in */
.cards_item.visible {
  transform: translateX(0);
  opacity: 1;
}
