﻿/* General Styles */

* 
{
    -ms-touch-action: pan-y;
    -ms-scroll-chaining: none;
}

img
{
    border:0;
}

/* Header Styles */

.ui-header
{
    text-align:center;
}

.ui-header p
{
    font-weight:normal;
}

/* Body Content Styles */

.ui-content
{
    margin-bottom: 150px;
    overflow-x: visible; /* jQm Overrides */
    overflow-y: visible;
}

.ui-error
{
    -webkit-box-shadow:0 0 12px red;
    -moz-box-shadow: 0 0 12px red;
    box-shadow:0 0 12px red;
}

/* Fix for bad line-height in jQm */
.ui-btn-hidden
{
    line-height: 9px;
}

.ui-btn:focus-within {
    outline: #000 auto!important;
}

.ui-btn button:focus {
    outline:none;
}

.ui-btn input:focus {
    outline: none;
}

.ui-body-d .ui-link {
    color: #1479BE
}

.ui-body-d .ui-link:hover {
    color: #1479BE
}


.editor-label label {
    font-weight: bold;
}

.field-validation-error,
.validation-summary-errors 
{
    color: #DF0000;
}

.alLogo { text-align: center; padding: 0; margin: 0; }

/* Base - absolute min */
.alImageContainer { margin: 0 auto 35px auto; max-width:200px; max-height:200px; text-align:center; padding:0 0 5px 0; position:relative; -ms-touch-action: none; touch-action: none; }
.alImage { max-width:200px; max-height:200px; z-index:50; top: 0; left: 0; }
.alImageCanvas { max-width:200px; max-height:200px; z-index:75; top: 0; left: 0; position: absolute; display: none; }
.alImageHotspotCanvas { max-width:200px; max-height:200px; z-index:50; top: 0; left: 0; position: absolute; display: none; }
.alLogo img { max-width:200px; max-height:200px; z-index:50; top: 0; left: 0; }

/* 320 */
.min-width-320px .alImageContainer { max-width:300px; max-height:300px; }
.min-width-320px .alImage { max-width:300px; max-height:300px; }
.min-width-320px .alImageCanvas { max-width:300px; max-height:300px; }
.min-width-320px .alImageHotspotCanvas { max-width:300px; max-height:300px; }
.min-width-320px .alLogo img { max-width:300px; max-height:300px; }

/* 480 */
.min-width-480px .alImageContainer { max-width:400px; max-height:300px; }
.min-width-480px .alImage { max-width:400px; max-height:300px; }
.min-width-480px .alImageCanvas { max-width:400px; max-height:300px; }
.min-width-480px .alImageHotspotCanvas { max-width:400px; max-height:300px; }
.min-width-480px .alLogo img { max-width:400px; max-height:300px; }

/* 768+ */
.min-width-768px .alImageContainer {
    max-width:550px;
    max-height:450px;
    user-drag: none; 
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.min-width-768px .alImage { max-width:550px; max-height:450px; }
.min-width-768px .alImageCanvas { max-width:550px; max-height:450px; }
.min-width-768px .alImageHotspotCanvas { max-width:550px; max-height:450px; }
.min-width-768px .alLogo img { max-width:550px; max-height:450px; }

.btnbox { position:absolute; z-index:100; bottom:-30px; left:5px; }
.btn-zoom { float:left; background:url('../images/search.png'); cursor:pointer; width:32px; height:32px; margin-right:10px; background-repeat:no-repeat; line-height:0; text-decoration:none; }
.btn-highlight { float:left; background:url('../images/sun.png'); cursor:pointer; width:32px; height:32px; margin-right:10px; background-repeat:no-repeat; line-height:0; text-decoration:none; }
.btn-brush { float:left; background:url('../images/paintbrush.png'); cursor:pointer; width:32px; height:32px; margin-right:10px; background-repeat:no-repeat; line-height:0; text-decoration:none; }
.btn-eraser { float:left; background:url('../images/eraser.png'); cursor:pointer; width:32px; height:32px; margin-right:10px; background-repeat:no-repeat; line-height:0; text-decoration:none; display:none; }
.btn-check { float: left;  background: url('../images/check-green.png'); cursor: pointer; width: 32px; height: 32px; margin-right: 10px; background-repeat: no-repeat; line-height: 0; text-decoration: none; background-size: cover; }
.btn-brush.active { background-color:yellow; opacity:0.5; }

.divAnswer, .divMatchText, .divMatchJson { display:none; }

.divQuestionCorrect
{
    padding-left:25px;
    background: url('../images/check.png') no-repeat 5px;
    font-weight:bold;
}

.divAnswer 
{
    display: none;
}

.divQuestionAttempts
{
    display: none;
}

.jqm-message-content
{
    padding:5px 15px 5px 15px;
}

/* Footer Styles */

.ui-footer
{
    position:absolute !important;
    bottom:0;
}

.ui-footer p
{
    margin-left:15px;
    margin-right:15px;
    font-weight:normal;
    vertical-align:bottom;
}

.blue-header {
    background: linear-gradient(rgb(34, 97, 234), rgba(55, 55, 55, 0.3)) !important;
    background-color: rgb(34, 97, 234) !important;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: .6em .6em 0 0;
    padding: .5em 15px;
    font-size: 14px;
    font-weight: bold;
}

nav {
    margin: 1em 0;
}

.ui-listview {
    margin-top: 0 !important;
}

.nav-list .ui-corner-top {

    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/*Search Results Table Styles */
.search-table {
    width: 100%;
    text-align: left;
    margin: 1em 0;
    border-collapse: collapse;
    overflow: hidden;
}

.search-table caption {
    text-align: left;
    caption-side: bottom;
    margin-top: 10px
}

.search-table thead {
    background: linear-gradient(rgb(34, 97, 234), rgba(55, 55, 55, 0.3)) !important;
    background-color: rgb(34, 97, 234) !important;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

.search-table tr {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.search-table th {
    padding: .5em 15px;
}

.search-table td {
    padding: .7em 15px;
}

.questions-div {
    display:inline-block;
    vertical-align:top; 
    margin-top:4px; 
    margin-left:-70px;
}


/* Header styles for tiny screens */

@media (max-width: 960px) {

    .alQuestion .ui-header h1.ui-title {
        display: block !important;
        margin: 45px 10px 0px !important;
    }

    .questions-div {
        margin-left: 0;
    }
}

@media (max-width: 250px) {

    .alQuestion .ui-header .ui-btn-left {
        position: relative;
        left: 0 !important;
        top: 0.4em;
        width: fit-content;
        margin: 0 10px 5px !important;
        display: block !important;
    }

    .alQuestion .ui-header .ui-btn-right {
        position: relative;
        left: 0 !important;
        top: -7em;
        width: fit-content;
        margin: 0 10px 5px !important;
        display: block !important;
    }
}

