* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Poppins", sans-serif;
    background-image:linear-gradient(rgba(50, 50, 50, 0.75),rgba(50, 50, 50, 0.75)), url('/MidtermProject/img/bayan.jpg');
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
}

.nav-bar{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: relative;
  padding: 0 20px;
}

.logo {
  width: 100px;
}

.logo img{
  width: 100px;
}

.menu{
  display: flex;
  list-style: none;
}

.menu li{
  margin: 0 10px;
}

.menu li a{
  display: inline-block;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: 0.15s ease-in-out;
  position: relative;
}

.menu li a::after{
  content: "";
  height: 1px;
  width: 0;
  background: #009688;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.5s ease-in-out;
}

.menu li a:hover::after{
  width: 100%;
}

.open-menu, .close-menu{
  position: absolute;
  color: #009688;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
}

.open-menu{
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.close-menu{
  top: 20px;
  right: 20px;
}

#check{
  display: none;
}
  
  
  .container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
  }

  .card {
    border-radius: 10px;
    padding: 20px;
  }
  
  .card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
  }
  
  .img-1 {
    background-image: url("/MidtermProject/img/church.jpg");
  }
  
  .img-2 {
    background-image: url("/MidtermProject/img/basi.jpg");
  }
  
  .img-3 {
    background-image: url("/MidtermProject/img/flower.jpg");
  }
  
  h2 {
    color: antiquewhite;
    font-size: 24px;
    text-align: center;
    margin: 20px 0;
  }
  
  p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }

  @media screen and (max-width: 768px) {
    body{
      background-repeat: no-repeat;
      background-attachment: fixed;
  }
  .menu{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    background-color: rgb(188, 187, 187);
    transition: all 0.2s ease-in-out;
}
.menu li{
    margin-top: 40px;
}

.menu li a{
    padding: 10px;
}

.open-menu, .close-menu{
    display: block;
}

#check:checked ~ .menu{
    right: 0;
}
  }