﻿/*This is a holding place for general styles for new code infrastructure*/

.page {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 0px;
    border: 0px solid red;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.page-content {
    margin: auto;
    padding: 0px;
    position: relative;
    left: 0px;
    top: -5px;
    width: 800px;
    height: 100%;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #ffffff;
    box-shadow: 0px 0px 10px #eeeeee;
    background-image: linear-gradient(#f2f2f2, #ffffff); /*The subtle line pattern.*/
    background-size: 2px 4px;
}

.pane { /*The dialog-looking window.*/
    margin: auto; /*Let the dimensions be flexible.*/
    border: 1px solid #999999;
    background-color: #ffffff;
    box-shadow: 1px 1px 10px #666666;
    font: 13px 'Open Sans'; /* IE backward compability */
    font: 13px var(--sherpa-font-family); /*Default font to be inherited down the hierarchy.*/
    color: #444444;
    text-shadow: 0px 0px 0px #aaaaaa;
    border-radius: 5px;
}

.pane-invisible {
    border: none;
    padding:1px; /*This is a fix for Border:none which seems to affect the pane-content.*/
    box-shadow: none;
}

.pane-slim {
    width: 350px;
}

.pane-header {
}

.pane-header-bold {
    width: 100%;
    height: 100px;
    background-image: linear-gradient(#dddddd, #ffffff); /*The grey horizontal lines.*/
    background-size: 2px 4px;
    border-bottom: 2px solid #20a7d5; /*The blue line.*/
}

.pane-header-thin {
    padding-top: 0px;
    width: 100%;
    height: 15px;
    background-image: linear-gradient(#dddddd, #ffffff); /*The grey horizontal lines.*/
    background-size: 1px 2px;
    border-bottom: 1px solid #888888;
}

.pane-header-bold-logo { /*The Sherpa logo.*/
    margin: auto;
    position: relative;
    top: 10%;
    width: 150px;
    height: 80%;
    background-color: #ffffff;
    background-image: url(<%=LOGO_URL%>); /*Remnant left over: to be removed?*/
    background-size: contain; /*Behaves like <img/>*/
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #dddddd;
    box-shadow: 0px 0px 40px #ffffff;
}

.pane-content {
    margin: 15px; /*The default margin for pane content.*/
}

.field-list { /*The field-list fills the pane-content by default. To override for the each specific case.*/
}

.field { /*The default field doesn't dictate dimensions, but assumes the child dimensions.*/
    border: 0px solid red;
    display: table-row;
}

.label { /*Expect a <span/>*/
    display: table-cell;
    padding-top: 2px;
    padding-bottom: 5px;
    font-weight:bold;
}

.label-heading {
}
/*TODO: Don't know how this will be used yet.*/

.label-message {
    border: 0px solid red;
    display: block; /*Spans will need this to register dimensions.*/
    padding-top: 20px;
    padding-bottom: 15px;
    vertical-align: middle;
    font: 16px Arial;
}

.label-message-success {
    color: #046903;
}

.label-message-failure {
    color: #ee7777;
}

.control {
}

.control-beside {
    display:table-cell;
}

.control-below {
    display: block;
}

.text{

}

.textbox {
    padding-left: 2%;
    padding-right: 2%;
    width: 95%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    box-shadow: 0px 0px 5px #cccccc;
    font: 14px Arial; /* This line and below is repeated from .pane{} above as asp textboxes do not naturally inherit its parent's css*/
    color: #4888be;
    text-shadow: 0px 0px 1px #aaaaaa;
}

.ob_gMCont input:focus {
    border: none;
    box-shadow: inherit;
}

input:focus {
    border: 1px solid #cccccc;
    box-shadow: 0px 0px var(--sherpa-focus-blur-radius) var(--sherpa-focus-border-color);
    outline: var(--sherpa-focus-outline);
}

.button-list { /*The field-list fills the pane-content by default. To override for the each specific case.*/
    border-top: 1px solid var(--sherpa-blue2); /*#e5ab35*/
    display: block /*table*/;
    /*border-spacing: 10px;*/
    width: 100%;
    height: 55px;
    background-image: linear-gradient(var(--sherpa-greyB4), var(--sherpa-greyB2)); /*, #fbf7f0, #faf0de, #ffe2a6*/
    background-size: 2px 55px;
}

.button {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid var(--sherpa-login-button-border-color);
    background-color: var(--sherpa-login-button-background-color);
    color: var(--sherpa-login-button-font-color);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    line-height: 25px;
}

.button:hover {
    border: 1px solid #cccccc;
    box-shadow: 0px 0px 5px #20a7d5; /*#20a7d5 #7c5b03*/
    text-shadow: 0px 0px 4px #666666; /*#0a2d4a #acb7c1*/
}

.button-wide {
    width: 100%;
}

.button-left {
    margin-left: 10px;
}

.button-middle {
    margin-left: 10px;
}
.button-right {
    margin-left: 10px;
    margin-right: 10px;
}

.button-disabled {
    color: #cccccc;
}

.grid {
    width: 100%;
    border-spacing: 0px; /* What used to be called cell-spacing. */
    border: 0px solid #707070;
    background-color: #ffffff;
}

.grid-header {
    /*background-image: linear-gradient(#aaaaaa, #888888, #777777, #727272, #222222, #222222, #444444, #555555, #666666); Original black grid. */
    height: 27px;
    color: #ffffff;
}

.grid-header-column {
    border-top: 1px solid var(--sherpa-grid-border-color);
    background-image: linear-gradient(var(--sherpa-grid-background-color1), var(--sherpa-grid-background-color2) 50%, var(--sherpa-grid-background-color3) 100%);
    background-size: 2px 27px;
    text-align: left;
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: 0px 0px 0px #666666;
    text-shadow: 0px 0px 0px #000000;
    /*letter-spacing: 0.7px;*/
    font-size: 13px;
    font-weight: 400;
}

.grid-header-column-first {
    border-top-left-radius: 4px;
    border-left: 1px solid var(--sherpa-grid-border-color);
}

.grid-header-column-last {
    border-top-right-radius: 4px;
    border-right: 1px solid var(--sherpa-grid-border-color);
}

.grid-body {
    border: 1px solid var(--sherpa-grid-border-color);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    IGNORE-box-shadow: 4px 4px 4px #f2f2f2;
}

.grid-row {
    height: 27px;
}

.grid-row:hover {
    background-color: var(--sherpa-grid-row-hover-background-color);
}

.grid-row-even {
    background-color:#ffffff;
}

.grid-row-odd {
    background-color: rgb(246, 246, 246);
}

.grid-cell {
    text-align: left;
    padding-left: 0px;
    padding-right: 0px;
    border: 0px solid #eeeeee;
    height: 25px;
    font-size: 12px;
    color: #555555;
    word-wrap: break-word;
}

.grid-add-icon {
    background-image: url("/images/add.png");
    background-repeat: no-repeat;
    background-position: left;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.grid-download-icon {
    background-image: url("/images/icon_download20x20.png");
    background-repeat: no-repeat;
    background-position: left;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.grid-remove-icon {
    background-image: url("/images/close.gif");
    background-repeat: no-repeat;
    background-position: center;
    height: 20px;
    cursor: pointer;
}

.grid-background {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    background-image: linear-gradient(#f7f7f7, #f9f9f9);
    background-size: 2px 100%;
}

.dialog-title {
    color: #ffffff;
    height:40px;
}

.dialog-title-contents {
    opacity:0.80;
}

.dialog-title-logo {
    opacity: 0.8;
    position: absolute;
    left: 7px;
    top: 7px;
    width: 23px;
    height: 23px;
    background-image: url('/images/icon_sherpa25x25.png');
    border: 2px solid #ffffff;
    border-radius: 100px;
}

.dialog-title-text {
    padding-left: 40px;
    padding-top: 5px;
    font: bold 14px Arial;
    text-shadow: 0px 0px 0px #ffffff;
}

.dialog-title-subtext {
    opacity: 0.8;
    padding-left: 40px;
    padding-top: 2px;
    font: bold 10px Arial;
    letter-spacing:0.2px;
}

.dialog-title-close {
    opacity: 0.5;
    position: absolute;
    left: 511px; /* To override. */
    top: 11px;
    width: 14px;
    height: 14px;
    background-image: url('/images/icon_close14x14.png');
    transform: rotate(45deg);
    border: 2px solid #ffffff;
    border-radius: 200px;
    cursor:pointer;
}

.dialog-title-close:hover{
    opacity:1.0;
    box-shadow: 1px 1px 10px #ffffff;   
}

/*General styles*/
.opacity-in {
    opacity: 1.0;
}

.opacity-out {
    opacity: 0.0;
}

.display-in{
    display:inline;
}

.display-out{
    display:none;
}

/* The following are animations. */
@keyframes fadeIn {
    from {
        opacity: 0.0;
    }

    to {
        opacity: 1.0;
    }
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: 1s;
}

.fade-in-fast {
    animation-name: fadeIn;
    animation-duration: 0.5s;
}


.fade-in-faster {
    animation-name: fadeIn;
    animation-duration: 0.3s;
}

.fade-in-fastest {
    animation-name: fadeIn;
    animation-duration: 0.1s;
}

.fade-in-slow {
    animation-name: fadeIn;
    animation-duration: 1s;
}

.fade-in-slower {
    animation-name: fadeIn;
    animation-duration: 2s;
}

.fade-in-slowest {
    animation-name: fadeIn;
    animation-duration: 4s;
}

@keyframes fadeOut {
    from {
        opacity: 1.0;
    }

    to {
        opacity: 0.0;
    }
}

.fade-out {
    animation-name: fadeOut;
    animation-duration: 1s;
}

.fade-out-fast {
    animation-name: fadeOut;
    animation-duration: 0.3s;
}


.fade-out-faster {
    animation-name: fadeOut;
    animation-duration: 0.5s;
}

.fade-out-slower {
    animation-name: fadeOut;
    animation-duration: 1s;
}

.fade-out-slow {
    animation-name: fadeOut;
    animation-duration: 2s;
}

@keyframes fadeAndGrowIn {
    from {
        opacity: 0.0;
        transform: scale(0.92);
    }

    to {
        opacity: 1.0;
        transform: scale(1.0);
    }
}
.fade-and-grow-in {
    animation-name: fadeAndGrowIn;
    animation-duration: 4s;
}

@keyframes glowIn {
    from {
        text-shadow: 0px 0px 20px #ffffff;
    }

    to {
        text-shadow: 0px 0px 0px #ffffff;
    }
}

.glow-in {
    animation-name: glowIn;
    animation-duration: 1s;
}

.glow-in-slow {
    animation-name: glowIn;
    animation-duration: 1.5s;
}

.glow-in-slower {
    animation-name: glowIn;
    animation-duration: 2s;
}

.glow-in-slowest {
    animation-name: glowIn;
    animation-duration: 3s;
}

@keyframes glowOut {
    0% {
        text-shadow: 0px 0px 100px #ffffff;
    }

    100%{
        text-shadow: 0px 0px 0px #ffffff;
    }
}

.glow-out{
    animation-name: glowOut;
    animation-duration:1s;
}

@keyframes rotateClockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rotate-clockwise {
    animation-name: rotateClockwise;
    animation-duration: 1s;
}

.rotate-clockwise-forever {
    animation-name: rotateClockwise;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* The following are for troubleshooting. */
.see-a { 
    border:1px solid red;
}
.see-b {
    border: 1px solid green;
}
.see-c {
    border: 1px solid blue;
}