#overlay {
    position: fixed;
    top:    0;
    left:   0;
    bottom: 0;
    right:  0;
}
#overlay-bkg {
    width: 100%;
    height: 100%;
    background-color: #fff;

    -webkit-transition: opacity 0.33s;
    -moz-transition: opacity 0.33s;
    -ms-transition: opacity 0.33s;
    -o-transition: opacity 0.33s;
    transition: opacity 0.33s;
}

#topLeftTitle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;

    padding: 12px;

    font-size: x-large;
    line-height: 20px;
    font-family: sans-serif;
    color: #000;
}

#topright {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;

    -webkit-display: flex;
    -moz-display: flex;
    -ms-display: flex;
    display: flex;
}
.tooltip {
    position: relative;
    padding: 20px 12px 2px 12px;
    font-size: 50px;
    line-height: 30px;

    font-family: sans-serif;
    text-decoration: none;
    color: #008;
    cursor: pointer;
}
.tooltip:hover {
    color: #88f;
}
.tooltip:active {
    color: #aaf;
}
#topright .tooltip .tooltiptext {
    opacity: 0;
    text-align: center;
    font-size: small;
    color: #ccc;

    position: absolute;
    z-index: 1;

    width: 100px;
    top: 100%;
    left: 50%; 
    margin-left: -50px;

    -webkit-transition: opacity 0.33s;
    -moz-transition: opacity 0.33s;
    -ms-transition: opacity 0.33s;
    -o-transition: opacity 0.33s;
    transition: opacity 0.33s;
}
#topright .tooltip:hover .tooltiptext {
    opacity: 1;
}

#instructions {
    position: fixed;
    top: 75px;
    right: 0;
    z-index: 3;

    width: 240px;
    margin: 3px;

    font-size: 28px;

    font-family: serif;
    color: #008;
    cursor: pointer;

    box-sizing: border-box;
    background-color: rgba(204, 204, 255, 0.25);
    border: 1px solid #ddf;
    border-radius: 12px;

    text-align: center;
}
#instructions:hover {
    color: #88f;

    background-color: #f8f8ff;
    border: 1px solid #e8e8ff;
}
#instructions-overlay-bkg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(128, 128, 128, 0.5);

    -webkit-transition: opacity 0.33s;
    -moz-transition: opacity 0.33s;
    -ms-transition: opacity 0.33s;
    -o-transition: opacity 0.33s;
    transition: opacity 0.33s;

    z-index: 5;
}
#instructions-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 66.6%;
    
    margin: auto;
    padding: 32px;
    padding-right: 64px;

    box-sizing: border-box;
    border: 4px double #fff;
    border-radius: 32px;

    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 32px #888, inset 0 0 32px #ccc;
}
#instructions-overlay h1 {
    text-align: center;
}
#instructions-overlay p {
    font-size: x-large;
}
#close-instructions {
    position: absolute;
    top: 16px;
    right: 16px;

    font-size: 50px;
    line-height: 38px;
    font-family: sans-serif;
    text-decoration: none;
    color: #008;
    cursor: pointer;
}
#close-instructions:hover {
    color: #88f;
}
#close-instructions:active {
    color: #aaf;
}

#overlay-img img, #overlay-img canvas {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    margin: auto;
    max-width: 100%;
    height: 100%;

    -o-object-fit: contain;
    object-fit: contain;
}
#overlay-img canvas {
    cursor: crosshair;
}
#alt {
    position: fixed;
    font-size: 5vw;
    text-align: center;
    width: 100%;
    bottom: 50%;
}

/* #center-title  {
    position: absolute;
    top: 0;
    right: 50%;
    font-size: x-large;
    color: #00f;
    opacity: 0.1;
    font-family: sans-serif;
    cursor: default;
} */







/* magnifying glass */

#img-zoom-result {
    /* position: relative; */

	-webkit-user-select: none;
    -moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

    width: 300px;
    height: 300px;
}

#lens {
	-webkit-user-select: none;
    -moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
    
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    width: 0;
    height: 0;
    margin: 150px;

    border-radius: 0;

    z-index: 1;
    position: absolute;
    cursor: none;

    -webkit-filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));

    -webkit-border: 3px double #fff;
    -moz-border: 3px double #fff;
    -o-border: 3px double #fff;
    border: 3px double #fff;

    -webkit-transition: opacity 0.5s, width 0.5s, height 0.5s, border-radius 0.5s, margin 0.5s;
    -moz-transition: opacity 0.5s, width 0.5s, height 0.5s, border-radius 0.5s, margin 0.5s;
    -o-transition: opacity 0.5s, width 0.5s, height 0.5s, border-radius 0.5s, margin 0.5s;
    transition: opacity 0.5s, width 0.5s, height 0.5s, border-radius 0.5s, margin 0.5s;
}