.modal-backdrop.fade {
    opacity: 0.5;
}
.modal-backdrop.show {
    opacity: 0;
}
.fade.in {
    /*opacity: 1;*/
}
.fade:not(.in).show{display:none!important;}

#mail-container {
    margin: 10% auto 0;
    width: 50%;
    text-align: center;
    color: #B41E23;
    background-image: url(../img/bg.png);
    padding: 0 1.8%;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: "微軟正黑體";
    position: relative;
    background-size: 100% 100%;
}

.x-gif {
    position: absolute;
    right: 20px;
    top: 20px;
}

.x-gif img {
    width: 80%;
}



.content-gif {
    font-weight: bolder;
    font-size: 2.5rem;
    padding: 0% 0 30%;
    line-height: 2;
}
.content-gif-text{
    background: #ffd0d0;
}

.content-gif a {
    color: #65a7c7;
    text-decoration: none;

}
.content-gif img{
    max-width: 100%;
}

@media only screen and (max-width:992px) and (min-width:768px) {
    #mail-container {
        margin: 15% auto 0;
        width: 80%;
        max-width: 800px;
        background-size: 80% 95%;
    }

    .x-gif {
        position: absolute;
        right: 10%;
        top: 20px;
    }

    .x-gif img {
        width: 70%;
    }

    

    .content-gif {
        font-weight: bolder;
        font-size: 1.3rem;
        padding: 0% 0 30%;
        line-height: 2;
    }

}

@media only screen and (max-width:768px){
    #mail-container {
        margin: 25% auto;
        width: 96%;
        max-width: 800px;
        background-size: 80% 90%;
    }

    .x-gif {
        position: absolute;
        right: 10%;
        top: 8%;
    }

    .x-gif img {
        width: 40%;
    }

    

    .content-gif {
        font-weight: bolder;
        font-size: 1rem;
        padding: 25% 0 30%;
        line-height: 2;
    }

}