/* ================= GLOBAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: white;
}

img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

/* ================= CONTAINER ================= */
.container {
  width: 70%;      
  margin: auto;
}

/* ================== HEADER ================== */
#site-header { 
  width: 70%;        
  margin: auto;
  position: sticky;
  top: 0;
  z-index: 999;
  background: #000;
  border-bottom: 5px solid #c20b0b;
}

.header-container {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-container .logo img {
  height: 60px;
  width: auto;
}

/* ===========================
   MOBILE: HEADER FULL WIDTH
   =========================== */
@media (max-width: 600px) {
  #site-header {
    width: 100% !important;   
    border-radius: 0;        
  }

  .header-container {
    height: 65px;             
  }

  .header-container .logo img {
    height: 45px;            
  }
}


#bottom-bar .container {
  background: linear-gradient(to bottom, #ff0a0a, #000);
  border-top: 2px solid #222;
  padding: 15px 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
}
.center-box {
    width: 100%;
    display: flex;
    flex-direction: column;   
    align-items: center;      
    gap: 12px;                
    margin-top: 20px;
}

.animated-button1 {
    position: relative;
    display: inline-block;
    background: linear-gradient(to bottom, #c20b0b, #000);
    padding: 10px 16px;
    width: 180px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.5),
                0 2px 2px rgba(0,0,0,.3),
                0 2px 4px 1px rgba(0,0,0,.2);
}

@media (max-width: 600px) {
  .animated-button1 {
      width: 100%;          
      max-width: 350px;    
      font-size: 16px;
      padding: 10px 14px;
  }

  .center-box {
      width: 100%;
      padding: 0 5px;      
  }
}


.animated-button1::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #5e564c;
    opacity: 0;
    transition: .2s ease-in-out;
}
.animated-button1:hover::before {
    opacity: .2;
}

/* ---- ANIMASI GARIS ---- */
.animated-button1 span {
    position: absolute;
}

/* Atas */
.animated-button1 span:nth-child(1) {
    top: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(to left, transparent, #fff);
    animation: animateTop 2s linear infinite;
}
@keyframes animateTop {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Kanan */
.animated-button1 span:nth-child(2) {
    top: 0; right: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to top, transparent, #fff);
    animation: animateRight 2s linear -1s infinite;
}
@keyframes animateRight {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Bawah */
.animated-button1 span:nth-child(3) {
    bottom: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(to right, transparent, #fff);
    animation: animateBottom 2s linear infinite;
}
@keyframes animateBottom {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Kiri */
.animated-button1 span:nth-child(4) {
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: animateLeft 2s linear -1s infinite;
}
@keyframes animateLeft {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}


/* ================= CONTENT ================= */
.content .container { 
  background: #111;
  border-top: 5px solid #c20b0b;
  border-bottom: 5px solid #c20b0b;
  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: white;
}

h2, h3 {
  text-align: center;
  margin: 25px 0;
  font-size: 26px;
  color: white;
}

h4 {
  text-align: center;
  margin: 20px 0;
  font-size: 20px;
  color: white;
}

.title-head {
  font-size: 24px;
  color: white;
}

.title-footer {
  font-size: 26px;
  color: white;
}

/* ================= 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; }
}
  .prediksi-box {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 18px;
    font-family: Arial, sans-serif;
    border: 1px solid #333;
  }

  h2 {
    text-align: center;
    background: #c20b0b;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
  }

  .tanggal {
    text-align: center;
    color: #ccc;
    margin-bottom: 15px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;   /* <== WAJIB SUPAYA TABEL TIDAK MELEBAR */
    margin-bottom: 25px;
  }

  th, td {
    border: 1px solid red;
    padding: 10px;
    text-align: center;
    background: #000;
    color: #fff;

    /* <=== INI YANG MENAHAN AGAR TIDAK MELEBAR */
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
  }

  th {
    background: #c20b0b;
    width: 120px; /* kolom kiri kecil */
  }