*{
    margin: 0;
    padding: 0;
}

#bg{
    width: 100%;
    height: 100%;
    top: 637px;
    left: 0;
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    display: none;
}

#bg:target{
    display: block;
}

#bg:target ~ .box{
    top: 50px;
    transition: all .3s;
    transition-delay: .2s;
}

.box{
    width: 720px;
    height: 450px;
    position: absolute;
    margin-left: -360px;
    left: 50%;
    top: -1000px;
}

.box img{
    width: 100%;
    position: absolute;
}

#close{
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    font-size: 35px;
    position: absolute;
    background-color: black;
    width: 40px;
    height: 40px;
    text-align: center;
    right: 0;
}

#close:hover{
    opacity: .6;
}