﻿@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;
}
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: 30%;
}
.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 {
    position: relative;
    z-index: 9;
    width: 13vh;
    height: 13vh;
    top: 1.14vh;
    left: 0;
    right: 0;
    overflow: hidden;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 1vh;
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    padding: 4.1vh 0;
    transition: all 150ms;
    animation: ease-in-out;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.badge.record-day {
    padding: 3.3vh 0;
}
.badge-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.badge-border {
    fill: #74cee2;
}
.badge.recent .badge-border {
    fill: #f0ca46;
}
.badge-body {
    fill: #fff;
}
.badge-text {
    fill: #0a2240;
}
.badge .year, .badge .number, .badge .digital {
    position: relative;
}
@media (forced-colors: active) {
    .badge-border {
        fill: ButtonBorder;
    }
    .badge-body {
        fill: Canvas;
    }
    .badge-text {
        fill: ButtonText;
    }
    .badge .number, .badge .digital, .badge .year {
        color: ButtonText;
    }
}

.modal-badge {
    position: relative;
    z-index: 9;
    width: 50cqw;
    height: 50cqw;
    left: 0;
    right: 0;
    text-decoration: none;
    overflow: hidden;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 13cqw 0;
    transition: all 150ms;
    animation: ease-in-out;
}
.modal-badge.all-time, .modal-badge.last-year, .modal-badge.this-year {
    padding: 7.5cqw 0;
}

.modal-badge-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.modal-badge-border {
    fill: #74cee2;
}
.five-star-badge.recent .modal-badge-border {
    fill: #f0ca46;
}
.modal-badge-body {
    fill: #fff;
}
.modal-badge-stars {
    fill: #74cee2;
}
.five-star-badge.recent .modal-badge-stars {
    fill: #f0ca46;
}
.modal-badge-text {
    fill: #0a2240;
}
.modal-badge .year, .modal-badge .number, .modal-badge .digital {
    position: relative;
}
@media (forced-colors: active) {
    .modal-badge-border {
        fill: ButtonBorder;
    }
    .modal-badge-body {
        fill: Canvas;
    }
    .modal-badge-stars {
        fill: Highlight;
    }
    .modal-badge-text {
        fill: Canvas;
    }
    .modal-badge .number, .modal-badge .digital, .modal-badge .year {
        color: ButtonText;
    }
}
@media (forced-colors: active) and (prefers-color-scheme: light) {
    .five-star-badge.recent .modal-badge-text {
        fill: ButtonText;
    }
}

.badge-container .badge:active {
    transform: scale(.9);
}
.badge .number, .modal-badge .number {
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    letter-spacing: -.1vh;
}
.badge .number {
    font-size: 1.7vh;
}
.modal-badge .number {
    font-size: 8.3cqw;
    letter-spacing: -0.02em;
}
.modal-badge.record-day .number {
    font-size: 9cqw;
}
.modal-badge.all-time .number, .modal-badge.last-year .number, .modal-badge.this-year .number {
    font-size: 7cqw;
    margin: 10.5cqw 0 0 0;
}
.badge .digital, .modal-badge .digital {
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #006693;
    white-space: nowrap;
    letter-spacing: -.1vh;
}
.badge .digital {
    font-size: 1.6vh;
}
.modal-badge .digital {
    font-size: 5.3cqw;
    letter-spacing: -0.02em;
}
.badge .year, .modal-badge .year {
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #006693;
    white-space: nowrap;
    letter-spacing: -.1vh;
}
.badge .year {
    font-size: 1.6vh;
}
.modal-badge .year {
    font-size: 5.3cqw;
    letter-spacing: -0.02em;
}

/* footer milestone badge styles */
.milestone-container {
    position: fixed;
    z-index: 9;
    width: 100%;
    height: 15.2vh;
    bottom: -3vh;
    text-align: center; 
}
.milestone-container > .badge {
    display: none;
}
.milestone-container > .applicable {
    display: inline-flex;
}
.milestone-container > .rotate-arrow {
    display: none;
}
@media (orientation:portrait) {
    .milestone-container > .applicable {
        display: none;
    }
    .milestone-container > .active {
        display: inline-flex;
    }
    .milestone-container > .rotate-arrow {
        display: inline-block;
        height: 100%;
        line-height: 5vh;
        font-size: 4vh;
        color: #333;
        vertical-align: middle;
        user-select: none;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
        -webkit-appearance: none;
        appearance: none;
    }
    .milestone-container.single-badge > .rotate-arrow {
        display: none !important;
    }
}

.milestone-modal {
    text-align: center !important;
    font-size: 1.2em;
    padding: 0 0 2vh 0 !important;
    border: 0.4vh solid #74cee2 !important;
    background-color: #f4fbfd !important;
    max-width: 550px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}
.milestone-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
}
.milestone-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: url("close.svg") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 100ms;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: transparent;
}
.milestone-modal .close-modal:hover {
    opacity: 1;
}
@media (forced-colors: active) {
    .milestone-modal .close-modal {
        box-sizing: content-box;
        border: 1px solid ButtonText;
        background: none;
        color: ButtonText;
        opacity: 1;
    }
    .milestone-modal .close-modal:hover {
        border-color: Highlight;
        color: Highlight;
        opacity: 1;
    }
}
.milestone-modal.recent {
    text-align: center !important;
    font-size: 1.2em;
    padding: 0 0 2vh 0 !important;
    border: 0.4vh solid #f0ca46 !important;
    background-color: #fffbf1 !important;
}
.milestone-modal > .starburst {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    container-type: inline-size;
}
.milestone-modal.recent > .starburst {
    background-image: url('images/popup-starburst.svg');
}
.milestone-modal > h1 {
    color: #000;
    font-family: 'Brown-Regular';
    font-weight: 600;
    font-size: 1.7em;
}
.milestone-modal > .description {
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #006697;
    font-size: 1.2em;
}
.milestone-modal > .number {
    color: #000;
    font-family: 'Brown-Regular';
    font-weight: 600;
    font-size: 2.5em;
    padding: 0.2em;
}
.milestone-modal > .year {
    color: #000;
    font-family: 'Brown-Regular';
    font-weight: 600;
    font-size: 1.2em;
    margin: 0.3em;
}
.milestone-modal > .all-time-club {
    font-family: 'Brown-Regular';
    font-weight: 600;
    color: #000;
    font-size: 1.8em;
    margin: -0.4em 0 0.4em 0;
}
.milestone-modal > .overdrive-pride {
    margin: 2vh 0 0 0;
    padding: 0;
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #000;
    font-size: 0.8em;
}
.this-year-milestone-list, .last-year-milestone-list {
    margin-top: 1.5vh;
    display: inline-block;
    text-align: left;
    padding: 0;
    font-family: 'Brown-Regular';
    font-weight: 400;
    color: #006697;
    font-size: 1em;
}
.this-year-milestone-list > ul, .last-year-milestone-list > ul {
    padding: 0;
    margin: 0;
}

/* 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;
}

/* celebration styles */
#fireworks-container {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}
