.bg_preview{
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    transition: 500ms;
    opacity: 0;
}

.bg_preview:target{
    width: 100%;
    height: 100%;
    background: rgba(21, 21, 21, 0.642);
    display: block;
    opacity: 1;
    z-index: 999;
}

.bg_preview .img{
    margin: auto;
    width: 90%;
    padding: 100px;
    opacity: 1;
}

.bg_preview .img img{
    box-shadow: 0 0 5px grey;
}

.bg_preview .close{
    position: absolute;
    top: 50px;
    right: 50%;
    margin-right: -50px;
    cursor: pointer;
}

.bg_preview .close p{ 
    background-color: white;
    border-radius: 5px;
    width: 100px;
    box-shadow: 0 0 5px grey;
    z-index: 1001;
    color: black;
    /* padding: 5px; */
}

.bg_preview .img .next{
    position: absolute;
    top: 48%;
    right: 5%;
    width: 4%;
    color: black;
    /* background-color: red; */
}

.bg_preview .img .prev{
    position: absolute;
    top: 48%;
    left: 5%;
    width: 4%;
}


.bg_preview .img .next a{
    font-size: 50px;
    color: white;
}
.bg_preview .img .prev a{
    font-size: 50px;
    color: white;
}

.bg_preview:target body{
    overflow: hidden;
}

@media only screen and (max-width: 600px) {
    .bg_preview .img{
        width: 100%;
        padding: 220px 0;
        opacity: 1;
    }

    /* body{
        overflow: hidden;
    } */

    .bg_preview .close{
        position: absolute;
        top: 30%;
        right: 50%;
        margin-right: -40px;
        cursor: pointer;
    }

    .bg_preview .close p{ 
        background-color: white;
        font-size: 10px;
        border-radius: 5px;
        width: 70px;
        box-shadow: 0 0 5px grey;
        padding: 5px;
        z-index: 1000;
        animation: slide 1s;
        color: black;
    }

    .bg_preview .img .next{
        position: absolute;
        top: 48%;
        right: 5%;
        width: 4%;
        color: black;
        /* background-color: red; */
    }

    .bg_preview .img .next a{
        font-size: 25px;
        color: black;
    }
    .bg_preview .img .prev a{
        font-size: 25px;
        color: black;
    }
    
    .bg_preview .img .prev{
        position: absolute;
        top: 48%;
        left: 5%;
        width: 4%;
    }
  }

  @media only screen and (max-width: 400px) {
    .bg_preview .img{
        width: 100%;
        padding: 220px 0;
        opacity: 1;
    }

    /* body{
        overflow: hidden;
    } */

    .bg_preview .close{
        position: absolute;
        top: 25%;
        right: 50%;
        margin-right: -40px;
        cursor: pointer;
    }

    .bg_preview .close p{ 
        background-color: white;
        font-size: 10px;
        border-radius: 5px;
        width: 70px;
        box-shadow: 0 0 5px grey;
        padding: 5px;
        color: black;
    }

    .bg_preview .img .next{
        position: absolute;
        bottom: 0;
        right: 5%;
        width: 4%;
        color: black;
        /* background-color: red; */
    }

    .bg_preview .img .next a{
        font-size: 25px;
        color: black;
    }
    .bg_preview .img .prev a{
        font-size: 25px;
        color: black;
    }
    
    .bg_preview .img .prev{
        position: absolute;
        bottom:0;
        left: 5%;
        width: 4%;
    }
  }
  
  #screenshot .container .row .col-lg-6 img:hover{
    cursor: zoom-in;
    transition: 300ms;
    scale: 1.1;
    box-shadow: 0 0 20px rgb(81, 81, 81);
  }

  /* .bg_preview:target .bg_preview .close p{
    animation: slide 1s;
  }
   */
  @keyframes slide{
    0%{
        margin-bottom: 50px;
    }
    100%{
        margin-bottom: 0;
    }
  }