@import url('https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic,900');

/* ============================================================
   Bootstrap 3 → 5 Compatibility Layer
   Ensures visual parity after migration from BS3 to BS5.
   ============================================================ */

/* BS3 .form-group provided margin-bottom; BS5 dropped this class */
.form-group {
    margin-bottom: 1rem;
}

/* BS3 .form-control had 14px font / 34px height; BS5 uses 16px / larger padding */
.form-control {
    font-size: 14px;
    height: 34px;
    padding: 6px 12px;
}

/* BS3 <pre> had word-wrap:break-word and visible box styling; BS5 drops both */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 9.5px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* BS5 sets box-sizing:border-box globally; BS3 used content-box for images.
   BS5 .row > * also applies gutter padding and max-width to all direct children,
   including the absolutely positioned camera images. Remove those. */
.rtimg {
    box-sizing: content-box;
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
}

/* BS3 .control-label had font-weight:700; BS5 .col-form-label does not */
.col-form-label {
    font-weight: 700;
}

/* BS3 navbar-default matched this look; navbar-light bg-light covers it in BS5,
   but ensure border-bottom matches the old BS3 style */
.navbar-light {
    border-bottom: 1px solid #e7e7e7;
}

/* BS3 .navbar had margin-bottom:20px; BS5 navbar has none by default */
.navbar {
    margin-bottom: 20px;
}

/* BS3 tabs: active state was on <li>, BS5 moves it to <a>.
   Ensure tab pane visibility works with BS5's tab-content behavior */
.tab-pane {
    display: none;
}
.tab-pane.show,
.tab-pane.active {
    display: block;
}

/* BS3 used .fade.in; BS5 uses .fade.show — scoped to tab-pane only
   to avoid overriding .modal-backdrop.fade.show (which needs opacity:0.5) */
.tab-pane.fade {
    opacity: 0;
    transition: opacity .15s linear;
}
.tab-pane.fade.show {
    opacity: 1;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 2px solid #333;
}

#myModal {
	top: 200px;
	outline: none;
	overflow: hidden;
	overflow-y: hidden;
	}	

#myModal2 {
	top: 80px;
	outline: none;
	overflow: hidden;
	overflow-y: hidden;
	}	

#myModalHist {
	position: absolute;
	top: 480px;
	right: 0px;
	bottom: 0px;
	left: 110px;
	z-index: 10040;
	outline: none;
	overflow: hidden;
	overflow-y: hidden;
	}	

#myImage20 {
    filter: contrast(20%);
	}

#myImage40 {
    filter: contrast(40%);
	}

#myImage60 {
    filter: contrast(60%);
	}
	
#myImage80 {
    filter: contrast(80%);
	}

.modal-dialog{
	width:960px;
	max-width:960px;
	height:540px;
	}

/* Remove default BS5 modal-content styling for our custom modals (video/map/image) */
#myModal .modal-content,
#myModal2 .modal-content,
#myModalHistory .modal-content {
	background: transparent;
	border: none;
	box-shadow: none;
	}

.image0 {
	transition: transform ease-in-out 0.5s;
}

.imageflip0 {
	transition: transform ease-in-out 0.5s;
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
	}

.textrotate0 {
	transition: transform ease-in-out 0.5s;
}

.imagerotate0 {
	transition: transform ease-in-out 0.5s;
	z-index:0;
}

.imagefliprotate0 {
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index:0;
}

.textrotate36 {
	-webkit-transform:rotate(36deg);
	-moz-transform: rotate(36deg);
	-ms-transform: rotate(36deg);
	-o-transform: rotate(36deg);
	transform: rotate(36deg);
}

.imagerotate36 {
	-webkit-transform:rotate(36deg);
	-moz-transform: rotate(36deg);
	-ms-transform: rotate(36deg);
	-o-transform: rotate(36deg);
	transform: rotate(36deg);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.imagefliprotate36 {
	-webkit-transform:rotate(36deg);
	-moz-transform: rotate(36deg);
	-ms-transform: rotate(36deg);
	-o-transform: rotate(36deg);
	-webkit-transform: scaleX(-1);
	transform: rotate(36deg) scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.textrotate108 {
	-webkit-transform:rotate(108deg);
	-moz-transform: rotate(108deg);
	-ms-transform: rotate(108deg);
	-o-transform: rotate(108deg);
	transform: rotate(108deg);
 }

.imagerotate108 {
	-webkit-transform:rotate(108deg);
	-moz-transform: rotate(108deg);
	-ms-transform: rotate(108deg);
	-o-transform: rotate(108deg);
	transform: rotate(108deg);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
 }

.imagefliprotate108 {
	-webkit-transform:rotate(108deg);
	-moz-transform: rotate(108deg);
	-ms-transform: rotate(108deg);
	-o-transform: rotate(108deg);
	-webkit-transform: scaleX(-1);
	transform: rotate(108deg) scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
 }

.textrotate180 {
	-webkit-transform:rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
}

.imagerotate180 {
	-webkit-transform:rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.imagefliprotate180 {
	-webkit-transform:rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	-webkit-transform: scaleX(-1);
	transform: rotate(180deg) scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.textrotate252 {
	-webkit-transform:rotate(252deg);
	-moz-transform: rotate(252deg);
	-ms-transform: rotate(252deg);
	-o-transform: rotate(252deg);
	transform: rotate(252deg);
}

.imagerotate252 {
	-webkit-transform:rotate(252deg);
	-moz-transform: rotate(252deg);
	-ms-transform: rotate(252deg);
	-o-transform: rotate(252deg);
	transform: rotate(252deg);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.imagefliprotate252 {
	-webkit-transform:rotate(252deg);
	-moz-transform: rotate(252deg);
	-ms-transform: rotate(252deg);
	-o-transform: rotate(252deg);
	-webkit-transform: scaleX(-1);
	transform: rotate(252deg) scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.textrotate324 {
	-webkit-transform:rotate(324deg);
	-moz-transform: rotate(324deg);
	-ms-transform: rotate(324deg);
	-o-transform: rotate(324deg);
	transform: rotate(324deg);
}

.imagerotate324 {
	-webkit-transform:rotate(324deg);
	-moz-transform: rotate(324deg);
	-ms-transform: rotate(324deg);
	-o-transform: rotate(324deg);
	transform: rotate(324deg);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.imagefliprotate324 {
	-webkit-transform:rotate(324deg);
	-moz-transform: rotate(324deg);
	-ms-transform: rotate(324deg);
	-o-transform: rotate(324deg);
	-webkit-transform: scaleX(-1);
	transform: rotate(324deg) scaleX(-1);
	transition: transform ease-in-out 0.5s;
	z-index: 0;
}

.imagerotate0:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate0:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagerotate36:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate36:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagerotate108:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate108:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagerotate180:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate180:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagerotate252:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate252:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagerotate324:hover {
	transform: scale(1.5);
	z-index:10;
}

.imagefliprotate324:hover {
	transform: scale(1.5);
	z-index:10;
}

.zoom2{
	transition: transform ease-in-out 0.5s;
}

.zoom2:hover {
	transform: scale(2.0);
	position:relative;
	z-index:10;
}

.zoom3{
	transition: transform ease-in-out 0.5s;
}

.zoom3:hover {
	transform: scale(3.0);
	position:relative;
	z-index:10;
}

.zoom4{
	transition: transform ease-in-out 0.5s;
}

.zoom4:hover {
	transform: scale(4.0);
	position:relative;
	z-index:10;
}

body {
    margin:00;
    font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size:17px;
    line-height:24px;
    color:#444;
    background-color:#fff;
}

h1, h2, h3 {
    font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
}

.height-600px {
	height: 600px;
}
	
.font-11px {
  font-size: 11px;
}

.font-12px {
  font-size: 12px;
}

.font-13px {
  font-size: 13px;
}

.font-14px {
  font-size: 14px;
}

.nav{
    font-size: 16px;
}

 .border-top {
	border-top: 2px solid #ddd;
	padding: 20px;
}

 .border-bottom {
	border-bottom: 2px solid #ddd;
	padding: 20px;
}

 .align-middle {
	display: block;
	align-items: center;
	text-align: center;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

.form-customise {
    padding-left: 20px;
    padding-top: 20px;
}

.tab-content {
	padding-left: 15px;
	padding-right: 15px;
    padding-top: 25px;
    padding-bottom: 5px;
    background-color: #f0f0f0;
}

.checkbox {
    margin-left: 20px;
}

.padding10 {
    padding: 10px;
}

.padding20 {
    padding: 20px;
}

.footer {
    border-top: 1px solid #e7e7e7;
    background-color: #f8f8f8;
    margin-top: 40px;
}

.footer .container {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    line-height: 18px;

}

.textbox {
    width: 90px;
    padding: 2px;
    margin: 4px;
    color: #444;
}

#legend {
    position: relative;
    height: 30px;
    margin-top: 10px;
}

#legendGradient {
    width: 100%;
    height: 15px;
    border: 1px solid black;
}

/* Responsive scaling for live view container */
#liveview-container {
    transform-origin: top left;
}

@media (max-width: 1100px) {
    #liveview-container {
        transform: scale(0.6);
        height: 648px !important;
    }
}

@media (max-width: 800px) {
    #liveview-container {
        transform: scale(0.4);
        height: 432px !important;
    }
}

@media (max-width: 550px) {
    #liveview-container {
        transform: scale(0.28);
        height: 302px !important;
    }
}
