/* RESET */

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}


/* === FUENTES === */ 

@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("https://e00-elmundo.uecdn.es/fonts/roboto/Roboto-Regular.woff2") format("woff2"),url("https://e00-elmundo.uecdn.es/fonts/roboto/Roboto-Regular.woff") format("woff")}

@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("https://e00-elmundo.uecdn.es/fonts/roboto/Roboto-Bold.woff2") format("woff2"),url("https://e00-elmundo.uecdn.es/fonts/roboto/Roboto-Bold.woff") format("woff")}

@font-face {
	font-family: Roboto_condensed;
	font-style: normal;
	font-weight: 400;
	src: url("https://e00-elmundo.uecdn.es/fonts/roboto/RobotoCondensed-Regular.woff2") format("woff2"), url("https://e00-elmundo.uecdn.es/fonts/roboto/RobotoCondensed-Regular.woff") format("woff")
}

@font-face {
	font-family: Roboto_condensed;
	font-style: normal;
	font-weight: 700;
	src: url("https://e00-elmundo.uecdn.es/fonts/roboto/RobotoCondensed-Bold.woff2") format("woff2"), url("https://e00-elmundo.uecdn.es/fonts/roboto/RobotoCondensed-Bold.woff") format("woff")
}



/* === BÁSICO === */

#container{
    width:989px;
    height:780px;
    color:#262626;
    box-sizing: border-box;
    font-family:"Roboto_condensed", "Roboto condensed", "Roboto", arial, sans-serif;
    margin:auto;
    overflow:hidden;
    padding: 15px;
    position: relative;
    background-color: #f3f3f3;
    /* border:1px solid #ccc; */
}

#loader{
    width: 100%;
    height: 100%;
    position: absolute;
    left:0;
    top:0;
    z-index:1000;    
    background-color: #edf3f9;
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

#spinner{
    width: 50px;
    height: 50px;
    border: 5px solid #c5daeb;
    border-top-color:#5f9bc5;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;

    animation: spinning 2s linear infinite;
    -webkit-animation: spinning 2s linear infinite;
    -o-animation: spinning 2s linear infinite;
}

@keyframes spinning {
    from { transform: rotate(0deg) }
    to { transform: rotate(360deg) }    
}

#loader p{
    position:absolute;
    top: 0; left:50%; right: 0; bottom: 0;
    margin: auto;
}



#title{
    font-family:"Roboto_condensed", "Roboto condensed", "Roboto", arial, sans-serif; 
    font-size:20px; 
    font-weight:bold; 
    text-align:left; 
    text-transform: uppercase; 
    /* line-height: 23px; */
    position: absolute;
    top: 15px; 
    left: 15px;
}

#footer{
    font-family:"Roboto", arial, sans-serif;
    width:100%;
    color:#000;
    font-size:11px;
    line-height:13px;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

/* .source-box{
    float:left;
    text-align: left;
}

.author-box{
    float:right;
    text-align: right;
} */

.key{
    font-size: 14px;
    position: absolute;
    top: 50px;
    left:15px;
    /* left: 50%;
    margin-left:-220px; */
    width: 440px;
    height:60px;
}

#key-title{
    font-weight: 400;
    margin-bottom:7px;
    font-size:15px;
}

.key ul li{
    float:left;
    margin-right:25px;
    margin-bottom:5px;
}

.key ul li:last-child{
    margin-right:0;
}

.square{
    width:15px;
    height:15px;
    float:left;
    margin-right: 7px;
    background-color:crimson;
}

#graph {
    width:770px;
    position: absolute;
    top: 115px;
    left: 50%;
    margin-left: -385px;
    overflow:hidden;
    /* border:1px solid #ccc; */
}




/* SVG */

.territory{
    fill:#aec9e2;
    cursor: pointer;
    stroke-width:0.75;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke: #ffffff;
    }

.limits{
    fill:none;
    stroke:#1D1D1B;
    stroke-width:0.75;
    stroke-linecap:round;
    stroke-linejoin:round;
    display:none;
    }

.divide{
    fill:none;
    stroke:#000000;
    stroke-width:0.75;
    }

.limit-active{
    display:block !important;
}



/* TOOLTIP */

#tooltip{
    font-family:"Roboto_condensed", "Roboto condensed", "Roboto", arial, sans-serif;
    width: 290px;
    position: absolute;
    background-color: #fff;
    padding:20px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    display:none;
    max-height:270px;
}

#tooltip h2{
    font-size: 17px;
    font-weight: bold;
    border-bottom: 1px solid #000;
    box-sizing: border-box;
    line-height: 16px;
    padding-bottom: 10px;
}

.tooltip-data{
    font-size:15px;
    line-height: 18px;
    margin-top:10px;
}

.value-name{
    font-weight: normal;
}

.value{
    font-weight:bold;
    margin-left:10px;
}

@media (max-width:988px) {
    #container{
        width:470px;
        height: 525px;
        background-color: #ffffff;
    }

    #graph{
        width: 440px;
        margin-left:-220px;
    }

    #tooltip{
        width:200px;
        padding: 7px;
        max-height:140px;

    }

    #tooltip h2{
        font-size:16px;
        padding: 5px 0;
    }

    .tooltip-data{
        font-size:15px;
        margin-top:5px;
        line-height:16px;
    }
    
}

@media (max-width:469px){
    #container{
        width:360px;
        height: 465px;
        padding: 30px 15px;
    }

    #title{
        top:30px;
    }

    .key{
        width: 330px;
        /* margin-left: -165px; */
        top: 65px;
    }

    .key ul li {
        margin-right: 20px;
    }

    .square{
        width: 15px;
        height: 15px;
    }

    #graph{
        width:330px;
        margin-left: -165px;
        top:130px;
    }

    #footer{
        bottom: 30px;
    }

    #tooltip{
        width:250px;
        left: 50%;
        bottom: 0;
        margin-left: -125px;        
        overflow-y: scroll;
    }

    #tooltip h2{
        padding-bottom: 10px;
        padding-top: 6px;
    }

    #close-button{
        width: 20px;
        height: 20px;
        position: absolute;
        top: 10px;
        right:10px;
    }
}