body {
    font-family: Arial, sans-serif;
}

.custom-alert {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.alert-content {
    background-color: white;
    margin: 15% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 270px;
    border-radius: 8px;
    text-align: center;
    width: 270px;
    height: 114px;
}
.alert-text {
  height: 72px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  color:#121212;
  border-bottom: 0.5px solid #B9B9BB;
  padding: 0px 20px;
  display: flex;
  align-items: center;
}
.alert-buttons {
  height: 42px;
  display: flex;
  justify-content: space-between;
}
.close-alert {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-alert:hover,
.close-alert:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.alert-buttons button {
    width: 50px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
#alertYes:hover, #alertNo:hover{
  background-color: #eae6e6;
}

#alertYes {
    background-color: #fff;
    width: 50%;
    font-weight: 600;
    color:#886BFF;
    font-size: 14px;
    border-radius: 0px 0px 0px 5px;
    border-right: 0.25px solid #B9B9BB;
}

#alertNo {
    background-color: #fff;
    width: 50%;
    font-weight: 600;
    color:#886BFF;
    font-size: 14px;
    border-radius: 0px 0px 5px 0px;
}



JS (script.js):

$(document).ready(function() {
    $('#showAlert').click(function() {
        $('#customAlert').fadeIn();
    });

    $('#closeAlert, #alertNo').click(function() {
        $('#customAlert').fadeOut();
    });

    $('#alertYes').click(function() {
        alert("You clicked Yes!");
        $('#customAlert').fadeOut();
    });

    // Close the alert when clicking anywhere outside of the alert content
    $(window).click(function(event) {
        if ($(event.target).is('#customAlert')) {
            $('#customAlert').fadeOut();
        }
    });
});
