﻿canvas {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    background-color: #F5FBF8;
}

#description {
    font-size: 10pt;
    margin-top: 1em;
}

#annotation-description {
    font-size: 12pt;
    float: right;
}

.zoombtn {
    margin-top: 1em;
    margin-bottom: 1em;
    float: right;
}

.topzoombtn {
    margin-bottom: 1em;
    float: right;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 28px;
    float: right;
    margin-left: 0.5em;
}

.switch > input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: lightgray;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .5s;
}

input:checked + .slider {
    background-color: #6BC4E8;
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    -moz-transform: translateX(18px);
    -o-transform: translate(18px);
    transform: translateX(18px);
}

.slider {
    border-radius: 30px;
}

.slider:before {
    border-radius: 50%;
}

.date-range {
    display: flex;
    align-items: center;
}

.refresh-btn {
    margin-left: 1em;
}

.card-title {
    display: flex;
    flex-direction: row;
    color: black;
    align-items: center;
}

.reset-zoom-btn {
    margin-left: auto;
    margin-right: 1em;
    order: 2;
}

.accordion-arrow {
    order: 3;
}

@media (max-width: 1000px) {
    .refresh-btn {
        margin-bottom: 5px;
    }
    #annotation-description {
        margin-bottom: 5px;
    }

    .legend-popover {
        display: block;
    }

    .desktop-legend {
        display: none;
    }

    #graph-tooltip {
        display: none;
    }
}

@media (min-width: 1000px) {
    .to-label {
        margin-left: 10px;
    }

    .legend-popover {
        display: none;
    }

    .desktop-legend {
        display: block;
    }
}

.date-range-btns {
    margin-bottom: 5px;
}

a:hover {
    text-decoration-color: black;
}

.legend, .legend-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-decoration: none;
}

.legend-color {
    width: 10px;
    height: 10px;
    align-self: center;
    cursor: pointer;
}

.legend-label {
    margin-right: 20px;
    margin-left: 2px;
    font-size: 12pt;
    align-self: flex-start;
    cursor: pointer;
}

#expand-collapse-all {
    height: 2.5em;
    margin-top: 15px;
}

#graph-tooltip {
    float: right;
}

#feedbackBanner, #successBanner {
    z-index: -1;
}

.history-graph-container {
    display: flex;
    flex-direction: column;
    margin: -1em;
}

.legend-popover {
    height: 2.5em;
    width: 6em;
    align-self: flex-end;
    outline-color: white;
}
