﻿:root {
    --viewport-height: 70%;
}
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    #myImg:hover {
        opacity: 0.7;
    }

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow-x: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content-img {
    margin: auto;
    display: block;
    height: 120%;
    max-height: 120%;
}

#caption {
    margin: auto;
    display: block;
    /*width: 80%;
    max-width: 700px;*/
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content-img, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.videoTutorial-640x480 {
    width: calc(640px * 1.4);
    height: calc(480px * 1.4);
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: fixed;
    top: 15%;
    right: 20%;
    color: #f1f1f1;
    font-size: 25px;
    font-weight: normal;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

@media only screen and (max-width: 700px) {
    .modal-content-img {
        height: calc(var(--viewport-height) - 55px);
        height: calc(var(--viewport-height) - 55px);
        padding-top: 10%;
    }

    .close {
        display: inline;
        position: fixed;
        text-align: center;
        top: 10%;
        right: 10%;
        color: #f1f1f1;
        font-size: 35px;
        font-weight: normal;
        transition: 0.3s;
    }

    .videoTutorial-640x480 {
        width: calc(640px * 0.6);
        height: calc(480px * 0.6);
    }
}
@media only screen and (max-width: 1024px) and (min-width: 701px) {
    .modal-content-img {
        margin: auto;
        display: block;
    }

    .close {
        display: inline;
        position: fixed;
        text-align: center;
        top: 20%;
        right: 10%;
        color: #f1f1f1;
        font-size: 35px;
        font-weight: normal;
        transition: 0.3s;
    }

    .videoTutorial-640x480 {
        width: calc(640px * 1.0);
        height: calc(480px * 1.0);
    }
}

.table-responsive {
    border: none !important;
    width: initial !important;
    margin-bottom: initial !important;
}

.main-container-video {
    width: 85vw;
}
.responsive-container-video {
    display: contents;
    width: 75vw;
    /*height: 98vw;*/
    text-align: center;
    /*margin-left: 5vw;
                                    margin-right: 5vw;*/
}
    .responsive-container-video iframe {
        max-width: 889px;
        max-height: 500px;
    }
    .responsive-container-video iframe {
        /*position: absolute;*/
        top: 0;
        left: 0;
        width: 85vw;
        height: 50.625vw;
    }