@import url('https://fonts.googleapis.com/css2?family=Kurale&family=Lexend+Deca:wght@100..900&display=swap');

body {
    font-family: 'Lexend Deca', sans-serif;
    background-color: #175E14;
    color: #fff;
    margin: 0;
    transition: background 0.3s, color 0.3s;
}

h1 {
    font-family: 'Kurale', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    text-align: left;
    padding: 20px;
}

header {
    display: flex;
    position: sticky;
    justify-content: space-between;
    align-items: center;
    background-color: #175E14;
    padding: 20px;
    transition: background 0.3s, color 0.3s;
}

.logo img {
    height: 50px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

.nav a:hover {
    text-decoration: underline;
}

.nav img {
    max-width: 35px; /* Set the maximum width of the logos */
    max-height: 35px; /* Set the maximum height of the logos */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    text-align: center;
    background-color: #167812;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.none {
    text-decoration: none; /* Removes underline from links */
    color: #fff; /* Ensures text is white */
    display: block; /* Ensures the whole card is clickable */
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.game-card p {
    margin: 0;
    padding: 10px;
    font-size: 16px;
}

.game-card .status {
    background-color: #ff4d4d;
    color: #fff;
    font-weight: bold;
    padding: 5px;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 12px; /* Smaller font size */
}

.flashinfo-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #ffffff   ;
    border-radius: 25px;
}

.logo-flash {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.flashinfo {
    font-size: 18px;
}


.slider {
    width: 1280px;
    max-width: 100vw;
    height: 420px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border: 3px solid #167812;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slider .list {
    position: absolute;
    width: max-content;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}

.slider .list img {
    width: auto;
    height: 100%;
    object-fit: contain; /* Bisa diubah ke cover jika ingin gambar memenuhi area */
    max-height: 700px;
    max-width: 100vw;
}

.slider .buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.slider .buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0);
    color: #ffffff00;
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.slider .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.slider .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}

.slider .dots li.active {
    width: 30px;
}

@media screen and (max-width: 768px) {
    .slider {
        width: auto;
        height: 131px;
        margin: 20px;
    }
}



.payment-methods {
    background-color: #167812;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 960px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.payment-methods h1 {
    color: #ffffff;
}

.payment-methods p {
    color: #ffffff;
}

.payment-logos {
    display: flex;
    width: max-content;
    animation: scroll 10s linear infinite;
}

.payment-logos img {
    width: 100%;
    max-width: 100%;
    height: fit-content;
    align-items: center;
    padding: 10px;
    margin: 10px;
    max-height: 50px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

footer {
    background-color: #1e4620;
    color: #fff;
    padding: 20px;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

footer .footer-container {
    display: flex;
    justify-content: space-between; /* Distribute space between contact and social media */
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-container div {
    margin: 10px;
}

footer .contact-us {
    text-align: left;
    flex: 1; /* Allows this section to take up available space */
}

footer .social-media {
    display: flex;
    justify-content: flex-end; /* Align logos to the right */
    flex: 1; /* Allows this section to take up available space */
}

footer .social-media a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
}

footer .social-media img {
    max-width: 40px; /* Set the maximum width of the logos */
    max-height: 40px; /* Set the maximum height of the logos */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
}


footer .contact-us a,
footer .site-map a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

footer .copyright {
    text-align: center;
    margin-top: 20px;
}

.container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
  }

/*page*/
  
  /* width */
  ::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #175E14;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #167812;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #167812;
  }

  /*game*/

  .banner_game {
    font-family: 'Kurale', sans-serif; /* Ganti dengan path gambar banner */
    background-size: cover;
    background-position: center;
    height: 200px; /* Atur tinggi banner */
    display: flex;
    justify-content: flex-start; /* Posisi horizontal (kiri) */
    align-items: flex-end; /* Posisi vertikal (bawah) */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 36px;
    font-weight: bold;
    padding: 20px;
    box-sizing: border-box;
    border: 3px solid #167812; /* Tambahkan border */
    border-radius: 20px;
    margin-left: 350px;
    margin-right: 350px;
    margin-bottom: 20px;
}

.rules {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 10px;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    font-family: 'Lexend Deca', sans-serif;
    padding: 20px;
}

.label {
    font-family: 'Kurale', sans-serif;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.label-number {
    background-color: #167812;
    color: white;
    border-radius: 50%;
    width: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    border: 3px solid #198a15;
}

.input-box {
    font-family: 'Lexend Deca', sans-serif;
    width: calc(50% - 10px);
    color: white;
    font-size: 15px;
    max-width: 1000px;
    padding: 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    margin-left: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #167812; /* Latar belakang yang lebih terang */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2); /* Bayangan inset dan out */
    transition: all 0.3s ease; /* Transisi halus pada perubahan */
}

.input-box:hover {
    background-color: #167812; /* Latar belakang saat hover */
    border-color: white; /* Warna border saat hover */
}

.input-box:focus {
    border-color: #ffffff;
    outline: none;
    background-color: #167812; /* Latar belakang saat fokus */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3); /* Tambahkan bayangan lebih kuat saat fokus */
}

.input-box::placeholder {
    color: #dadada; /* Ganti dengan warna yang Anda inginkan */
    opacity: 1; /* Memastikan bahwa opacity dari placeholder tetap penuh */
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    margin: 20px 0;
}

.membership, .top-up {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.membership div, .top-up div {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
    margin: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.membership div.selected, .top-up div.selected {
    border-color: #167812; /* Warna border setelah dipilih */
    border-width: 3px; /* Ketebalan border setelah dipilih */
}

.membership div:hover, .top-up div:hover {
    border-color: #167812;
}

.membership::after {
    border-color: #167812;

}

.selected {
    border-color: #167812;
    border-width: 10px;
    position: relative;
}

.selected::after {
    content: '✔';
    color: #ffffff;
    background-color: #167812;
    font-size: 20px;
    padding: 10px;
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 10px;
    border: 5px solid #167812;
    border-bottom-left-radius: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.top-up {
    flex-wrap: wrap;
}

.payment {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment div {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
    margin: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.payment div:hover {
    border-color: #167812;
}

.payment div.selected {
    border-color: #167812; /* Warna border setelah dipilih */
    border-width: 3px; /* Ketebalan border setelah dipilih */
}

.payment img {
    max-width: 100px;
    height: auto;
}

.button {
    display: block;
    width: 96%;
    text-align: center;
    background-color: #167812;
    color: white;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #198a15;
}

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 10px;
    }
    .game-grid {
        margin: 20px;
    }
    .payment-methods {
        padding: 20px;
        margin: 20px;
    }
    .banner_game {
        border-radius: 20px;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    .input-box {
        width: 85%;
    }
    .container {
        max-width: 350px;
    }
    .button {
        display: block;
        width: 92%;
    }
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Mode gelap untuk header & footer */
.dark-mode header, 
.dark-mode footer {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Tombol toggle */
.toggle-button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}

.toggle-button img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.dark-mode .toggle-button img {
    transform: rotate(180deg);
}

/*fs*/
.flash-sale-container {
    position: relative;
    margin: 20px; /* Tetap di tengah */
    width: 80vw;
    max-width: 800px;
    background-color: #175E14;
    border-radius: 10px;
    color: white;
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Header Flash Sale (judul + countdown) */
.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.flash-sale-header h2 {
    margin: 0;
    font-size: 20px;
    white-space: nowrap;
}

.countdown {
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Container Scrollable */
.scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    width: 100%;
    padding: 15px 15px;
    transition: opacity 0.5s ease-in-out;
}

/* Produk */
.product {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
    text-align: left;
}

.product h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.product .price {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.product .old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.product .new-price {
    font-size: 16px;
    font-weight: bold;
    color: #167812;
}

/* Responsif untuk Mobile */
@media (max-width: 480px) {
    .flash-sale-header {
        flex-wrap: nowrap;
        justify-content: space-between;
        font-size: 16px;
    }

    .flash-sale-header h2 {
        font-size: 18px;
    }

    .countdown {
        font-size: 16px;
    }
}

