    /* **********CREATED BY: GAGAN ARORA**************
    ********* Website: https://gagan.click/ **********/

:root{
    /* CSS element defination */
    --speed: -1;
    --angle: 360deg;
}
body{
    background: url('../images/2.webp') no-repeat center center fixed;
    background-size: cover;
    color: white;
    min-height: 200vh;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}
.machine{
    background: linear-gradient(145deg, rgba(45, 27, 20, 0.9), rgba(44, 44, 44, 0.9));
    height: 300px;
    border: 3px solid #DAA520;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}
.slot{
    background: linear-gradient(145deg, #2D1B14, #1a0f0a);
    border: 2px solid #FFD700;
    height: 150px;
    text-align: center;
    font-size: 60px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}
#inpSpeed{
    font-size: 30pt;
    margin-left: 30px;
}
.slot > .value{
    animation: slotspin infinite 0.5s;
    animation-iteration-count: infinite;/* for number of animations animation */
    animation-duration: calc(1s/var(--speed)); /* speed calculation for each speed value change*/
}
@keyframes slotspin{
    0%{
        transform: translateY(-150px);
    }
    100%{
        transform: translateY(150px);
    }
}

.btn1{
    display: inline-block;
    padding: 15px 25px;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #2D1B14;
    background: linear-gradient(45deg, #FFD700, #DAA520);
    border: 2px solid #B8860B;
    border-radius: 15px;
    box-shadow: 0 9px rgba(255, 215, 0, 0.3);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
  
.btn1:hover {
    background: linear-gradient(45deg, #DAA520, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 12px rgba(255, 215, 0, 0.5);
}
  
.btn1:active {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    box-shadow: 0 5px rgba(255, 215, 0, 0.3);
    transform: translateY(2px);
}

.btn2{
    display: inline-block;
    padding: 15px 25px;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    border: 2px solid #991b1b;
    border-radius: 15px;
    box-shadow: 0 9px rgba(220, 38, 38, 0.3);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
  
.btn2:hover {
    background: linear-gradient(45deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 12px rgba(220, 38, 38, 0.5);
}
  
.btn2:active {
    background: linear-gradient(45deg, #991b1b, #b91c1c);
    box-shadow: 0 5px rgba(220, 38, 38, 0.3);
    transform: translateY(2px);
}
#myModal{
    background: linear-gradient(145deg, rgba(45, 27, 20, 0.95), rgba(44, 44, 44, 0.95));
}

.modal-content {
    background: linear-gradient(145deg, #2D1B14, #2C2C2C);
    border: 2px solid #DAA520;
    border-radius: 20px;
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .machine {
        max-width: 95%;
        height: 250px;
    }
    
    .slot {
        height: 120px;
        font-size: 40px;
    }
    
    .btn1, .btn2 {
        font-size: 18px;
        padding: 12px 20px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .machine {
        max-width: 98%;
        height: 200px;
    }
    
    .slot {
        height: 100px;
        font-size: 30px;
    }
    
    .btn1, .btn2 {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.25rem;
    }
}