﻿@charset "UTF-8";
/* CSS Document */
#bg {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
}

#ad_pop {
    padding-top: 50px;
    width: 680px;
    height: 698px;
    margin: auto;
}

.close_ad {
    margin: 0;
    padding: 0;
    border-radius: 0px;
    color: #ccc;
    cursor: pointer;
    border: 0px solid red;
    position: absolute;
    z-index: 5;
}

.close_ad > img {
    width: 100%;
    height: auto;
}

@media screen and (min-width: 1220px) {
    #ad_pop2 {
        display: none;
    }

    #ad {
        position: absolute;
        left: 50%;
        top: 2%;
        width: 680px;
        height: 698px;
        margin-left: -340px;
    }

    .close_ad {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 1220px) and (min-width:900px) {
    #ad_pop2 {
        display: none;
    }

    #ad {
        position: absolute;
        left: 50%;
        top: 2%;
        width: 680px;
        height: 698px;
        margin-left: -340px;
    }

    .close_ad {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width:900px) {
    #ad_pop {
        display: none;
    }

    #ad_pop2 {
        padding-top: 50px;
        width: 90%;
        max-width: 680px;
        margin: auto;
        font-size: 0;
    }

    #ad {
        position: absolute;
        left: 5%;
        top: -2%;
        width: 100%;
    }

    #ad_pop2 img {
        width: 90%;
        height: auto;
        margin: 0;
        padding: 0;
        
    }

    .close_ad {
        width: 40px;
        height: 40px;
    }
}
