@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap");

* {
  font-family: "Mukta", sans-serif;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

nav {
  background-color: #3c5c35;
  display: flex;
  justify-content: space-between;

  padding: 16px 20px;
  border-radius: 0 0 24px 24px;
}
.nav-link li a {
  font-family: "Mukta", sans-serif;
  text-decoration: none;
  list-style: none;
}

.text-menu {
  text-decoration: none;
  list-style-type: none;
}

.nav-link .link-menu {
  color: white;
}

.container {
  box-sizing: border-box;
  padding: 0 20px;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-bottom: 96px;
}

.nav-link {
  display: none;
  gap: 40px;
}

.nav-logo {
  width: 180px;
}

.link-content {
  display: flex;
  gap: 58px;
  align-items: center;
}

.btn-donasi {
  padding: 12px 24px;
  border-radius: 12px;
  background-color: #447d46;
  color: white;
  border: none;

  font-size: 16px;
}

.btn-donate {
  display: none;
}

.btn-menu {
  background-color: transparent;
  border: none;
}

.hero-container {
  background-size: cover;
  height: 850px;
  width: 100%;
  position: absolute;
  z-index: -2;
  border-radius: 0 0 32px 32px;
  background-image: url("../assets/image-background.jpg");
}

.main-logo {
  width: 160px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 90px;
  margin-bottom: 80px;
}
.text-title {
  display: flex;
  flex-direction: column;
  color: white;
  text-align: center;
  max-width: 700px;
}

.text-title h1 {
  font-size: 50px;
  font-weight: bold;
}

.text-title {
  margin-bottom: 24px;
}

.text-title h6 {
  font-size: 20px;
  margin-bottom: 18px;
}

.card {
  display: flex;
  color: white;
  background-color: #3c5c35;
  width: fit-content;
  max-width: 900px;
  padding: 30px 42px;
  margin: auto;
  border-radius: 12px;
  gap: 56px;
  align-items: center;
  flex-direction: column;
}

.text-header {
  margin-bottom: 16px;
}

.title-ajakan {
  width: 100%;
  text-align: center;
}

.title-ajakan h1 {
  font-size: 35px;
}

.title-ajakan h6 {
  font-size: 30px;
}

.accent {
  height: 5px;
  width: 100%;
  max-width: 250px;
  background-color: #deb34d;
  margin: auto;
  margin-bottom: 20px;
}

.container-ajakan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.text-ajakan {
  margin-bottom: 20px;
}

.form-donasi h1 {
  font-size: 25px;
  text-align: center;
}

.container-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.container-form .input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.container-form .input input {
  background-color: #e7e7e7;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.container-form label {
  font-size: 14px;
  font-weight: bold;
}

.side-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.side-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-right textarea {
  /* width: 100%; */
  background-color: #e7e7e7;
  height: 280px;
  border: none;
  border-radius: 12px;
  padding: 16px;
}

.select-option {
  background-color: #e7e7e7;
  border: 0;
  color: #447d46;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 12px;
  border-radius: 8px;
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  background: linear-gradient(180deg, #fff 0%, #fff 68.55%, #dedede 131.82%);
}

.title-galeri h1 {
  font-size: 24px;
  width: 100%;
}

.title-galeri p {
  font-size: 14px;
  width: 100%;
}

.title-galeri {
  display: flex;
  flex-direction: column;
}

.image-galeri {
  height: 490px;
  width: 100%;
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.btn-secondary {
  padding: 8px 16px;
  border: gray solid 1px;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  color: #3c5c35;
  width: fit-content;
  margin: auto;
}

.container-galeri {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.alamat {
  max-width: 550px;
}

.footer {
  min-width: 100%;
  background-color: #3c5c35;
}

.top-area {
  display: flex;
  align-items: center;
  max-width: 900px;
  padding: 55px 0;
  margin: auto;
  color: white;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  gap: 32px;
}

.logo-media-sosial {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.image-galeri .grid {
  width: 100%;
  height: 300px;
  background-size: cover;
}

.image-galeri {
  height: fit-content;
}
.bottom-area {
  background-color: #447d46;
  color: white;
  text-align: center;
  font-size: 12px;
  padding: 12px;
}

.btn-donasi-container {
  display: flex;
  justify-content: center;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.4;
}
/* media query */
@media screen and (min-width: 1240px) {
  .logo-media-sosial {
    justify-content: start;
  }
  .top-area {
    flex-direction: row;
    text-align: start;
  }

  .btn-menu {
    display: none;
  }
  .btn-donasi-container {
    display: flex;
    justify-content: start;
  }
  .title-galeri {
    flex-direction: row;
    gap: 32px;
    align-items: center;
  }

  .title-galeri h1 {
    font-size: 36px;
  }

  .title-galeri p {
    font-size: 14px;
  }
  .btn-donate {
    display: flex;
  }

  .nav-link {
    display: flex;
  }

  nav {
    padding: 20px 100px;
  }

  .card {
    flex-direction: row;
  }

  .container-ajakan {
    flex-direction: row;
  }

  .text-ajakan {
    margin-bottom: 80px;
  }

  .accent {
    margin: 0;
    margin-bottom: 0;
  }

  .title-ajakan {
    text-align: start;
  }

  .form-donasi h1 {
    font-size: 30px;
  }

  .container-form {
    width: 100%;
    flex-direction: row;
    /* justify-content: space-between; */
    gap: 32px;
  }

  .image-galeri {
    /* height: 490px; */
    width: 100%;
    display: grid;

    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
  }

  .image-galeri .grid {
    background-size: cover;
    border-radius: 12px;
  }
}

/* CSS untuk menu navbar pada perangkat mobile */
.nav-link {
  display: none;
  flex-direction: column;
  gap: 20px;
  background-color: #3c5c35;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  padding: 20px;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  box-sizing: border-box;
}

.nav-link.active {
  display: flex;
}

.btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #447d46;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.btn-menu.active img {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Untuk menambahkan efek animasi ketika navbar muncul */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link.active {
  animation: slideDown 0.3s ease forwards;
}

.input-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-form input {
  padding: 10px;
  border-radius: 10px;
  outline: none;
}

.input-form label {
  font-weight: bold;
}

.input-form textarea {
  background-color: white;
  border: solid 1px rgb(218, 218, 218);
  outline: none;
}

.default-border {
  border: solid 1px rgb(218, 218, 218);
}

.is-invalid {
  border: solid 1px red;
}

.invalid-feedback {
  font-size: smaller;
  color: red;
}
