.chart {
    min-height: 448px;
}

.hidden {
    display:none;
}

#borsihinnad .wr { /* widen this page */
    max-width: 1280px;
}

@media (max-width: 1279px) {
    /* unless the screen is too small */
    #borsihinnad .wr { /* then set back to default */
        max-width: 940px;
    }

    .borsihinnad-dashboard .instr {
        width: 100%;
    }
}

.borsihinnad .tab-set li {
    width: 110px;
}

.borsihinnad h4 {
    float: right;
    color: #849938;
    font-family: 'TheMixB-W6SemiBold', serif;
    line-height: 2em;
}

.borsihinnad-dashboard {
    clear: right;
    margin-right: -20px;
}

.borsihinnad-dashboard .instr {
    display: inline-block;
    vertical-align: text-top;
    margin-bottom: 1.25em;
    background: #fcfcfc;
    width: 450px;
    float: left;
    margin-right: 20px;
}

#borsihinnad .tabs {
    clear: left;
}

#borsihinnad .borsihinnad-dashboard .instr.type-spot .th:first-child {
    display: none
}

#borsihinnad .borsihinnad-dashboard .instr.type-spot .td:first-child {
    display: none;
}

.borsihinnad-dashboard .instr:nth-child(odd) {
    /*margin: 1em;*/
}

.disclaimer {
    text-align: right;
    margin-top: 1em;
    font-size: xx-small;
    color: #808080;
}
.disclaimer a {
    color: #808080;
    font-size: xx-small;
}
.exchange-logos {
    text-align: right;
    margin-top: .3em;
}

/* on very small screens, show tabs more like links */
@media (max-width: 529px) {
    .borsihinnad .tab-set {
        text-align: center;
    }

    .borsihinnad .tab-set li {
        border: none;
    }
}

@media (max-width: 1279px) {
    /* smalls screens, make single column */
    .borsihinnad-dashboard {
        margin-right: auto;
    }

    .borsihinnad-dashboard .instr {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .borsihinnad .tab-set li { /* chart tabs smaller */
        width: 70px;
    }
}

.borsihinnad-dashboard .instr .header {
    /* background: #f2f2f2;*/
    background: #849938;
    color: white;
    font-family: 'TheMixB-W6SemiBold', serif;
    padding: 7px 8px;
    height: 2.5em;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.borsihinnad-dashboard .instr .header .name {
    font-size: large;
    padding-left: .5em;
}

.borsihinnad-dashboard .instr .header .time {
    float: right;
    margin-right: .5em;
    color: #dadada;
    margin-bottom: 3px;
}

.borsihinnad-dashboard .instr .header .units {
    float: right;
    margin-right: .5em;
    color: #dadada;
    clear:right;
}

#borsihinnad .borsihinnad-dashboard .table .th {
    padding: 7px 8px;
    background: #f2f2f2;
    vertical-align: bottom;
    text-align: center;
}

#borsihinnad .borsihinnad-dashboard .table .th:first-child {
    width: 110px;
}

#borsihinnad .borsihinnad-dashboard .table .th:nth-child(2) {
    width: 65px;
}

#borsihinnad .borsihinnad-dashboard .table .td {
    text-align: center;
    white-space: nowrap;
    height: 1.5em;
    padding: 0 7px 0 7px;
    line-height: 2.2em;
    vertical-align: baseline;
}

.borsihinnad-dashboard .table .td.price-Down {
    color: #a71b34;
}

.borsihinnad-dashboard .table .td.price-Down::after {
    content: " ▾";
}

.borsihinnad-dashboard .table .td.price-Up {
    color: #849938;
}

.borsihinnad-dashboard .table .td.price-Up:after {
    content: " ▴";
}

#borsihinnad .table .th:first-child {
    color: inherit;
    text-align: center;
}

#borsihinnad .table .td:first-child {
    border-left: 1px solid #eaeaea;
}

#borsihinnad .table .td:last-child {
    border-right: 1px solid #eaeaea;
}

/**
 * Tooltip Styles
 */

/* Base styles for the element that has a tooltip */
[data-tooltip],
.tooltip {
    position: relative;
    cursor: pointer;
}

/* Base styles for the entire tooltip */
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after {
    position: absolute;
    visibility: hidden;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
    -webkit-transition: opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out,
    -webkit-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    -moz-transition: opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out,
    -moz-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    transition: opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out,
    transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

/* Show the entire tooltip on hover and focus */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:focus:before,
.tooltip:focus:after {
    visibility: visible;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    opacity: 1;
}

/* Base styles for the tooltip's directional arrow */
.tooltip:before,
[data-tooltip]:before {
    z-index: 1001;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}

/* Base styles for the tooltip's content area */
.tooltip:after,
[data-tooltip]:after {
    z-index: 1000;
    padding: 8px;
    width: 160px;
    background-color: #000;
    background-color: hsla(0, 0%, 20%, 0.9);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 14px;
    line-height: 1.2;
}

/* Top (default) */
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after,
.tooltip-top:before,
.tooltip-top:after {
    bottom: 100%;
    left: 50%;
}

[data-tooltip]:before,
.tooltip:before,
.tooltip-top:before {
    margin-left: -6px;
    margin-bottom: -12px;
    border-top-color: #000;
    border-top-color: hsla(0, 0%, 20%, 0.9);
}

/* Horizontally align top/bottom tooltips */
[data-tooltip]:after,
.tooltip:after,
.tooltip-top:after {
    margin-left: -80px;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:focus:before,
.tooltip:focus:after,
.tooltip-top:hover:before,
.tooltip-top:hover:after,
.tooltip-top:focus:before,
.tooltip-top:focus:after {
    -webkit-transform: translateY(-12px);
    -moz-transform: translateY(-12px);
    transform: translateY(-12px);
}

/**
 * Chart customization 
 */

.hoverlayer {
    opacity: 0.85;
}

.plotly-notifier {
    display: none;
    top: 75% !important;
    left: 50% !important;
}
.plotly-notifier .notifier-note{
    text-align: center;
}
.plotly-notifier .notifier-close{
    display: none;
}
.zoom-out-button {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
    width: 20px;
    background-image: url('../img/zoom-out.svg');
    background-size: 20px 20px;
}

/* spinner */
.spinner {
    left: 50%;
    margin-left: -25px;
    top: 210px;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
    position: absolute;
    z-index: 10;
}

.spinner > div {
    height: 100%;
    display: inline-block;
    width: 7px;
    margin: 0 3px 0 0;
    background-color: #849938;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
    20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }  20% {
           transform: scaleY(1.0);
           -webkit-transform: scaleY(1.0);
       }
}
