﻿/* The Modal (background) */
.modalBTrailer {
    display: block; /* Hidden by default */
    position: static; /* Stay in place */
    margin-top:50px;
    padding-top: 50px; /* Location of the box */
    zoom: 40%;
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    text-align: center;
}



/* Caption of Modal Image */
#captionBookTrailer {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 0;
    font-size: 25px;
    margin-top: 20px;
}



@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.closeBookTrailer {
    position: absolute;
    top: -45px;
    right: 35px;
    color: #f1f1f1;
    font-size: 75px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}


@media only screen and (min-width : 1px) and (max-width : 799px) {

    /* The Modal (background) */
    .modalBTrailer {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1500; /* Sit on top */
        padding-top: 200px; /* Location of the box */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
        text-align: center;
    }



    /* Caption of Modal Image */
    #captionBookTrailer {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
        font-size: 25px;
        margin-top: 20px;
    }
    

    /* The Close Button */
    .closeBookTrailer {
        position: absolute;
        top: 50px;
        right: 35px;
        color: #f1f1f1;
        font-size: 75px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }
}
