/* ==== GLOBAL BACKGROUND ==== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: url("../images/Game-Background2.png") no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body, button, input, div, h1, h2, h3, p, span {
    font-family: 'IBM Plex Sans', sans-serif !important;
}
/* ==== WHEEL CONTAINER ==== */
.wheel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Canvas */
#wheelCanvas {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0px 10px 25px rgba(0,0,0,0.4));
}

/* ==== SPIN BUTTON IN THE CENTER ==== */
.spin-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.spin-btn {
    padding: 35px 40px;
    width: 130px;
    height: 130px;
    font-size: 26px;
    background: #F7F7F7; /* Sea Salt */
    color: #000155; /* Federal Blue */
    font-weight: 700;
    border-radius: 50%;
    border: 5px solid #33B8FF; /* Picton Blue */
    cursor: pointer;
    box-shadow: 0px 6px 25px rgba(0,0,0,0.35);
    transition: all 0.25s ease-in-out;
}

.spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.spin-btn:disabled {
    background: #ddd;
    border-color: #aaa;
    color: #555;
    cursor: not-allowed;
}

/* ==== FLOATING ADD BUTTON ==== */
.add-btn {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 75px;
    height: 75px;
    background: #f7f7f7; /* Plum */
    color: #000155;
    border: none;
    border-radius: 50%;
    font-size: 45px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    transition: 0.25s;
}

.add-btn:hover {
    background: #8F287E; /* Mardi Gras */
    transform: translateY(-50%) scale(1.07);
}

/* ==== SWEETALERT2 CUSTOM COLORS ==== */
.swal2-popup {
    border-radius: 20px !important;
    padding: 25px !important;
}

.swal2-title {
    color: #000155 !important; /* Federal Blue */
    font-weight: 700 !important;
}

.swal2-confirm {
    background: #A12E8E !important; /* Plum */
    box-shadow: none !important;
    border-radius: 10px !important;
    font-size: 18px !important;
}

.swal2-cancel {
    border-radius: 10px !important;
    font-size: 18px !important;
}

/* Input fields inside SweetAlert */
.swal2-input {
    border: 2px solid #33B8FF !important; /* Picton Blue */
    border-radius: 10px !important;
    padding: 10px !important;
}
.spin-btn {
    width: 130px;
    height: 130px;

    /* Center text perfectly */
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 26px;
    font-weight: 700;

    background: #F7F7F7; /* Sea Salt */
    color: #000155; /* Federal Blue */
    border: 5px solid #33B8FF; /* Picton Blue */
    border-radius: 50%;
    cursor: pointer;

    box-shadow: 0px 6px 25px rgba(0,0,0,0.35);
    transition: all 0.25s ease-in-out;
    padding: 0; /* IMPORTANT */
}

.spin-btn:hover {
    transform: scale(1.08);
}

.spin-btn:disabled {
    background: #ddd;
    border-color: #aaa;
    color: #555;
    cursor: not-allowed;
}

.spin-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.add-btn {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    
    width: 75px;
    height: 75px;

    background: #f7f7f7;
    color: #000155;

    border: none;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 42px;
    font-weight: 600;
    line-height: 1; /* IMPORTANT FIX */
    padding-bottom: 3px; /* FINAL CENTER FIX */

    cursor: pointer;
    z-index: 10;

    box-shadow: 0px 6px 30px rgba(0,0,0,0.28);
    transition: 0.25s ease-out;
}

.add-btn:hover {
    background: #dbdbdb;
    transform: translateY(-50%) scale(1.07);
}


#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}


/* Bounce animation */
@keyframes spinBounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Apply bounce to SPIN button */
.spin-btn.bounce {
    animation: spinBounce 0.7s ease-in-out infinite;
}

.awat-logo {
    /* position: absolute; */
    top: 20px;
    left: 20px;

    width: 150px;        /* Resize as needed */
    height: auto;

    z-index: 999;        /* Always on top */
    filter: drop-shadow(0px 4px 12px rgba(0,0,0,0.45));
}


.top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.top-buttons {
    display: flex;
    gap: 10px;
}

.reload-btn,
.clear-btn {
    background: #33B8FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.reload-btn:hover {
    background: #1C8CD8;
}

.clear-btn {
    background: red;
}

.clear-btn:hover {
    background: #751C64;
}


.spin-btn {
    /* SIZE BASED ON SCREEN WIDTH */
    width: 12vw;
    height: 12vw;

    max-width: 200px;  /* Limit max size */
    max-height: 200px;

    min-width: 80px;   /* Limit min size */
    min-height: 80px;

    /* Center text */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Responsive text */
    font-size: 2vw;
    font-weight: 700;
    line-height: 1;

    background: #F7F7F7;
    color: #000155;

    border: 0.5vw solid #33B8FF;
    border-radius: 50%;
    cursor: pointer;

    box-shadow: 0px 6px 25px rgba(0,0,0,0.35);
    transition: all 0.25s ease-in-out;
    padding: 0;
}

.spin-btn:hover {
    transform: scale(1.08);
}

.spin-btn:disabled {
    background: #ddd;
    border-color: #aaa;
    color: #555;
    cursor: not-allowed;
}

/* MOBILE FIX: if screen < 500px, move + button below wheel */
@media (max-width: 500px) {
    .add-btn {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 60px;
        height: 60px;
        font-size: 35px;
    }
}

/* ==== SWEETALERT MOBILE FIX ==== */
@media (max-width: 480px) {

    /* Reduce popup width */
    .swal2-popup {
        width: 90% !important;
        max-width: 340px !important;
        padding: 20px !important;
    }

    /* Fix input width */
    .swal2-input {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 18px !important;
        padding: 12px !important;
    }

    /* Fix title */
    .swal2-title {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    /* Make buttons full width on small screens */
    .swal2-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        flex: 1 !important;
        padding: 10px !important;
        font-size: 18px !important;
    }
}
.winner-btn {
    background: #f7f7f7; /* Mardi Gras */
    color: #A12E8E;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.winner-btn:hover {
    background: #dfdfdf; /* Plum */
}

@media (max-width: 500px) {
    .top-buttons button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .awat-logo {
        width: 120px;
    }
    .reload-btn,.clear-btn{
        display: none !important;
    }
}
.mute-btn {
    background: #000155;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.mute-btn:hover {
    background: #000275;
}


/* ============================
   QR BUTTON (Bottom Right)
============================ */
.qr-section {
    position: fixed;
    bottom: 30px;
    right: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.qr-btn {
    width: 180px;
    height: auto;

    border-radius: 12px;
    animation: glowPulse 1.8s infinite ease-in-out;
}

/* White text under QR */
.qr-text {
    color: #f7f7f7;
    font-size: 18px;
    margin-top: 8px;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Glow animation (using #f7f7f7) */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 12px rgba(247, 247, 247, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(247, 247, 247, 0.9);
        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 12px rgba(247, 247, 247, 0.4);
        transform: scale(1);
    }
}

/* Hide on mobile */
@media (max-width: 480px) {
    .qr-section {
        display: none;
    }
}


