* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('/images/background.jpg');
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    /* background-color: #1a1a1a; */
    /* Fallback color */
}

/* Optional: Add overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.062), rgba(0, 0, 0, 0.356));
    z-index: -1;
}

.sparticles-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sparticles-container canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.navbar {
    background: #333;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 999;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-left: 20px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #555;
}

.hamburger {
    margin-right: 20px;
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
}


/* container gede */


.image-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: translateY(-5px);
}

/* running text */

.scrolling-text {
    background: linear-gradient(to right, #1a1a1a, #333);
    padding: 12px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 998;
    width: 100%;
}

.news-item {
    margin: 0 30px;
    color: #ffd700;
}

.news-item i {
    margin-right: 8px;
    font-size: 16px;
    color: #ffd700;
}

.scrolling-text marquee {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Optional: Style the text when hovered */
.scrolling-text:hover marquee {
    color: #ffd700;
    transition: color 0.3s ease;
}

/* kotak 4 kecil */

.small-boxes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.small-box {
    width: calc(50% - 5px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.small-box:hover {
    transform: translateX(5px);
}


.small-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-box img {
    width: 100%;
    display: block;
}


/* susunan container */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.103);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(rgba(255, 166, 0, 0.438), rgba(255, 251, 0, 0.795));
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.right-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: linear-gradient(rgba(255, 0, 0, 0.438), rgba(255, 251, 0, 0.795));
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.box-container {
    flex: 2;
    height: auto;
}


.image-box {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}


.small-boxes-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.small-box {
    width: 100%;
    height: calc(25% - 7.5px);
    /* Distributes height evenly among 4 boxes */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* button dibawah gambar */


.button-container {
    display: flex;
    gap: 10px;
}

.action-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    color: white;
}

.promo-btn {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
    color: white;
}

.rtp-btn {
    background: linear-gradient(45deg, #7B1FA2, #E91E63);
    color: white;
}

.bi {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .action-button {
        padding: 10px;
        font-size: 14px;
    }
}

/* mini image */

.small-images-row {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mini-image {
    flex: 1;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.mini-image:hover {
    transform: translateY(-2px);
}

.mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* tampilan hp */

/* Tablet screens */
@media (max-width: 1024px) {
    .logo img {
        height: 40px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
        justify-content: space-between;
    }

    .logo {
        margin-left: 10px;
    }

    .logo img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .mini-image {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .right-container {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .left-container {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        margin-right: 10px;
    }


    .nav-menu {
        position: fixed;
        Right: -100%;
        top: 129px;
        flex-direction: column;
        width: 80%;
        height: auto;
        max-height: 90vh;
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        transition: 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0px;
    }

    .nav-menu li {
        margin: 8px 0;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        padding: 8px;
    }

    .nav-menu a {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        display: block;
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        margin-top: 10px;
        padding: 10px 0;
    }


    .dropdown-content a {
        padding: 12px 20px;
        margin: 5px 10px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        color: #ffffff;
    }


    .dropdown-content a:hover {
        background: rgba(0, 0, 0, 0.6);
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 95%;
    padding: 15px;
  }
  
  .category-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .category-btn {
    width: calc(33.33% - 10px);
  }
  
  .winner-horizontal {
    width: 100%;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 10px;
  }

  .category-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-btn {
    width: calc(50% - 8px);
  }
  
  .small-images-row {
    flex-wrap: wrap;
  }

  .mini-image {
    width: calc(50% - 5px);
  }
  
  .button-container {
    flex-direction: column;
    gap: 8px;
  }
}

#content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scrolling-text {
        padding: 10px 0;
    }

    .scrolling-text marquee {
        font-size: 14px;
    }
}

.top-nav {
    position: relative;
    z-index: 1000;
    background: linear-gradient(to right, #1a1a1a, #333);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-content {
    position: relative;
    z-index: 1001;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffd700;
    font-size: 16px;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.social-icons a:hover {
    color: #fff;
}

.contact-info {
    display: flex;
    gap: 20px;
    color: #ffd700;
    font-size: 14px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .contact-info span:first-child {
        display: none;
    }

    .top-nav-content {
        padding: 0 10px;
    }
}

.category-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.category-btn {
    width: 128px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border: 1px solid #ffd700;
    border-radius: 6px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    background: linear-gradient(45deg, #333, #1a1a1a);
}

.category-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .category-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-btn {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .category-btn {
        width: 100%;
    }
}

.livechat-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.livechat-link:hover {
    color: #fff;
}

.livechat-link i {
    font-size: 16px;
}


.winner-horizontal {
    width: 537px;
    height: 36px;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border: 1px solid #ffd700;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1px;
}

.winner-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 100%;
    background: #ffd700;
    color: #1a1a1a;
    font-weight: 600;
}

.winner-scroll {
    overflow: hidden;
    height: 100%;
}

.winner-names {
    animation: slideHorizontal 12s linear infinite;
}

.name {
    padding: 0 15px;
    line-height: 40px;
    color: #ffd700;
    white-space: nowrap;
}

@keyframes slideHorizontal {

    0%,
    25% {
        transform: translateY(0);
    }

    30%,
    50% {
        transform: translateY(-40px);
    }

    55%,
    75% {
        transform: translateY(-80px);
    }

    80%,
    100% {
        transform: translateY(-120px);
    }
}

@media (max-width: 768px) {
    .winner-horizontal {
        width: 90%;
    }
}

/* Container Bawah */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.content-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Style untuk Result Content */
.result-container {
    padding: 20px;
    background: #1a1a1a75;
    border-radius: 10px;
}

.result-table {
    width: 100%;
    overflow-x: auto;
}

/* Style untuk Prediksi Content */
.prediksi-container {
    padding: 20px;
    background: #1a1a1a3b;
    border-radius: 10px;
}

/* Style untuk Slot Gacor Content */
.slotgacor-container {
    padding: 20px;
    background: #1a1a1a75;
    border-radius: 10px;
}

.slotgacor-table {
    width: 100%;
    overflow-x: auto;
}

/* buku mimpi style */
.buku-mimpi-container {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

.search-box {
    margin-bottom: 20px;
    text-align: center;
}

.search-box input {
    width: 80%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #0000004f;
    border-radius: 10px;
    padding: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.slider-image {
    min-width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background: #0056b3;
}

.nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.slider-track {
    display: flex;
    width: 100%;
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-image {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-message {
    text-align: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
}

.slider-track.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transform: none;
}


@media (max-width: 768px) {
    .mimpi-grid {
        gap: 10px;
    }

    .search-box input {
        width: 90%;
    }
}

/* Animasi transisi untuk pergantian konten */
.content-section {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.content-section[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

/* Style untuk tombol yang aktif */
.toggle-btn.active {
    background: linear-gradient(45deg, #ffd700, #ff9900);
    color: #1a1a1a;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 10px;
    }

    .content-section {
        padding: 10px;
    }
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .custom-container {
        max-width: 95%;
        margin: 15px auto;
    }
}

@media (max-width: 768px) {
    .custom-container {
        max-width: 100%;
        margin: 10px auto;
        padding: 15px;
    }
}

@keyframes highlightBorder {
    0% { 
        outline: 3px solid #ffd700;
        outline-offset: -3px;
    }
    50% { 
        outline: 3px solid transparent;
        outline-offset: -3px;
    }
    100% { 
        outline: 3px solid #ffd700;
        outline-offset: -3px;
    }
}

.prediksi-card.highlight-prediksi {
    animation: highlightBorder 0.8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
