I want to align modal center bottom on all screens

This my code i want to do when ever modal will open it will aligned in center bttom on all screen how can i achive that ? i do this code but its working on all screen sizes can any one help ? i am using this modal for creating compare functionality i use bottom:-50%; to align bottom but it not work as same on all screens.

this is css code

.compare-modal{
    padding-left: 17px!important;
    padding-right: 17px!important;
}
.modal-dialog-compare {
   bottom:-50%;
   box-shadow: var(--base-shadow);
   max-width: 900px;
}
.modal-open {
    overflow: auto!important;
    padding-right: 0px!important;
}
#compare-modal
{
    background-color: transparent;
}
.compare-wrapper img
{
    height: 100px;
    width: 100%;
}
.compare-wrapper {
    position: relative;
}

.remove-icon {
    position: absolute;
    top: 5px;
    left: 5px;
    background: white;
    border-radius: 50%;
    font-size: 18px;
    height: 22px;
    width: 20px;
}
.compare-wrapper img{
    border-radius: 5%;
    box-shadow: var(--base-shadow);
}
.compare-modal .btn:hover
{
    background-color: var(--base-black);
}
.compare-modal .btn:active
{
    background-color: var(--base-black);
}
.compare-modal .modal-body
{
    padding: 20px;
}
.compare-modal .modal-content
{
    padding: 0px;
}
.compare-modal .modal-header .btn-close
{
    top:20px;
    right: 20px;
}
.compare-modal .modal-header h3 {
    font-size: 20px;
    line-height: 40px;
    font-weight: 600;
    margin: 0;
}
.compare-modal .modal-footer {
    justify-content: center;
}

this is html code

<div class="modal compare-modal fade" id="compare-modal" tabindex="-1" aria-labelledby="modal-compareLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-compare">
        <div class="modal-content">
            <div class="modal-header">
                <h3>Compare</h3>
                <button type="button" class="btn-close close" data-bs-dismiss="modal" aria-label="Close"><i class="ti-close"></i></button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-4 col-md-3 col-lg-3 col-xl-3 mb-3">
                        <div class="compare-wrapper position-relative">
                            <img class="car-img img-fluid" src="{{url('frontend/assets/images/car/01.jpg')}}">
                            <a href="#" class="remove-icon"><i class="fa fa-times-circle text-danger"></i></a>
                        </div>
                    </div>
                    <div class="col-4 col-md-3 col-lg-3 col-xl-3 mb-3">
                        <div class="compare-wrapper position-relative">
                            <img class="car-img img-fluid" src="{{url('frontend/assets/images/car/02.jpg')}}">
                            <a href="#" class="remove-icon"><i class="fa fa-times-circle text-danger"></i></a>
                        </div>
                    </div>
                    <div class="col-4 col-md-3 col-lg-3 col-xl-3 mb-3">
                        <div class="compare-wrapper position-relative">
                            <img class="car-img img-fluid" src="{{url('frontend/assets/images/car/03.jpg')}}">
                            <a href="#" class="remove-icon"><i class="fa fa-times-circle text-danger"></i></a>
                        </div>
                    </div>
                    <div class="col-4 col-md-3 col-lg-3 col-xl-3 mb-3">
                        <div class="compare-wrapper position-relative">
                            <img class="car-img img-fluid" src="{{url('frontend/assets/images/car/04.jpg')}}">
                            <a href="#" class="remove-icon"><i class="fa fa-times-circle text-danger"></i></a>
                        </div>
                    </div>

                </div> 
            </div>
            <div class="modal-footer">
                <button class="btn bg-base-black text-white">Compare All</button>
                <button class="btn bg-base-black text-white">Clear All</button>
            </div>
        </div>
    </div>
</div>

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật