*, *:before, :after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100vh;
    position: relative;
    background: url("../img/bg.jpg") center center / cover no-repeat;
    overflow: hidden;
    font-family: "Yatra One", system-ui;
    color: #FFF7E3;
    
}

.container {
    max-width: 1024px;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.btn {
    font-family: "Yatra One", system-ui;
    border: none;
    outline: none;
    background: #66aede;
    border-radius: 23px;
    padding: 10px 20px;
    cursor: pointer;
    transition: .4s;
}

.btn:hover {
    background: #66aedecb;
}

.logo {
    text-align: center;
    font-size: 42px;
    
}

.balance-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

.balance-info p {
    font-size: 32px;
    text-align: center;
}

#credits, 
#bet {
    font-size: 36px;
}

.start {
    font-size: 36px;
    color: #42145A;
    font-weight: 600;
}

.btn-container .btn {
    font-size: 24px;
}


.btn-container {
    text-align: center;
}

.footer {
    width: 100%;
    padding-bottom: 50px;
}


/* Numbers */
#options .btn {
    font-family: "Yatra One", system-ui;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #66aede 0%, #42145A 100%);
    border-radius: 50%;
    padding: 20px 0;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: 0.4s;
    font-size: 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

#options .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#options .btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}



.jin {
    position: absolute;
    left: 20px;
    top: 3em;
    animation: float 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}




/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #42145A;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    color: #FFF7E3;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: showModal 0.5s ease-in-out;
}

.modal-content.win {
    background-color: #28a745;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 128, 0, 0.5);
}


.modal-content.lose {
    background-color: #dc3545; 
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.5);
}

@keyframes showModal {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    color: #FFF7E3;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f093fb;
}



/* Music */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #66aede;
    color: #FFF;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease;
}

.music-toggle:hover {
    background-color: #4c8bbf;
}

.music-toggle.active {
    background-color: #66c8aede;
}
