﻿a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    margin-top:50px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/* Jenn - commented this out 12/8/16 because it was being flagged as an empty rule*/
/*input,
select,
textarea {
    max-width: 280px;
}*/

/* Carousel */

.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"]
{
    width: 100%;
}
#home {
    padding-top: 0;
}

#home .navbar-brand {
    padding: 7px 15px;
}

#home .navbar-brand > img {
    /*display: inline;*/
    margin: 0 10px;
    height: 100%;
}
#btnSaveDocument.navbar-brand {
    padding: 7px 15px;
    line-height:35px;
}

/* Hide/rearrange for smaller screens */
/* Hide captions
@media screen and (max-width: 767px) {
  .carousel-caption {
    display: none
  }
}
 */

.m-signature-pad--text {
    position: absolute;
    width: 94%;
    margin-right: 4px;
    border-radius: 4px;
    border-color: black;
    border-width: 1px;
    border-style: solid;
    font-family: 'Lucida Handwriting';
    font-size: xx-large;
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;*/
}

.m-signature-pad {
    position: absolute;
    font-size: 10px;
    width: 700px;
    height: 400px;
    top: 50%;
    left: 50%;
    margin-left: -350px;
    margin-top: -200px;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
    border-radius: 4px;
}

    .m-signature-pad:before, .m-signature-pad:after {
        position: absolute;
        z-index: -1;
        content: "";
        width: 40%;
        height: 10px;
        left: 20px;
        bottom: 10px;
        background: transparent;
        -webkit-transform: skew(-3deg) rotate(-3deg);
        -moz-transform: skew(-3deg) rotate(-3deg);
        -ms-transform: skew(-3deg) rotate(-3deg);
        -o-transform: skew(-3deg) rotate(-3deg);
        transform: skew(-3deg) rotate(-3deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }

    .m-signature-pad:after {
        left: auto;
        right: 20px;
        -webkit-transform: skew(3deg) rotate(3deg);
        -moz-transform: skew(3deg) rotate(3deg);
        -ms-transform: skew(3deg) rotate(3deg);
        -o-transform: skew(3deg) rotate(3deg);
        transform: skew(3deg) rotate(3deg);
    }

.m-signature-pad--body {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 80px;
    /*border: 1px solid #f4f4f4;*/
    border: 1px solid darkgray;
}

    .m-signature-pad--body canvas {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 4px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
    }

.m-signature-pad--footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    height: 60px;
}

    .m-signature-pad--footer .description {
        color: #C3C3C3;
        text-align: center;
        font-size: 1.2em;
        margin-top: 1em;
    }

    .m-signature-pad--footer .left, .right {
        position: absolute;
        bottom: 0;
    }

    .m-signature-pad--footer .left {
        left: 0;
    }

    .m-signature-pad--footer .right {
        right: 0;
    }


/* ----------- iPad Pro ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) {
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 250px;
        min-height: 140px;
        margin: 5%;
        margin-top: 75px;
    }

    #github {
        display: none;
    }
}

/* Portrait */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 250px;
        min-height: 140px;
        margin: 5%;
        margin-top: 75px;
    }

    #github {
        display: none;
    }
}

/* Landscape */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) {
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 250px;
        min-height: 140px;
        margin: 5%;
        margin-top: 75px;
    }

    #github {
        display: none;
    }
}

@media screen and (max-width: 1024px) { 
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 250px;
        min-height: 140px;
        margin: 5%;
        margin-top: 75px;
    }

    #github {
        display: none;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .m-signature-pad {
        margin: 10%;
    }
}

@media screen and (max-height: 320px) {
    .m-signature-pad--body {
        left: 0;
        right: 0;
        top: 0;
        bottom: 32px;
    }

    .m-signature-pad--footer {
        left: 20px;
        right: 20px;
        bottom: 4px;
        height: 28px;
    }

    .m-signature-pad--footer .description {
            font-size: 1em;
            margin-top: 1em;
        }

}

.ui-dialog {
    background-color: white;
}
.modal {
    max-height: calc(100% - 100px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index:1050;
    max-height:360px;
}
.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* let it scroll */
    overflow: auto;
}
.modal .modal-body {
    max-height:450px;
    overflow-y: auto;
    overflow-x:auto;
    }
.modal-backdrop {
    opacity: .5;
}
    .div-modal { /*div surrounding the content*/
    /*width: 100vw;
    height: 24.86vw;  height:width ratio = 9/16 = .5625  */
    /*background-color: transparent;*/
    /*max-height: 100vh;
    max-width: 177.78vh;  16/9 = 1.778 */
    margin: auto;
    position: fixed;
    top: 0;
    bottom: 0; /* vertical center */
    left: 0;
    right: 0; /* horizontal center */
    overflow: auto;
    z-index: 1040;
    display: none;
    padding: 2%;
}

.div-modal-content { /*div surrounding the body*/
    position: relative;
    font-size: 10px;
    width: 100%;
    padding-bottom: 24.86%;
    top: 0;
    bottom: 0; /* vertical center */
    left: 0;
    right: 0; /* horizontal center */
    border: 1px solid #e8e8e8;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
    border-radius: 4px;
}

.div-modal--body { /*div surrounding the canvas*/
    position: absolute;
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 20px;
    /*border: 1px solid #f4f4f4;*/
    border-radius: 4px;
    border-color: black;
    border-width: 1px;
    border-style: solid;
}

.div-modal--body canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.div-modal--footer { /*div surrounding the buttons*/
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    height: 40px;
    text-align: center;
}

.div-modal--footer .description {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 1.8em;
}

.div-modal--footer .button {
    position: absolute;
    bottom: 0;
}

.div-modal--footer .button.clear {
    left: 0;
}

.div-modal--footer .button.save {
    right: 0;
}

/*@media screen and (max-width: 1024px) {
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 100px;
        bottom: 0;
        width: auto;
        height: auto;
        margin: 5%;
    }

    #github {
        display: none;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .m-signature-pad {
        margin: 10%;
    }
}

@media screen and (max-height: 320px) {
    .m-signature-pad--body {
        left: 0;
        right: 0;
        top: 0;
        bottom: 32px;
    }

    .m-signature-pad--footer {
        left: 20px;
        right: 20px;
        bottom: 4px;
        height: 28px;
    }

    .m-signature-pad--footer .description {
        font-size: 1em;
        margin-top: 1em;
    }
}*/

.div-expired-container {
    margin-top: 40px;
    font-size: 14px;
    border: 1px solid #E8E8E8;
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

.div-expired-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.div-expired-header-span {
    font-weight: bold;
    font-size: 24px;
}

.div-expired-body {
        position: relative;
        padding: 15px;
        font-size: 12px;
    }
.div-expired-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}