@import url('https://fonts.googleapis.com/css?family=Lato:400|Roboto+Condensed:400,700');

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;
}
p {
    margin: 0;
    padding: 0;
}
/* canvases */
#renderCanvas, #renderAnnotations {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#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: 300px;
    pointer-events: auto;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
}
.annotation::after {
    content: "[click anywhere to close]";
    display: block;
    margin: 12px 8px 8px;
    font-size: 11px;
}
.annotation.bottom {
    border-bottom: 1px solid rgba(255,255,255,0.8);
}
.annotation.top {
    border-top: 1px solid rgba(255,255,255,0.8);
}
.annotation > h1 {
    margin: 8px;
    font-size: 18px;
}
.annotation > h2 {
    margin: 8px;
    font-size: 18px;
}
.annotation > p {
    margin: 8px;
    font-size: 14px;
}
/*#annoPen { width: 400px; }*/
/*#annoNeedle { width: 300px; }*/
/*#annoStrip { width: 300px; }*/
/*#annoLid { width: 390px; }*/
.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: 380px;
    position: absolute;
    pointer-events: none;
}
.annotation.bottom > .anno-corner-line-svg {
    top: 100%;
    left: -30px;
}
.annotation.top > .anno-corner-line-svg {
    top: -30px;
    left: -30px;
}

/* loader */
.loader {
    width: 100%;
    height: 100%;
    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%;
}

/* footer info */
.footerInfo {
    position: absolute;
    left: 0;
    bottom: 0;
}
.logoLink {
    position: absolute;
    display: block;
    
    left: 2px;
    bottom: 0px;
    width: 200px;
}
.logoLink img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 390px) {
    .logoLink {
        left: -3px;
        bottom: 7px;
        width: 156px;
    }
}
/*
@media (max-width: 408px) {
    .logoLink {
        left: -4px;
        bottom: 10px;
        width: 118px;
    }
}
@media (max-width: 369px) {
    .logoLink {
        left: -6px;
        bottom: 10px;
        width: 112px;
    }
}
*/

/* toolbox */
.toolbox-cont {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 22px 22px 18px 26px;
    background: rgba(0, 0, 0, 0.4);
}
.toolbox-btn {
    display: block;
    box-sizing: border-box;
    float: left;
    margin-right: 24px;
    overflow: hidden;
    width: 23px;
    height: 23px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
    user-select: none;
}
.toolbox-btn:last-of-type {
    margin-right: 0;
}
.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: "✓";
}


/* settings menu */

/* appctrl */
.appctrl-cont {
    position: absolute;
    right: 0;
    /* top: 6px; */
    
    /* for single btn */
    top: 10px;
}
.appctrl-btn {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: 39px;
    line-height: 39px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 15px;
    padding-left: 17px;
    padding-right: 50px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    margin: 10px 8px 10px 0;
    float: left;
}
.appctrl-btn:last-of-type {
    margin-right: 19px;
}
@media (max-width: 750px) {
    .appctrl-cont {
        position: absolute;
        right: 0;
        top: 6px;
        /*border: 1px solid red;*/
    }
    .appctrl-btn, .appctrl-btn:last-of-type {
        margin: 8px 8px 8px 0;
        float: none;
    }
}
.appctrl-btn img {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 4px;
    left: 9px;
    user-select: none;
}
.appctrl-btn .onoff {
    top: -1px;
    right: -1px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.75);
    background: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-align: center;
    height: 39px;
    width: 39px;
    position: absolute;
    user-select: none;
}

/* vrmode */
.vrmode #renderAnnotations,
.vrmode .footerInfo,
.vrmode .appctrl-cont,
.vrmode .toolbox-cont,
.vrmode .toolbox-menu
{
    visibility: hidden !important;
}

.vr-info {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: none;
}
.vr-info-cont {
    display: table;
    position: absolute;
    width: 100%;
    height: 100%;
}
.vr-info-text {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 30px;
}
.vr-info-text .button {
    display: inline-block;
    width: auto;
    height: 39px;
    line-height: 39px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 15px;
    padding: 0 30px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.5);
    margin: 30px;
}
/* vr crosshair */
.crosshair {
    pointer-events: none;
    position: absolute;
    z-index: 500;
    overflow: visible;
}
.crosshair.vr {
    transform: scale(0.3);
    transform-origin: top left;
}
.crosshair > svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: -50%;
    left: -50%;
}