/*
 * Here is the style to embed
 * the iframe (height, width ...)
 *
 * the toastbar is only for the demo version
 */

html, body {
    background: #ddd;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
h1 {
    margin: 0;
    padding: 10px;
    flex-shrink: 0;
}
#core-value-widget {
    flex: 1;
    width: 100%;
    min-height: 0;
}
#core-value-widget iframe {
    display: block;
    border: none;
    width: 100%;
    height: 100%;
}
#core-value-widget iframe.fullmode {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
}

/* only for demo version */
#toastbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #284060;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 8px 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
}
#toastbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}