﻿@font-face {
    font-family: 'Brown-Regular';
    src:url('fonts/lineto-brown-regular.eot');
    src:url('fonts/lineto-brown-regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/lineto-brown-regular.woff') format('woff'),
        url('fonts/lineto-brown-regular.ttf') format('truetype'),
        url('fonts/lineto-brown-regular.svg#lineto-brown-regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system,".SFNSText-Regular","San Francisco","Roboto","Segoe UI","Helvetica Neue","Lucida Grande",sans-serif;
}
html, body {
    border: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
}
.dashboard-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.dashboard-widget {
    float: left;
    overflow: hidden;
    min-height: 300px;
}

/* dashboard layout styles */
.dashboard-widget.full-width {
    width: 100%;
}
.dashboard-widget.half-width {
    width: 50%;
}
.grid .dashboard-widget, .one-over-two .dashboard-widget, .two-over-one .dashboard-widget, .stacked .dashboard-widget {
    height: 45%;
}
.one-only .dashboard-widget {
    height: 90%;
}
@media (orientation:portrait) {
    .dashboard-widget.half-width {
        width: 100%;
    }
    .grid .dashboard-widget {
        height: 22.5%;
    }
    .one-over-two .dashboard-widget, .two-over-one .dashboard-widget {
        height: 30%;
    }
}

/* dashboard footer styles */
.dashboard-footer {
    overflow: hidden;
    width: 100%;
    height: 8%;
    background-color: #ffffff;
    border-top: .1vh solid #ccc;
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
}
.dashboard-footer .library-logo {
    float: left;
    overflow: hidden;
    width: 50%;
    height: 100%;
    text-align: left;
}
.dashboard-footer .overdrive-logo {
    float: left;
    overflow: hidden;
    width: 50%;
    height: 100%;
    line-height: 100%;
    text-align: right;
}
.dashboard-footer span {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}
.dashboard-footer img {
    max-height: 60%;
    max-width: 50%;
    margin: 0 5% 0 5%;
    display: inline-block;
    vertical-align: middle;
}
.dashboard-footer .overdrive-logo img {
    max-height: 50%;
}
.dashboard-footer .library-logo div {
    max-height: 60%;
    max-width: 50%;
    margin: 0 5% 0 5%;
    display: inline-block;
    vertical-align: middle;
    color: #0D6693;
    font-weight: bold;
    font-style: italic;
    font-size: 2vmin;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* footer badge styles */
.badge-container {
    position: fixed;
    z-index:9;
    width: 15.2vh;
    height: 15.2vh;
    bottom: -3vh;
    right: 0;
    left: 0;
    margin: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition: -webkit-transform 100ms linear;
    transition: transform 100ms linear;
}
.badge {
    position: relative;
    z-index: 9;
    width: 13vh;
    height: 13vh;
    top: 1.14vh;
    left: 0;
    right: 0;
    margin: auto;
    color: #fff;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    text-align: center;
    border: .4vh solid #6FCBE2;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    padding: 1.8vh 0;
    line-height: 2.8vh;
    transition: all 150ms;
    animation: ease-in-out;
}
.badge-container .badge:active {
    transform: scale(.9);
}
.badge .number {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #006693;
    font-size: 1.9vh;
    white-space: nowrap;
    letter-spacing: -.1vh;
}
.badge .digital {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #74cee2;
    font-size: 1.9vh;
    white-space: nowrap;
    letter-spacing: -.1vh;
}
.badge .year {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #006693;
    font-size: 1.9vh;
    white-space: nowrap;
    letter-spacing: -.1vh;
}

/* badge modal styles */
#badgeModal .loans-badge {
    width: 40vmin;
    height: 40vmin;
    margin: 0 auto;
    background: url("badge-background.svg");
    position: relative;
}
#badgeModal .loans-badge span {
    display:block;
    text-align:center;
}
#badgeModal .loans-badge .number {
    font-family: 'Brown-Regular';
    color: #006693;
    font-size: 5vmin;
    font-weight: 600;
    position: relative;
    top: 10vmin;
}
#badgeModal .loans-badge .digital {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #74cee2;
    font-size: 8vmin;
    position: relative;
    top: 8vmin;
}
#badgeModal .loans-badge .loans {
    font-family: 'Brown-Regular';
    color: #006693;
    font-size: 6vmin;
    position: relative;
    top: 8vmin;
}
#badgeModal .loans-badge .year {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #006693;
    font-size: 3vmin;
    position: relative;
    top: 8vmin;
}
#badgeModal h1 {
    color: #006693;
    font-family: 'Brown-Regular';
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
}
#badgeModal h1 > span {
    font-family: 'Brown-Regular';
}
#badgeModal span {
    white-space: nowrap;
}

/* dashboard embed instructions styles */
.dashboard-wrapper .instructions {
    position: absolute;
    background: rgba(0,0,0,0.8);
    margin: 20px;
    color: #fff;
    display: none;
}
.dashboard-wrapper .instructions > div {
    width: 75%;
    margin: 60px auto;
}
.dashboard-wrapper .instructions textarea {
    width: 100%;
    height: 3em;
    font-family: monospace;
    margin: 10px 0;
}
.dashboard-wrapper .instructions ol {
    margin: 0;
}
