html, body {
    margin: 0;
    padding: 0;

}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #eee;
}

form {
    display: inline;
}

select {
    font-family: inherit;
    font-size: inherit;
}

textarea {
    font-family: inherit;
}

input[type=submit] {
    font-size: inherit;
    font-family: inherit;
}

input[type=text], input[type=password], input[type=url] {
    font-family: inherit;
    font-size: inherit;
    margin: 5px 0;
    box-sizing: border-box;
}

textarea {
    margin: 5px 0;
    font-size: inherit;
    box-sizing: border-box;
}

table {
    border-collapse: collapse;
    width: 97.5%;
    margin: 0 1.25%;
    border: 1px solid black;

}

td, th {
    padding: 5px;
}

th {
    border-bottom: 2px solid black;
    position: sticky;
    top: 0;
    background-color: white;
}

tr:nth-child(even) {
    background-color: #ddd;
}

a {
    color: inherit;
    text-decoration: underline;
}

.header {
    background-color: #333;
}
.header img {
    width: 100px;
    padding: 5px;
    margin-left: 2%;
}
.header div {
    color: white;
    font-size: 150%;
    margin: 24px 2%;
    text-transform: lowercase;
}

.header a {
    color: inherit;
    text-decoration: none;
}
.header a.active, .header a:hover {
    text-decoration: underline;
}

.narrow-body {
    max-width: 90%;
    margin: 0 5%;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.map-view {
    overflow: hidden;
    height: 700px;
    width: 100%;
    position: relative;
}
.map-view img {
     width: 2000px;
     left: 325px;
     top: 0;
     position: relative;
}
.map-view .tooltips {
    position: absolute;
    left:0;
    top:0; 
    right:0;
    bottom: 0;
}

.tooltip {
    display: block;
    font-size: 1.1em;
    width: 200px;
    border: 2px solid #333;
    position: absolute;
    padding: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
}
.tooltip h4 {
    margin: 0;
    text-align: center;
    background-color: #333;
    color: white;
    position: relative;
    left: -10px;
    top: 0;
    margin-top: -10px;
    width: calc(100% + 20px);
    display: block;
    padding: 5px 0;
    margin-bottom: 5px;
}
.tooltip .glyphicon-bell {
    vertical-align: -5px;
}

.dashboard-module-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-module {
    background-color: white;
    width: calc(33% - 10px);
    display: inline-block;
    margin: 5px;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    box-sizing: border-box;
    padding: 5px;
    overflow: hidden;
}

.dashboard-module.camera {
    background-color: #555;
}

.dashboard-module h2 {
    text-align: center;
    margin: 0;
    left:-5px;
    width: calc(100% + 10px);
    display: block;
    top: -5px;
    position: relative;
    background-color: #333;
    color: white;
    padding: 7px 0;
    height: 50px;
    box-sizing: border-box;
}

.dashboard-module h4 {
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.dashboard-module .fault-list {
    height: calc(100% - 50px);
    overflow: auto;
}

.fault-list-update-timer {
    position: absolute;
    right: 5px;
    top: 13px;
    color: white;
}

video-stream, video {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.charts > .chart:target ~ .chart:last-child, .charts > .chart {
    display: none;
}
.charts > :last-child, .charts > .chart:target {
    display: block;
}


.replay-module-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.replay-module {
    background-color: white;
    width: calc(50% - 10px);
    display: inline-block;
    margin: 5px;
    aspect-ratio: 16/9;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.flash {
    border-width: 1px;
    border-style: solid;
    padding: 5px;
    margin: 5px;
}

.flash.info {
    background-color: #bdd6ff;
    border-color: #4a8fff;
}
.flash.warning {
    background-color: #f0d695;
    border-color: #fab402;
}
.flash.error {
    background-color: #ffadad;
    border-color: #ff4a4a;
}
