html, body { 
    margin: 0; 
    height: 100%;
}

body {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action:none;
}

a {
    color: cornflowerblue;
}

html, body, td, th {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    background-color: #000;
}

.loader {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.loader .bar {
    position: absolute;
    margin: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 50%;
    height: 0.3in;
    background-color: #999;
    margin-left: 25%;
}

.loader .bar.error {
    background-color: crimson;
}

.loader .bar .progress {
    background-color: darkcyan;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
}

.loader .bar .label {
    position: absolute;
    margin: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: white;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.8em;
}

.photos {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}


.photos img.photo {
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    width: auto;
    height: auto;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 44px;
    z-index: 5;
}

.thumbs img.photo  {
    position: absolute;
    bottom: 0;
    border: 1px solid black;
    width: 150px;
    height: 100px;
    transform-origin: 0 0;
}

img.preload {
    position: absolute;
    left: -50000px !important;
}

div.timer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    z-index: 65;
    border-right: 1px solid #111;
    background-color: #666;
}

div.timer .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: cornflowerblue;
}

div.timer .label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: black;
    font-weight: bold;
    display: none;
}

div.info {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 67;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    overflow: hidden;
}

div.info a {
    font-size: 12px;
}

div.title {
    font-size: 20px;
    font-weight: bold;
}

div.subtitle {
    font-size: 14px;
    padding-bottom: 1px;
}

img.agent {
    position: absolute;
    right: 10px;
    top: 10px;
    float: left;
    max-width: 80px;
    max-height: 80px;
    margin-right: 5px;
    z-index: 65;
}

img.agent-logo {
    position: absolute;
    right: 10px;
    top: 10px;
    float: left;
    max-width: 80px;
    max-height: 80px;
    margin-right: 5px;
    z-index: 66;
}

div.tools {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    border-top: 1px solid black;
    background-color: #111;
    z-index: 60;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}

div.btn {
    background-color: #333;
    border-right: 1px solid black;
    border-left: 1px solid black;
    display: inline-block;
    width: 30px;
    height: 100%;
    color: #999;
    font-size: 14px;
    line-height: 44px;
    padding-left: 5px;
    padding-right: 5px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

div.btn i {
    width: 30px;
    height: 30px;
}

div.btn.on {
    color: burlywood;
}

div.btn.progress {
    width: auto;
    border-left: none !important;
    padding-left: 0;
    padding-right: 10px;
}

div.btn.pause {
    border-right: none !important;
    padding-right: 0;
}

div.photodesc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 130px;
    color: white;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0,0,0,0.15);
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    z-index: 50;
}

div.tourdetails {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 44px;
    background-color: black;
    z-index: 99;
    padding-top: 100px;
    color:white;
    padding-left: 20px;
    padding-top: 10px;
    font-weight: normal;
    overflow: scroll;
}

div.tourdetails h3 {
    font-weight: bold;
    font-size: 18px;
    margin: 0;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 5px;
}

div.agentinfo {
    color: white;
    font-size: 14px;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    bottom: 0;
}

div.agentinfo img.photo {
    float: left;
    max-height: 100px;
    max-width: 80px;
    padding-right: 5px;
}

div.agentinfo img.logo {
    max-height: 100px;
    max-width: 150px;
    padding-right: 5px;
}

div.presentedby {
    margin-top: 5px;
}

div.contact a {
    margin-right: 10px;
}

@media (orientation: landscape) {
    div.agentinfo div.listing {
        position: absolute;
        right: 0;
        top: 0;
        width: 56%;
    }
    div.agentinfo div.agent {
        max-width: 42%;
    }
  }