@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400..700&family=Lobster&display=swap");

:root {
  --primary-orange: #f15b43;
  --section-padding: 7vh 5vw;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Cabin", sans-serif;
  background: white;
}

/* STYLES THE H2 IN SECTIONS */

.section-heading {
  margin-bottom: 10px;
  padding: 10px 03px 0;
  font-size: 1.7rem;
  width: fit-content;
  border-bottom: 2px solid var(--primary-orange);
  border-radius: 1px;
}

header {
  position: relative;
  height: 10vh;
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3vh 5vw;
  background: rgba(0, 0, 0, 0.7);
}

img.logo {
  width: 150px;
}

.nav-links {
  display: none;
}

/* HIDDEN SLIDE NAVIGATION */

.menu-box {
  display: none;
  visibility: hidden;
}

.hidden-nav {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  transition: 0.5s ease;
  transform: translateY(-90vh);
  background: transparent;
}

.menu-box,
.hamburger {
  position: absolute;
  top: 3vh;
  right: 5vw;
  z-index: 1;
  cursor: pointer;
  color: var(--primary-orange);
}

.menu-box:checked ~ .hidden-nav {
  transform: translateY(-0vh);
  transition: 0.5s ease;
  background: rgba(255, 255, 255, 0.9);
}
.hidden-nav-links {
  margin-top: 40vh;
  white-space: nowrap;
}

.hidden-nav-link {
  font-style: 1.1rem;
  list-style: none;
  padding: 1rem 2rem;
  width: 100%;
}

.hidden-nav-link a {
  display: block;
  color: var(--primary-orange);
  text-decoration: none;
  text-align: center;
  transition: 0.2s ease;
}

/* HERO SECTION */

.hero {
  background: url("child-poverty.jpg") no-repeat center center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  margin-top: -10vh;
}

.hero-text {
  padding: 30vh 5vw;
  padding-bottom: 0;
  color: white;
}

.hero-text h2 {
  font-size: 2.7rem;
  padding: 20px 0;
}

.hero-text h2 span {
  color: var(--primary-orange);
}

.hero-text p {
  line-height: 1.7;
  font-style: italic;
}

.hero-text .cta a {
  display: inline-block;
  text-decoration: none;
  color: white;
  margin: 20px 0;
  padding: 15px;
  background: var(--primary-orange);
}

.hero-text .cta a:hover {
  background: transparent;
  border: 1px solid white;
  transition: 0.3s ease;
}

/* OUR MISSION */

section.our-mission {
  padding: var(--section-padding);
  background: #f15a431a;
}

section.our-mission img,
.volunteer-flex img {
  width: 500px;
  max-width: 100%;
  margin: 2vh auto;
}

section.our-mission img:hover {
  filter: grayscale(85%);
  transition: 0.5s;
}

.mission-text {
  margin: 30px 0;
  width: 450px;
  max-width: 100%;
}

.mission-text p {
  padding: 10px 0;
  line-height: 1.5;
}

.mission-text p span {
  color: var(--primary-orange);
  font-weight: 500;
}

/* VIDEO SECTION

section.supporting-videos {
  padding: var(--section-padding);
}

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

iframe {
  width: 450px;
  height: 300px;
  max-width: 100%;
} */

/* VOLUNTEER SECTTION */

section.volunteer {
  padding: var(--section-padding);
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("boko-haram_victims.webp") no-repeat center center;
  background-size: cover;
  color: white;
}

.volunteer-heading {
  text-align: center;
}
.volunteer-heading span {
  border-bottom: 2px solid var(--primary-orange);
}

/* Styling For the volunteer Form */

#volunteer-form {
  margin: 2vh auto;
  padding: 20px;
  width: 400px;
  max-width: 100%;
}

.form-action {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}

/* The input-text class consist of the input that */
.input-text,
#submit-btn {
  width: 100%;
  padding: 10px;
  outline: none;
  font-family: "Cabin", sans-serif;
  border: none;
}

#submit-btn {
  margin: 5px 0;
  background: var(--primary-orange);
  color: #fff;
}

#submit-btn:hover {
  border: 1px solid white;
  background: transparent;
  color: #fff;
  transition: 0.3s;
}

/* The Volunteer image has been sized using styling from the image in the mission image in line 170 above */

/* PROJECTS SECTION */

/* THE PADDING AND BACKGROUND COLOR FOR THIS SECTION WAS PRESET USING STYLES FROM THE MISSION SECTION scroll up to find it */

section.projects {
  background-color: #fff;
  padding: var(--section-padding);
}

.project-cards {
  margin: 5vh auto;
  padding: auto 5vw;
  display: flex;
  justify-content: space-between;
}

.project-card {
  width: 320px;
  background: #fff3f3;
  font-size: 0.9em;
  margin-bottom: 20px;
  transition: 0.3s;
}

.project-card:hover {
  box-shadow: 2px 6px 10px 0px rgba(0, 0, 0, 0.26);
}

.project-card img {
  width: 100%;
}

.project-card-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  line-height: 1.5;
  margin: 10px 0;
}

.project-card-text h3 {
  text-align: center;
}

.project-card .donate-btn {
  text-decoration: none;
  margin: 0 auto;
  padding: 5px 20px;
  background: var(--primary-orange);
  color: #fff;
}

.donate-btn:hover {
  background: #c04734;
  transition: 0.2s;
}

footer {
  width: 100%;
  background: #333;
  height: 50px;
  color: #fff;
  text-align: center;
}

footer p {
  font-size: 0.8em;
  padding: 15px 10px;
}
/* MEDIA QUERIES */

@media screen and (max-width: 700px) {
  .project-cards {
    flex-direction: column;
    align-items: center;
  }
}
@media screen and (min-width: 728px) {
  section.our-mission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }

  .mission-text {
    margin: 0;
  }

  .video-container {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  iframe:hover {
    box-shadow: 2px 2px 4px 5px rgba(0, 0, 0, 0.2);
  }
}

@media screen and (min-width: 600px) {
  .nav-links {
    display: flex;
    gap: 15px;
    white-space: nowrap;
  }
  .nav-link {
    display: inline-block;
  }

  .nav-link a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    padding: 10px;
    z-index: 1;
  }

  .nav-link a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: white;
    background-color: var(--primary-orange);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.8s ease-in-out;
    border: none;
    z-index: -1;
  }

  .nav-link a:hover::before {
    transform-origin: left;
    transform: scaleX(0);
    color: white;
  }

  .nav-link a:hover {
    border: 1px solid white;
  }

  .hamburger,
  .menu-box,
  .hidden-nav {
    display: none;
    visibility: hidden;
  }

  .hero-text {
    width: 650px;
    max-width: 100%;
  }
}

@media screen and (min-width: 600px) and (max-width: 950px) {
  section.our-mission img {
    width: 350px;
  }
}
