#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1999; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1440px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1440px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 1440px){
    .modal-content {
        width: 100%;
    }
}

div.moving-vertical-line {
    width: 1px;
    background: red;
    position: absolute;
    z-index: -100;
    display: none;
}

div.fixed-vertical-line {
    width: 1px;
    background: blue;
    position: absolute;
    z-index: -100;
    display: none;
}

div.first-litho {
    width: 1px;
    background: green;
    position: absolute;
    z-index: -100;
    display: none;
}

div#charts {
    position: relative;
    top: 0px;
    left: 0px;
    margin: auto;
    width: 100%;
}

div.chart {
    opacity: 0.90;
    padding-top: 10px;
    position: relative;
}

div.chart svg, div.chart img, div#doc svg, div#doc img {
    height: auto;
    width: 100%;
    display: block;
    fill: #000;
    overflow: overlay;
}

path.layer.active {
    stroke-width: 0.4%;
    stroke: black;
}

div.piechart svg  {
    display: block;
    margin: auto;
}

div.chart div.loader {
    height: 35px;
}

div.label {
    position: absolute;
    top: 10px;
    left: -85px;
    width: 80px;
    font-size: 10px;
    font-family: Arial, Helvetica;
}

div.thumbnail, div.imageinfo {
    width: 100%;
    height: auto;
}

div.thumbnail>img {
    margin: auto;
    display: inline;
}

div.imageinfo {
    width: 100%;
    height: 100%;
    padding: 1rem;
}

body {
    background-color: #d1d1d1;
    overflow-y: scroll;
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 240px;
    background-color: darkgrey;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -120px;

    /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
    opacity: 0;
    transition: opacity 1s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltiptext:hover {
    visibility: hidden;
    opacity: 0;
    display: none;
}

.grid {
    background-size: 20px 20px;
    background-image: linear-gradient(to right, skyblue 1px, transparent 1px), linear-gradient(to bottom, skyblue 1px, transparent 1px);
}

path.domain {
    fill: rgba(0, 0, 0, 0);
}

.depthinfo {
    width: 120px;
    background-color: darkgrey;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    top: 10px;
    left: 50%;
    margin-left: -200px;
}

#blockui {
    z-index: 10000;
}

#blockui img {
    max-height: 100%;
    width: auto;
}

.dropdown-menu {
    z-index: 2000;
}

#doc {
    position: fixed;
    width: 800px;
    height: 800px;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    margin: auto;
    padding: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    background-color: white;
    overflow-y: auto;
    z-index: 1999;
}

#cuttings_image {
    position: relative;
}

#cuttings_image img, #cuttings_image>div>svg {
    width: 100%;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
}

#cuttings_image>div>svg {
    opacity: 0.5;
    stroke-width: 0.2%;
}

#cuttings_image>div>svg>path.fallback-lith {
    opacity: 0.7;
}

#cuttings_image svg g circle {
    r: 0.2%;
}

#cuttings_image canvas {
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    margin: auto;
}

typeahead-scrollable-dropdown-menu {
    max-height: 150px;
    overflow-y: auto;
}

.contextmenu {
    position: absolute;
    z-index: 2000;
    width: 200px;
}

/* Loading bar, from https://www.pexels.com/blog/css-only-loaders/ */ 
.loader {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #ddd;
}
.loader:before{
  display: block;
  position: absolute;
  content: "";
  left: -200px;
  width: 200px;
  height: 100%;
  background-color: #2980b9;
  animation: loading 2s linear infinite;
}

@keyframes loading {
    from {left: -200px; width: 30%;}
    50% {width: 30%;}
    70% {width: 70%;}
    80% { left: 50%;}
    95% {left: 120%;}
    to {left: 100%;}
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 6px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */

/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-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;}
}

/* bootstrap overrides */
.list-group-item, .dropdown-item {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-bottom: 0;
    font-size: smaller;
}

.row {
    padding-top: 10px;
}

.treeview {
    width: max-content;
}

/* magnify override */
.magnify {
    display: inherit;
    position: static;
}


.sign-in-container {
    text-align: center;
    position: absolute;
    margin: auto;
    left:0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 450px;
    min-height: 460px;
    height: fit-content;
    padding: 20px;
    padding-top: 30px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 1px 2px 4px #333;
}