* {
  font-family: "Roboto", sans-serif;
  line-height: 20px;
  font-size: 15px;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /*agar pas pindah bar hitam ke putih efeknya halus*/
}

body {
  margin: 0;
  padding: 0;
}

.layar-dalam {
  margin: auto;
}

nav .layar-dalam {
  padding: 0 100px;
}

.layar-penuh {
  padding-top: 100px;
  padding-bottom: 20px;
  display: flex;
  background-image: url(img/lubus.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.intro {
  flex-grow: 1;
}

canvas,
#elemImage {
  width: 400px;
  height: 250px;
}

.webcam {
  border: 3px solid black;
  width: 650px;
  height: 450px;
}

#webcam {
  width: 650px;
  height: 450px;
}

/* #webcam {
          width: 500px;
          height: 500px;
      }
      /*Pengaturan ilutrasi gambar pada beranda*/
.ilustrasi {
  flex-grow: 1;
  text-align: right;
  margin-left: 10px;
}

.ilustrasi img {
  text-align: center;
  width: 605px;
  height: 432px;
}

/* Pengaturan Nav Bar*/
nav {
  z-index: 100;
  color: #fff;
  text-align: center;
  position: fixed;
  border-bottom: 1px solid #b1b1b1;
  line-height: 60px;
  width: 100%;
  padding-bottom: 5px;
  transition: background-color 0, 5s ease;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
  align-items: cen;
  background-color: white;
}

nav.putih .tombol-menu .garis {
  background-color: #333;
}
nav .logo {
  float: left;
  position: relative;
  line-height: 55px;
  text-align: center;
}

nav .logo img {
  width: 120px;
  vertical-align: middle;
}

nav .menu {
  float: right;
  height: 60px;
  max-width: 600px;
}

nav .menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav .menu ul li {
  list-style-type: none;
  float: left;
  line-height: 70px;
  align-items: center;
  align-self: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  text-align: center;
  padding: 0px 16px 0px 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #2b874a;
  transition: 0.5s;
}

/*pengaturan header dan Beranda*/
header {
  position: relative;
}

.intro {
  flex-grow: 1;
  margin-left: 30px;
}

.intro h4 {
  font-size: 40px;
  font-weight: 600;
}

.intro .deskripsi {
  font-size: 17px;
  font-weight: 400;
  margin-top: 5px;
}

.intro p {
  font-size: 17px;
  margin-bottom: 20px;
}

.intro .jargon {
  font-size: 21px;
  font-weight: 600;
}

.tombol {
  background-color: #6eab3b;
  height: 40px;
  line-height: 42px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0px 20px 0px 20px;
  padding-left: 30px;
  font-size: 16px;
  border-radius: 4px;
  text-align: center;
}

.tombol:hover {
  background-color: #598832;
}

.tombol-menu {
  position: absolute;
  top: 1.7rem;
  right: 1rem;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
}

.tombol-menu .garis {
  height: 3px;
  background-color: white;
}

section {
  padding: 50px 100px 50px 100px;
}

section h3 {
  font-size: 30px;
}

section h3::after {
  content: "";
  border-bottom: 5px solid #0e67a3;
  width: 52px;
  display: block;
  margin: 20px auto;
}

nav.putih {
  background-color: #fff;
}

nav.putih .tombol-menu .garis {
  background-color: #333;
}

section p.ringkasan {
  text-align: center;
  font-style: italic;
  font-size: 18px;
  color: #ababab;
}

nav .logo img.hitam {
  display: none;
}

/*Pengaturan Tentang Kami*/
#TentangKami {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    #82ffe1 100%
  );
}
.tentangKami {
  padding-top: 10px;
  padding-bottom: 50px;
}
.tentangKami .containerTM {
  display: flex;
}
.tentangKami .paragraf {
  font-weight: 500px;
}

.tentangKami .paragraf h4 {
  font-size: 20px;
}

.tentangKami .paragraf p {
  font-size: 17px;
  font-weight: 400;
}
.tentangKami .paragraf p b {
  font-size: 20px;
}

.foto {
  flex-grow: 1;
  width: 700px;
  justify-content: center;
  align-self: center;
}

.foto img {
  width: 500px;
  margin: 10px;
  padding-right: 30px;
}

/*Pngaturan TIM KAMI*/

.timKami .column {
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
}

.timKami .column div {
  padding: 30px;
  flex-grow: 1;
  flex-basis: 0;
  text-align: center;
}
.timKami .column div img {
  width: 115px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(180deg, #082923 0%, rgba(8, 41, 35, 0) 100%);
  border: 2px solid #b6b6b6;
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.25));
}

.timKami .column div h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
}

.timKami .column div p {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
}

/*Pengaturan Deteksi*/

.takephoto {
  display: flex;
  text-align: center;
  justify-content: center;
  position: relative;
  top: -70px;
  visibility: hidden;
}

#Deteksi {
  padding-top: 10px;
  background-image: url(img/select.jpg);
}
.d-none {
  display: none;
}

.video {
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.tombol-deteksi {
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
  padding-right: 10px;
}

.tombol-kamera {
  background-color: #6eab3b;
  height: 40px;
  line-height: 38px;
  color: #000;
  text-decoration: none;
  display: inline-block;
  padding: 0px 20px 0px 20px;
  /* padding-left: 30px; */
  font-size: 15px;
  border-radius: 4px;
  /* text-align: center; */
  margin-left: 5px;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
}
.tombol-kamera:hover {
  background-color: #598832;
}

.take-btn {
  background-color: transparent;
  color: #000;
  font-size: 16px;
  border: 2px solid black;
}

.take-btn:hover {
  color: white;
  border: none;
  transition: 0.5s;
}

/* pengaturan pop-up */

.tombol-tutup-prediksi {
  background-color: white;
  height: 40px;
  line-height: 38px;
  color: red;
  text-decoration: none;
  display: inline-block;
  padding: 0px 20px 0px 20px;
  /* padding-left: 30px; */
  font-size: 18px;
  border-radius: 4px;
  /* text-align: center; */
  margin-left: 5px;
  border: none;
  cursor: pointer;
}

.tombol-tutup-prediksi:hover {
  background-color: red;
  color: white;
  transition: 0.5s;
}

.image-popup {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.hasil-prediksi {
  text-align: center;
  color: #6eab3b;
  font-weight: bold;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.konten {
  padding-left: 50px;
  padding-right: 50px;
  text-align: justify;
}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 500;
  transition: all 0.5s ease-in-out;
}

#prediksi {
  background-color: #ffffff;
  width: 600px;
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

#overlay #prediksi .konten {
  padding-right: 25px;
  padding-left: 25px;
  max-height: 300px;
  overflow-y: auto;
  padding-bottom: 40px;
}

#overlay #prediksi .konten p {
  font-size: 16px;
}

.tutup {
  display: flex;
  justify-content: right;
}
/*Pengaturan Artikel*/

#Artikel {
  background-image: url(img/mail.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.artikel {
  padding: 10px;
}

.container {
  box-sizing: border-box;
  width: 100%;
  margin: auto;
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  padding: 0.2em;
}
.card {
  margin: 0.5em 1.2em 0.5em 0.1em;
  height: 14em;
  max-width: 99%;
  flex: 1 1 auto;
  display: flex;
  background-color: white;
  box-shadow: 1px 3px 3px rgba(0, 10, 20, 0.06);
  border-radius: 15px;
}
.card img {
  height: 100%;
  max-width: 10em;
  -o-object-fit: cover;
  object-fit: cover;
  flex: 1 1 auto;
  border-radius: 15px 0 0 15px;
}
.card-body {
  width: 12em;
  max-height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  padding: 1em;
}
.card-body a {
  min-width: 8.3em;
  flex: none;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6em 1.2em;
  font-size: 0.92em;
  color: #404646;
  background: none;
  border: 0.5px solid #777;
  border-radius: 5px;
}
.card-body a:hover {
  border-color: #2b874a;
  background: #2b874a;
  color: white;
  transition: 0.5s;
}
.card-text {
  position: relative;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.8em 0;
  padding: 0;
}
.card-text h2,
.card-text p {
  margin-top: 0;
}
.card-text:after {
  position: absolute;
  bottom: 0;
  content: "";
  width: 100%;
  height: 1em;
  background: linear-gradient(rgba(255, 255, 255, 0), white);
}

.menu .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
  list-style: none;
}

.menu .controls .buttons {
  margin: 0 15px;
  padding: 0.5rem 0;
  border-bottom: 0.2rem solid #333;
  color: #333;
  cursor: pointer;
  font-size: 20px;
}

.menu .image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.menu .image-container .image {
  width: 20rem;
  margin: 2rem;
  border: 1rem solid #fff;
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.3);
}

.menu .image-container .image img {
  height: 20rem;
  width: 100%;
  object-fit: cover;
}

.menu .image-container .image p {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.menu .image-container .image a {
  text-decoration: none;
}

.menu .image-container .image .wilayah {
  font-size: 17px;
  font-weight: 400;
  margin-top: -10px;
}

.menu .image-container div {
  flex-grow: inherit;
}

/*pengaturan footer*/
footer {
  padding: 40px 100px;
  background-color: #086a35;
  color: #fff;
}

footer .layar-dalam {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

footer .layar-dalam div {
  width: 20%;
  flex-grow: 1;
  text-align: center;
}

footer .daftar-kontak h5 {
  padding-left: 40px;
}

footer .daftar-kontak ul li {
  list-style: none;
  display: flex;
  justify-content: center;
}

footer .daftar-kontak ul li a {
  display: block;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  line-height: 2;
  min-height: 44px;
  text-align: left;
}

footer .daftar-kontak ul li a:hover {
  /* padding-left: 24px; */
  transition: all, ease, 1s;
  color: #d6e4e5;
  text-decoration: underline;
}

footer .layar-dalam h5 {
  margin-top: 0px;
  font-size: 20px;
  font-weight: bold;
}

footer .layar-dalam h2 {
  margin-top: 0px;
  font-size: 18px;
  font-weight: 500;
}

footer .layar-dalam .copyright {
  width: 100%;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #666;
  text-align: center;
}

/**/
.collapsible {
  background-color: rgb(7, 7, 7);
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.active,
.collapsible:hover {
  background-color: #555;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

.item-content {
  color: white;
}
/*PENGATURAN LAYAR AGAR KONTEN MENYESUAIKAN*/
@media screen and (max-width: 991.98px) {
  .ilustrasi {
    display: none;
  }
  .foto {
    display: none;
  }
  .deskripsi {
    padding: none;
    margin: none;
  }

  main {
    padding: 0 10px;
  }

  footer .layar-dalam {
    display: flex;
    width: auto;
    flex-direction: column;
  }

  .container {
    padding: 0 10px;
  }
  .timKami .column {
    display: inline;
  }

  .timKami {
    padding: 0 10px;
    display: inline;
  }

  .tentangKami {
    padding: 0 10px;
  }

  nav .layar-dalam {
    padding: 0 10px;
  }

  nav .menu ul {
    display: none;
    margin-top: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  nav .menu ul li {
    width: 100%;
    border-bottom: 1px solid #ccc;
    background-color: white;
    line-height: 40px;
  }
  nav .menu ul li a {
    color: #333;
  }
  .tombol-menu {
    display: flex;
  }

  footer .layar-dalam div {
    width: 100%;
    flex-grow: 1;
    flex-basis: 100%;
    text-align: center;
  }

  footer {
    padding: 40px 10px;
  }

  footer .layar-dalam h5 {
    padding-left: 0;
  }

  @media only screen and (max-width: 768px) {
    #Beranda {
      padding-left: 1px;
      padding-right: 1px;
    }

    #TentangKami {
      padding-left: 1px;
      padding-right: 1px;
    }
  }
}
