@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Quicksand:wght@300..700&display=swap");
/* font-family: "Quicksand", sans-serif; */
/* font-family: "Nunito Sans", sans-serif; */

* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
:root {
  --black: #000;
  --white: whitesmoke;
  --light: #0000005e;
}
body,
html {
  font-family: "Nunito Sans", sans-serif;
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

main {
  width: 100%;
}
h1,
h2,
h3 {
  font-family: "Quicksand", sans-serif;
}
p {
  font-family: "Nunito Sans", sans-serif;
}
section {
  width: 100%;
  height: 100vh;
}
.hero {
  position: relative;
}
header {
  position: absolute;
  width: 100%;
  top: 0;
  background-color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
}
header nav {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
header nav a {
  font-weight: bolder;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--black);
}
.hero .hero-content {
  background-color: var(--white);
  height: 100%;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-content h2 {
  color: var(--black);
  font-weight: 900;
  font-size: clamp(1.7rem, 2.1vw, 1.8rem);
  text-transform: capitalize;
}
.hero-content p {
  color: #0000005e;
}
.hero-content .btn {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.btn .button {
  padding: 1rem 2rem;
  border-radius: 2rem;
  outline: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: ease 0.3s;
}
.btn .button:first-child {
  background-color: var(--black);
  color: var(--white);
}
.btn .button:nth-child(2) {
  border: 1px solid var(--black);
  color: var(--black);
}
.btn .button:first-child:hover {
  background-color: var(--white);
  color: var(--black);
}
.btn .button:nth-child(2):hover {
  background-color: var(--black);
  color: var(--white);
}
.about,
.habitat,
.gallery {
  padding: 0.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about .about-h,
.habitat .habitat-h,
.gallery .gallery-h,
.funfacts .funfacts-h {
  width: 100%;
  text-align: center;
  padding: 1rem;
  border-bottom: dashed 1px #0000005e;
}
.about-h h3,
.habitat-h h3,
.gallery-h h3,
.funfacts-h h3 {
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
}

.about .type {
  width: 100%;
  height: 80%;

  display: flex;
  justify-content: space-around;
  gap: 1rem;
}
.type .card {
  width: 30%;
  height: 100%;
  border-radius: 2rem;

  position: relative;
  z-index: 1;
}
.card:first-child {
  background: url(assets/giant-panda.jpg) no-repeat center;
  background-size: cover;
}
.card:nth-child(2) {
  background: url(assets/red-panda.jpg) no-repeat center;
  background-size: cover;
}
.overlay-card {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  border-radius: inherit;

  background-color: #00000076;
}
.card-content {
  position: relative;
  z-index: 3;
  border-radius: inherit;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-content div h3 {
  color: var(--white);
}
.card-content div p {
  font-weight: 100;
  color: rgba(255, 255, 255, 0.615);
}
.card-content ul {
  position: relative;
}
.card-content ul li {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.615);
}
.card-content ul a {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--white);
  padding: 5px 10px;
  border-radius: 2rem;
  border: 1px solid azure;
  font-size: clamp(1rem, 2vw, 0.4rem);
}
.card-content ul a i {
  font-size: 12px;
}
.habitat {
  height: fit-content;
}

.habitat-h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.habitat-cards {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.habitat-cards .habitat-card {
  width: 300px;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  box-shadow:
    rgba(0, 0, 0, 0.16) 0px 3px 6px,
    rgba(0, 0, 0, 0.23) 0px 3px 6px;
  padding: 1rem;
  border-radius: 0.6rem;
}
.habitat-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-top-right-radius: inherit;
  border-top-left-radius: inherit;
}
.habitat-card .cover-habitat {
  /* width: 100%;
  height: 100px; */
  overflow: hidden;
  border-radius: 2rem;
}
.habitat-card .cover-habitat img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cover-habitat img:hover {
  transform: scale(1.08);
}

.habitat-card .habitat-para {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
  color: var(--light);
  padding: 1rem;
}

.gallery-container {
  height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-container img {
  width: 30%;
  height: 195px;
  object-fit: cover;
  border-radius: 2rem;
  transition: 0.5s;
}
.gallery-container img:hover {
  transform: scale(1.04);
}
.funfacts {
  padding: 2rem;
  min-height: 100vh;
  height: auto;
}

#funfacts .f-cards {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
  padding: 2rem;
  
}
.funfacts-card {
  background-color: rgba(0, 0, 0, 0.056);
  box-shadow:
    rgba(26, 26, 38, 0.093) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.225) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  padding: 2rem 1rem 1rem;
  border-radius: 2rem;
  width: 50%;
  height: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 1rem;
}
.funfacts-card h3 {
  color: var(--black);
}
.funfacts-card p {
  color: var(--light);
}
.funfacts-card img {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  object-fit: contain;
  padding: 4px;
  background-color: rgb(0, 0, 0);

  position: absolute;
  top: -20px;
}
footer {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}
footer li a {
  color: azure;
  font-weight: 300;
  letter-spacing: 3px;
}
footer li a i {
  color: var(--white);
}
@media (max-width: 800px) {
  header nav {
    width: 100%;
    padding: 1rem;
  }
  #about,
  #gallery,
  #habitat,
  #funfacts {
    width: 100%;
    padding: 1rem 2rem;
    min-height: 100vh;
    height: auto;
  }
  .type {
 
    padding: 0;
    flex-wrap: wrap;
    flex: 1 1;
  }
  .type .card {
    min-height: 350px;
    min-width: 250px;
  }
  .card-content {
    min-height: 350px;
    height: 100%;
  }
  .card-content ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  .card-content ul li {
    font-size: 12px;
    padding: 2px;
  }
  .card-content ul a {
    width: 50%;
    font-size: 10px;
    position: relative;
    display: flex;
    gap: 20px;
  }

  .gallery-container img {
    width: 250px;
    height: 200px;
  }

  .f-cards .funfacts-card {
    width: 80%;
  }
}

@media (max-width: 500px) {
  header {
    position: fixed;
    z-index: 200;
    padding: 1rem;
  }
  header img{
    width: 40px;
  }
  header nav {
    flex: 1;
  }
  header nav a {
    font-weight: bolder;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--black);
  }
  .hero .hero-content {
    padding: 1rem;
  }
  .hero-content h2 {
    font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  }
  .hero-content p {
    font-size: 14px;
  }

  .btn .button {
    padding: 10px 1rem;
    font-size: 1rem;
  }
  .gallery-container img {
    width: 150px;
    height: 100px;
  }

  .f-cards .funfacts-card {
    width: 90%;
  }
}
@media (max-width: 400px) {
  header {
    flex-direction: column;
    flex-wrap: wrap;
  }
  header nav {
    width: 100%;
    padding: 1rem;
  }
  header nav a {
    font-size: 1rem;
  }
  .btn .button {
    padding: 5px 10px;
    font-size: 12px;
  }
  #gallery{
    height:80%;
  }
   .gallery-container img {
    width: 100px;
    height: 50px;
    border-radius: 10px;
  }
  
  .f-cards .funfacts-card {
    width: 100%;
  }
}
