/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #3a3b3b;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.header-logo {
    display: block; /* Pastikan elemen tampil */
    margin: 0 auto; /* Tengahkan elemen */
    width: 150px; /* Atur ukuran sesuai kebutuhan */
    position: relative; /* Penting untuk pseudo-elemen ::after */
}

.header-logo::after {
    content: "";
    display: block;
    width: 100px; /* Panjang garis bercahaya */
    height: 4px;  /* Ketebalan garis */
    margin: 10px auto; /* Jarak antara garis dan logo */
    background: linear-gradient(90deg, #ff0000, #ff6600, #ff0000); /* Gradien warna */
    border-radius: 10px; /* Membuat ujung garis melengkung */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 102, 0, 0.6); /* Efek bercahaya */
    position: absolute; /* Supaya muncul tepat di bawah logo */
    bottom: -20px; /* Jarak dari elemen logo */
    left: 50%;
    transform: translateX(-50%); /* Tengahkan secara horizontal */
}

.container {
    width: 100%;
    max-width: 420px; /* Set a max width for larger screens */
    background-color: #3a3b3b;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Selection Section */
.selection {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Ensure the selection section stacks on smaller screens */
}

.provider,
.game {
    flex: 1;
    min-width: 120px; /* Minimum width for responsiveness */
}

.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-btn {
    background-color: #444;
    border: none;
    color: white;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.slider-btn:hover {
    background-color: #b4b5b6;
    box-shadow: 0 0 10px #a1a1a1; /* Glow biru */
}

.slider img {
    width: 161px;
    height: 101px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.slider img:hover {
    transform: scale(1.1);
}

/* Betting Section */
.betting {
    margin: 20px 0;
}

.bet-controller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bet-btn {
    background-color: #444;
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bet-btn:hover {
    background-color: #0056ff;
    transform: scale(1.1);
    box-shadow: 0 0 10px #0056ff;
}

#current-bet {
    font-size: 18px;
    color: #0056ff; /* Teks warna biru */
}

/* Form Input */
.form {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 calc(50% - 10px); /* Adjusted flex properties */
    min-width: 150px;
}

input,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus {
    border-color: #949699; /* Highlight the border on focus */
}

input::placeholder {
    color: #aaa;
}

/* Responsive Adjustments for Form */
@media (max-width: 768px) {
    .form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .form-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* Item Percentage Section */
.item-percentage {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns layout */
    gap: 20px;
    margin: 20px 0;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item {
    flex: 1;
    text-align: center;
}

.percentage {
    flex: 1;
    text-align: center;
}

.item img {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.item img:hover {
    transform: scale(1.1);
}

/* Persentase Bar */
.percentage-bar {
    width: 100%;
    height: 15px;
    background-color: #555;
    border-radius: 5px;
    margin-top: 5px;
    position: relative;
    transition: width 0.5s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glow untuk low (merah) */
.low {
    background-color: #d32f2f; /* Merah */
    box-shadow: 0 0 10px #d32f2f, 0 0 20px rgba(211, 47, 47, 0.8);
}

/* Glow untuk medium (kuning) */
.medium {
    background-color: #fbc02d; /* Kuning */
    box-shadow: 0 0 10px #fbc02d, 0 0 20px rgba(251, 192, 45, 0.8);
}

/* Glow untuk high (biru) */
.high {
    background-color: #0056ff; /* Biru */
    box-shadow: 0 0 10px #0056ff, 0 0 20px rgba(0, 86, 255, 0.8);
}

/* Menampilkan nilai persentase di tengah bar */
.percentage-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}


/* Start Button */
button#start-btn {
    width: 100%;
    padding: 10px;
    background-color: #6e6f70;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button#start-btn:hover {
    background-color: #1b1b1b;
    box-shadow: 0 0 10px #979797; /* Glow biru */
}

/* Outer Glow Effect on Images */
.item img {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px; /* Tambahkan ini jika gambar memiliki sudut membulat */
}

/* Efek glowing default */
.item img:hover {
    transform: scale(1.1); /* Membesar saat hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 
                0 0 40px rgba(0, 86, 255, 0.8), 
                0 0 60px rgba(0, 86, 255, 0.6); /* Warna biru bercahaya */
    filter: brightness(1.2); /* Sedikit mencerahkan gambar */
}


/* Boost Message */
.boost-message {
    background-color: #ffeb3b; /* Warna latar belakang kuning cerah */
    color: #333;
    padding: 14px;
    margin-bottom: 10px; /* Menambahkan jarak di bawah pesan */
    border: 1px solid #ff9800;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

.header {
    position: relative; /* Untuk pseudo-elemen */
    text-align: center;
    margin-bottom: 20px; /* Beri jarak dari elemen berikutnya */
}

.header-logo {
    display: block;
    margin: 0 auto;
    width: 150px; /* Sesuaikan ukuran logo */
}

.header-logo::after {
    content: "";
    display: block;
    width: 80%; /* Lebar garis bercahaya */
    height: 4px; /* Ketebalan garis */
    margin: 10px auto 0;
    background: linear-gradient(90deg, #ff0000, #ffff00, #ff0000); /* Gradien bercahaya */
    border-radius: 10px; /* Ujung garis melengkung */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 255, 0, 0.5); /* Efek glow */
}
.boost-message {
  background-color: #e8f5e9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  font-size: 14px;
}