:root {
    --dark-navy: #000b29;
    --lotto-red: #ff0000;
    --gold: #ffcc00;
    --green: #00d084;
}
html {
    scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-navy);
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #00071e;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 24px; font-weight: 900; }
.logo span { color: var(--gold); }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }

.nav-auth { display: flex; gap: 10px; }
.nav-auth button { border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 12px; }

.btn-withdraw { background: #ff9f43; color: white; }
.btn-deposit { background: #ee5253; color: white; }
.btn-register { background: var(--green); color: white; border-radius: 20px !important; }

/* --- Hero Section --- */
.hero {
    width: 100%;
    height: 600px;
    position: relative;
    /* DHAYAN DEIN: Image ka naam check karein agar 'bharat_lottery_bg.png' hi hai */
    background-image: url('hero.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-left: 8%;
    overflow: hidden;
}

/* Gradient Overlay taaki text image ke upar uthkar dikhe */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 11, 41, 0.85) 30%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.badge { color: var(--gold); letter-spacing: 3px; font-weight: bold; font-size: 18px; }

.hero h1 {
    font-size: 85px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: white;
}

.prize {
    font-size: 70px;
    color: var(--lotto-red);
    font-weight: 900;
    margin: 10px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p { font-size: 24px; margin-top: 5px; }
.hero p span { color: var(--gold); font-weight: bold; }

.main-btn {
    margin-top: 30px;
    padding: 15px 50px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 35px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
    transition: 0.3s;
}

.main-btn:hover { transform: scale(1.05); }

/* --- Tickets Grid --- */
.tickets-section { padding: 80px 5%; text-align: center; }
.section-title { font-size: 36px; font-weight: 900; margin-bottom: 50px; color: white; }

.ticket-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.lotto-card {
    width: 320px;
    background: var(--lotto-red);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.lotto-card:hover { transform: translateY(-10px); }

.card-top { padding: 40px 20px; }
.icon { font-size: 40px; margin-bottom: 10px; }
.card-prize { font-size: 45px; font-weight: 900; margin: 10px 0; }

.card-bottom {
    background: var(--gold);
    color: black;
    padding: 25px;
    border-top: 4px dashed white;
}

.timer { display: flex; justify-content: center; gap: 10px; margin: 15px 0; }
.t-box { background: var(--lotto-red); color: white; padding: 10px; border-radius: 10px; min-width: 55px; font-weight: 800; font-size: 22px; }
.t-box span { display: block; font-size: 9px; font-weight: 400; text-transform: uppercase; }

.buy-btn {
    width: 100%;
    background: var(--lotto-red);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover { background: #cc0000; }

/* --- Floating Toast --- */
.winner-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.w-icon { font-size: 24px; }
.w-text strong { display: block; color: var(--dark-navy); font-size: 14px; }
.w-text p { font-size: 12px; color: #666; margin: 0; }
/* Tickets Section Main */
.tickets-section {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--dark-navy);
}

.section-title {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.ticket-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Individual Ticket Card */
.lotto-card {
    width: 320px;
    background: #ff0000; /* Red Top */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.lotto-card:hover {
    transform: translateY(-10px);
}

.card-top {
    padding: 30px 20px;
    color: white;
}

.ticket-icon img {
    width: 60px;
    background: white;
    padding: 10px;
    border-radius: 50%;
}

.card-top h3 { font-size: 20px; margin: 15px 0 5px; }
.card-prize { font-size: 36px; font-weight: 900; }

/* Yellow Bottom Section with Zig-Zag */
.card-bottom {
    background: #ffff00; /* Bright Yellow */
    padding: 25px;
    color: black;
    position: relative;
    border-top: 5px dashed white; /* Zig-zag illusion */
}

.timer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.t-box {
    background: #ff0000;
    color: white;
    padding: 8px;
    border-radius: 8px;
    min-width: 50px;
    font-weight: 800;
}

.t-box span {
    display: block;
    font-size: 8px;
    font-weight: 400;
}

.buy-btn {
    width: 100%;
    background: #ff0000;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255,0,0,0.3);
}

/* View All Button */
.view-all-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
}
.grand-prize-section {
    background: #000b29;
    padding: 40px 5%;
    color: white;
    text-align: center;
}

.grand-prize-header h2 {
    font-size: 35px;
    font-weight: 900;
    margin-bottom: 5px;
}

.table-labels {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    font-weight: 800;
    font-size: 24px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.prize-row {
    background: #00154d;
    margin-top: 15px;
    padding: 20px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.rank-badge {
    background: white;
    color: #00154d;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 20px;
}

.ball {
    background: #ffcc00;
    color: black;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.win-amount {
    background: #ff0000;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 900;
    min-width: 150px;
}
.live-winners {
    padding: 80px 5%;
    background: #f9f9f9;
    text-align: center;
}

.winners-title span {
    color: #6366f1;
    font-weight: 700;
    letter-spacing: 1px;
}

.winners-title h2 {
    font-size: 38px;
    font-weight: 900;
    margin: 10px 0 40px;
    color: #111;
}

.winners-slider {
    overflow: hidden;
    padding: 20px 0;
}

.winners-track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite; /* Auto-scrolling effect */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.winner-card {
    min-width: 300px;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.winner-img {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
}

.winner-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.win-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #00154d;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap;
}

.winner-card h3 {
    margin-top: 15px;
    font-size: 22px;
    color: #333;
}

.view-results-btn {
    margin-top: 50px;
    background: #6366f1;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.view-results-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}
/* FAQ Styles */
.faq-section {
    padding: 80px 5%;
    background: #00071e;
    color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #00154d;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    transition: 0.3s;
}

.faq-question:hover { background: #001e6e; }

.faq-answer {
    padding: 0 20px 20px;
    color: #ccc;
    font-size: 14px;
    display: none; /* JavaScript se toggle hoga */
}

/* Footer Styles */
.footer {
    background: #000b29;
    padding: 60px 5% 20px;
    text-align: center;
    border-top: 2px solid var(--gold);
}

.footer-logo { font-size: 30px; font-weight: 900; margin-bottom: 15px; }
.footer-logo span { color: var(--gold); }

.social-icons {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    background: var(--gold);
    color: black;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.footer-links a { color: #888; margin-left: 20px; text-decoration: none; }
/* Live Draw Banner */
.live-draw-banner {
    background: #00154d;
    margin: 40px 5%;
    padding: 20px 40px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.live-left { display: flex; align-items: center; gap: 15px; }
.play-icon {
    width: 50px; height: 50px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ff0000; font-size: 24px;
}

.live-center h4 { font-size: 24px; color: white; }
.live-center p { color: #ff3b3b; font-weight: 900; margin-bottom: -5px; }

.mini-timer { display: flex; gap: 10px; margin-top: 5px; }
.m-box {
    border: 1px solid white;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
}
.m-box span { font-size: 6px; }

/* Double Jackpot Cards */
.double-jackpot-section {
    display: flex;
    gap: 20px;
    padding: 0 5% 40px;
}

.jackpot-card {
    flex: 1;
    background: #00154d;
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.jackpot-card h3 { font-size: 22px; margin-bottom: 5px; }
.jackpot-card h2 { font-size: 45px; font-weight: 900; margin-bottom: 20px; }

.jackpot-amount {
    background: #ff0000;
    font-size: 40px;
    font-weight: 900;
    padding: 30px;
    border-radius: 30px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

/* Highlighted (Double) Card Effect */
.jackpot-card.highlight {
    background: #000b29;
    border: 2px solid #ffcc00;
}
.jackpot-amount {
    transition: all 0.5s ease; /* Amount change hone par smooth transition */
}

.jackpot-card.highlight .jackpot-amount {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 0, 0, 0.6); }
    100% { transform: scale(1); }
}
.winner-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: all 0.5s ease; /* Smooth animation ke liye */
    border-left: 5px solid #28a745; /* Green success bar */
}

.w-text strong { display: block; color: #333; }
.w-text p { margin: 0; color: #28a745; font-weight: bold; }
.testimonials {
    padding: 80px 5%;
    background: #000b29; /* Dark Navy for consistency */
    text-align: center;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feedback-card {
    background: #00154d;
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    text-align: left;
    border: 1px solid rgba(255, 204, 0, 0.1);
    transition: 0.3s;
}

.feedback-card:hover {
    transform: translateY(-10px);
    border-color: #ffcc00;
}

.stars {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 18px;
}

.feedback-card p {
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffcc00;
}

.client-info h4 {
    color: white;
    margin: 0;
    font-size: 16px;
}

.client-info span {
    color: #ffcc00;
    font-size: 12px;
    font-weight: bold;
}
.testimonials-slider {
    padding: 80px 0;
    background: #00071e;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.testimonials-header p {
    color: #ffcc00;
    font-weight: 600;
    margin-top: -10px;
}

.slider-wrapper {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 30px;
    /* Speed is slow (45 seconds for a full rotation) */
    animation: scrollTestimonials 45s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused; /* User can stop it to read */
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-330px * 10)); } /* Card width + gap multiplied by 10 */
}

.feedback-card {
    min-width: 300px;
    background: #00154d;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 204, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.stars { color: #ffcc00; margin-bottom: 15px; }

.feedback-card p {
    color: #eee;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    height: 70px; /* Text alignment fixed */
}

.winner-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.winner-meta img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffcc00;
}

.winner-meta h4 {
    color: white;
    margin: 0;
    font-size: 16px;
}

.winner-meta span {
    color: #888;
    font-size: 12px;
}
.main-footer {
    background: #000b29; /* Deep blue background as seen in image */
    padding: 80px 5% 20px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col { flex: 1; min-width: 200px; }
.brand-info { flex: 2; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo img { width: 50px; }
.footer-logo h3 { font-size: 24px; font-weight: 800; }
.footer-logo span { color: #ffcc00; }

.brand-info p { color: #9da3b0; line-height: 1.6; font-size: 14px; margin-bottom: 25px; }

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #9da3b0; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: #ffcc00; padding-left: 5px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 35px; height: 35px; border: 1px solid #9da3b0;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #9da3b0; transition: 0.3s;
}
.social-links a:hover { background: #ffcc00; color: #000; border-color: #ffcc00; }

/* Newsletter Section */
.footer-bottom-area {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.newsletter-box {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 30px; border-radius: 50px; margin-bottom: 40px;
}

.input-group {
    display: flex; background: #00154d; border-radius: 30px;
    padding: 5px 5px 5px 20px; width: 40%;
}

.input-group input {
    background: transparent; border: none; color: white; width: 100%; outline: none;
}

.input-group button {
    background: #ffcc00; border: none; width: 45px; height: 45px;
    border-radius: 50%; cursor: pointer;
}

/* 18+ and Legal Bar */
.compliance-bar {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #9da3b0; flex-wrap: wrap; gap: 20px;
}

.age-limit { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 5px; }
.age-limit span { color: #ff0000; font-weight: bold; font-size: 18px; }

.legal-links a { color: #9da3b0; text-decoration: none; margin-left: 20px; }
.legal-links a:hover { color: #fff; }
/* Footer Disclaimer Styles */
.footer-disclaimer {
    width: 100%;
    margin-top: 40px;
    padding: 25px 5%;
    background: #00071e; /* Darker navy blue for safe feel */
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.2); /* Soft red border for warning */
}

.age-warning {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #9da3b0;
    font-size: 14px;
    line-height: 1.6;
}

.age-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff0000; /* Bold Red color */
    color: white;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.age-warning p { margin: 0; }
.footer-bottom {
    background: #000514; /* Sabse dark shade bottom ke liye */
    padding: 30px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.copyright span {
    color: #ffcc00; /* Brand colour highlight */
    font-weight: 600;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 20px;
}

.payment-methods img {
    height: 20px;
    filter: grayscale(1) brightness(1.5); /* Icons ko elegant grey/white look dene ke liye */
    transition: 0.3s;
    opacity: 0.6;
}

.payment-methods img:hover {
    filter: none; /* Hover par original colour dikhega */
    opacity: 1;
}

.bottom-links {
    display: flex;
    gap: 25px;
}

.bottom-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.bottom-links a:hover {
    color: #ffcc00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
}
.live-draw-body {
    background: radial-gradient(circle, #001a57 0%, #000514 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.draw-container { text-align: center; width: 100%; }

/* Glass Jar Design */
.glass-jar {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 8px solid rgba(255, 204, 0, 0.5);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(255,255,255,0.2), 0 0 30px rgba(255, 204, 0, 0.3);
}

/* Bouncing Balls Animation */
.ball {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #ffcc00, #b8860b);
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Start Button Animation */
.draw-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: #ffcc00;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px #ffcc00;
    transition: 0.3s;
}

.draw-btn:hover { transform: scale(1.1); }

/* Animation for Balls in Jar */
@keyframes bounce {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(150px, 200px); }
    50% { transform: translate(250px, 50px); }
    75% { transform: translate(50px, 150px); }
}

.is-drawing .ball {
    animation: bounce 0.5s infinite linear;
}