/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

.navbar h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.navbar nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.navbar nav a:hover {
    text-decoration: underline;
}

/* Main Container */
.container {
    max-width: 800px;
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Previous Result Card */
.card-center {
    text-align: center;
    background-color: #f0f8ff;
    border: 2px solid #008080;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 128, 128, 0.2);
    margin-bottom: 20px;
}

.card-center h2 {
    color: #004d4d;
    font-size: 24px;
    margin-bottom: 10px;
}

.card-center p {
    font-size: 16px;
    color: #006666;
}

/* Countdown Timer */
.timer {
    font-size: 20px;
    color: #b22222;
    font-weight: bold;
    margin: 10px 0 20px;
}

/* Live Popup */
.live-popup {
    color: red;
    font-weight: bold;
    margin-left: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Coupon Cards */
.coupon-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Responsive wrap */
    gap: 15px; /* Space between cards */
}

.coupon-card {
    background-color: #f0f0f0;
    padding: 30px;
    margin: 10px;
    border-radius: 8px;
    border-left: 5px solid #004d4d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px; /* Flexible width */
    max-width: 300px; /* Max width for larger screens */
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.coupon-card:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}

.coupon-card .big-reward {
    font-size: 32px;
    color: #b22222;
    margin-bottom: 10px;
    font-weight: bold;
}

.coupon-card h3 {
    font-size: 24px;
    color: #004d4d;
    margin-bottom: 5px;
}

.coupon-card p {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* Buy Coupon Button */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.buy-coupon-button {
    display: inline-block;
    width: 80%; /* Wide button */
    max-width: 400px; /* Limit width on larger screens */
    background-color: #007bff;
    color: #fff;
    padding: 14px 28px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s;
}

.buy-coupon-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Space between sections */
.space {
    margin: 30px 0;
}

/* Buy Process Section */
.buy-process {
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.buy-process h2 {
    color: #00796b;
    font-size: 24px;
    margin-bottom: 10px;
}

.buy-steps {
    list-style-type: decimal;
    padding-left: 20px;
}

.buy-steps li {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar h1 {
        font-size: 20px;
    }

    .navbar nav a {
        margin: 0 5px;
        font-size: 14px;
    }

    .coupon-card h3, .big-reward {
        font-size: 22px;
    }

    .timer {
        font-size: 18px;
    }

    .buy-coupon-button {
        font-size: 18px;
        padding: 12px 24px;
    }

    .buy-process, .result-box, .upcoming-lottery, .buy-steps {
        margin: 20px 10px;
    }
}
