:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    --bg-color: #131313;
    --text-first: #fafafa;
    --text-second: #0a0a0a;
    --first-color: #ff0000;
    --second-color: #b31d00;
    --third-color: #ff0000;
    --fourth-color: #ad0101;
    --fifth-color: #b10000;
    --g1: #ff0000;
    --g2: #6d0000;
}

body {
    background: url('http://i.postimg.cc/W1HSTdWy/background-itl4d.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-first);
}

.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
}

/* Update RTP Card styles */
.rtp-card {
    background: linear-gradient(0deg, var(--first-color) 0%, var(--fifth-color) 100%);
    padding: 8px; /* Reduced padding */
    text-align: center;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.rtp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.rtp-card-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.place-img-rtp {
    width: 100%;
    padding: 4px; /* Reduced padding */
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 1px 0px 4px 2px rgba(19,19,19,0.8) inset;
}

.place-img-rtp:hover {
    cursor: pointer;
}

/* Update button styles */
.btn-play {
    position: absolute;
    top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: capitalize;
    width: auto;
    min-width: 100px;
    max-width: 70%;
    border: 2px solid var(--first-color);
    background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 100%);
    color: var(--text-first);
}

.btn-play:hover {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
}

/* Update pola-wrapper styles */
.pola-wrapper {
    background: var(--text-second);
    padding: 8px; /* Reduced padding */
    width: 100%;
    border-radius: 5px;
    position: relative;
    margin-top: 8px;
}

.pola-wrapper h4 {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--first-color);
}

.jam-wrapper {
    background: #131313;
    border-radius: 50%;
    padding: 0.6rem;
}

.table-pola {
    width: 100%;
    margin: 5px 0;
}

.table-pola tr td {
    text-align: center;
    padding: 3px;
    font-size: 0.7rem;
}

.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

/* Update provider icon */
.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 1.5rem;
    top: 5px;
    right: 5px;
}

.icon-providers img {
    width: 100%;
    height: auto;
}

.slider, .swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.slider-wrapper {
    background: linear-gradient(0deg, var(--text-second) 0%, var(--text-second) 100%);
    height: 100%;
    border-bottom: 1px dashed var(--first-color);
}

.running-text {
    background: #ed0000;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-second);
    padding: 0.1rem;
}

.icon-prov {
    background: linear-gradient(0deg, var(--first-color) 0%, var(--g2) 100%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    color: var(--text-second);
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-second);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.img-prov {
display: block;
margin-right: auto;
margin-left: auto;
}

.item-prov {
    padding: 0 0.5rem;
}

/* Update existing btn-credit style */
.btn-credit {
    background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 100%);
    padding: 0.6rem;
    color: #ffffff;
    border: none;
    font-weight: bold;
    border-right: 1px solid var(--first-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.btn-credit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

/* Side rotation effect */
.btn-credit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: rotate-shine 4s infinite;
}

/* Shine animation */
@keyframes shine {
    0% {
        left: -75%;
    }
    20% {
        left: 125%;
    }
    100% {
        left: 125%;
    }
}

/* Rotate shine animation */
@keyframes rotate-shine {
    0% {
        left: -100%;
        transform: rotate(0deg);
    }
    20% {
        left: 100%;
        transform: rotate(180deg);
    }
    100% {
        left: 100%;
        transform: rotate(180deg);
    }
}

/* Hover effect */
.btn-credit:hover {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.btn-credit:hover::before {
    animation: shine 1.5s infinite;
}

.btn-credit:hover::after {
    animation: rotate-shine 2s infinite;
}

/* Active state */
.btn-credit:active {
    transform: scale(0.95);
}

/* Add blink animation keyframes */
@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 10px var(--first-color),
                    0 0 20px var(--first-color),
                    0 0 30px var(--first-color);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px var(--first-color),
                    0 0 30px var(--first-color),
                    0 0 40px var(--first-color);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--first-color),
                    0 0 20px var(--first-color),
                    0 0 30px var(--first-color);
    }
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--second-color);
}

.item-nav-bottom {
    background: linear-gradient(0deg, var(--g2) 0%, var(--first-color) 100%);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
}

.item-nav-bottom:hover {
    background: linear-gradient(0deg, var(--first-color) 0%, var (--g2) 100%);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.btn-up {
  display: none;
  position: fixed;
  bottom: 3.8rem;
  right: 0;
  z-index: 99;
  font-size: 0.9rem;
}

/* Percentage */
.percent{
    height: 16px;
    margin-top: 8px;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    /* border-radius: .25rem; */
    position: relative;
    z-index: 1;
    border-radius: 5px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.percent p{
    z-index: 15;    
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 11px;
    top: -12px;
    font-weight: bold;
    transform: translateY(14px);
    color: black;
}

.percent-bar{
    /* background-color: #ffc107; */
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    /* background-color: #007bff; */
    transition: width .6s ease;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    height: 16px;
    /* animation: ; */
    z-index: 10;
}

.good{
    background-color: #ffc107;
}

.great{
    background-color: #28a745;
}

.bad{
    background-color: #dc3545;
}

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: var(--text-first);
    color: var(--text-second);
}

.content-frame {
    background-color: #000; /* Warna hitam */
    color: var(--text-first); /* Warna teks mengikuti tema */
    padding: 2rem; /* Memberikan ruang di dalam frame */
    margin: 1rem auto; /* Memberikan jarak di luar frame */
    border-radius: 10px; /* Membuat sudut melengkung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Memberikan efek bayangan */
    max-width: 1200px; /* Membatasi lebar maksimum */
}

/* Tambahkan style berikut ke dalam <style> popup yang sudah ada */
.close-btn {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 35px;
    height: 35px;
    background: #ff0000;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 12;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.close-btn:hover {
    transform: rotate(90deg);
    background: #cc0000;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 1px;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

/* Add this CSS to your stylesheet */
.jackpot-notification {
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    max-width: 400px;
    margin: 20px;
    position: fixed;
    right: 0;
    top: 20px;
    z-index: 1000;
    border: 1px solid #ff0000;
    overflow: hidden;
}

.jackpot-winner-title {
    background: linear-gradient(45deg, #ff0000, #ff0000);
    color: #000;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.trophy-icon {
    width: 24px;
    height: 24px;
    background-image: var(--image-src);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.winners-ticker-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.winners-ticker {
    animation: tickerScroll 30s linear infinite;
}

.winners-ticker:hover {
    animation-play-state: paused;
}

.winners-ticker ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.winners-ticker li {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.winners-ticker li:hover {
    background: rgba(255,255,255,0.07);
}

.winners-ticker picture {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.winners-ticker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-info {
    flex: 1;
    color: #fff;
}

.winner-info div:first-child {
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.winner-info div:nth-child(2) {
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.winner-amount {
    color: #4caf50;
}

.winner-info div:last-child {
    color: #999;
    font-size: 12px;
}

@keyframes tickerScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Update these styles in your CSS */
.popuptext {
    position: fixed;
    z-index: 1000;
    bottom: 70px;
    left: 20px;
    width: 450px;
    height: 140px;
    display: flex;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    padding: 12px;
    animation: slideIn 0.5s ease-out;
}

.popuptext img {
    width: 120px;
    height: 116px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    float: left; /* Add float left to make text flow around image */
}

.winner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

#winner-title {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#winner-info {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.winner-amount {
    color: #00ff00;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .popuptext {
        width: 300px;
        height: 120px;
        bottom: 80px;
        left: 10px;
        padding: 8px;
    }
    
    .popuptext img {
        width: 100px;
        height: 104px;
        margin-right: 10px;
    }

    #winner-title {
        font-size: 11px;
        padding: 6px 8px;
        margin-bottom: 6px;
    }

    #winner-info {
        font-size: 12px;
        padding: 6px 8px;
    }

    .winner-amount {
        font-size: 13px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .rtp-card {
        padding: 6px;
    }
    
    .place-img-rtp {
        padding: 3px;
    }
    
    .pola-wrapper {
        padding: 6px;
    }
    
    .pola-wrapper h4 {
        font-size: 0.8rem;
    }
}

/* Enhance existing slider styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--first-color);
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: var(--first-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--first-color);
}

/* Ensure smooth fade transitions */
.swiper-slide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

/* Maintain image dimensions */
.slider-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}