/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2016-2017 Dan "Ducky" Little
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

@import 'tabs.css';
@import 'grid.css';

body {
    font-family: sans-serif;
}

#tabs, #map, #results-grid{
    position: absolute;
    top: 75px; left: 0;
}

#map, #results-grid {
    overflow: auto;
}

#map {
    bottom: 20px;
    border-left: solid black 1px;
}

#header {
    top: 0; left: 0;
    width: 100%;

    position: absolute;
    border-bottom: solid 1px black;

    background-color: #eee;

    height: 75px;
}

#header img {
    display: inline;
}

#tabs {
    bottom: 20px;
    border-top: solid 1px black;
}


#map .map {
    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
}

#results-grid {
    z-index: 100;
    bottom: 20px; top: auto;
    background-color: #eee;
}

#footer {
    position: absolute;
    bottom: 0;
    height: 20px;
    left: 0; width: 100%;
    border-top: solid 1px black;
}

#version {
    float: left;
    width: 15%;

    padding-left: 20px;
    background-image: url(logo-mini.png);
    background-repeat: no-repeat;
    background-position: 2px 1px;

    padding-top: 1px;
}

#coordinate-display {
    float: left;
    width: 68%;
    text-align: center;
    overflow: hidden;
}

#jump-to-extent {
    float: right;
    width: 14%;
}

#map, #results-grid {
    right: 0;
}

/* This is the main "layout" code that handles the split
 * between the map, grid, and tabs.
 */

@media screen and (max-width: 500px) {
    body {
        font-size: 60%;
    }

    #tabs {
        width: 220px;
    }

    #map, #results-grid {
        left: 220px;
    }
}

@media screen and (min-width: 500px) {
    #tabs {
        width: 350px;
    }

    #map, #results-grid {
        left: 350px;
    }
}

/* Example of how to add CSS for a specific layer's
 * identify results.
 */
.feature-class.pipelines {
    background-color: #4894ff;
}
