/*
 * 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 'normalize.css';
@import 'skeleton.css';
@import 'tabs.css';
@import 'grid.css';

body {
    font-family: sans-serif;
}

#main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#header {
    /*border-bottom: solid 1px black;
    background-color: #04234b;*/
    background-color: #ffffff;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

#middle {
    display: flex;
    flex: 7;
}

#footer {
    /*border-top: solid 1px black;*/
    display: flex;
    align-items: center;
    padding: 5px;
    
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

#tabs {
    position: relative;
    min-width: 350px;
    transition: min-width ease 500ms;
}

#map-pane {
    flex: 1;
    border-left: solid black 1px;
    flex-direction: column;
    display: flex;
    position: relative;
}




/* Estilo para el botón flotante */
.float-button {
    position: absolute;
    top: 10px; /* Distancia desde la parte superior */
    right: 10px; /* Distancia desde el borde derecho */
    background-image: url('recursos/l1.png'); /* Imagen predeterminada */
    background-size: cover; /* Ajusta el tamaño de la imagen al contenedor */
    width: 60px; /* Ancho del botón */
    height: 60px; /* Altura del botón */
    cursor: pointer; /* Cambia el cursor cuando se pasa el mouse */
    border-radius: 50%; /* Redondea el borde */
    transition: background-image 0.3s ease; /* Transición suave */
}

/* Efecto cuando se pasa el mouse sobre el botón */
.float-button:hover {
    background-image: url('recursos/l2.png'); /* Imagen cuando se pasa el mouse */
    transform: scale(1.1); /* Efecto de zoom */
}

/* Estilo base para el tooltip */
.tooltip {
    position: absolute;
    background: black;
    color: white;
    padding: 5px;
    border-radius: 5px;
    visibility: hidden; /* No visible por defecto */
    opacity: 0; /* Opacidad inicial */
    transition: opacity 0.3s ease; /* Suaviza la transición */
    text-align: right; /* Alinea el texto a la derecha */
}

/* Muestra el tooltip cuando se pasa el mouse por el botón */
.float-button:hover .tooltip {
    visibility: visible; /* Muestra el tooltip */
    opacity: 1; /* Cambia la opacidad para mostrar el tooltip */
}

/* Posicionamiento para el tooltip de "Manual" */
.tooltip.manual {
    top: 0; /* Desde la parte superior del botón */
    right: 50px; /* Desde el borde derecho del botón */
}

/* Posicionamiento para el tooltip de "Propuestas", debajo de "Manual" */
.tooltip.propuestas {
    top: 40px; /* Debajo de "Manual" */
    right: 50px; /* Desde el borde derecho del botón */
}




#map-container {
    flex: 1;
    position: relative;
}

#header img {
    display: inline;
}

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

#version {
    padding-left: 20px;
    background-image: url(logo-mini2.png);
    background-repeat: no-repeat;
    background-position: 2px 4px;

    padding-top: 1px;
}

#coordinate-display {
    flex: 1;
    text-align: center;
    overflow: hidden;
}

#jump-to-extent {
    text-align: right;
}

#jump-to-extent select {
    margin: auto;
}

.tabs-closed #tabs {
    width: 0px;
    min-width: 0px;
}


/* 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 {
        min-width: 220px;
    }

    .tab-toggler {
        left: 218px;
    }

}

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

    .tab-toggler {
        left: 348px;
    }
}

.feature-class {
    background-color: #CFE7B3;
    padding: 2px;
    font-weight: bold;
    margin-top: 5px;
}

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

.feature-class.datos1 {
    background-color: #cccccc;
}

.feature-class.datos2 {
    background-color: #ffffff;
}

.search-address {
    font-size: .85em;
    padding-left: 1em;
}
@media (max-width: 600px) {
    /* Oculta la imagen en pantallas más pequeñas que 600px */
    .responsive-logo {
      display: none;
    }
  }
