﻿/* default: no side-padding on mobile/small */
.page-wrapper {
    padding-left: 0;
    padding-right: 0;
}

/* from “large” screens upward, give 100px each side */
@media (min-width: 1200px) {
    .page-wrapper {
        padding-left: 50px;
        padding-right: 50px;
    }
}

h1,
h1 a,
h2,
h3,
h4 {
    color: #3081B6;
}

h1{
    margin-top: 16px;
}


@media (max-width: 768px) {
    h1,
    h1 a
    {
        text-align: center;
    }
}

.FMTcolor {
    color: #3081B6;
}

.FMTfaded {
    color: #9F9B9B;
}

.fmt-card-header {
    background-color: #3081B6;
}


#map_canvas {
    width: 100%;
    height: 550px;
    text-align: center;
}

/* Adjust height proportionally as the screen width decreases */
@media (max-width: 1200px) {
    #map_canvas {
        height: 50vw !important; /* 50% of viewport width */
    }
}

@media (max-width: 768px) {
    #map_canvas {
        height: 60vw !important; /* Slightly taller proportion for smaller screens */
    }
}

@media (max-width: 480px) {
    #map_canvas {
        height: 90vw !important; /* More height to maintain usability on very small screens */
    }
}





.FMTbutton {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #3081B6;
    border: none;
    border-radius: 0.375rem; /* slightly rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .FMTbutton:hover,
    .FMTbutton:focus {
        background-color: #246087;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        text-decoration: none;
    }

    .FMTbutton:active {
        background-color: #246087;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .FMTbutton:focus-visible {
        outline: 3px solid rgba(53, 147, 198, 0.5);
        outline-offset: 2px;
    }


@media (max-width: 576px) {
    .FMTbutton {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}









/* give the toggle button some left padding for the arrow */
.btn-toggle {
    position: relative;
    padding-left: 1.75rem;
}


.btn-toggle-nav li {
    margin-bottom: 0.60rem; /* or 1rem, or whatever you like */
}


    /* insert a right-pointing arrow before the text */
    .btn-toggle::before {
        content: '▸'; /* U+25B8 triangular bullet right */
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.35s ease;
        /* optional styling to match your text: */
        font-size: 1.5em;
        color: #3081B6;
        line-height: 1;
    }

    /* when expanded, rotate it downwards */
    .btn-toggle[aria-expanded="true"]::before {
        transform: translateY(-50%) rotate(90deg);
    }


#slogan {
    color: #9F9B9B;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2em;
    margin: 10px 0 10px 35px;
}



.noshow {
    visibility: hidden;
    height: 0px;
}



nav#sidebar,
nav#sidebar * {
    color: #3081B6 !important;
}


.output-display-freemaptools {
    color: #3081B6;
    background-image: repeating-linear-gradient( 45deg, rgba(48, 129, 182, 0.05), rgba(48, 129, 182, 0.05) 10px, #ffffff 10px, #ffffff 20px );
    border: 3px solid #3081B6;
    font-size: 1.75rem;
    padding: 2rem 4rem;
    border-radius: 0.5rem;
    box-shadow: none;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}


.ui-dialog {
    z-index: 2000 !important; /* Choose a value higher than Leaflet map panes */
}


.ui-dialog-titlebar-close {
    padding: 0 !important;
}

    .ui-dialog-titlebar-close:after {
        content: '';
        width: 20px;
        height: 20px;
        display: inline-block;
        /* Change path to image*/
        background-image: url(https://code.jquery.com/ui/1.14.1/themes/base/images/ui-icons_777777_256x240.png);
        background-position: -96px -128px;
        background-repeat: no-repeat;
    }














/*** User Drop Down Menu 13/08/2014 ***/

.dropdown {
    color: #555;
    margin: 3px -22px 0 0;
    width: 163px;
    position: relative;
    height: 17px;
    text-align: left;
    float: right;
    z-index: 2000; /*** Added 27/01/2018 ***/
}

.submenu {
    background: #fff;
    position: absolute;
    top: -12px;
    left: -20px;
    z-index: 100;
    width: 155px;
    display: none;
    margin-left: 10px;
    padding: 40px 0 5px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.dropdown li a {
    color: #555555;
    display: block;
    font-family: arial;
    font-weight: bold;
    padding: 6px 15px;
    cursor: pointer;
    text-decoration: none;
}

    .dropdown li a:hover {
        background: #3081B6;
        color: #FFFFFF;
        text-decoration: none;
    }

a.account {
    font-size: 11px;
    line-height: 16px;
    color: #3081B6;
    position: absolute;
    z-index: 110;
    display: block;
    padding: 11px 0 0 20px;
    height: 28px;
    width: 121px;
    margin: -11px 0 0 -10px;
    text-decoration: none;
    background: url('../images/arrow.png') 126px 17px no-repeat;
    cursor: pointer;
}

.root {
    list-style: none;
    margin: 0px;
    font-size: 11px;
    padding: 11px 0 0 0px;
    border-top: 1px solid #dedede;
}
/*** User Drop Down Menu 13/08/2014 ***/




/*** Settings Toggle Units 28/10/2015 ***/
.settingstoggleunits {
    position: relative;
    width: 90px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-block;
}

.settingstoggleunits-checkbox {
    display: none;
}

.settingstoggleunits-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 20px;
}

.settingstoggleunits-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

    .settingstoggleunits-inner:before, .settingstoggleunits-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 20px;
        padding: 0;
        line-height: 20px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .settingstoggleunits-inner:before {
        content: "KM";
        padding-left: 10px;
        background-color: #3081B6;
        color: #FFFFFF;
    }

    .settingstoggleunits-inner:after {
        content: "Miles";
        padding-right: 10px;
        background-color: #EEEEEE;
        color: #999999;
        text-align: right;
    }

.settingstoggleunits-switch {
    display: block;
    width: 18px;
    margin: 1px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 66px;
    border: 2px solid #999999;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}

.settingstoggleunits-checkbox:checked + .settingstoggleunits-label .settingstoggleunits-inner {
    margin-left: 0;
}

.settingstoggleunits-checkbox:checked + .settingstoggleunits-label .settingstoggleunits-switch {
    right: 0px;
}
/*** Settings Toggle Units 28/10/2015 ***/
