﻿@keyframes spin3d {
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

@-moz-keyframes spin3d {
    100% {
        -moz-transform: perspective(400px) rotateY(360deg);
    }
}

@-webkit-keyframes spin3d {
    100% {
        -webkit-transform: perspective(400px) rotateY(360deg);
    }
}

@-o-keyframes spin3d {
    100% {
        -o-transform: perspective(400px) rotateY(360deg);
    }
}

body {
    background-color: #fff;
}

header {
    display: none;
}

#tools-panel .language-links {
    display: block;
    padding: 0;
    margin: 0;
    text-align: center;
}

    #tools-panel .language-links.tc-disabled {
        display: none;
    }

    #tools-panel .language-links a {
        display: inline-block;
        margin: 0.05em;
        width: calc(33% - 0.1em);
        padding-left: 0;
        text-align: center;
        background-color: #666;
        color: #fff;
        text-decoration: none;
    }

        #tools-panel .language-links a:visited {
            color: #fff;
        }


        #tools-panel .language-links a.es-link {
            border-top-left-radius: 0.2em;
            border-bottom-left-radius: 0.2em;
        }

        #tools-panel .language-links a.en-link {
            border-top-right-radius: 0.2em;
            border-bottom-right-radius: 0.2em;
        }

        #tools-panel .language-links a.tc-active {
            background-color: #c00;
            border-color: #c00;
            color: #fff;
        }

div.tc-map div.tc-ctl-cctr {
    top: 2.5em;
}

/*.tc-ctl-sb {
    top: auto;
    left: auto;
    bottom: 4.5em;
    writing-mode: horizontal-tb;
    transform: rotate(90deg) translate(-100%, -50%);
    transform-origin: bottom left;
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}*/


.tc-ctl-geolocation-info-tracking .tc-ctl-p-results .prcollapsed {
    position: static;
    top: auto;
}

div.tc-ctl-p-results-info .tc-ctl-finfo-btn-prev {
    right: 4.8em;
}

div.tc-ctl-p-results-info .tc-ctl-finfo-counter {
    right: 2.3em;
}


/*h1#tools-tab {
        border-bottom-left-radius: 0em;
    }

    h1#tools-tab {
        opacity: 1;
        height: 2.8em;
        background-color: white;
        color: #000;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }*/

div#mobile-header {
    display: block;
    height: 2.8em;
    -moz-box-shadow: 0 1px 8px -2px gray;
    -webkit-box-shadow: 0 1px 8px -2px gray;
    box-shadow: 0 1px 8px -2px gray;
}

/*div#mobile-header > */
div#icon-logo {
    opacity: 0.7;
    display: block;
    float: left;
    position: absolute;
    z-index: 1;
}

    /*div#mobile-header >*/
    div#icon-logo > a > img {
        height: 2em;
        -ms-transform: translate(0.75em, 0.2em);
        -webkit-transform: translate(0.75em, 0.2em);
        -moz-transform: translate(0.75em, 0.2em);
        transform: translate(0.75em, 0.2em);
    }

/*div#mobile-header >*/
div#logo {
    left: 3em;
    float: left;
    position: absolute;
    z-index: 10008;
}

    div#logo > a > img {
        /*width: 26%;*/
        max-width: 6em;
        padding: 0.7em 0.6em;
    }

div.tc-map {
    top: 0px;
    height: 100%;
}

.tc-ctl-coords {
    font-size: 70%;
    opacity: 0.7;
    border: 0.1em solid #ccc;
    border-radius: 0.4em;
    right: 0;
    left: auto;
    top: 50%;
    -ms-transform: translate(45%, -50%) rotate(-90deg);
    -webkit-transform: translate(45%, -50%) rotate(-90deg);
    -moz-transform: translate(45%, -50%) rotate(-90deg);
    transform: translate(45%, -50%) rotate(-90deg);
    z-index: 9999;
}

.prcollapsed {
    line-height: 2em;
    width: 1.9em;
    height: 1.9em;
}

.prpanel-heading {
    height: 1.9em;
    line-height: 1.9em;
}

.tc-map.tc-loading {
    background-color: transparent;
    animation: none;
    -moz-animation: none;
    -webkit-animation: none;
    -o-animation: none;
}

    .tc-map.tc-loading:before {
        top: 0;
        left: 0;
        box-shadow: none;
        margin-left: 0;
        margin-top: 0;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: url(../layout/idena/img/logoIDENASinTexto.svg) no-repeat 50% 50%;
        background-size: 25%;
        transform-origin: center center 0;
        -moz-transform-origin: center center 0;
        -webkit-transform-origin: center center 0;
        -o-transform-origin: center center 0;
        animation: spin3d 6s infinite;
        -moz-animation: spin3d 6s infinite;
        -webkit-animation: spin3d 6s infinite;
        -o-animation: spin3d 6s infinite;
    }

    .tc-map.tc-loading.tc-threed:before {
        background: url(../layout/idena/img/logoIDENASinTexto3D.svg) no-repeat 50% 50%;
        background-size: 25%;
    }
/* iframe de featureInfo para cuando no hay un parser adecuado */
.tc-ctl-popup iframe {
    border: none;
    width: 100%;
}

/* ocultar coordenadas en el mapa pequeñito */
.tc-map.tc-collapsed .tc-ctl-coords {
    display: none;
}

.tc-ctl-wlm-metadata a {
    margin-right: 4px;
}

.icon-question-sign:before {
    content: "\f059";
}

.tc-ctl-finfo-features table {
    cursor: pointer;
}


.tc-ctl-attrib {
    font-size: 50%;
}

.tc-map > .tools-panel > .panel-content {
    overflow: auto;
}

/* para que los botones de los paneles colapsados cuadren con el - y la casita de la izda. */
div.tc-map div.tc-ctl-cctr div.tc-ctl.tc-ctl-sb {
    margin-bottom: 0.5em;
}

@media screen and (orientation: landscape) {
    

    .tc-ctl-coords {
        top: 0.2em;
        opacity: 0.7;
        border: 0.1em solid rgba(204,204,204,0.3);
        border-radius: 0.2em;
        left: 50%;
        -ms-transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -moz-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        z-index: 9999;
        font-size: 2vw;
    }
}

#xdata .tc-ctl-tctr-tab-0 span:before {
    font-family: mapskin;
    content: '\e03d';
    margin-right: 0.5em;
}

#xdata .tc-ctl-tctr-tab-1 span:before {
    font-family: mapskin;
    content: '\e056';
    margin-right: 0.5em;
}

@media screen and (min-width: 60em) {

    .tc-ctl-coords {
        font-size: 70%;
        opacity: 0.7;
        border: 0.1em solid #ccc;
        border-radius: 0.4em;
        right: 0;
        left: auto;
        top: 50%;
        -ms-transform: translate(45%, -50%) rotate(-90deg);
        -webkit-transform: translate(45%, -50%) rotate(-90deg);
        -moz-transform: translate(45%, -50%) rotate(-90deg);
        transform: translate(45%, -50%) rotate(-90deg);
        z-index: 9999;
    }
}
@media screen and (min-height: 40em) and (pointer: fine),screen and (min-height: 40em) and (-ms-high-contrast: none), screen and (min--moz-device-pixel-ratio:0) and (min-height: 40em) {

    header {
        display: block;
    }

    div#icon-logo {
        display: none;
    }

    div.tc-map {
        width: 100%;
        bottom: 0;
        position: absolute;
        top: 60px;
        height: auto;
    }

    /* Estilos de la cabecera */
    header {
        position: relative;
        background-color: #fff;
        height: 57px;
        overflow: hidden;
        border-bottom: 3px solid #000;
        padding-right: 2px;
    }

        header a {
            text-decoration: none;
        }

        header h1 {
            margin: 0 0 0 10px;
            padding: 0;
            float: left;
        }

        header #links {
            float: right;
            font-size: 13px;
            margin: 0;
            text-align: right;
            line-height: 18px;
        }

            header #links.tc-disabled {
                display: none;
            }

        header .language-links {
            display: inline-block;
            top: 0;
            right: 0;
            margin-right: 1.5em;
            text-align: right;
        }

            header .language-links a {
                display: inline-block;
                width: 1.5em;
                height: 1.5em;
                text-align: center;
                background-color: #fff;
                color: #666;
                margin-left: 0.2em;
                margin-top: 0.2em;
                border-radius: 0.2em;
                border: 0.1em solid #666;
            }

                header .language-links a.tc-active {
                    background-color: #c00;
                    border-color: #c00;
                    color: #fff;
                }

                header .language-links a:visited {
                    color: #666;
                }

                header .language-links a.tc-active:visited {
                    color: #fff;
                }

        header #help {
            display: inline-block;
            margin-top: 0.2em;
            margin-right: 0.2em;
        }

        header #help-link {
            display: inline-block;
            width: 1em;
            height: 1em;
            margin-right: 0.5em;
        }

            header #help-link span {
                display: none;
            }

            header #help-link:before {
                display: inline-block;
                font-family: 'FontAwesome';
                color: #666;
                background-color: #fff;
                content: '\f128';
                border-radius: 0.2em;
                width: 1.5em;
                height: 1.5em;
                text-align: center;
                border: 0.1em solid #666;
            }

    #tools-panel .language-links {
        display: none;
    }

    header #contact {
        position: absolute;
        right: 2px;
        bottom: 0;
    }

    .language-links.tc-disabled {
        display: none;
    }

    #idena-header.tc-loading * {
        visibility: hidden;
    }

    div.tc-map div.tc-ctl-cctr {
        top: 1.5em;
    }

    div.tc-ctl-coords {
        left: 0;
        top: 0;
        font-size: 0.6em;
        transform: none;
        right: auto;
        border-radius: initial;
    }

    div.tc-ctl-attrib {
        font-size: 0.8em;
    }

    div.tc-map-threed {
        top: 60px;
        height: calc(100% - 60px);
    }

    /* para que los botones de los paneles colapsados cuadren con el + */
    div.tc-map div.tc-ctl-cctr div.tc-ctl.tc-ctl-sb {
        margin-bottom: 0em;
    }
}

.tc-ctl-wlm .tc-alert div {
	padding-left: 1.2em;
	padding-top: 0.2em;
}

.tc-ctl-wlm .tc-alert div:before {
	font-family: FontAwesome;
	margin-left: -1.2em;
    margin-right: 0.4em;
}

.tc-ctl-wlm .tc-alert div:first-of-type:before {
	content: '\f019';
}

.tc-ctl-wlm .tc-alert div:last-child:before {
	content: '\f1f8';
}