/* ==============================
   Body Background
   ============================== */
body {
  background: url("https://wallpapers-clan.com/wp-content/uploads/2024/07/racing-car-red-black-background.jpg") no-repeat center center fixed !important;
  background-size: cover !important;
  color: #ffffff !important;
}

/* ==============================
   Navbar Gradient
   ============================== */
div[style*="position: fixed"][style*="top: 0"] {
    background: linear-gradient(to bottom, #000000 0%, #ab0000 50%, #000000 100%) !important;
    box-shadow: rgba(0, 0, 0, 0.5) 0 6px 6px -6px !important;
    height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==============================
   Logo di Tengah Header
   ============================== */
table[width="90%"] {
    margin: 0 auto !important;
    width: 90% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 50px !important;
}

table[width="90%"] img[alt="KENCANG77"] {
    height: 50px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Menu kanan & Hamburger */
#open-right, td#open-right {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* ==============================
   Main Menu Horizontal
   ============================== */
#main_menu_outer_container {
    background: linear-gradient(to bottom, #000000 0%, #ab0000 50%, #000000 100%) !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}


/* ==============================
   Card Sydney 3 Prize
   ============================== */
div[style*="margin-right: 10px"][style*="margin-top: -10px"] {
    width: 100% !important;
    margin-top: -10px !important;
    margin-right: 10px !important;
    font-family: sans-serif !important;
}

div[style*="background-color: #D23838"] {
    background: linear-gradient(to bottom, #8B0000, #D23838) !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
}

div[style*="color: #FDC23A"] {
    color: #FDC23A !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

div[style*="font-weight: 500; font-size: 12px;"] {
    font-weight: 500 !important;
    font-size: 12px !important;
}

div[style*="background-color: #6c1711; border-bottom: 2px solid #D2383A"] {
    background: linear-gradient(to bottom, #6c1711, #400a08) !important;
    border-bottom: 2px solid #D2383A !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    gap: 10px !important;
}

div[style*="font-size: 12px; font-weight: 500; margin: auto 10px auto auto;"] {
    font-size: 12px !important;
    font-weight: 500 !important;
    margin: auto 10px auto auto !important;
    line-height: 1.2 !important;
}

div[style*="background-color: #B50C0C"] {
    background: linear-gradient(to bottom, #ff8500, #fe6600) !important;
    color: #fff !important;
    width: 27px !important;
    line-height: 27px !important;
    border-radius: 6px !important;
    box-shadow: 1px 0.125rem 0.5rem rgba(0,0,0,0.3) !important;
    text-align: center !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

div[style*="font-size: 15px; margin: auto;"] table { margin: 0 auto !important; }

div[style*="background-color: #6c1711; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px"] {
    background: linear-gradient(to bottom, #6c1711, #400a08) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    color: #fff !important;
}

/* ==============================
   XPola Box Hitam
   ============================== */
#xpola.bg-dark {
    background: linear-gradient(145deg, #000000 0%, #1a1a1a 50%, #000000 100%) !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) inset, 0 2px 6px rgba(255,255,255,0.05) inset !important;
}

#xpola > div {
    text-align: center !important;
    font-size: 0.8rem !important;
    padding-bottom: 5px !important;
}

#xpola i.text-success { color: #28a745 !important; }
#xpola i.text-danger { color: #dc3545 !important; }

#xpola i:hover { transform: scale(1.1) !important; transition: transform 0.2s ease !important; }

div[style*="position: fixed"][style*="bottom: 0"][style*="width: 100%"] {
    background: linear-gradient(to bottom, #0E0E0E 0%, #820000 50%, #0E0E0E 100%) !important;
    box-shadow: rgb(0 0 0 / 50%) 0 -6px 6px -6px !important;
}
/* Container button */
div[style*="background-color: #4b0500"][style*="display: flex"][style*="padding: 8px 0"] {
    display: flex !important;
    padding: 8px 0 !important;
    font-weight: 500 !important;
    gap: 12px !important;
}

/* ===== MASUK button ===== */
div[onclick*="masuk"] {
    background: linear-gradient(135deg, #D2383A, #FF5A5A, #FF0000) !important;
    display: flex !important;
    margin: auto 3% auto auto !important;
    border-radius: 8px !important;
    width: 120px !important;
    padding: 10px 0 !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    font-weight: 700 !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    box-shadow: 0 6px 12px rgba(255,0,0,0.6), inset 0 0 6px rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease-in-out !important;
    animation: pulseRed 3s infinite alternate !important;
}

/* Hover MASUK */
div[onclick*="masuk"]:hover {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 18px rgba(255,0,0,0.8), inset 0 0 8px rgba(255,255,255,0.2) !important;
    background: linear-gradient(135deg, #FF5A5A, #FF0000, #D2383A) !important;
}

/* ===== DAFTAR button ===== */
div[onclick*="daftar"] {
    background: linear-gradient(135deg, #B50C0C, #FF1A1A, #820c0c) !important;
    display: flex !important;
    margin: auto auto auto 3% !important;
    border-radius: 8px !important;
    width: 120px !important;
    padding: 10px 0 !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    font-weight: 700 !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    box-shadow: 0 6px 12px rgba(180,12,12,0.6), inset 0 0 6px rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease-in-out !important;
    animation: pulseRed 3s infinite alternate !important;
}

/* Hover DAFTAR */
div[onclick*="daftar"]:hover {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 18px rgba(180,12,12,0.8), inset 0 0 8px rgba(255,255,255,0.2) !important;
    background: linear-gradient(135deg, #FF1A1A, #B50C0C, #820c0c) !important;
}

/* ===== Keyframes Gradient Pulse ===== */
@keyframes pulseRed {
    0% {
        background-position: 0% 50% !important;
    }
    50% {
        background-position: 100% 50% !important;
    }
    100% {
        background-position: 0% 50% !important;
    }
}

div[onclick*="masuk"], div[onclick*="daftar"] {
    background-size: 200% 200% !important; /* biar gradient bisa bergerak */
}
div[style*="background-color: #D2383A"] {
    background-color: transparent !important; /* jadikan transparan */
}
/* Target khusus div Sydney 3 Prize */
div[onclick*="window.open"][style*="background-color: #D2383A"] {
background: linear-gradient(135deg, #861313 0%, #b00404 100%) !important;
border-top-left-radius: 20px !important;
border-top-right-radius: 20px !important;
padding: 3px 12px !important;
cursor: pointer !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 0 8px rgba(255,255,255,0.2) !important;
transition: all 0.3s ease !important;
}

/* Hover animasi */
div[onclick*="window.open"][style*="background-color: #D2383A"]:hover {
    background: linear-gradient(135deg, #ff5555 0%, #d00000 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,255,255,0.3) !important;
}

/* Judul Sydney 3 Prize */
div[onclick*="window.open"][style*="background-color: #D2383A"] > div:first-child {
    color: #FFD700 !important; /* emas */
    font-weight: 500 !important;
    font-size: 13px !important;
}

/* Subjudul (Setiap Hari) */
div[onclick*="window.open"][style*="background-color: #D2383A"] > div:last-child {
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}
td[style*="margin: auto 20px auto auto"][style*="border-radius: 4px"][style*="border: 1px solid rgba(170, 165, 165, .54)"] {
    display: none !important;
}
/* Target table dengan background merah spesifik */
table[style*="background-color: #D2383A"] {
    background-color: transparent !important;   /* jadi transparan */
}


/* === TOMBOL MASUK & DAFTAR (3D BLUE + RED STROKE STYLE) === */
div[onclick*="masuk"],
div[onclick*="daftar"] {
  background: linear-gradient(135deg, #0028FF, #004CFF, #007AFF) !important;
  display: flex !important;
  border: 3px solid #F0F0F0 !important;
  border-radius: 10px !important;
  width: 130px !important;
  padding: 12px 0 !important;
  justify-content: center !important;
  align-items: center !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: #fff !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
  box-shadow:
    0 6px 0 #000,        /* 🔳 Bayangan hitam lurus ke bawah */
    0 6px 15px rgba(0,0,0,0.8); /* Sedikit lembut biar keliatan real */
  transition: all 0.2s ease-in-out !important;
}

/* === BEDAKAN POSISI MARGIN === */
div[onclick*="masuk"] {
  margin: auto 3% auto auto !important;
}
div[onclick*="daftar"] {
  margin: auto auto auto 3% !important;
}

/* === HOVER EFFECT === */
div[onclick*="masuk"]:hover,
div[onclick*="daftar"]:hover {
  transform: translateY(-3px);
  box-shadow:
    0 3px 0 #000,        /* Bayangan ikut naik */
    0 3px 12px rgba(0,0,0,0.8);
}

/* === KETIKA DITEKAN (ACTIVE) === */
div[onclick*="masuk"]:active,
div[onclick*="daftar"]:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #000,
    0 1px 6px rgba(0,0,0,0.8);
}

/* ======================
   Custom Game Icons
   ====================== */
   
#main_menu_outer_container>main>a
{
  position: relative;
  border-radius: 12px;
  z-index: 10;
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box,border-box;
  background-image: linear-gradient(#000000b2,#1a1a1a),linear-gradient(120deg,#ffcb00 0%,#fb1004 15%,#ff6c00 30%,#ff8300 45%,#f00 55%,#ff4800 70%,#f00 85%,#f00051 100%);
  background-size: 100% 100%,500% 100%;
  animation-name: ledBorderRun,neonFlicker;
  animation-duration: 2.2s,2.8s;
  animation-timing-function: ease-in-out,steps(1,end);
  animation-iteration-count: infinite,infinite;
  animation-direction: normal,normal;
  box-shadow: inset 0 0 10px rgb(13, 5, 5),inset 0 0 20px rgba(253, 0, 0, 0.29);
  font-size: 9px !important;
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-block: 11px;
  margin-right: 5px;
  margin-left: 5px;
}
#main_menu_outer_container>main>a:nth-child(1) {
 animation-delay:0s,0s;
}
#main_menu_outer_container>main>a:nth-child(2) {
 animation-delay:0.3s,0.2s;
}
#main_menu_outer_container>main>a:nth-child(3) {
 animation-delay:0.6s,0.4s;
}
#main_menu_outer_container>main>a:nth-child(4) {
 animation-delay:0.9s,0.6s;
}
#main_menu_outer_container>main>a:nth-child(5) {
 animation-delay:1.2s,0.8s;
}
#main_menu_outer_container>main>a:nth-child(6) {
 animation-delay:1.5s,1s;
}