body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    direction: rtl; /* Set text direction to RTL */
}

nav {
    background-color: #333;
    padding: 10px;
    text-align: center;
}

nav .logo {
    height: 40px;
}

.coupon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.coupon {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coupon:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.coupon-header, .coupon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-logo {
    height: 80px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.coupon-info {
    flex: 1;
    margin-right: 20px; /* Changed to margin-right for RTL */
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from { transform: translateX(-100%); } /* Changed to translateX(-100%) for RTL */
    to { transform: translateX(0); }
}

.coupon-body {
    margin-top: 20px;
}

.coupon-details h2 {
    margin: 0 0 10px;
    font-size: 18px;
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.discount {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 10px; /* Changed to margin-left for RTL */
}

.expiry {
    color: #888;
}

.show-coupon {
    background-color: #da5627;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.show-coupon:hover {
    background-color: #da5627;
    transform: scale(1.05);
}

.coupon-code {
    font-size: 24px;
    margin-right: 10px; /* Changed to margin-right for RTL */
    display: none; /* Initially hidden */
    animation: fadeIn 0.5s ease-in-out;
}

.coupon-meta {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}

.coupon-meta span {
    margin-left: 20px; /* Changed to margin-left for RTL */
}

.share-options a {
    margin-left: 10px; /* Changed to margin-left for RTL */
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.share-options a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Notification styling */
.notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.code {
    margin: 20px 0;
}

.code-box {
    border: 2px dashed #000;
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
}


.static-ad {
    text-align: center; /* Center the ad horizontally */
    margin: 20px 0; /* Add margin for spacing */
}

.static-ad img {
    max-width: 100%; /* Ensure the image doesn't exceed its container's width */
    height: auto; /* Maintain aspect ratio */
}
