.popup {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 40px;
    z-index: 9999;
    border: 2px solid #6aa84f;
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0;
  }
  .overlaypopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9998;
  }
  .popup-content {
    text-align: center;
  }
  .popup-content h2 {
    font-size: 2.5em;
    font-family: sans-serif;
  }
  .popup-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 45px;
  }
  .popup-buttons button {
    margin: 0 5px;
  }
  .popup-buttons button:hover {
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.24), 0 3px 3px 0 rgba(0, 0, 0, 0.19);
    transform: scale(1.01);
  }
  .popup-buttons button.green {
    background-color: #6aa84f;
    border: none;
    padding: 20px 40px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
  }
  .popup-buttons button.red {
    background-color: #c00;
    border: none;
    padding: 20px 40px;
    font-size: 20px;
    cursor: pointer;
  }
  @media only screen and (max-device-width: 1022px) {
    .popup {
      left: 40%;
      transform: translate(-34%, -50%);
    }
    .popup-content h2 {
        font-size: 43px !important;
  }}
  @media only screen and (max-device-width: 750px) {
  .popup {
      width: 80%;
      left: 50%;
      transform: translate(-50%, -50%);
  }
  .popup-buttons button.green, .popup-buttons button.red{
    
      font-size: 20px !important;
  }
  }
  @media only screen and (max-device-width: 450px) {
    .popup {
        padding: 30px;
    }
    }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }