@charset "utf-8";

/* for the surrounding page container */
article.ore-form .container {
    background: #fefefe;
    padding-bottom: 1em;
}
article.ore-form .container .entry-content > p,
article.ore-form .container .entry-content > div.ore {
    padding: 0 28px 0 28px;
}

/* Status information on main page */
#ore-container {
    font-family: 'Open Sans', sans-serif;
    vertical-align: middle;
    /*width: 900px;*/
    /*margin-top: 72px;*/
    padding-right: 2px;
    float: right;
}
#ore-login-status {
    margin-top: 72px;
    margin-right: 10px;
}
#ore-container .ore-trigger:hover {
    color: #000;
    text-decoration: none;
    border: collapse;
}

#ore-container .ore-avatar {
    border-radius: 8px;
    margin-right: 4px;
}
#ore-container .ore-course-status { margin-left: 8px; }
#ore-container .ore-course-status-indicator { margin-left: 4px; }


#ore-container .ore-enrolled, #ore-container .ore-unenrolled {
    left: 0;
    top: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-repeat: no-repeat;
    opacity: 1.0;
}
#ore-container .ore-enrolled {
    background-image: url(img/enrolled.20x20.png);
}
#ore-container .ore-unenrolled {
    background-image: url(img/unenrolled.20x20.png);
}


/* end status */

/*
 * dialogs
 */

/* overall */
.ore-dialog.ui-widget.ui-widget-content {
    font-family: 'Open Sans', sans-serif !important;
    background: #fefefe;
    background-image: none !important;
    background-color: #fefefe !important;
    border: 1px solid #F7BD27;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgb(0,0,0,0.5);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0px 0px 0px 0px;
}

.ore-form .ore-detail {
    font-size: 90%;
    color: #888;
}

.ore-form.dialog-body {
    padding: 0px;
}
/* end overall */

/* titlebar */
.ore-dialog .ui-dialog-titlebar {
    padding: 8px;
    border: none;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: none;
    background: inherit;
}
/* end titlebar */

/* body */
.ore-dialog .ore-body {
    padding: 4px 8px;
    box-shadow: none;
    border: none;
    background: transparent;
}
.ore-dialog .ore-form, .ore-dialog .ore-spacer {
    border-top: 1px #e5e5e5 solid;
}
.ore-dialog .ore-form {
    padding-top: 6px;
}
.ore-dialog .ore-spacer {
    margin-bottom: 6px;
    height: 0px;
}

.ore-dialog .ore-extra {
    margin-left: 10px;
}
/* end body */

/* close button */
.ore-dialog .ui-dialog-titlebar-close {
    /*margin: -10px -15px 0 0;*/
    padding: 0px 2px;
    width: 16px;
    height: 16px;
    background-image: url("img/close.16x16.png");
    background-repeat: none;
    background-position: center center;
    cursor: pointer;
    text-transform: none;
    border: 0;
    position: absolute;
    top: 2px;
    right: 2px;
    color: #000;
    opacity: 0.8;
}

.ore-dialog .ui-dialog-titlebar-close:hover { color: #000; }
/* end close button */

/* button layout */
.ore-body .modal-footer {
    text-align: center;

}
/* end button layout */

/* buttons */
button.ore-button {
    padding: 8px 12px;
    line-height: normal;
    background-color: #97BB6D;
    border-radius: 5px;
    box-shadow: 2px 2px 10px #AAA;
    text-transform: none;
    text-decoration: none;
    border: none;
}
button.ore-default {
    opacity: 1.0;
    border: 1px orange solid;
}
button.ore-button:hover, button:focus {
    color: #FFFE89;
    box-shadow: 4px 4px 10px #999;
    text-decoration: none;
}
button.ore-button:active {
    box-shadow: 0px 0px 10px #777;
    text-decoration: none;
}
/* end-buttons */
/* links */
.ore-dialog .link {
    line-height: normal;
    background-color: #fff;
    font-weight: bold;
    text-transform: none;
    text-decoration: none;
}
.ore-dialog .link:hover { text-decoration: underline; }
.ore-dialog .link:active { text-decoration: underline; }
/* end links */

/* resize icon */
.ore-dialog .ui-resizable-handle.ui-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}
/* end resize icon */

/* overlay (not within the widget) */
.ui-widget-overlay {
    background: #555 !important;
    opacity: 0.8;
}
/* end overlay */

/* menu-specific */
.ore-left {
    width: 50%;
    float: left;
    padding-right: 4px;
}
.ore-right {
    width: 50%;
    float: right;
    padding-left: 4px;
}
/* end menu-specific */

/* end dialogs */

/* utility classes */
.clear {
    clear: both;
}
/* end utility classes */

.ore-throbber {
    background-image: url('img/working.gif');
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 20px;
    height: 20px;
    margin: 0px;
    padding: 8px;
}

button.ore-processing {
    padding-right: 10px;
}

/* validation errors */
.form-group .error {
    color: #C60C0C;
    margin-top: 0.3em;
    line-height: 1.15em;
}
/* end validation errors */

/* error messages on modals */
#ore-error-wrapper {
    text-align: left;
}
#ore-error-wrapper h2 {
    color: #000;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: .2em;
    border-bottom: none;
    line-height: 1.15em;
}
#ore-error-wrapper ol {
    list-style: decimal;
    list-style-type: decimal;
}
#ore-error-wrapper li {
    display: block;
    color: red;
    list-style: decimal;
    list-style-type: decimal;
}

/* accessibility styles */
#ore-login-status .ore-trigger:focus {
    color: black;
}
.ore-dialog .ore-button {
    color: black;
}
/* end accessibility styles */

/* mobile configuration */
@media (max-width: 992px) {
    #ore-login-status {
        margin-top: 30px;
    }
    /*.ore-dialog .ore-modal {
        max-width: 700px;
        margin: 0 auto;
    }*/
}

@media (max-width: 768px) {
    /*.ore-dialog {
        margin-top: 28px;
        margin-bottom: 20px;
        width: 600px;
    }*/
}

@media (max-width: 600px) {
    /*.ore-dialog {
        margin: 0 auto;
        margin-top: 28px;
        margin-bottom: 20px;
        width: 100%;
    }*/
}

@media (max-width: 500px) {
    .ore-dialog {
        padding: 0;
        top: 20px;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 320px) {
    #ore-label { display: none; }
    .ore-spacer { display: none; }
    .ore-dialog {
        top: 20px;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* fix discrepancy between local dev and live WPMS layout */
.ore-dialog .ui-dialog-titlebar-close {
    top: 12px;
}
.ore-dialog.ui-widget.ui-widget-content {
    clear: both;
    overflow-y: hidden;
}
/* end descrepancy fix */
