/* colors:
    Blue: #00B0FF
    Green: #00E676
    Yellow: #FFCA28
    Red: #EF5350
    Dark Grey: #424242
*/

@font-face {
    font-family: system;
    font-style: normal;
    font-weight: 300;
    src: local(".SFNSText-Light"), local(".HelveticaNeueDeskInterface-Light"), local(".LucidaGrandeUI"), local("Ubuntu Light"), local("Segoe UI Light"), local("Roboto-Light"), local("DroidSans"), local("Tahoma");
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: system;
    margin: 0;
    padding: 1em;
}
h1, h2, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #E1E1E1;
}

input {
    height: 1em;
}

a.button,
button {
    color: white;
    display: inline-block;
    margin: 0;
    text-align: center;
    line-height: 2rem;
    min-width: 2rem;
    height: 2rem;
    font-size: 1rem;
    padding: 0 8px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    background-color: #00B0FF;
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}
a.button:hover,
a.button:focus,
button:hover,
button:focus {
    border-color: #424242;
    outline: 0;
}

.online,
a.button.yes,
button.yes {
    background-color: #00E676;
}
.offline,
a.button.no,
button.no {
    background-color: #EF5350;
}

select {
    line-height: 2rem;
    height: 2rem;
    font-size: 1rem;
    padding: 0 8px;
}

.confirm {
    display: inline-block;
    padding: 1rem;
    background: #F1F1F1;
    border: 1px solid #E1E1E1;
    border-radius: 4px; 
}

.confirm .no {
    float: right;
}

.toggle label {
    cursor: pointer;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle .content {
    display: none;
}

.toggle input:checked ~ .content {
    display: block;
}

.toggle label::before {
    content: '+';
    display: block;
    width: 1rem;
    font-weight: bold;
    text-align: center;
    float: left;
    padding-top: .1rem;
}

.toggle input:checked + label::before {
    content: '–';
}

.last_contact {
    font-family: monospace;
    font-size: .9rem;
}

.mapwrapper {
    display: inline-block;
    width: 650px;
    height: 650px;
    overflow: hidden;
    background-color: #424242;
    margin-right: 2rem;
}

.mapwrapper p {
    text-align: center;
    color: white;
}

.statuswrapper {
    display: inline-block;
    vertical-align: top;
}

div.map {
    width: 2048px;
    height: 2048px;
    background-color: #00B0FF;
    cursor: hand;
}

div.map img {
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    position: absolute;
    top: 0;
    left: 0;
    width: 2048px;
    height: 2048px;
}
    
div.map canvas {
    position: absolute;
    top: 0;
    left: 0;
}

pre {
    background-color: #E1E1E1;
    padding: 20px;
    border-radius: 5px;
    font-family: monospace;
}

#shortpre:checked ~ label pre {
    max-height: 30px;
    overflow: hidden;
}

#shortpre ~ label::before{
    display: none;
}

#shortpre ~ label pre {
    cursor: pointer;
    margin-bottom: 0;
}

#shortpre:checked ~ label::after {
    content: "∨ ";
    display: block;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, rgba(225,225,225,0) 0%,rgba(225,225,225,1) 100%);
    transform: translateY(-2em);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    text-align: right;
    font-size: .7em;
    font-weight: lighter;
    color: #666;
}

.loader {
    display: inline-block;
    vertical-align: bottom;
    border: 8px solid #F1F1F1;
    border-top: 8px solid #00B0FF;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}