/* 🔹 Advertisement Modal */
.ad-modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* 🔹 Increased Modal Size */
.ad-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 60%;  /* Increased width */
    max-width: 800px;  /* Max width for large screens */
    min-height: 300px;  /* Minimum height */
    max-height: 90vh; /* Prevent overflow */
    overflow-y: auto; /* Enable scrolling if needed */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 🔹 Close Button */
.ad-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.ad-close:hover {
    background: rgb(117, 84, 84);
    color: white;
    transform: scale(1.1);
}

/* 🔹 Responsive Design */
@media (max-width: 768px) {
    .ad-modal-content {
        width: 80%; /* Adjust width for smaller screens */
    }
}

@media (max-width: 480px) {
    .ad-modal-content {
        width: 90%;
        padding: 20px;
    }

    .ad-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

