body {
  background-color: #eeebe8;
}

/*Header - NavBar Part  */

.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 100px;
  position: fixed;
  width: 100%;
  height: auto;
  background-color: black;
  color: white;
  top: 0;
  z-index: 100;
  align-items: center;
}

.logo-bar {
  grid-area: 1 / 1 / 2 / 2;
  object-fit: contain;
}
.logo-bar img {
  height: 100px;
  object-fit: fill;
}

.search-bar {
  grid-area: 1 / 2 / 2 / 4;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  align-content: center;
  width: 70%;
}
.search-bar i {
  margin-left: 2vw;
}
#search-bar {
  /* width: 80%; */
  float: right;
  border: brown;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.menu-bar {
  grid-area: 1 / 4 / 2 / 7;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  color: white;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  margin-right: 2vw;
  font-family: "Roboto", sans-serif;
}

.header-bar li {
  list-style-type: none;
}
.header-bar li a {
  text-decoration: none;
}

.link-nav {
  color: white;
  padding: 15px;
  border: brown;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

.list-nav .link-nav:hover {
  background-color: gray;
  color: white;
}

/* Header - Banner Part */
.bg-banner {
  height: auto;
  text-align: center;
}

#backg {
  width: 80%;
}
.bg-image img {
  margin-top: 105px;

  /* width: auto;
  height: 20vh; */
}

.bg-image h1,
h2 {
  text-align: center;
  font-family: "Roboto", sans-serif;
}

.bg-image h2 {
  animation: changecolor 1s infinite;
  -webkit-animation: changecolor 1s infinite;
}

@keyframes changecolor {
  from {
    color: orange;
  }
  25% {
    color: green;
  }
  50% {
    color: blue;
  }
  75% {
    color: white;
  }
  to {
    color: red;
  }
}

/* Main: Product section */
.definition {
  font-family: "Abel", sans-serif;
}
h3 {
  text-align: center;
  font-family: "ROboto", sans-serif;
}
.grid-item1 {
  display: flex;
  flex-direction: row;
  margin: 10px;
  margin-top: 3vh;
  margin-bottom: 5vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  text-align: center;
  gap: 10px;
  justify-content: center;
}
.grid {
  gap: 10px;
  position: relative;
}
.grid-item1 p {
  text-align: center;
}
.grid-item1 img {
  width: 15vw;
  height: 30vh;
  gap: 10px;
  border: 5px solid brown;
  padding: 4px;
  border-radius: 10px;

  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.grid-item1 img:hover {
  transform: scale(1.07);
  transition: 0.6s;
  -webkit-transition: 0.6s;
  -moz-transition: 0.6s;
  -ms-transition: 0.6s;
  -o-transition: 0.6s;
  -webkit-transform: scale(1.07);
  -moz-transform: scale(1.07);
  -ms-transform: scale(1.07);
  -o-transform: scale(1.07);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  opacity: 0.8;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: 0.5s ease;
  cursor: grabbing;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  object-position: center;
}

.grid:hover .overlay {
  height: 25%;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  gap: 25px;
}

.grid p {
  position: absolute;
  z-index: 2;
  top: 0;
  color: #0918e0;
  left: 20%;
  background-color: gray;
  opacity: 0.6;
  padding: 8px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  font-weight: 800;
  font-family: "Roboto", sans-serif;
}

.grid i {
  color: black;
}

/* Event section */
.slider {
  padding: 0;
  width: 70vw;
  height: 500px;

  position: relative;
  text-align: center;
  left: 15%;
}
.slider img {
  width: 100%;
  height: 500px;
  position: absolute;
  top: 0;
  left: 0;
}

.slider img:first-child {
  z-index: 1;
}

.slider img:nth-child(2) {
  z-index: 0;
}

.navigation-button {
  text-align: center;
  position: relative;
  margin-top: 3vh;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.active,
.dot:hover {
  background-color: #717171;
}

.overlay-slider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  opacity: 0.7;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: 0.5s ease;
  cursor: pointer;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  object-position: center;
  z-index: 1;
  height: 25%;
}

/* .slider:hover .overlay-slider {
  height: 25%;
} */

.text-slider {
  color: black;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  gap: 25px;
}
/* Footer: Our Partner */
.footer-partner h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  text-align: center;
}
.footer-partner img {
  width: 10vw;
  height: auto;
}
.partner-logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

#logo-mdr1,
#logo-bni,
#logo-kemenperin {
  mix-blend-mode: darken;
}

/* Footer: Grid for footer parts */
.darkmode-container {
  text-align: center;
}
.footer-grid {
  margin-top: 5vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.footer-logo {
  grid-area: 1 / 1 / 2 / 2;
  /* align-items: center; */
  justify-content: center;
  align-content: center;
  margin-left: 15%;
}

.footer-address {
  grid-area: 1 / 2 / 2 / 3;
  align-content: center;
}

.footer-feedback {
  grid-area: 1 / 3 / 2 / 5;
  padding: 15px;
  border: 0.5px solid black;
  border-radius: 10px;
  margin-left: 30%;
  margin-right: 15%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.footer-socmed {
  grid-area: 2 / 1 / 3 / 5;
  text-align: center;
  margin-top: 5vh;
}

.footer-feedback h3 {
  font-family: "Roboto", sans-serif;
}

.footer-feedback {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  margin-top: 5vh;
}
.footer-address {
  font-family: "Roboto", sans-serif;
}
.footer-logo img {
  width: 15vw;
  height: 15vh;
  border-radius: 45%;
  -webkit-border-radius: 45%;
  -moz-border-radius: 45%;
  -ms-border-radius: 45%;
  -o-border-radius: 45%;
}

.footer-cor {
  font-weight: bold;
  text-align: center;
}

@media only screen and (min-width: 767px) {
  .search-bar {
    flex-wrap: nowrap;
  }
  .header-bar {
    justify-content: none;
    margin-left: 3vw;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .search-bar {
    display: none;
  }

  .menu-bar {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    font-size: 2vh;
    top: 0;
  }

  .header-bar {
    position: relative;
    /* top: 4.5rem; */
    left: 0;
    background: #222831;
    z-index: 1;
    width: 50vw;
    height: 100px;
  }
  .header-bar a {
    color: #fff;
    padding: 1rem 1.5rem;
  }
  .header-bar i {
    display: none;
  }

  .grid-item1 {
    flex-wrap: wrap;
    font-size: smaller;
  }

  .grid p {
    font-size: smaller;
    font-weight: 600;
    padding: 3px;
    left: 15%;
  }

  .footer-address,
  .footer-feedback {
    font-size: smaller;
  }
}
