body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: url("assets/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #4a2c1a;
  background-image: url(gambar/bg-batik.jpg);
}

header {
  background-color: rgba(255, 245, 230, 0.95);
  padding: 5px;
  text-align: center;
  border-bottom: 2px solid #c69c6d;
  display: flex;
  justify-content: center;
}

#logo {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

h1 {
  font-size: 28px;
  color: #6b3e26;
  margin-right: 5px;
}

main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* backdrop-filter: blur(4px); */
}

.webcam-container {
  margin-top: 15px;
  border: 5px solid #a8733d;
  border-radius: 12px;
  padding: 5px;
  background-color: #fffdf6;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.kontrol {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

button {
  display: inline-block;
  /* margin-top: 20px; */
  padding: 10px 25px;
  background-color: #8c4e2f;
  color: #fff8ec;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.upload-label {
  display: inline-block;
  padding: 10px 25px;
  background-color: #d3a679;
  color: #fff8ec;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  font-family: 'Georgia', serif;
}

button:hover {
  background-color: #6b361f;
}

.upload-label:hover {
  background-color: #a8733d;
}

.hasil {
  margin-top: 30px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.93);
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.hasil p,
.hasil h2,
.hasil span {
  text-align: left;
}

#gambar {
  width: 100%;
  border-radius: 12px;
  margin-top: 15px;
}

h3 {
  border-top: 1px solid black;
  margin-top: 50px;
}

#barcode {
  width: 35%;
  border-radius: 12px;
  margin-top: 15px;
}


footer {
  margin-top: 40px;
  background-color: #3b2212;
  color: #fcebd7;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 20px;
  }

  button {
    width: 100%;
  }

  #webcam canvas {
    width: 100% !important;
    height: auto !important;
  }
}