﻿
body {
    margin: 0;
    padding: 0;
}

h2 {
    margin: 10px;
}

p {
    font-family: 'Open Sans';
    margin: 0;
    font-size: 13px;
}

#menu {
    padding: 5px;
    text-align: center;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#layers {
    background: #fff;
    position: absolute;
    z-index: 1;
    top: 300px;
    left: 9px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
}

    #layers a.active {
        color: #2196F3;
    }

        #layers a.active:hover {
            background: #eee;
            color: #555;
        }

    #layers a {
        font-size: 13px;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.25);
        display: block;
        margin: 0;
        padding: 0;
        padding: 6px;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.25);
        text-align: center;
    }

        #layers a:last-child {
            border: none;
        }

        #layers a:hover {
            color: #2196F3;
        }

#layers-traffic {
    background: #fff;
    position: absolute;
    z-index: 1;
    top: 405px;
    right: 9px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
    width: 30px;
    height: 30px;
    padding: 3px;
    text-align: center;
}

    #layers-traffic:hover {
        background-color: #f8f8f8;
        color: #404040;
        cursor: pointer;
    }

#layers-huahin {
    background: #fff;
    position: absolute;
    z-index: 1;
    top: 350px;
    right: 9px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
    width: 30px;
    height: 30px;
    padding: 3px;
    text-align: center;
}

    #layers-huahin:hover {
        background-color: #f8f8f8;
        color: #404040;
        cursor: pointer;
    }

.calculation-box {
    position: absolute;
    float: right;
    top: 48px;
    left: 50px;
    height: auto;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: center;
    z-index: 1;
    clear: both;
}

.coordinates {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    position: absolute;
    bottom: 40px;
    left: 10px;
    padding: 5px 10px;
    margin: 0;
    font-size: 11px;
    line-height: 18px;
    border-radius: 3px;
    display: none;
}

.eleInfo {
    position: absolute;
    float: right;
    top: 10px;
    right: 10px;
    height: auto;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: left;
    z-index: 1;
    clear: both;
    visibility:hidden;
}

    .eleInfo span {
        color: #000;
        font-weight:bold;
    }

.map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}
.map-overlay {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    padding-top: 310px;
    padding-left: 10px;
    padding-right: 10px;
    display: none;
}

    .map-overlay h2 {
        font-weight: 200;
    }

    .map-overlay .applied {
        background-color: #1C84C6;
        color: #fff;
        font-size: 1.2em;
        font-weight: 500;
    }

    .map-overlay .approved {
        background-color: #1AB394;
        color: #fff;
        font-size: 1.2em;
        font-weight: 500;
    }

    .map-overlay .construction {
        background-color: #ffd800;
        color: #000;
        font-size: 1.2em;
        font-weight: 500;
    }

/* Customize the label (the container) */
.container-group {
    font-weight: 600;
    position: absolute;
    top: 10px;
    left: 0px;
    z-index: 1;
    border-radius: 8px;
    width: 480px;
    color: #555;
    text-align: center;
    background: #fff;
    padding: 0 10px;
}

.container-checkbox {
    display: inline-grid;
    position: relative;
    padding: 15px;
    padding-top: 60px;
    cursor: pointer;
    font-weight: 600;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 30%;
    text-align: center;
    color: #888;
}

    /* Hide the browser's default checkbox */
    .container-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 35px;
    width: 35px;
    margin-left: 38%;
    margin-top: 12px;
    background-color: #eee;
    border-radius: 8px;
    border: solid 4px #ccc;
}

/* On mouse-over, add a grey background color */
.container-checkbox:hover input ~ .checkmark {
    background-color: #eee;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox input:checked ~ .checkmark {
    background-color: #2196F3;
    border: none;
    margin-left: 32%;
    margin-top: 5px;
    height: 50px;
    width: 50px;
}

    .container-checkbox input:checked ~ .checkmark.applied {
        background-color: #1C84C6;
    }

    .container-checkbox input:checked ~ .checkmark.approved {
        background-color: #1AB394;
    }

    .container-checkbox input:checked ~ .checkmark.construction {
        background-color: #ffd800;
    }

.container-checkbox input:checked ~ span {
    color: #000;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark:after {
    left: 18px;
    top: 10px;
    width: 12px;
    height: 24px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.filter-ctrl {
    position: absolute;
    top: 10px;
    left: 50px;
    width: 200px;
    z-index: 1000;
}


.rounded-rect {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 50px -25px black;
}

.flex-center {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .flex-center.left {
        left: 0px;
    }

    .flex-center.right {
        right: 0px;
    }

.sidebar {
    transition: transform 1s;
    z-index: 1;
    width: 510px;
    height: 100%;
}

.sidebar-content {
    position: absolute;
    width: 95%;
    height: 95%;
    color: gray;
}

.sidbear-toggle {
    position: absolute;
    width: 2.0em;
    height: 4.2em;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .sidbear-toggle.left {
        right: -1.5em;
    }

    .sidbear-toggle.right {
        left: -1.5em;
    }

    .sidbear-toggle:hover {
        color: #0aa1cf;
        cursor: pointer;
    }


/*
          The sidebar styling has them "expanded" by default, we use CSS transforms to push them offscreen
          The toggleSidebar() function removes this class from the element in order to expand it.
        */
.left.collapsed {
    transform: translateX(-500px);
}

.right.collapsed {
    transform: translateX(500px);
}

/*#region Swipe between maps */
.distance-container {
    position: absolute;
    top: 10px;
    left: 260px;
    z-index: 1;
}

    .distance-container > * {
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 11px;
        line-height: 18px;
        display: block;
        margin: 0;
        padding: 5px 10px;
        border-radius: 3px;
    }
/*#endregion*/

/*Small Screen*/
@media (max-width: 600px) {

    .sidebar {
        transition: transform 1s;
        z-index: 1;
        width: 460px;
        height: 100%;
        padding-top: 30px;
    }

    .sidebar-content {
        position: absolute;
        width: 95%;
        height: 85%;
        color: gray;
    }
}
