@font-face {
    font-family: "Lora";
    src: url('./font/Lora/Lora-VariableFont_wght.ttf');
}

@font-face {
    font-family: "Open Sans";
    src: url('./font/Open_Sans/OpenSans-Regular.ttf');
}

body {
    background-color: #444444;
    padding: 10px;
    font-family: "Open Sans",Helvetica,Arial,sans-serif;
}

h1, h2, h3, h4 {
    font-family: "Lora",Helvetica,Arial,sans-serif;
}

#container {
    display: flex;
    justify-content: space-between;
}

#content {
    position: relative;
    user-select: none;
    overflow: scroll;
}

#infoBox {
    background-color: white;
    padding: 10px;
    overflow: scroll;
    z-index: 1;
}

#toolbar {
    position: sticky;
    left: 0;
    right: 0;
    top: 0;
    height: 50px;
    background-color: gray;
    z-index: 3;
    padding: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
}

#zoomSlider {
    width: 250px;
}

div.page {
    position: relative;
}

@media only screen and (min-width: 600px) {
    #container {
        flex-direction: row;
    }

    #content {
        flex-basis: 60%;
        height: 95vh;
    }

    #infoBox {
        flex-basis: 35%;
        height: 95vh;
    }
}

@media only screen and (max-width: 600px) {
    #container {
        flex-direction: column;
        height: 100vh;
    }

    #content {
        height: 80%;
    }

    #infoBox {
        border-top: solid;
        height: 20%;
    }

    body {
        padding: 0;
        margin: 0;
    }
}

#infoBox a {
    overflow-wrap: break-word;
}

#infoBox table {
    margin-top: 10px;
    width: 100%;
}

#infoBox td:first {
    width: 100px;
}

#infoBox table td, #infoBox table th {
    border: 1px solid #ddd;
    padding: 8px;
}

#infoBox table tr:nth-child(even){background-color: #f2f2f2;}

#infoBox table tr:hover {background-color: #ddd;}

#infoBox table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #bd2d2d;
    color: white;
}

.fieldName {
    margin: 0;
}

div.page img {
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

div.page .hoverBox {
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

.hoverBox {
    background-color: #b1b40048;
}

.hoverBox:hover {
    background-color: #b4000065;
}

.hoverBox.selected {
    background-color: #b40000aa;
}

.hoverBox.selected::before {
    content: '\00d7';
    font-weight: 300;
    font-family: Arial, sans-serif;
    color: #fff;
    position: absolute;
    top: 2px;
    right: 2px;
}

#guidedTourBtn {
    background: #7fb8ee;
    border-radius: 10px;
    border: none;
    margin: 5px;
    padding: 10px;
    font-size: 1em;
    font-weight: light;
    font-family: "Open Sans",Helvetica,Arial,sans-serif;
    cursor: pointer;
    margin-left: auto;
}

.pulse {
    animation: pulse 1.5s 3;
    box-shadow: 0 0 0 0 #5a99d488;
}

#guidedTourBtn:hover {
    animation: none;
}

@keyframes pulse {
    0% {
      transform: scale(1);
    }
    70% {
      transform: scale(1.1);
      box-shadow: 0 0 0 50px #5a99d400;
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 #5a99d400;
    }
}