
  /* Popup Styles */

  .ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .ad-popup {
    background: #fff;
    /* padding: 20px; */
    /* border-radius: 10px; */
    width: 80%;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    text-align: center;
    position: relative;
    align-items: center;
  }

  .ad-popup h2,  .ad-popup h1 {
    margin-top: 0;
    color: black;
  }

  .ad-popup h1{
    font-size: 4rem;
    font-weight: normal;
  }

  /* Image styling */
  .ad-popup img {
    max-width: 350px;
    height: auto;
    margin-right: 20px;
    /* border-radius: 8px; */
  }

  /* Text and button section */
  .ad-popup-content {
    text-align: center;
    flex: 1;
    align-items: center;
  }

  /* Button linking to another page */
  .ad-popup a {
    background-color: transparent;
    border: solid 2px rgba(2, 2, 0, 0.846);
    color: black;
    padding: 10px 20px;
    /* border-radius: 5px; */
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
  }

  .ad-popup a:hover {
    background-color: rgba(2, 2, 0, 0.846);
    transition: all ease-in .3s;
    color: rgb(249, 228, 0);
    font-weight: normal;
  }

  /* Close button (X) */
  .ad-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    color: red;
  }

  /* Responsive styling */

  @media screen and (max-width: 950px) {
    .ad-popup {
        max-width: 350px;
        flex-direction: column;
        align-items: center;
    }
    .ad-popup img {
        margin: 0 0 20px 0;
        max-width: 100%;
      }

      .ad-popup-content {
        margin-bottom: 20px;
        margin-top: 10px;
    }

    .ad-popup h1{
        font-size: 3rem;
        font-weight: normal;
      }

      .ad-popup h2{
        font-size: 1.3rem;
      }
  }
  @media screen and (max-width: 600px) {
    .ad-popup {
      flex-direction: column;
      align-items: center;
      max-width: 850px;
    }
    
    .ad-popup img {
      margin: 0 0 20px 0;
      max-width: 100%;
    }
    .ad-popup-content {
        margin-bottom: 20px;
        margin-top: 10px;
    }


  }