/* CSS for the scoreboard. */
/* 6 July 2015 */

/* Roboto fonts*/
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100;
    src: url(../font/Roboto-Thin.ttf);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url(../font/Roboto-Black.ttf);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url(../font/Roboto-Bold.ttf);
}

@font-face {
    font-family: 'Dejavu';
    font-style: normal;
    font-weight: 700;
    src: url(../font/DejaVuSans.ttf);
}

.tally-grid {
    min-width: 760px;
}

.tally-grid-column {
    display: inline-block;
    vertical-align: top;
}

.tally-grid-row {
    display: block;
    margin: 20px;
    position: relative;
}

.tally-grid-row:nth-child(2n) {
    background-color: #fff;
}

.tally-grid-chart {
    width: calc(100% - 265px);
    position: relative;
    margin-bottom: 40px;
}

.tally-grid-common-sum {
    position: absolute;
    display: inline-block;
    top: 35px;
    left: 7px;
    font-size: 12px;
    font-weight: bold;
}

.tally-grid-sites,.tally-grid-content,.tally-grid-common,.tally-grid-total {
    display: inline-block;
}

.tally-grid-col {
    display: inline-block;
    text-align: center;
    position: relative;
    color: #683C85;
    cursor: pointer;
    min-width: 105px;
    margin: 0 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tally-grid-col.on.on {
    background: rgba(163, 129, 189, 0.7);
}

.tally-grid-content-attribute:hover .tally-grid-attribute {
    
}

.tally-grid-content-attribute.on .tally-grid-attribute {
    transition: all 0.2s ease;
    cursor: pointer;
    color: #fff;
}

.tally-grid-sites-title {
    position: absolute;
    left: -10px;
    color: #000;
    font-weight: bold;
    top: -20px;
    width: 125px;
    text-align: center;
    background-color: #fff;
    height: 90px;
    line-height: 90px;
    border-radius: 7px;
    z-index: 2;
}

.tally-grid-sites-title:after {
    content: attr(info);
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
}

.tally-grid-sites {
    margin-top: 66px;
    margin-right: 15px;
    margin-left: 0px;
    width: 100px;
    z-index: -1;
}

.tally-grid-sites:before,.tally-grid-sites:after {
    content: '';
    opacity: 0;
    transition: opacity 0.4s ease;
    display: inline-block;
}

.tally-grid-sites:hover:before {
    content: attr(up);
    position: fixed;
    left: 80px;
    top: 115px;
    font-size: 40px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    display: inline-block;
    background: #ccc;
    padding: 5px 0 10px 0;
    opacity: 0.5;
    border-radius: 10px;
    z-index: 1;
}

.tally-grid-sites:hover:after {
    content: attr(down);
    position: fixed;
    bottom: 20px;
    left: 80px;
    font-size: 40px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    display: inline-block;
    background: #ccc;
    padding: 5px 0 10px 0;
    opacity: 0.5;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.tally-grid-site {
    background-color: #fff;
    color: white;
    padding: 0px;
    position: relative;
    margin: 10px auto 20px auto;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.tally-grid-site-apply {
    background: #331749;
    color: #FFF;
    border: none;
    padding: 2px 0;
    font-size: 10px;
    width: 82px;
    font-family: Roboto;
    display: inline-block;
    border-radius: 15px 15px 0 0;
}

.tally-grid-site-logo {
    width: 80px;
    height: 50px;
    background-size: 80px 50px;
    background-position: center;
    border-style: solid;
    border-width: 0 1px;
    border-color: #000;
    margin-bottom: -4px;
}

.tally-grid-site-status {
    color: #FFF;
    font-size: 10px;
    background: #1D5B25;
    display: inline-block;
    width: 82px;
    border-radius: 0 0 15px 15px;
    padding: 2px 0;
}

.tally-grid-site-status.off {
    background: #750c10;
}

.tally-grid-site-nos {
    color: #666;
    font-size: 12px;
}

.tally-grid-site-nos:after {
    content: attr(nos) " Subjects";
    position: absolute;
    width: 100%;
    display: inline-block;
    left: 0;
    white-space: nowrap;
}

.tally-grid-site.off:before,.tally-grid-common-site.off:before {
    content: '';
    position: absolute;
    width: 80px;
    height: 50px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    left: 1px;
    top: 20px;
    color: red;
    z-index: 1;
    background-color: rgba(175, 81, 81, 0.72);
}

.tally-grid-attribute {
    display: block;
    text-transform: uppercase;
    position: relative;
    transition: all 0.4s ease;
    word-wrap: break-word;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    text-align: center;
    overflow: hidden;
    color: #000;
    font-weight: bold;
    margin: 10px;
    cursor: pointer;
}

.tally-grid-content-attribute {
    text-align: center;
    display: inline-block;
    min-width: 105px;
    background: #f2f2f2;
    margin: 0 1px;
}

.tally-grid-content-attribute.on.on {
    background-color: #A381BD;;
}

.tally-grid-content-attributes {
    position: absolute;
    top: 0;
    z-index: 2;
}

.tally-content-resizeable {
    display: inline-block;
    width: calc(100% - 130px);
    white-space: nowrap;
    overflow-x: auto;
    position: relative;
}

.tally-content-resizeable div {
    resize: none;
}

.tally-grid-content {
    margin: 60px 0px 0 0px;
}

.tally-grid-data {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #000;
    text-align: center;
    cursor: default;
}

.tally-grid-data.off {
    background-image: url('../images/background.png');
}

.tally-grid-col.on .tally-grid-data.off {
    background-image: url('../images/background_2.png');
}

.tally-grid-common-data-container {
    display: inline-block;
    text-align: center;
    margin: 0 10px;
    position: absolute;
    bottom: 0;
    transition: all 1.4s cubic-bezier(.72, -0.69, .65, 1.55);
}

.tally-grid-common-data {
    width: 80px;
    height: 0px;
    border-style: solid;
    border-width: 0;
    border-color: transparent;
    position: relative;
    transition: height 0.4s ease;
    text-align: center;
    background-color: #c2abd3;
    color: #000;
    font-weight: bold;
}

.tally-grid-common-data:before {
    content: attr(info);
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    font-size: 14px;
}

.tally-grid-common-container {
    position: relative;
    height: 275px;
    overflow-x: auto;
    overflow-y: hidden;
}

.tally-grid-common-bg {
    position: absolute;
    top: 30px;
    width: 100%;
}

.tally-grid-common-bg-line {
    width: 100%;
    border-top: 1px solid #ddd;
    margin-bottom: 25px;
}

.tally-grid-common-bg-line.top {
    border: 1px solid #666;
}

.tally-grid-common-bg-line.last {
    border: 1px solid #666;
    position: absolute;
    top: 157px;
    z-index: 2;
}

.tally-grid-common-bg-left {
    display: inline-block;
    height: 156px;
    border: 1px solid #666;
    position: absolute;
    left: 0px;
    z-index: 2;
    top: 30px;
}

.tally-grid-common-bg-right {
    display: inline-block;
    height: 156px;
    border: 1px solid #666;
    position: absolute;
    right: 0px;
    z-index: 2;
    top: 30px;
}

.tally-grid-common {
    position: absolute;
    vertical-align: bottom;
    top: 258px;
}

.tally-grid-common-site {
    display: inline-block;
    width: 80px;
    height: 50px;
    background-repeat: no-repeat;
    background-size: 80px 50px;
    cursor: pointer;
    position: relative;
    background-position: top center;
    margin-top: 10px;
    margin-bottom: 5px;
    border: 1px solid #666;
    border-radius: 10px;
}

.tally-grid-common-site:not (.off ):after {
    content: 'Apply';
    position: absolute;
    text-align: center;
    background: purple;
    color: white;
    border: none;
    padding: 2px;
    top: 47px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    left: 25px;
}

.tally-grid-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    border: 1px solid #666;
    box-shadow: 0 0 2px #666;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    margin-top: 10px;
}

.tally-grid-content-attribute:hover .tally-grid-checkbox,.tally-grid-content-attribute.on .tally-grid-checkbox
    {
    background: #FFF;
    border-color: rgba(126, 90, 150, 1);
    box-shadow: 0 0 4px rgba(126, 90, 150, 1);
}

.tally-grid-content-attribute:hover .tally-grid-checkbox:before,.tally-grid-content-attribute.on .tally-grid-checkbox:before
    {
    content: '';
    display: inline-block;
    border-style: solid;
    border-width: 2px;
    width: 10px;
    height: 3px;
    border-color: transparent transparent rgba(126, 90, 150, 1) rgba(126, 90, 150, 1);
    position: absolute;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 4px;
    left: 3px;
}

.tally-grid-content-attribute.on .tally-grid-checkbox {
    background: #FFF;
    border-color: rgba(126, 90, 150, 1);
}

.tally-grid-content-attribute.on .tally-grid-checkbox:before {
    border-color: transparent transparent rgba(126, 90, 150, 1) rgba(126, 90, 150, 1);
    box-shadow: -1px 1px 1px rgba(126, 90, 150, 1);
}

.tally-grid-col.on.and:after {
    /*    content: 'AND';*/
    position: absolute;
    top: -15px;
    color: #666;
    left: 50px
}

.grid-line-h {
    border-top: 1px solid #666;
    position: absolute;
    width: 50px;
    z-index: -1;
    left: 97px;
}

.grid-subject-image:before {
    content: '';
    display: inline-block;
    position: absolute;
    background-image: url('../images/user1.png');
    width: 32px;
    height: 32px;
    opacity: 1;
    z-index: 1;
}

.grid-subject-image {
    display: inline-block;
    position: relative;
    width: 32px;
    height: 32px;
}

.tally-grid-common-text {
    display: inline;
    padding: 8px;
    transition: all 0.4s ease;
    font-weight: bold;
    max-width: 80%;
    text-align: center;
    color: #000;
    margin: 0 auto;
    position: absolute;
    color: #333;
    left: 0;
    right: 0;
    z-index: 2;
}

.tally-grid-common-list-title:after {
    content: attr(info);
    position: absolute;
    top: 20px;
    left: 30px;
}

.tally-grid-common-list-title {
    position: absolute;
    left: 12px;
    display: inline-block;
    width: 200px;
    top: 0px;
    font-size: 18px;
}

.tally-grid-common-list {
    left: 30px;
    padding: 8px;
    transition: all 0.4s ease;
    width: 220px;
    max-height: 205px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    margin: 45px 15px 0 5px;
}

.anim-slide-in:nth-child(2n+1) {
    background-color: #e6e6e6;
}

.tally-grid-common-list div:before {
    content: attr(info);
    position: relative;
    margin: 2px 10px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #666;
    display: inline-block;
    text-align: center;
    line-height: 15px;
    color: #FFF;
}

.tally-grid-common-list div {
    padding: 3px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.tally-grid-common-list div:hover {
    color: rgb(18, 171, 243);
    text-decoration: underline;
}

.tally-grid-common-list div:hover:after {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.digit {
    /*     box-shadow: 0 0 2px #666; */
    /*     padding: 2px 10px; */
    padding: 2px 6px;
    background-color: #fff;
    color: inherit;
    /*     margin: 1px; */
    position: relative;
    font-size: 17px;
    /*     border-radius: 2px; */
    font-weight: bolder;
    border-color: #CCCCCC #DDDDDD #868182 #EEEEEE;
    border-style: solid;
    border-width: 1px;
}

.digit-light {
    background: none repeat scroll 0 0 #FFFFFF;
    border-color: #CCCCCC #DDDDDD #868182 #EEEEEE;
    border-style: solid;
    border-width: 1px;
    font-size: 17px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    vertical-align: bottom;
    width: 12px;
}

.digit .upper,.lower,.p-upper,.p-lower {
    position: absolute;
    display: inline-block;
    height: 50%;
    width: 100%;
    overflow: hidden;
    text-align: center;
    left: 0;
    background: inherit;
    transition: all 2s ease;
    /*     box-shadow: 0 0 1px #C9C9C9; */
    /* to force HWA. */
    /*     transform: translateZ(0); */
    /*     -webkit-transform: translateZ(0); */
}

.digit .upper {
    line-height: 28px;
    top: 0;
    /*     border-radius: 2px 2px 0 0; */
}

.digit .lower {
    line-height: 2px;
    top: 50%;
    -webkit-transform: rotateX(-180deg);
    -webkit-transform-origin: top;
    transform: rotateX(-180deg);
    transform-origin: top;
    /*     border-radius: 0 0 2px 2px; */
}

.digit .p-upper {
    line-height: 28px;
    top: 0;
    /*     border-radius: 2px 2px 0 0; */
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
}

.digit .p-lower {
    line-height: 2px;
    top: 50%;
    /*     border-radius: 0 0 2px 2px; */
    background: #eee;
}

.digit .p-lower.active {
    background: #aaa;
    color: #666;
}

.digit .lower.active {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    z-index: 1;
    background: #eee;
}

.digit .p-upper.active {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
    z-index: 0;
}

.tally-tooltip:before {
    content: '';
    position: absolute;
    border-color: transparent #E0E0DF transparent transparent;
    border-width: 14px;
    border-style: solid;
    bottom: 1px;
    left: -28px;
}

.tally-tooltip:after {
    content: '';
    position: absolute;
    border-color: transparent #fff transparent transparent;
    border-width: 10px;
    border-style: solid;
    bottom: 5px;
    left: -20px;
}

.tooltip-down:before {
    content: '';
    position: absolute;
    border-color: transparent transparent #E0E0DF transparent;
    border-width: 14px;
    border-style: solid;
    bottom: 100%;
    left: 28px;
}

.tooltip-down:after {
    content: '';
    position: absolute;
    border-color: transparent transparent #fff transparent;
    border-width: 10px;
    border-style: solid;
    bottom: 100%;
    left: 32px;
}

.tooltip-right:before {
    content: '';
    position: absolute;
    border-color: transparent transparent transparent #E0E0DF;
    border-width: 14px;
    border-style: solid;
    bottom: 4px;
    left: 100%;
}

.tooltip-right:after {
    content: '';
    position: absolute;
    border-color: transparent transparent transparent #fff;
    border-width: 10px;
    border-style: solid;
    bottom: 8px;
    left: 100%;
}

.tally-tooltip {
    position: absolute;
    display: inline-block;
    border-radius: 5px;
    padding: 5px;
    max-width: 350px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.4s ease, z-index 0.3s ease;
    font-family: sans-serif;
    box-shadow: 0 0 6px #666;
    color: #69477C;
    opacity: 0;
}

.tally-tooltip .title {
    font-weight: bold;
    text-decoration: underline;
    padding: 5px;
}

.tally-tooltip .content {
    padding: 10px;
}

.mac-scroll-right:after {
    content: 'Scroll \25BA for more';
    display: inline-block;
    position: absolute;
    top: 101%;
    right: 40px;
    color: #444;
    font-style: italic;
}

.mac-position-bottom {
    bottom: 15px;
}

.h-scroll-top {
    display: inline-block;
    width: calc(100% - 130px);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    position: absolute;
    height: 18px;
    top: -15px;
    z-index: 4;
    background: #fff;
}

.h-scroll-inner {
    display: inline-block;
}

.browser-msg {
    margin: 40px;
    color: #CA1A1A;
    font-size: 20px;
}

.loading-screen {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2;
    top: 90px;
}

.loading-screen div {
    position: absolute;
    top: 10%;
    left: calc(50% - 140px);
    display: inline-block;
    font-size: 4em;
    color: #B3B3B3;
}

.h-scroll-arrow-right {
    position: fixed;
    display: inline-block;
    right: 30px;
    font-size: 40px;
    z-index: 1;
    display: inline-block;
    background: #ccc;
    padding: 5px 0 10px 0;
    border-radius: 10px;
    opacity: 0.5;
    visibility: hidden;
    top: 200px;
    cursor: pointer;
}

.h-scroll-arrow-left {
    position: fixed;
    display: inline-block;
    left: 150px;
    font-size: 40px;
    opacity: 0;
    z-index: 1;
    display: inline-block;
    background: #ccc;
    padding: 5px 0 10px 0;
    border-radius: 10px;
    visibility: hidden;
    top: 200px;
    cursor: pointer;
}

.tally-content-resizeable:hover ~.h-scroll-arrow-left,.tally-content-resizeable:hover ~.h-scroll-arrow-right
    {
    visibility: visible;
}

.h-scroll-arrow-right:hover,.h-scroll-arrow-left:hover {
    visibility: visible;
    box-shadow: 0 0 2px #666;
    opacity: 1 !important;
}
