/* =========================================
   1. RESET & GLOBAL STYLES
   ========================================= */
* { box-sizing: border-box; padding: 0; margin: 0; }

body {
    margin: 0;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #020202;
    background-image: url("https://noya99prediksi.com/noya99background.jpg");
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    line-height: 1.5;
}

a { text-decoration: none; color: #fff; }
img { max-width: 100%; height: auto; vertical-align: middle; }

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* =========================================
   2. HEADER & ANIMASI MARQUEE
   ========================================= */
.header { padding: 1px; }
.header-logo { text-align: center; padding: 10px 0; }
.header-logo img { max-width: 250px; filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5)); }

.marquee-text {
    height: 35px;
    line-height: 35px;
    font-weight: bold;
    overflow: hidden;
    position: relative;
    background: #9e0000;
    color: #ffffff;
    border-bottom: 2px solid #ffd700;
}

.marquee-text div {
    display: flex;
    width: 200%;
    position: absolute;
    animation: marquee 15s linear infinite;
}

.marquee-text span { width: 50%; white-space: nowrap; }

@keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}

/* =========================================
   3. SLIDER BANNER
   ========================================= */
.slider-container {
    position: relative;
    width: 100%;
    margin: 10px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slide img { width: 100%; display: block; object-fit: cover; }

/* =========================================
   4. KONTEN PREDIKSI (GRID PC 2 KOLOM)
   ========================================= */
#wrapper.wrapper {
    background-color: rgba(94, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.page-title {
    color: #ffd700;
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #111;
    border-radius: 8px;
    border: 2px solid #f0e6d2;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

/* Container Grid Utama */
#prediksi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default PC 2 Kolom */
    gap: 20px;
    align-items: start;
}

.prediksi-box {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    animation: goldGlow 3s infinite alternate ease-in-out;
}

.prediksi-title {
    background-color: #daba05;
    color: #000;
    text-align: center;
    padding: 10px;
    margin: -15px -15px 15px -15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
}

.prediksi-table { width: 100%; border-collapse: collapse; }
.prediksi-table td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.prediksi-table .label { width: 45%; font-weight: bold; color: #ccc; font-size: 0.9rem; }
.prediksi-table .angka { font-weight: bold; color: #ffd900; text-align: right; }

/* =========================================
   5. RESPONSIVE (MOBILE & TABLET)
   ========================================= */
@media (max-width: 768px) {
    #prediksi-container {
        grid-template-columns: 1fr; /* Jadi 1 kolom di HP */
    }

    .page-title { font-size: 1.5rem; }
    
    .prediksi-table tr {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }
    
    .prediksi-table .label { width: 100%; color: #ffd700; margin-bottom: 2px; }
    .prediksi-table .angka { text-align: left; width: 100%; }
}

/* Animasi Glowing Kotak */
@keyframes goldGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}