/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.justinsun-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 150px;
}

.justinsun-wrapper {
    background-image: url(../image/jsun.png);
    height: 1000px;
    width: 1024px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: end;
}

.justinsun-text {
    height: 50%;
    padding: 100px 16% 0 16%;
    text-align: center;
    -ms-flex-line-pack: start;
    align-content: start;
    font-size: 1.4em;
}

@media (min-width: 340px) and (max-width: 400px) {
    .justinsun-wrapper {
        background-image: url(../image/jsun-m.png);
        height: 800px;
    }

    .justinsun-text {
        height: 70%;
        padding: 36px 5% 0 5%;
        font-size: 1.2em;
    }
}

@media (min-width: 400px) and (max-width: 450px) {
    .justinsun-wrapper {
        background-image: url(../image/jsun-m.png);
        height: 800px;
    }

    .justinsun-text {
        height: 70%;
        padding: 36px 15% 0 15%;
        font-size: 1.2em;
    }
}

@media (min-width: 450px) and (max-width: 550px) {
    .justinsun-wrapper {
        background-image: url(../image/jsun-m2.png);
        height: 800px;
    }

    .justinsun-text {
        height: 70%;
        padding: 100px 12% 0 12%;
        font-size: 1.2em;
    }
}


@media (min-width: 550px) and (max-width: 600px) {
    .justinsun-wrapper {
        height: 650px;
    }

    .justinsun-text {
        padding: 25px 8% 0px 8%;
        font-size: 1.2em;
    }
}

@media (min-width: 600px) and (max-width: 650px) {
    .justinsun-wrapper {
        height: 750px;
    }

    .justinsun-text {
        padding: 50px 8% 0 8%;
        font-size: 1.2em;
    }
}

@media (min-width: 650px) and (max-width: 750px) {
    .justinsun-wrapper {
        height: 850px;
    }

    .justinsun-text {
        padding: 80px 8% 0 8%;
        font-size: 1.2em;
    }
}

@media (min-width: 750px) and (max-width: 800px) {
    .justinsun-wrapper {
        height: 850px;
    }

    .justinsun-text {
        padding: 90px 10% 0 10%;
        font-size: 1.3em;
    }
}