* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    /* Pastikan html dan body memiliki tinggi 100% */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Memungkinkan scroll vertikal tetapi membatasi horizontal */
}

body {
    background-image: url('https://wkwkwk.art/lucky_spin/BgLucky.webp');
    /* Ganti dengan path gambar atau GIF Anda */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
    font-family: sans-serif;
}

.wheel-container {
    text-align: center;
    position: relative;
    /* Untuk kontrol posisi elemen anak */

}

/* Menata gambar logo */
.logo {
    display: block;
    position: relative;
    top: -250px;
    margin: 0 auto 5px;
    /* Atur margin sesuai kebutuhan */
    width: 250px;
    /* Sesuaikan lebar logo */
    height: auto;
}

/* Styling logo di dalam win-modal-content */
.win-modal-content .logo {
    position: relative;
    top: -10px;
}

.wheel {
    width: 520px;
    height: 520px;
    position: absolute;
    top: 22%;
    /* Letakkan gambar di tengah vertikal */
    left: 50%;
    /* Letakkan gambar di tengah horizontal */
    margin-left: -260px;
    /* Geser gambar setengah lebar untuk pusatkan */
    margin-top: -260px;
    /* Geser gambar setengah tinggi untuk pusatkan */
    transform-origin: center center;
    /* Titik putar di tengah */
    transition: transform 1s ease-in-out;
    /* Opsional: untuk animasi putaran */
}

.arrow {
    position: absolute;
    top: -195px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Styling untuk input kupon dan tombol */
.coupon-container {
    margin-top: 20px;
    z-index: 100;
    position: relative;
    top: 185px;
    /* Letakkan gambar di tengah vertikal */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Menjaga konten rata tengah secara vertikal */
    justify-content: center;
    /* Menjaga konten rata tengah secara horizontal */
    width: 100%;
    max-width: 350px;
    /* Membatasi lebar pada layar besar */
    text-align: center;
    /* Menjaga teks rata tengah */
}

/* Label kupon */
.coupon-container label {
    font-size: 18px;
    z-index: 100;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

/* Kolom input kupon */
#coupon {
    padding: 10px;
    font-size: 16px;
    width: 90%;
    z-index: 100;
    max-width: 300px;
    /* Menjaga lebar input agar tidak terlalu besar */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: sans-serif;
    text-align: center;
}

/* Tombol kirim kupon */
.coupon-submit {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    z-index: 100;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    width: 90%;
    max-width: 300px;
    /* Membatasi lebar tombol agar lebih seimbang */
}

.coupon-submit:hover {
    background-color: #0056b3;
}

/* Tombol riwayat pemenang */
.history-btn {
    padding: 10px 20px;
    background-color: #007bff;
    z-index: 100;
    position: relative;
    top: 185px;
    /* Letakkan gambar di tengah vertikal */
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 90%;
    max-width: 300px;
    /* Membatasi lebar tombol agar lebih seimbang */
}

.history-btn:hover {
    background-color: #0056b3;
}

/* Modal untuk riwayat pemenang */
.modal {
    display: none;
    /* Modal tidak ditampilkan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Latar belakang transparan gelap */
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    font-size: 18px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
}

/* Gaya saat hover pada tombol X */
.modal .close:hover {
    color: #ff0000;
}

/* Modal tampil ketika dibuka */
.modal.show {
    display: flex;
    /* Menampilkan modal */
}

/* Modal tampil ketika dibuka */
.modal.show {
    display: flex;
    /* Menampilkan modal */
}

/* Styling untuk notifikasi kemenangan */
.win-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Transparan gelap */
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.win-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.win-modal p {
    font-size: 18px;
    margin-bottom: 20px;
}

.win-modal h2 {
    font-size: 24px;
    color: #28a745;
    /* Warna hijau untuk kemenangan */
    margin-bottom: 10px;
}

.win-close-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

.win-close-btn:hover {
    background-color: #0056b3;
}