﻿.modal {
    display: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

    .modal.fade .modal-dialog {
        -webkit-transform: translate(0, -25%);
        -ms-transform: translate(0, -25%);
        -o-transform: translate(0, -25%);
        transform: translate(0, -25%);
        -webkit-transition: -webkit-transform 0.3s ease-out;
        -o-transition: -o-transform 0.3s ease-out;
        transition: transform 0.3s ease-out;
    }

    .modal.in .modal-dialog {
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
    }

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: auto !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: 70% !important;
    margin: 0 auto;
    top: 20px;
}

    .modal-dialog img {
        width: 100%;
    }

    .modal-dialog iframe {
        margin: 20px auto;
        display: block;
    }

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 88888;
    background-color: #000;
}

    .modal-backdrop.fade {
        opacity: 0;
        filter: alpha(opacity=0);
    }

    .modal-backdrop.in {
        opacity: .5;
        filter: alpha(opacity=50);
    }

.modal-header {
    padding: 5px 15px 15px 15px;
    clear: both;
    min-height: 30px;
}

    .modal-header .close {
        margin-top: 2px;
    }

.modal-body {
    position: relative;
    padding: 15px;
}

    .modal-body h3 {
        text-align: center;
    }

    .modal-body h4 {
        font-size: 24px;
        font-weight: 300;
        margin: 0 0 5px 0;
        line-height: 26px;
        font-family: 'Oswald';
        color: #9b0630;
    }

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

    .close:hover, .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
        opacity: .5;
        filter: alpha(opacity=50);
    }

button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}

.modal-open {
    overflow: hidden;
}



/*******************************************************FINE MODAL*/
.modal-dialog60 {
    position: relative;
    width: 60% !important;
    min-height: 40%;
    margin: 80px 20% !important;
    z-index: 3;
}
.modal-dialog90 {
    position: relative;
    width: 98% !important;
    min-height: 40%;
    margin: 60px 1% !important;
    z-index: 3;
}


.modal-close {
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 20px;
    font-weight: bold;
    line-height: 25px;
    width: 26px;
    height: 26px;
    text-align: center;
    color: rgb(120, 120, 120);
    background-color: #e8e8e8;
    z-index: 9999;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 1);
}

    .modal-close:hover, .modal-close:focus {
        color: #2172a1;
        text-decoration: none;
    }
@media (max-width: 414px) {
    .modal-dialog {
        height: auto !important;
        max-height: 300px !important;
        width: 350px !important;
        max-width: 350px !important;
    }

    .modal-header, .modal-body {
        width: 100%;
        padding: 5px !important;
    }
}