 body {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Inter', sans-serif;
      line-height: 1.7;
      color: black;
      background: white;
      min-height: 100%;
    }

    .container {
      max-width: 980px;
      margin: 10px auto;
      padding: 10px;
      background: white;
      min-height: 100%;
      overflow: hidden;
    }

    /* Header */
    .header {
      width: 100%;
      height: 0;
      padding-bottom: 25%;
      position: relative;
      overflow: visible;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      border: 2px solid white;
      box-sizing: border-box;
    }

    .header::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 240"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    }
.header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
  /* Slot Iklan Header Banner */
.ad-header {
  width: 100%;
  max-width: 1200px;
  margin: 15px auto;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 0px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Gambar Iklan */
.ad-header img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#adHeader {
  display: none;              /* Sembunyikan dari awal */
  margin: 0 !important;       /* Hilangkan margin */
  padding: 0 !important;      /* Hilangkan padding */
  height: 0 !important;       /* Hilangkan tinggi kosong */
  overflow: hidden;           /* Jangan tampilkan isi sebelum waktunya */
  text-align: center;         /* Posisikan iklan di tengah */
  transition: all 0.4s ease;  /* Animasi saat muncul */
}

#adHeader.active {
  display: block !important;
  height: auto !important;
  padding: 10px 0 !important; /* Tambahkan padding saat aktif */
  opacity: 1;
}

/* ==== SLOT IKLAN FLOATING TOP & BOTTOM ==== */

/* Floating umum */
.ad-floating {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 9999;
  text-align: center;
  padding: 5px 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

/* Posisi atas */
.ad-floating.top {
  top: 0;
}

/* Posisi bawah */
.ad-floating.bottom {
  bottom: 0;
}

/* Gambar atau konten iklan */
.ad-floating img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

/* Tombol close */
.ad-floating .close-ad {
  position: absolute;
  top: 4px;
  right: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  transition: all 0.3s ease;
}

.ad-floating .close-ad:hover {
  background: rgba(255, 255, 255, 0.5);
}


    /* Navigation */
    .nav {
      max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
      background: #000;
    }

    .nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: stretch;
      background: linear-gradient(to bottom, darkred, red);
    }

    .nav li {
      flex: 1 1 50%; /* 4 menu = 25% per item */
  max-width: 98%;
  
      
    }

    .nav a {
      display: block;
      padding: 15px 25px;
      color: white;
      background: orangered;
      text-decoration: none;
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(255, 255, 255, 0.8);
      text-align: center;
      font-weight: 600;
      font-size: 0.8rem;
      position: relative;
      border-radius: 0;
      overflow: hidden;
      text-transform: uppercase;
      
      letter-spacing: 0.5px;
    }

    .nav li:last-child a {
      border-bottom: none;
    }

    .nav a:hover {
      background: linear-gradient(to bottom, darkred, red);
      transform: translateY(0px);
    }

    /* Content */
    .content {
      flex: 1;
      margin: 15px auto;
      padding: 60px;
      background: white;
      box-shadow: 0 8px 16px rgba(255, 107, 53, 0.15),
                  0 4px 8px rgba(0, 0, 0, 0.1),
                  inset 0 1px 0 rgba(255, 255, 255, 0.8);
      border: 2px solid white;
      box-sizing: border-box;
    }

    h1, h2 {
      font-family: 'Montserrat', sans-serif;
      text-transform: uppercase;
      font-weight: 700;
    }
    
    
 h1, h2, h3 {
    text-align: center;
  }

    .content h1 {
      color: silver;
      font-size: 1.2rem;
      margin-bottom: 20px;
    }

    .content h2 {
      color: silver;
      font-size: 1.2rem;
      margin: 30px 0 15px;
    }
    .content h3 {
      color: silver;
      font-size: 1.1rem;
     
    }
    .content p {
      margin-bottom: 20px;
      text-align: justify;
      font-size: 0.9rem;
      font-weight: 400;
      letter-spacing: 0.5px;
    }
.t1 {
  width: 40%;
  padding: 5px 0px 5px 10px;
  border: 1px solid #989898;
  background: white;
  font-size: 16px;
}

.t2 {
  width: 30%;
  padding: 5px 0px 5px 10px;
  border: 1px solid #989898;
  background: white;
  font-size: 16px;
}

.t3 {
  width: 30%;
  padding: 5px 0px 5px 10px;
  border: 1px solid #989898;
  background: white;
  font-size: 16px;
}

.out-link {
  list-style-type: square;
  margin: 0px 35px;
  color: white;
}

.out-link a {
  text-decoration: none;
  color: white;
}

a:hover {
  color: #ffffff;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.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: none repeat scroll 0 0 #fff;
  color: #d7d1d1;
  font-weight: 400;
}

tr:nth-last-child(5n+1) {
  background: none repeat scroll 0 0 #e8e4e7 !important;
}

.colormenu {
  background: #022142;
  width: 738px;
  height: 30px;
  center: unset;
  z-index: 99999;
  padding: 0;
  max-width: 100%;
  margin-bottom: 10px;
}

.colormenu.fixed {
  position: fixed;
  height: 30px;
  center: unset;
  width: 738px !important;
  top: 0;
  left: 0 !important;
  margin: auto;
  right: 0;
}

.intro td {
  background: none repeat scroll 0 0 #ffffff !important;
}

table {
  background: #fff none repeat scroll 0 0;
  margin: 1px;
  min-width: 500px;
}

#drawing-table thead td {
  background: #dd9933 !important;
  width: 100%;
  background: #0000f4 !important;
  margin: 0;
  margin-top: 10px;
}

#drawing-table td {
  border: 1px solid #d9d9d9;
  text-align: center;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 0 3px 0;
}

#color-selector .color {
  float: left;
  height: 25px;
  position: relative;
  width: 11%;
  cursor: pointer;
}

#color-selector .color.eraser {
  background: none repeat scroll 0 0 #fff;
}

#color-selector .color.Blue {
  background: #43a2ff;
}

#color-selector .color.Aqua {
  background: #00F5FF;
}

#color-selector .color.Teal {
  background: #43CD80;
}

#color-selector .color.Lime {
  background: #01FF70;
}

#color-selector .color.Yellow {
  background: #FFDC00;
}

#color-selector .color.Orange {
  background: #FF851B;
}

#color-selector .color.Red {
  background: #FF4136;
}

#color-selector .color.Pink {
  background: #F012BE;
}

#color-selector .color.Purple {
  background: #A23BEC;
}

#color-selector .color.Silver {
  background: #a9a9a9;
}

#color-selector .selected {
  box-shadow: inset 0 0 0 2px #000;
}

#btnSubmit {
  float: left;
  margin-top: 0;
  font-size: 9px;
  background: #333;
  color: #FFF;
  font-weight: 600;
  border: none;
  height: 25px;
  line-height: 25px;
  width: 10%;
  cursor: pointer;
  text-transform: uppercase;
}

#table-wrap {
  font-weight: 700;
  position: relative;
}

#table-wrap table {
  position: relative;
  z-index: 10;
}

#toggle-tracing-mode {
  display: none;
}

#html-wrap textarea {
  height: 50px;
  margin: 0 0 10px;
  overflow: auto;
  width: 100%;
}

    /* Footer */
    .footer {
      height: 80px;
      background: orangered;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      text-align: center;
      letter-spacing: 0.5px;
    }
    #histats_counter {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px auto;
  width: 100%;
}
.tampil {
  width: 100%;
  border: 2px solid #ccc;
  margin: -1px;
  border-radius: 3px;
}

.tampil img {
  height: 110px;
  margin: auto;
}

.banner-float {
  position: fixed;
  width: 100%;
  text-align: center;
  bottom: 0px;
  z-index: 9999;
}

.banner-float img {
  width: 728px;
}

.banner1 img {
  display: inline-block;
  width: 100%;
}

.floating-top {
  background: transparent;
  top: 0;
  height: auto;
  left: 0;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 100%;
  z-index: 1001;
}

.floating-bottom {
  background: transparent;
  bottom: 0;
  height: auto;
  left: 0;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 100%;
  z-index: 1001;
}

.floating-top img,
.floating-bottom img {
  width: 50%;
}
.headerbanner {
  text-align: center;
  background: #f5f5f5;
  margin-top: 5px;
}

.headerbanner a {
  display: block;     
  margin: 0;           
  line-height: 0;     
}

.headerbanner img {
  display: block;      
  width: 100%;         
  height: auto;
  margin: 0;           
  border: 1px solid white;
}

.banner-top img {
  width: 728px;
}

.space {
  width: 100%;
  height: 150px; 
}
.nav-wrapper {
    max-width: 550px;
    margin: 30px auto;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #f4c542; /* gold */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nav-item {
    background: #121212;
    border: 1px solid rgba(244, 197, 66, 0.25); /* lebih tipis */
    padding: 12px;
    border-radius: 6px; /* sebelumnya 10px */
    transition: 0.25s ease-in-out;
    box-shadow: 0 0 5px rgba(244, 197, 66, 0.10); /* glow lebih kecil */
}

.nav-item:hover {
    background: #1a1a1a;
    border-color: #f4c542;
    box-shadow: 0 0 8px rgba(244, 197, 66, 0.25);
    transform: translateY(-2px);
}

.nav-item a {
    color: #f9d76f; /* gold bright */
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nav-item a:hover {
    color: #fff;
}
    /* Responsive */
    @media (max-width: 768px) {
      .header {
    padding-bottom: 30%; /* lebih tinggi di layar kecil */
  }
       .ad-header {
    margin: 10px auto;
    padding: 8px;
  }
  .ad-header img {
    max-height: 100px;
  }
      .ad-floating {
    padding: 3px 0;
  }

  .ad-floating img {
    max-height: 70px;
  }

  .ad-floating .close-ad {
    font-size: 12px;
    padding: 1px 4px;
  }
      .nav ul {
        flex-direction: column;
      }

      .nav a {
        padding: 10px;
        border-bottom: 1px solid white;
        height: 25px;
        margin: auto;
        border-top: none;
        }

      .nav li{
      flex: 1 1 50%; /* 2 menu per baris */
    max-width: 100%;
      
      }
      .nav li:last-child a {
        border: none;
      }

      .content {
        padding: 15px;
      }
      .banner-float img,
  .banner-top img {
    width: 320px; 
  }

  .floating-top img,
  .floating-bottom img {
    width: 100%; 
  }
    #drawing-table {
    min-width: 100%;
    margin-right: -10px;
    margin-left: -10px;
  }
  .tampil img {
    height: auto; 
    width: 100%;
  }

  .tampil {
    border-width: 1px;
  }

  .headerbanner {
    background: #f5f5f5;
  }

  .banner-float {
    bottom: 5px;
  }
    .space {
    height: 90px; 
  }
    }
    
    /* === CSS popup === */
#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.popup-box {
  position: relative;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  max-width: 400px;
  width: 50%;
}
.popup-box img {
  width: 80%;
  height: auto;
  border-radius: 5px;
  display: block;
}
.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  font-size: 24px;
  line-height: 24px;
  width: 30px;
  height: 30px;
  text-align: center;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
}
 .nav-wrapper {
        max-width: 90%;
        margin: 20px auto;
    }

    .nav-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom */
        gap: 8px;
    }

     .nav-item {
        padding: 6px;
        border-radius: 4px; /* sudut lebih kecil di mobile */
        border-width: 0.8px; /* ekstra tipis */
    }

    .nav-item a {
        font-size: 12.5px;
    }
@media (max-width: 600px) {
  .popup-box { max-width: 50%; }
}
    /* ==== NAVIGASI DESKTOP TANPA BORDER BOX ==== */
@media (min-width: 769px) {
  .nav {
    box-sizing: content-box; /* hilangkan pengaruh border-box hanya di PC */
  }

  .nav ul {
    justify-content: space-between; /* biar penuh ke samping */
  }

  .nav li {
    flex: 1 1 auto;
    max-width: none;
  }

  .nav a {
    border: none; /* hilangkan border bawah */
    border-radius: 0;
    padding: 15px 30px;
    background: orangered;
    font-size: 0.9rem;
    text-transform: uppercase;
  }

  .nav a:hover {
    background: linear-gradient(to top, red, darkred);
    transform: none;
  }
   .lassres {
    width: 100%;
    margin: auto;
  }

  .lassres tableresult {
    width: 100%;
    padding: 0 0 0 0;
    border: 1px solid white;
  }

  .lassres img {
    width: 100%;
    height: auto;
    padding: 1px 0 0 0;
  }
  .nav-wrapper {
        max-width: 90%;
        margin: 20px auto;
    }

    .nav-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom */
        gap: 8px;
    }

     .nav-item {
        padding: 6px;
        border-radius: 4px; /* sudut lebih kecil di mobile */
        border-width: 0.8px; /* ekstra tipis */
    }

    .nav-item a {
        font-size: 12.5px;
    }

}
