* {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

textarea, input, select, button {
    outline: none;
}

button::-moz-focus-inner, input::-moz-focus-inner, input[type="file"] > input[type="button"]::-moz-focus-inner {
    border: 1px dotted transparent;
    padding: 0 2px;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

@media (max-width: 2560px) {
    html {
        font-size: 32px;
    }
}

@media (max-width: 1920px) {
    html {
        font-size: 30px;
    }
}

@media (max-width: 1680px) {
    html {
        font-size: 28px;
    }
}

@media (max-width: 1280px) {
    html {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 24px;
    }
}

@media (max-width: 960px) {
    html {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 15px;
    }
}

a:link, a:visited {
    font-family: arial, helvetica, sans-serif;
    color: #444;
    text-decoration: none;
}

a:hover, a:active {
    font-family: arial, helvetica, sans-serif;
    color: #153457;
}

#shroud {
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 9;
    display: none;
}

.window {
    position: fixed;
    z-index: 10;
    background-color: #FFF;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.window .title {
    position: relative;
    padding: 10px;
    background-color: #02245f;
    color: #FFF;
    width: 100%;
}

.window .title .text {
    padding-right: 20px;
}

.window .close {
    position: absolute;
    top: 50%;
    right: 3%;
    -ms-transform: translate(0, -44%);
    -webkit-transform: translate(0, -44%);
    -moz-transform: translate(0, -44%);
    transform: translate(0, -44%);
    color: #F7F7F7;
    cursor: pointer;
    font-weight: bold;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0.8;
}

.window .close:hover {
    opacity: 1.0;
}

.window .close i {
    font-size: 150%;
}

.window .body {
    float: left;
    width: 100%;
    padding: 10px;
    background-color: #FFF;
    overflow: hidden;
}

.window .row {
    width: 100%;
    float: left;
    padding-bottom: 2px;
}

.window .row input, .window .row textarea, .window .row select {
    width: 100%;
    float: left;
}

.window .button-row {
    width: 100%;
    float: left;
    padding: 10px;
    background-color: #D4D4D4;
}

#messages {
    position: fixed;
    left: 0;
    top: 10px;
    width: 100%;
    z-index: 9999;
}

#messages .message {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    color: #FFF;
    z-index: 10;
    position: relative;
    margin-bottom: 5px;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
}

#messages .message.positive {
    background-color: #2ECC71;
}

#messages .message.negative {
    background-color: #E74C3C;
}

#messages .message.wait {
    background-color: #4AA3DF;
    box-shadow: 0 1px 3px 0 #AAA;
    -webkit-animation: pulsate 1.7s ease-out;
    -webkit-animation-iteration-count: infinite;
    -moz-animation: pulsate 1.7s ease-out;
    -moz-animation-iteration-count: infinite;
    animation: pulsate 1.7s ease-out;
    animation-iteration-count: infinite;
    opacity: 0.4;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.4;
    }
}

@-moz-keyframes pulsate {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.4;
    }
}

@keyframes pulsate {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.4;
    }
}

#messages .message .close {
    position: absolute;
    top: 50%;
    right: 3%;
    -ms-transform: translate(0, -44%);
    -webkit-transform: translate(0, -44%);
    -moz-transform: translate(0, -44%);
    transform: translate(0, -44%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    opacity: 0.8;
}

#messages .message .close:hover {
    opacity: 1.0;
}

#messages .message .close i {
    font-size: 150%;
}

input, textarea, select {
    border: 1px solid transparent;
    background-color: #FFF;
    padding: 0.4em;
    opacity: 0.8;
    font-size: 110%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 0;
    margin: 0;
    -webkit-box-shadow: 0 0 0 0 transparent;
}

input[type=checkbox], input[type=radio] {
    width: auto;
    padding: 0;
    margin-top: 2px;
    margin-left: 1px;
    margin-right: 1px;
}

input:focus, textarea:focus, select:focus {
    border: 1px solid #02245f;
    color: #111;
    opacity: 1.0;
}

button {
    border: 1px solid #02245f;
    border-top: 1px solid #02245f;
    border-bottom: 2px solid #5D1115;
    background-color: #02245f;
    padding: 0.5em;
    color: #FFF;
    cursor: pointer;
    border-radius: 0.25em;
    font-size: 100%;
}

button:active {
    border: 1px solid #02245f;
    border-top: 1px solid #5D1115;
    border-bottom: 2px solid #02245f;
    background-color: #02245f;
    padding-top: 0.6em;
    padding-bottom: 0.4em;
}

button:disabled {
    opacity: 0.5;
}

button.white {
    border: 1px solid #FFF;
    border-top: 2px solid #FFF;
    border-bottom: 1px solid #5D1115;
    background-color: #FFF;
    padding: 0.7em;
    color: #02245f;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0.3em;
    font-size: 100%;
}

button.white:active {
    border: 1px solid #FFF;
    border-top: 2px solid #5D1115;
    border-bottom: 1px solid #FFF;
    background-color: #FFF;
    padding-top: 0.9em;
    padding-bottom: 0.5em;
}

.center {
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.xcenter {
    left: 50%;
    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
}

.ycenter {
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}

.unslctble {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.login input, .login button {
    padding: 7px;
    width: 100%;
    float: left;
}

.login button:active {
    padding: 7px;
    padding-top: 8px;
    padding-bottom: 6px;
}

.login .formtop {
    padding-top: 10px;
    padding-bottom: 5px;
    font-weight: bold;
}

.login .body {
    padding: 15px;
}

.login .body div {
    width: 100%;
    float: left;
}

#logo {
    position: relative;
    float: left;
    width: 100%;
    text-align: center;
    background-color: #02245f;
    padding: 5%;
    padding-top: 10%;
    padding-bottom: 10%;
}

#logo.logged-in {
    padding-top: 5%;
    padding-bottom: 4%;
    text-align: left;
}

#logo img {
    max-width: 80%;
}

#logo.logged-in img {
    max-width: 60%;
}

.logo-text {
    font-size: 150%;
    padding-bottom: 1em;
    text-align: center;
    color: #02245f;
}

#logo .obs-count-wrapper {
    position: absolute;
    right: 0.4em;
    color: #FFF;
    width: 6.4em;
    cursor: pointer;
    display: none;
}

#logo .obs-count-wrapper:hover {
    opacity: 1.0;
}

#logo .obs-count-wrapper .slice {
    float: left;
    background: #FFF;
    border-radius: 5px;
    padding: 0.2em;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    text-align: center;
    font-weight: bold;
    width: 3em;
    line-height: 1;
}

#logo .obs-count-wrapper .slice.t1 {
    margin-bottom: 0.2em;
    background-color: #3E9DDD;
}

#logo .obs-count-wrapper .slice.t2 {
    margin-left: 0.2em;
    margin-bottom: 0.2em;
    background-color: #F1C40F;
}

#logo .obs-count-wrapper .slice.t3 {
    background-color: #32CE74;
}

#logo .obs-count-wrapper .slice.sum {
    margin-left: 0.2em;
    color: #222;
}

#logo .obs-count-wrapper .count-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/ajax-loader.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
    background-color: #FFF;
    border-radius: 5px;
    display: none;
}

#login-phonenumber {
    color: #777;
    font-size: 120%;
    text-align: center;
}

.wrapper {
    float: left;
    width: 100%;
    padding: 5%;
    padding-top: 0;
}

.special {
    display: none;
}

.text {
    float: left;
    width: 100%;
    font-size: 120%;
}

.text.top {
    padding-top: 3%;
    padding-bottom: 1%;
}

.images-wrapper {
    position: relative;
    background-color: #E8E8E8;
    text-align: center;
}

.safety-obs-wrapper {
    border: 1px solid #02245f;
    border-top: 0 solid #02245f;
}

.safety-obs-wrapper:first-child {
    border-top: 1px solid #02245f;
}

.select-list {
    position: absolute;
    border-left: 1px solid #02245f;
    border-right: 1px solid #02245f;
    border-bottom: 1px solid #02245f;
    width: 90%;
    background-color: #FFF;
    z-index: 2;
    display: none;
    margin-left: 0;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
}

.select-list  .item {
    float: left;
    width: 100%;
    padding: 1em;
    border-top: 1px solid #CCC;
    cursor: pointer;
}

.select-list  .item:hover {
    background-color: #F7F7F7;
}

.select-list  .item .item-top {
    float: left;
    width: 100%;
    padding-bottom: 0.2em;
}

.select-list  .item .item-bottom {
    float: left;
    width: 100%;
    padding-top: 0.2em;
    font-size: 90%;
    color: #444;
}

#bottom .button {
    float: left;
    width: 30%;
    text-align: center;
    background-color: #02245f;
    color: #FFF;
    padding: 3%;
    padding-top: 5%;
    border-radius: 0.5em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#bottom .button:active {
    -webkit-transform: scale(0.9, 0.9);
    transform: scale(0.9, 0.9);
}

#bottom .button i {
    font-size: 150%;
}

.clear-button {
    position: absolute;
    top: 15%;
    right: 1%;
    cursor: pointer;
    display: none;
    z-index: 1;
}

.clear-button i {
    font-size: 150%;
}

.loader {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
}

.img-wrapper .image-title {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #02245f;
    color: #FFF;
    padding: 0.3em;
    padding-bottom: 0.25em;
    font-size: 70%;
    opacity: 0.8;
}

.input {
    position: relative;
    float: left;
    width: 100%;
    font-size: 100%;
    border: 1px solid #02245f;
}

.input.white {
    border: 1px solid #FFF;
}

.input.white input:active {
    border: 1px solid #FFF;
}

.input label {
    position: relative;
    float: left;
    width: 100%;
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    font-size: 105%;
    border-bottom: 1px solid #CCC;
}

.input label:active {
    background-color: #ECECEC;
}

.buttonlike {
    position: relative;
    float: left;
    width: 100%;
    padding: 1.2%;
    background-color: #02245f;
    color: #FFF;
    font-size: 120%;
    text-align: center;
    cursor: pointer;
    border-radius: 0 0 0.2em 0.2em;
}

#reason-list {
    background-color: #FFF;
    overflow-y: hidden;
}

#reason-list .red-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    box-shadow: 0 0 1px 1px transparent;
    z-index: 5;
}

#reason-list.more .red-shadow {
    box-shadow: 0 0 10px 10px #960F11;
    z-index: 1;
}

.select-list {
    position: absolute;
    border-left: 1px solid #02245f;
    border-right: 1px solid #02245f;
    border-bottom: 1px solid #02245f;
    width: 90%;
    background-color: #FFF;
    z-index: 2;
    display: none;
    margin-left: 0;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
}

.select-list  .item {
    float: left;
    width: 100%;
    padding: 3%;
    border-top: 1px solid #CCC;
    cursor: pointer;
}

.select-list  .item:hover {
    background-color: #F7F7F7;
}

#bottom .button {
    float: left;
    width: 30%;
    text-align: center;
    background-color: #02245f;
    color: #FFF;
    padding: 3%;
    padding-top: 5%;
    border-radius: 0.5em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#bottom .button:active {
    -webkit-transform: scale(0.9, 0.9);
    transform: scale(0.9, 0.9);
}

#bottom .button i {
    font-size: 150%;
}

.status {
    width: 100%;
    height: 4em;
    border-radius: 8px;
    background-image:url('../img/neutral.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 90%;
    background-color: #27AE60;
    -webkit-transition: background-color 0.5s, background-image 0.2s, opacity 0.2s;
    transition: background-color 0.5s, background-image 0.2s, opacity 0.2s;
    opacity: 0.5;
    cursor: pointer;
}

.status.pos {
    background-image: url('../img/positive.svg');
    background-color: #27AE60;
    opacity: 1.0;
    -webkit-transition: background-color 1.0s, background-image 0.5s, opacity 0.5s;
    transition: background-color 1.0s, background-image 0.5s, opacity 0.5s;
}

.positive {
    display: none;
}

.safety-take-picture, .safety-picture {
    float: left;
    width: 50%;
    cursor: pointer;
}

.safety-take-picture:active, .safety-picture:active {
    -webkit-transform: scale(0.95, 0.95);
    transform: scale(0.95, 0.95);
    opacity: 0.9;
}

.safety-take-picture {
    border-right: 1px solid #000;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

.safety-take-picture  .icon-camera {
    float: left;
    padding: 10%;
    width: 60%;
    margin-left: 20%;
    display: block;
}

.safety-picture .icon-gallery {
    float: right;
    padding: 10%;
    width: 60%;
    margin-right: 20%;
    display: block;
}

.display {
    width: 100%;
    padding: 0px;
    display: block;
}

.image-loading {
    float: left;
    width: 100%;
    color: #FFF;
    text-align: left;
    padding: 0.5em;
    background-color: #02245f;
}

.top-title {
    font-size: 120%;
    font-weight: bold;
    text-align: center;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.reason-row {
    display: none;
}

#obs-list-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background-color: #FFF;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
    overflow: hidden;
    opacity: 0.0;
}

#obs-list-wrapper .title {
    float: left;
    width: 100%;
    padding: 0.7em;
    font-size: 150%;
    /*border-bottom: 1px solid #02245f;*/
}

#obs-list-wrapper .list {
    position: absolute;
    top: 5em;
    left: 0;
    width: 100%;
    height: calc(100% - 4em);
    overflow-y: scroll;
    padding: 0.5em;
    padding-top: 0;
}

#obs-list-wrapper .tclose {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5em;
    font-size: 200%;
    color: #02245f;
    cursor: pointer;
    opacity: 0.9;
}

#obs-list-wrapper .tclose:hover {
    opacity: 1.0;
}

.gloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 3em;
    height: 3em;
    background-image: url('../img/ajax-loader.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
    background-color: #FFF;
    border-radius: 5px;
    display: none;
}

.l-obs-header {
    float: left;
    width: 100%;
    border-bottom: 1px solid #CCC;
    padding: 0.5em;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    font-weight: bold;
    margin-top: 0.5em;
}

.l-obs-header:first-child {
    margin-top: 0;
}

.l-obs-row {
    float: left;
    width: 100%;
    border-top: 1px solid #CCC;
    padding: 0.5em;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    cursor: pointer;
}

.l-obs-row:hover {
    background-color: #EEE;
}

.l-obs-row .l-status {
    float: left;
    margin-right: 0.3em;
}

.l-obs-row .l-status.created {
    color: #3E9DDD;
}

.l-obs-row .l-status.fix_started {
    color: #F1C40F;
}

.l-obs-row .l-status.fixed {
    color: #32CE74;
}

.images-wrapper .image-title {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #02245f;
    color: #FFF;
    padding: 0.3em;
    padding-bottom: 0.25em;
    font-size: 70%;
    opacity: 0.8;
}

.start-fix {
    display: none;
}

.fix-ready{
    display: none;
}

.close-this {
    display: none;
    font-size: 80%;
}

#loading-location {
    position: absolute;
    top: 0;
    right: 0;
    width: 3em;
    height: 100%;
    background-image: url('../img/ajax-loader.svg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right;
    display: none;
    z-index: 2;
}

#new-location {
    position: absolute;
    right: 0.2em;
    font-size: 180%;
    color: #02245f;
    z-index: 2;
    cursor: pointer;
    display: none;
}

.original-description {
    float: left;
    width: 100%;
    padding: 0.5em;
    background-color: #EEE;
    font-size: 90%;
    margin-top: 0.5em;
    white-space: pre-wrap
}

.fix-pictures {
    float: left;
    width: 100%;
    margin-top: 1em;
    padding-bottom: 1%;
    border-bottom: 1px solid #02245f;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider, .closecall-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before, .closecall-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.closecall-toggle {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding-top: 10px;
}
.closecall-toggle label{
    padding:3px;
    margin: 0px auto;
    min-width:48%;
    text-align:center;
    padding:10px;
    font-size:80%;
    user-select: none;
}
label[data-type="turva"]{
    border: 1px solid #02245f;
}
label[data-type="closecall"]{
    border: 1px solid #8B0000;
}
.checked[data-type="turva"] {
    background-color: #02245f;
    color: #fff;
    border: 1px solid #02245f;
}
.checked[data-type="closecall"] {
    background-color: #8B0000;
    color: #fff;
    border: 1px solid #8B0000;
}
#titledescription {
    font-size:100%;
}
#safety-obs-description {
    height:5em;
}
