/* ================= GLOBAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-image: url('../img/body-bg7.png');
  background-color: #000;
  font-family: 'Roboto', sans-serif;
  color: #000000;
  overflow-x: hidden;
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  color: black;
}

img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

/* ================= CONTAINER ================= */
.container {
  width: 70%;      
  margin: auto;
}

/* ================== HEADER ================== */
#site-header { 
  width: 70%;
  margin: 0 auto;
  position: relative; /* HEADER IKUT SCROLL */
  background: #ffffff;
  border-bottom: 5px solid #004d48;
}

/* ===========================
   HEADER CONTAINER
   =========================== */
.header-container {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===========================
   LOGO
   =========================== */
.header-container .logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */
@media (max-width: 600px) {
  #site-header {
    width: 100%;
    border-radius: 0;
  }

  .header-container {
    height: 65px;
  }

  .header-container .logo img {
    height: 45px;
  }
}
#bottom-bar .container {
  background: linear-gradient(to bottom, #004d48, #000);
  border-top: 2px solid #222;
  color: #fff;
  padding: 15px 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
}
.center-box {
    width: 100%;
    display: flex;
    flex-direction: column;   
    align-items: center;      
    gap: 12px;                
    margin-top: 20px;
}
/* ======= NAVIGASI UTAMA ======= */
.nav {
  background: #004d48;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 5px 15px;
  z-index: 10;
  width: 70%;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ======= MENU UL ======= */
.nav ul#menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.nav ul#menu li {
  margin: 0;
  padding: 0;
}

.nav ul#menu li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
  font-size: 15px;
}

.nav ul#menu li a:hover {
  background: rgba(0,0,0,0.2);
  color: #fff;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}

.menu-toggle div {
  width: 100%;
  height: 4px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav ul#menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background: #8b0202;
    border-top: 1px solid #000;
  }

  .nav ul#menu li a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    font-size: 14px;
  }

  .nav ul#menu.show {
    display: flex;
  }

  /* animasi toggle */
  .menu-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active div:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ================= CONTENT ================= */
.content .container { 
  background: #ffffff;
  border-top: 5px solid #004d48;
  border-bottom: 5px solid #004d48;
  border-radius: 6px;
  padding: 5px;
  margin-top: 20px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

@media (max-width: 600px) {
  .content p {
    font-size: 15px;
  }
}


/* ================= HEADINGS ================= */
h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 32px;
  color: black;
}

h2, h3 {
  text-align: center;
  margin: 25px 0;
  font-size: 26px;
  color: black;
}

h4 {
  text-align: center;
  margin: 20px 0;
  font-size: 20px;
  color: black;
}

.title-head {
  font-size: 24px;
  color: black;
}

.title-footer {
  font-size: 26px;
  color: black;
}

/* ================= FOOTER ================= */

.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #000;
  margin: 4px 0;
}

/* generic table cells used across site */
table th,
table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

/* drawing-specific table styles (kept separate) */
#drawing-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

#drawing-table thead td {
  background: #0000f4 !important;
  color: #fff;
}

#drawing-table td {
  border: 1px solid #d9d9d9;
  text-align: center;
  padding: 3px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: bold;
}

/* table wrap used for special table blocks */
#table-wrap {
  font-weight: 700;
  position: relative;
  overflow-x: auto;
}

#table-wrap table {
  position: relative;
  z-index: 10;
  width: 100%;
  border-collapse: collapse;
}

#table-wrap th,
#table-wrap td {
  padding: 10px;
  border: 1px solid #222;
  text-align: center;
}

/* small-screen table fix */
@media (max-width: 767px) {
  #drawing-table {
    min-width: 100%;
    margin-right: -10px;
    margin-left: -10px;
  }
  #main table { min-width: 100%; }
}

.lassres {
  width: 100%;
  margin: 0 auto;
  max-width: 100%;
}
.lassres table { width: 100%; }
.t1 { width: 40%; padding: 5px 10px; border: 1px solid #989898; background: #fff; font-size: 16px; color:#000; }
.t2, .t3 { width: 30%; padding: 5px 10px; border: 1px solid #989898; background: #fff; font-size: 16px; color:#000; }

.kepala {
  text-align: center;
  font-size: 20px;
  background: #de0000;
  color: white;
  padding: 6px;
}

.iklan {
  width: 100%;
  border: 2px solid #ff6600;
  box-sizing: border-box;
  overflow: hidden;
}
.iklan img {
  width: 100%;
  display: block;
  border: 2px solid #ff6600;
}

.footer_container { width: 100%; display: block; }
.inside_footer_container { width: 100%; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.footer_button {
  width: 22%;
  min-width: 120px;
  display: inline-block;
  margin: 1% 0 0 0;
  padding: 10px 0;
  background-color: #d3d3d3;
  box-shadow: 0 0 10px 1px #141414;
  font-size: 15px;
  font-weight: bold;
  color: black;
  letter-spacing: 0.2px;
  text-align: center;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .footer_button { width: 48%; min-width: auto; }
}
.nav-container {
    width: 100%;
  }
/* ================= SCREEN READER ================= */
.sr-only {
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0;
}

/* ================= COLORS & UTILS ================= */
.cb,
.asu {
  color: #000 !important;
}

table td[colspan] {
  color: #000 !important;
  font-weight: bold;
}

tr.headd {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  text-align: center;
}

.asu { font-weight: 100; }

.e1,.e2,.e3,.e4,.e5,.e6,.e7,.e8,.e9,.e0 {
  background-color: #ff4d4d;
  border-radius: 0;
  color: #000;
}
.k1,.k2,.k3,.k4,.k5,.k6,.k7,.k8,.k9,.k0 {
  background-color: green;
  border-radius: 0;
  color: #fff;
}
.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c0 {
  background-color: blue;
  border-radius: 0;
  color: #fff;
}
.a1,.a2,.a3,.a4,.a5,.a6,.a7,.a8,.a9,.a0 {
  background-color: orange;
  border-radius: 0;
  color: #000;
}

.highlight { padding: 1px 4px; margin: 0 -4px; }


input.cari {
  width: 50px;
  text-align: center;
  color: #333;
  font-weight: 700;
  background: #f0f7f2;
}
#rb { background: #20a53a; }
#myForm { padding: 5px; }

fieldset { border: none; margin: 0; padding: 0; list-style: none; vertical-align: baseline; }

.head th {
  background: #20a53a;
  color: #fff;
  border: 1px solid #ddd;
  font-weight: normal;
  height: 20px;
}

.entry-content th,
.entry-content td,
.comment-content th,
.comment-content td { padding: 0 !important; }

textarea { width: 100%; }

.asux { background: #fff; color: #d7d1d1; font-weight: 400; }

tr:nth-last-child(5n+1) { background: #e8e4e7 !important; }

/* ================= MENU WARNA (BULAT) ================= */
.colormenu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #022142;
  padding: 5px;
  max-width: 100%;
  margin-bottom: 10px;
  height: auto;
}
.colormenu.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 99999;
  width: 100%;
}

#btnSubmit {
  padding: 6px 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
}

#color-selector { display: flex; align-items: center; gap: 10px; border: none; padding: 0; }
.color {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 4px rgba(0,0,0,0.3); transition: transform .2s;
}
.color:hover { transform: scale(1.2); }

.color.eraser {
  background: #333 url('data:image/svg+xml;utf8,<svg fill="white" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M16.24 3.76a3 3 0 0 0-4.24 0L2 13.76V18h4.24l10-10a3 3 0 0 0 0-4.24zM5.66 16H4v-1.66l8.12-8.12 1.66 1.66L5.66 16z"/></svg>') center/70% no-repeat;
}
@media (max-width: 480px) {
  .colormenu { gap: 6px; padding: 4px 6px; }
  #color-selector { gap: 6px; }
  .color { width: 24px; height: 24px; }
  #btnSubmit { padding: 5px 12px; font-size: 12px; border-radius: 16px; }
}

.intro td { background: #ffffff !important; color: #000; }

/* html helpers used by some scripts */
#toggle-tracing-mode { display: none; }
#html-wrap textarea { height: 50px; margin: 0 0 10px; overflow: auto; width: 100%; }


.iklan {
  width: 100%;
  border: 2px solid #ff6600;
}

.iklan img {
  width: 100%;
  border: 2px solid #ff6600;
}

/* ================= FOOTER BUTTONS ================= */
.footer_container { width: 100%; display: block; }
.inside_footer_container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer_button {
  width: 22%;
  min-width: 120px;
  margin: 1% 0 0 0;
  padding: 10px 0;
  background-color: #d3d3d3;
  box-shadow: 0 0 10px 1px #141414;
  font-size: 15px;
  font-weight: bold;
  color: black;
  text-align: center;
  border-radius: 6px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 10px; }
  #top-bar .container { padding: 40px 0; }
  .nav-container {
    width: 100%;
  }
  h1 { font-size: 26px; }
  h2, h3 { font-size: 22px; }
  p { font-size: 15px; }
  .lassres { width: 100%; }
}

/* ================= COLOR MENU ================= */
.colormenu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #022142;
  padding: 5px;
  max-width: 100%;
  margin-bottom: 10px;
}

.colormenu.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
}

#color-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
}

.color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  transition: transform .2s;
}
.color:hover { transform: scale(1.2); }
.color.eraser {
  background: #333 url('data:image/svg+xml;utf8,<svg fill="white" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M16.24 3.76a3 3 0 0 0-4.24 0L2 13.76V18h4.24l10-10a3 3 0 0 0 0-4.24zM5.66 16H4v-1.66l8.12-8.12 1.66 1.66L5.66 16z"/></svg>') center/70% no-repeat;
}

/* ================= SMALL SCREENS ================= */
@media (max-width: 480px) {
  .colormenu { gap: 6px; padding: 4px 6px; }
  #color-selector { gap: 6px; }
  .color { width: 24px; height: 24px; }
  #btnSubmit { padding: 5px 12px; font-size: 12px; border-radius: 16px; }
}

.nav-center {
  text-align: center;
}

#menu,
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 20px;
  padding: 12px 0;
}

#menu > li {
  position: relative;
}

#menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 4px;
  display: block;
}

#menu a:hover {
  color: #ffd700;
}

#menu .dropdown > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #1a1a1a;
  border-radius: 4px;
  box-shadow: 0 6px 15px rgba(0,0,0,.3);
  z-index: 999;
}

#menu .dropdown ul li a {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#menu .dropdown ul li:last-child a {
  border-bottom: none;
}

#menu .dropdown:hover > ul {
  display: block;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 12px;
  }

#menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 12px 0;
}
  #menu > li {
    width: 100%;
  }

  #menu a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 2px solid #004d48;
  }

  #menu .dropdown > ul {
    position: static;
    width: 100%;
    background: #004d48;
    box-shadow: none;
  }

  #menu .dropdown.active > ul {
    display: block;
  }
}
@media (max-width: 768px) {
  #menu {
    flex-direction: column;
    align-items: center;
      justify-content: center; 
  }
}