@import url('https://fonts.googleapis.com/css?family=Lato:400');

/* common reset */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
/* END: common reset */

html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
}
a {
    color: #333333;
}
/* canvases */
#renderCanvas, #renderAnnotations {
    width: 100%;
    height: calc(100% - 66px);
    position: absolute;
    top: 0;
    left: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
}
#renderAnnotations {
    pointer-events:none;
}
.cursor-pointer-important {
    cursor: pointer !important;
}

/* overlay */
#overlay {
    background: rgba(0,0,0,0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

/* annotations */
.annotation {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 10px;
    box-shadow: 0px 5px 24px 0px rgba(0,0,0,0.33);
    display: none;
    width: 200px;
    pointer-events: auto;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.904);
}
.annotation::after {
    content: "[click annotation to close]";
    display: block;
    margin: 12px 0 8px 0;
    font-size: 11px;
}

.annotation > h1 {
    margin: 8px;
    font-size: 18px;
}
.annotation > h2 {
    margin: 8px;
    font-size: 18px;
}
.annotation > p {
    margin: 8px;
    font-size: 14px;
}
/*#annoOne { width: 400px; }*/
/*#annoTwo { width: 300px; }*/
/*#annoThree { width: 300px; }*/
.anno-close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: url("close_icon.png") no-repeat;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    /* border: 1px solid rgba(255,255,255,0.8); */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    display: none;
}
.annotation.top > .anno-close-btn {
    top: -1px;
}
.anno-corner-line-svg {
    height: 30px;
    width: 250px;
    position: absolute;
    pointer-events: none;
    bottom: -30px;
    right: 0;
}

/* loader */
.loader {
    width: 100%;
    height: calc(100% - 66px);
    position: absolute;
    top: 0;
    left: 0;
    background-color:black;
    background-image: url(preview.jpg);
    background-size: cover;
    background-position: center;
    color: white;
}
.loader-cont {
    display: table;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.loader-text {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* bottom bar */
.bottom-bar{
    pointer-events: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    background: #000000;
}

/* footer */
.footer {
    position: absolute;
    left: 0;
    bottom: 0;
}
.footer-logo-link {
    position: absolute;
    display: block;
    left: 11px;
    bottom: 16px;
    height: 35px;
    cursor: pointer;
}
.footer-logo-link > img {
    display: block;
    width: auto;
    height: 100%;
}
.footer-more-info {
    position: absolute;
    margin: 0;
    padding: 0;
    background: rgb(231, 229, 229);
    width: 155px;
    height: 35px;
    bottom: 16px;
    left: 65px;
    transition: opacity .5s ease-in-out;
}

.footer-more-info span {
    position: absolute;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: normal;
    left: 15px;
    top: 6.5px;
}

.footer-more-info:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 9px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-right: 16px solid rgb(231, 229, 229);
    border-bottom: 8px solid transparent;
}

.footer-more-info a {
    text-decoration: underline;
    font-weight: 900;
    color: #000;
    cursor: pointer;
}

/* toolbox */
.toolbox-cont {
    position: absolute;
    bottom: 31px;
    transform: translate(0, 50%);
    right: 0;
    padding: 0px 18px;
}
.toolbox-btn {
    display: block;
    box-sizing: border-box;
    float: left;
    margin-right: 19px;
    overflow: hidden;
    width: 32px;
    height: 32px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
    user-select: none;
}
.toolbox-btn:last-of-type {
    margin: 0 0 0 -4px;
}
@media (max-width: 380px) {
    .toolbox-cont {
        padding: 0px 10px;
    }
    .toolbox-btn {
        margin-right: 10px;
    }
}
@media (max-width: 340px) {
    .toolbox-btn:last-of-type {
        margin-right: -4px;
    }
}

.toolbox-btn img {
    width: 100%;
    height: 100%;
}
/* toolbox menu */
.toolbox-menu {
    position: absolute;
    bottom: 52px;
    right: 0px;
    background: rgba(0, 0, 0, 1.0);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: white;
    padding: 9px 20px 9px 18px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms;
}
.toolbox-menu.visible {
    visibility: visible;
    opacity: 1;
}
.toolbox-menu-item {
    padding: 5px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    height: 20px;
}
.toolbox-menu-item.radio::before {
    content: " ";
    font-family: monospace;
    width: 21px;
    display: inline-block;
}
.toolbox-menu-item.radio.active::before {
    content: "✓";
}

/* appctrl */
.appctrl-cont {
    position: absolute;
    right: 0;
    /* top: 6px; */

    /* for single btn */
    top: 10px;
}

