﻿#mapid {
    height: 100%;
}

/* Optional: Makes the sample page fill the window. */
/*html,
        body {
            height: 100%;
            margin: 0;
            padding: 0;
        }*/

body {
    padding: 10px;
    margin: 0;
}


html, body, #map {
    height: 100%;
    width: 100vw;
}

.advert-layer {
    display: none;
}

.advert-layer-checked {
    display: inherit;
}

#tbl-layers{
    margin: 5px;
    font-size: 20px;
}
    #tbl-layers div {
        margin: 12px 0px;
    }
    #tbl-layers label {
        margin-left: 22px;
    }

    #tbl-layers input[type="checkbox"] {
        width: 25px;
        height: 25px;
    }


/*.collapse-div {
    cursor: pointer;
}

.collapse-btn {
    cursor: pointer;
    float: right;
    margin-right: 5px;
    margin-left: 5px;
    background-color: #ddd;
    width: 16px;
    text-align: center;
}
*/

.marker {
    width: 30px;
    height: 30px;
}

.tbl-hackLevel svg {
    width: 40px;
    height: 40px;
}

.hackLevel-1 svg:hover .picto {
    fill: #9F9;
}
.hackLevel-1.svg-selected svg .picto {
    /*stroke: #5F5;*/
    fill: green;
}

.hackLevel-2 svg:hover .picto {
    fill: #ffda74;
}
.hackLevel-2.svg-selected svg .picto {
    /*stroke: red;*/
    fill: orange;
}

.hackLevel-3 svg:hover .picto {
    fill: #FBB;
}
.hackLevel-3.svg-selected svg .picto {
    /*stroke: red;*/
    fill: red;
}

.tbl-hackProperties svg {
    width: 40px;
    height: 40px;
    stroke: #666;
    fill: #666;
}

    .tbl-hackProperties svg:hover .picto {
        stroke: #7ba3e2;
        fill: #cde1ff;
    }

    .tbl-hackProperties .svg-selected svg .picto {
        stroke: #004cc3;
        fill: #81b2ff;
    }
    .hackProperties-isTwisted.svg-selected svg .picto {
        fill: #004cc3;
        stroke-width: 2px;
    }



.svg-selected svg .invert-stroke {
    stroke: #fff;
}
.svg-selected svg .invert-fill {
    fill: #fff;
}

.tbl-hackTool {
    width: 100%;
    /*text-align: center;*/
    margin-top: 10px;
}

.tbl-hackLevel {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.tbl-hackProperties{
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.div-hackComment {
    margin-top: 10px;
}

.popup-buttons {
    margin-top: 10px;
}

#tbl-actual-values {
    display: none;
}

.advert-popup-container {
    width: 200px;
}

.advert-readonly {
    text-align: center;
}

.advert-readonly table {
    margin-left: auto;
    margin-right: auto;
}

.advert-readonly table td {
    padding-left: 10px;
    padding-right: 10px;
}


.hackcomment-readonly {
    margin-top: 5px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}
.hackcomment-readonly .hack-date{
    color: #bbb;
    margin-top: 10px;
    /*text-align: right;*/
}

.readonly-buttons-container {
    text-align: right;
    margin-top: 10px;
}

.createutc {
    color: #bbb;
    text-align: left;
    margin-top: 5px;
}

.advert-type-btn {
    border: none;
    background-color: transparent;
    padding: 0px 12px;
}

    .advert-type-btn .svg-advert-filler {
        fill: #ffcd0045 !important;
    }

.form-step1 {
    /*height: 324px;*/
    overflow: auto;
}

.form-step1 div {
    display: inline-block;
    text-align: center;
    width: 60px;
    vertical-align: top;
    margin: 0px;
    padding: 5px;
    border: solid 0px #000;

}

    .form-step1 .svg-advert-filler {
        fill: #ffcd0045 !important;
    }

        .form-step1 .advert-icon:hover .svg-advert-filler {
            fill: #ffcd00a3 !important;
        }

.selected-advert-type {
    width: 40px;
    display: inline-block;
    vertical-align: middle;
}


.hack-tool-btn {
    border: none;
    background-color: transparent;
    padding: 0px 12px;
}

.form-step-hackTools {
}

.form-step-hackTools .tools-list {
    height: 281px;
    overflow: auto;
    margin-bottom: 10px;
}

    .form-step-hackTools .tools-list div {
        display: inline-block;
        text-align: center;
        width: 60px;
        vertical-align: top;
        margin: 0px;
        padding: 5px;
        border: solid 0px #000;
    }

    .form-step-hackTools .svg-selected .selection-dark {
        fill: #1f74e6 !important;
        stroke: #1f74e6 !important;
    }
    .form-step-hackTools .svg-selected .selection-light {
        fill: #bbd8ff !important;
        stroke: #1f74e6 !important;
    }

    /*.form-step-hackTools svg {
        width: 40px;
        height: 40px;
    }*/

.selected-hack-tools{
    display: inline-block;
}
    .selected-hack-tools svg {
            width: 28px;
            vertical-align: middle;
    }
        .selected-hack-tools .nb-tools-1 svg {
            width: 40px;
        }
        .selected-hack-tools .nb-tools-2 svg {
            width: 35px;
        }


.image-file-hidden {
    width: 0px;
    height: 0px;
    overflow: hidden;
}

.hack-tool {
}


.advert-cluster {
    color: #FFF;
    font-weight: bold;
}

.advert-cluster div {
    width: 34px !important;
    height: 34px !important;
    background-color: red;
    text-align: center;
    font-size: 12px;
    padding-top: 7px;
    border-radius: 17px;
    border: solid 2px black;
}



.advert-type-marker {
    width: 40px !important;
    height: 40px !important;
}



.hack-level-0 {
    z-index: 1000 !important;
}
.hack-level-1 {
    z-index: 1300 !important;
}
.hack-level-2 {
    z-index: 1200 !important;
    color: #000;
}
.hack-level-3 {
    z-index: 1100 !important;
}
.targeted {
    z-index: 1400 !important;
    color: #000;
}
.hacked {
    z-index: 1500 !important;
    color: #000;
}


.hack-level-0 .svg-advert-filler {
    fill: #e042ff !important;
}
.hack-level-1 .svg-advert-filler {
    fill: green !important;
}
.hack-level-2 .svg-advert-filler {
    fill: orange !important;
}
.hack-level-3 .svg-advert-filler {
    fill: red !important;
}
.hacked .svg-advert-filler {
    fill: #eee !important;
}
.targeted .svg-advert-filler {
    fill: #00F !important;
}

.hack-level-0 div {
    background-color: #e042ff;
}
.hack-level-1 div {
    background-color: green;
}
.hack-level-2 div {
    background-color: orange;
}
.hack-level-3 div {
    background-color: red;
}
.hacked div {
    background-color: #eee;
}
.targeted div {
    background-color: #00F;
}

.tiny-hack {
    margin: 1px;
    /*border: solid 1px #000;*/
    display: inline-block;
}
.hack-icons div {
    width: 8px;
    height: 8px;
}

.hack-tools-readonly {
    text-align: center;
}
    .hack-tools-readonly div {
        width: 60px;
        margin: 0px 3px 0px 3px;
        display: -webkit-inline-box;
    }
    .hack-tools-readonly svg {
        width: 40px;
        display: -webkit-inline-box;
    }
    .hack-tools-readonly span {
        display: -webkit-inline-box;
    }


.white-page .svg-white-line {
    stroke-width: 5px !important;
}

svg.advert-icon .la {
    stroke: rgb(0, 0, 0);
    stroke-linecap: round;
    fill: #fff;
}

svg.advert-icon .l-thin {
    stroke-width: 12px;
}
svg.advert-icon .l-thick {
    stroke-width: 16px;
}

.streetview-btn {
    float: right;
    margin-top: 5px;
}

.camera-button {
    float: left;
}
.camera-image {
    height: 30px;
    width: 30px;
}
.camera-loader {
    display: none;
    width: 30px;
    float: left;
}
.camera-green-tick {
    display: none;
    width: 30px;
    float: left;
}
.camera-error {
    display: none;
    width: 30px;
    float: left;
}

.btn-delete-advert i {
    color: red;
}

.advert-tags-readonly {
    font-weight: bold;
    font-size: 16px;
}

.div-advertTags {
    margin-top: 10px;
}



/* ################################
   ##    Campaign left bar
   ################################ */
#campaign-status {
    margin-top: 10px;
    margin-bottom: 10px;
}
#campaign-status div {
    vertical-align: middle;
}
#campaign-not-started {
    color: #bb0000;
}

.target-stats-summary {
    font-size: 20px;
    margin: 20px 0px;
}

    .target-stats-summary .progress {
        margin-top: 10px;
    }

#campaign-current-team {
    margin-top: 10px;
}

a.campaign-tab svg {
    vertical-align: text-bottom;
    fill: #007bff;
}
a.campaign-tab:hover svg {
    fill: #0056B3;
}
a.campaign-tab.active svg {
    fill: #495057 !important;
}


/* ################################
   ##    TUTO
   ################################ */

.carousel-control-prev-icon {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c593d8' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c593d8' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}


/* ################################
   ##    Custom controls (MENU)
   ################################ */
#respiro-controls {
    width: 100%;
    position: fixed;
    bottom: 0px;
    z-index: 1100;
    pointer-events: none;
    padding: 0px;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #respiro-controls div {
        pointer-events: auto;
    }

.btn-respiro {
    display: inline-block;
    font-size: 35px;
    background-color: #fff;
    border-radius: 2px;
    border: 2px solid rgba(100, 100, 100, .4);
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
    cursor: pointer;
    width: 80px;
    text-align: center;
    margin: 0px 10px;
}

/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    /*width: 0;*/
    position: fixed; /* Stay in place */
    z-index: 1101; /* Sit on top */
    /*left: 0;*/
    max-width: 420px;
    right: 0;
    top: 0;
    background-color: rgb(255,255,255); /* Black fallback color */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    /*top: 25%;*/ /* 25% from the top */
    /*width: 100%;*/ /* 100% width */
    /*text-align: center;*/ /* Centered text/links */
    /*margin-top: 30px;*/ /* 30px top margin to avoid conflict with the close button on smaller screens */
}
/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 7px;
    right: 20px;
    font-size: 30px;
    z-index: 1102; /* Sit on top */
}

.nav-tabs {
    font-size: 30px;
}

.tab-content{
    padding: 10px;
}


/* ################################
   ##    FILTERS
   ################################ */

#filter-advert-types > div {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 64px;
    font-size: 13px;
    vertical-align: top;
    margin: 0px;
    padding: 5px;
    border: solid 0px #000;
}


#filter-hack-tools > div {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 64px;
    font-size: 13px;
    vertical-align: top;
    margin: 0px;
    padding: 5px;
    border: solid 0px #000;
}

.fa-check-circle {
    display: none;
}

.filter-selected .fa-check-circle {
    display: inline;
}

.filter-sticker {
    position: absolute;
    font-size: 20px;
    color: green;
    top: -2px;
    left: -2px;
}

.filter-btn-group {
    margin-top: 10px;
    padding-left: 10px;
}

#cameras-button {
    position: fixed;
    left: calc( 50% - 35px );
    top: 10px;
    z-index: 1100;
}
#cameras-button img {
    width: 35px;
    height: 35px;
}