/*
.............................................
GWIS
.............................................
*/

/* Parent container. */
.gwis {
    user-select: none;
}

/* Layout. */
.gwis-overlay {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0.95);
    transition:
        opacity 0.6s ease,
        transform 0.4s cubic-bezier(0.7, -0.5, 0.3, 1.5);
    opacity: 0;
}

.gwis-overlay.gwis-show {
    z-index: 1;
    transform: scale(1);
    opacity: 1;
}

/* Error overlay. */
.gwis-error {
    display: flex;
    color: #bbb;
    font-size: 30px;
}

.gwis-error > div {
    margin: auto;
}

/* Loading overlay. */
.gwis-loading {
    background: #fff5;
    color: #aaa8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.gwis-loading > div {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gwis-loading > div > div {
    margin: auto;
}

.gwis-loading > div:nth-child(1) > div {
    width: 120px;
    height: 120px;
    animation: gwis-rotate-z 2s linear infinite;
    border: 15px solid #ddd8;
    border-top: 15px solid #8888;
    border-bottom: 15px solid #8888;
    border-radius: 50%;
}

@keyframes gwis-rotate-z {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes gwis-rotate-z {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
.............................................
Dygraph customizations.
<https://dygraphs.com/2.1.0/dygraph.css>
.............................................
*/

/* Title and x-, y-, and y2-axis names. */
.gwis .dygraph-label {
    font-size: 85%;
    text-align: center;
}

/* Title. */
.gwis .dygraph-title {
    margin-left: 50px;
    text-align: left;
}

/* Name rotation (y-axis). */
.gwis .dygraph-label-rotate-right {
    transform: rotate(-90deg);
}

/* Name rotation (y2-axis). */
.gwis .dygraph-label-rotate-left {
    transform: rotate(90deg);
}

/* X-, y-, and y2-axis tick numbers. */
.gwis .dygraph-axis-label {
    overflow: hidden;
    font-size: 85%;
}

/* Legend. */
.gwis .dygraph-legend {
    display: inline-block;
    position: absolute;
    z-index: 10;
    padding: 0 5px;
    overflow: hidden;
    transition: opacity 0.2s;
    border: 1px solid #ddd;
    opacity: 1;
    background: white;
    color: #222;
    font-size: 12px;
    white-space: nowrap;
}

.gwis .dygraph-legend:hover {
    opacity: 0.1;
}

.gwis.gwis-fixed-legend .dygraph-legend {
    right: 0;

    /* additional for legend:'always' and legend:'onmouseover' */

    left: inherit !important;
    margin: 5px 10px;
}

.gwis .dygraph-legend-line,
.gwis .dygraph-legend-dash {
    display: inline-block;
    position: relative;
    bottom: 0.5ex;
    height: 1px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.gwis .dygraph-legend-line {
    padding-left: 1em;
}

/* Rolling average text box. */
.gwis .dygraph-roller {
    position: absolute;
}

/* All annotations. */
.gwis .dygraph-annotation {
    position: absolute;
    overflow: hidden;
}

/* Annotations without icons. */
.gwis .dygraph-default-annotation {
    border: 1px solid #444;
    background-color: white;
    text-align: center;
}
