.image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.thank_you_banner_img {
    display: block;
    width: 100%;
    height: auto;
    /*keep height as auto for responsiveness */

}

.thank_you_banner_img_mobile {
    display: none;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 70%;
    font-family: 'Rakuten Sans App Bold';
}

.text-overlay h2 {
    font-size: 2.5vw;
    /*vw will adjust to the screen size*/
    color: #C00091;
    text-align: center;

    width: 100%;
    box-sizing: border-box;

}

@media screen and (min-width: 1190px) {
    .text-overlay h2 {
        font-size: 31.5px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) {
    .thank_you_banner_img {
        display: block;
    }

    .thank_you_banner_img_mobile {
        display: none;
        width: 100%;
        height: auto;
    }

    .scroll-icon-position-fix {
        margin-top: -12rem !important;
    }

    .text-overlay h2 {
        font-size: 2vw;
    }

    .text-overlay {
        width: 65%;
    }
}

@media screen and (min-width: 568px) and (max-width: 767.98px) {
    .thank_you_banner_img {
        display: none;
    }

    .thank_you_banner_img_mobile {
        display: block;
        width: 100%;
        height: auto;
    }

    .text-overlay h2 {
        font-size: 4vw;
    }
}

@media (max-width: 567.98px) {
    .thank_you_banner_img {
        display: none;
    }

    .thank_you_banner_img_mobile {
        display: block;
        width: 100%;
        height: auto;
    }

    .text-overlay h2 {
        font-size: 21px;
    }
}