/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#050505;
    overflow:hidden;
    color:white;
}

#particles{
    position:fixed;
    width:100%;
    height:100%;
    z-index:-1;
}

.container{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.card{
    width:400px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    backdrop-filter:blur(15px);
    padding:30px;
    border-radius:25px;
    box-shadow:
    0 0 30px rgba(0,255,255,0.15);
}

.top-bar{
    position:absolute;
    top:20px;
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:0 40px;
    align-items:center;
}

.top-bar h1{
    color:#00ffe5;
    letter-spacing:3px;
}

.balance-box{
    background:#0f0f0f;
    padding:12px 18px;
    border-radius:15px;
    border:1px solid #00ffe5;
    color:#00ffe5;
    font-weight:600;
}

.card h2{
    margin-bottom:20px;
    text-align:center;
}

.numbers{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
}

.num{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#111;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:0.3s;
    border:2px solid transparent;
    font-size:20px;
    font-weight:600;
}

.num:hover{
    transform:scale(1.1);
    box-shadow:0 0 15px #00ffe5;
}

.num.active{
    background:#00ffe5;
    color:black;
    box-shadow:0 0 20px #00ffe5;
}

.selected-box{
    margin-top:25px;
    text-align:center;
    color:#bbb;
}

.bet-section{
    margin-top:20px;
}

.bet-section input{
    width:100%;
    padding:15px;
    border:none;
    outline:none;
    border-radius:15px;
    background:#111;
    color:white;
    font-size:16px;
}

#betBtn{
    width:100%;
    margin-top:25px;
    padding:15px;
    border:none;
    border-radius:15px;
    background:#00ffe5;
    color:black;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
    font-size:16px;
}

#betBtn:hover{
    transform:scale(1.03);
    box-shadow:0 0 25px #00ffe5;
}

.result-screen{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.95);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.hidden{
    display:none;
}

.result-card{
    text-align:center;
}

.result-card h1{
    font-size:60px;
    color:#00ffe5;
    margin-bottom:30px;
}

.rolling{
    font-size:90px;
    letter-spacing:20px;
    margin-bottom:30px;
    animation:pulse 0.2s infinite;
}

.winning{
    font-size:70px;
    letter-spacing:20px;
    margin-bottom:20px;
    color:#00ffe5;
}

.result-text{
    font-size:28px;
    margin-bottom:30px;
}

.result-card button{
    padding:15px 30px;
    border:none;
    border-radius:15px;
    background:#00ffe5;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
}

@keyframes pulse{
    0%{
        opacity:0.5;
    }
    100%{
        opacity:1;
    }
}

@media(max-width:500px){

    .card{
        width:100%;
    }

    .num{
        width:55px;
        height:55px;
    }

    .rolling,
    .winning{
        font-size:50px;
    }

}