/* reset está no fonts.css */

/* ESTILOS GERAIS */

html, body {
    font-family: "flamabook", sans-serif !important;
    font-size:62.5%;
    line-height: 1.5;
    margin:0; padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    height: 100%;
}

body{
    color: #333;
    background: #fff;
    width: 100%;
    height: 100%;
    display: none;
    font-size: 1.3rem;
}
*{
    font-size: 1.3rem;
    box-sizing: border-box;
}



input:focus, button:focus{
  box-shadow: 0;
  border: 1px solid #84af43;
  outline: 0;
}
::-webkit-input-placeholder {
  color: #798282;
}
::-moz-placeholder {
  color: #798282;
}
:-ms-input-placeholder {
  color: #798282;
}
:-moz-placeholder {
  color: #798282;
}

.networkTest{
  width: 100%;
  height: 670px;
  background: #e5e5e5;
  position: relative;
  margin: 0 auto;
}

.mapHolder{
  position: absolute;
  max-height: 100%;
  line-height: 100%;
  z-index:0;
  border: 2px solid #dedede;
  width: calc(100% - 0.2rem - 360px);
  height: calc(100% - 0.2rem);
  overflow: hidden;
  right: 0;
}
.mapHolder.sp{

}

.mapArea{
  height: 100%;
  width: 100%;
  display: block;
  text-align: center;
}

.mapVis{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  height: 100%;
/*
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
          transform: tscale(1);

  -webkit-transition: -webkit-transform 0.3s;
  -ms-transition: -ms-transform 0.3s;
  transition: transform 0.3s;
  */
}
.mapVis.large {
  min-height: 250%;
/*
  -webkit-transform: scale(1);
          transform: tscale(1);
          */
}

.mapVis > g > *{
  cursor: pointer;
}
.mapVis > g > *:hover{
  fill-opacity: 1;
}
.mapVis > g{
  overflow: visible;
}


.mapHolder button{
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: #999;
  margin-bottom: 1rem;
  cursor: pointer;
}
.mapHolder button:hover{
  background: #f0f0f0;
  color: #555;
}

.networkSelectors{
  min-height: 40px;
  position: absolute;
  z-index:100;
  top: 10px;
  left: 10px;
  font-size: 0;
}
.networkSelectors button{
  width: 86px;
  height: 36px;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 800;
  margin-left: 3px;
  padding-top: 3px;
  z-index:0;
}
.networkSelectors button.active{
  background: #fff;
  border: 1px solid #000;
  color: #000;
  z-index:10;
}
.networkSelectors button.active.nw1{
  border: 1px solid #db4249;
  color: #db4249;
} 
.networkSelectors button.active.nw2{
  border: 1px solid #e08c3d;
  color: #e08c3d;
} 
.networkSelectors button.active.nw3{
  border: 1px solid #4182b5;
  color: #4182b5;
} 
.networkSelectors button.active.nw4{
  border: 1px solid #8e4583;
  color: #8e4583;
} 

.networkSelectors button.active:hover{
  background: #f0f0f0;
}
.networkSelectors .nwType{
  display: block;
  text-align: left;
  width: 100%;
}
.networkSelectors .nwType button{
  height: 20px;
  font-size: 1.1rem;
}
.networkSelectors .nwType button.active{
  background-color: #555;
  color: #fff;
}
.networkSelectors .nwType button.active.nw1{
  background-color: #db4249;
}
.networkSelectors .nwType button.active.nw2{
  background-color: #e08c3d;
}
.networkSelectors .nwType button.active.nw3{
  background-color: #4182b5;
}
.networkSelectors .nwType button.active.nw4{
  background-color: #8e4583;
}

button.zoom{
  position: absolute;
  display: none;
  background: #fff;
  font-size: 1.8rem;
  border: 1px solid #fff;
  color: #777;
  width: 30px; 
  height: 30px;
  line-height: 25px;
  z-index:20;
  bottom: 10px;
  right: 10px;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}

a.btnClose{
  position: absolute;
  bottom: 10px;
  display:none;
  padding: 1rem 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 22px;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  color: #777;
  background: #fff;
  width: 1005;
  border: none;
}
a.btnClose i{
  margin-right: 6px;
  color: #777;
}

.graphHolder{
  position: relative;
  z-index:1;
  width: 100%;
  max-width: 360px;
  height: calc(100% - 0.4rem);
  margin: 0 auto;
  padding: 2rem 3rem;
  position: absolute;
  left: 2px;
  top: 2px;
  text-align: left;
  background: #fff;

  transition: "margin-left" 0.5s;
  -ms-transition: "margin-left" 0.5s;
  -wekbit-transition: "margin-left" 0.5s;
}
.graphHolder.closed{
}

nav.graphNav{
  display: block;
  width: calc(100% - 3rem);
  max-width: calc(360px - 3rem);
  margin-left: -1.5rem;
  position: absolute;
  height: 5rem;
  top: 1rem;
  z-index:10;
  pointer-events:none;
}

nav.graphNav a{
  display: block;
  width: 3rem;
  height: 5rem;
  position: absolute;
  font-size: 4rem;
  line-height: 5rem;
  color: #aaa;
  opacity: 0.6;
  cursor: pointer;
  pointer-events:auto;
}

nav.graphNav a:hover{
  opacity: 1;
}

nav.graphNav a.btPrev{
  left: 0rem;
  text-align:left;
}
nav.graphNav a.btNext{
  right: 0rem;
  text-align:right;
}

.graphScale{
  width: calc(100% - 6rem);
  height: 100%;
  font-size: 0.7rem;
  height: 18rem;
  position: absolute;
  margin-top: 6rem;
  z-index:0;
}

.graphScale .scaleLeg{
  position: absolute;
  width: 18.6rem;
  height: 3rem;
  top:0;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #fff;
  color: #777;
  z-index:1000;

  -ms-transform: rotate(-90deg) translate(-100%); /* IE 9 */
  -ms-transform-origin: 0% 0%; /* IE 9 */
  -webkit-transform: rotate(-90deg) translate(-100%); /* Chrome, Safari, Opera */
  -webkit-transform-origin: 0% 0%; /* Chrome, Safari, Opera */
  transform: rotate(-90deg) translate(-100%);
  transform-origin: 0% 0%;
}
.graphScale .scaleLeg span.legDown{
  position: absolute;
}
.graphScale .scaleLeg span.legMiddle{
  position: absolute;
  text-transform: none;
  letter-spacing: 0.05rem;
  left: 53%;
  top: 1.4rem;
  color: #777;
  
  -webkit-transform: translate(-50%);
  -ms-transform: translate(-50%);
  transform: translate(-50%);
}
.graphScale .scaleLeg span.legUp{
  position: absolute;
  right: 0;
}

.graphScale ul {
  padding-left: 5.2rem;
  height: 50%;
  margin-top:-0rem;
}
.graphScale ul:nth-of-type(2) {
  margin-top:0.5rem;
  height: 50%;
}
.graphScale ul li{
  height: calc(100% / 6);
  border-top: 1px dotted #dedede;
  border-left: 1px solid #dedede;
  overflow: visible;
  color: #777;
}
.graphScale ul:nth-of-type(1) li:last-child {
  border-top: 1px solid #dedede;
}
.graphScale ul:nth-of-type(2) li:first-child {
  border-top: 1px solid #dedede;
}
.graphScale ul li:last-child {
  border-left: none;
}

.graphScale ul li span{
  display: block;
  position: absolute;
  width: 2rem;
  text-align: right;
  margin: -0.7rem -2.6rem;
  font-weight: 800;
  color: #777;
}

.graphContent{
  width: 100%;
  white-space: nowrap;
  overflow:hidden;
  font-size:0;
  z-index:1;
}

.graphBlock{
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  min-width: 16rem;
  font-size: 1.3rem;
  padding: 0;
  white-space: normal;
}
.graphBlock > *{
  margin-left: 5.2rem;
}

.graphInfo{
  text-align: center;
  height: 6rem;
  font-size: 1.3rem;
  margin:0;
  overflow: hidden;
  width: calc(100%);
  z-index:1;
}

.graphInfo span.title{
  display: block;
  width: calc(100% - 0);
  font-size: 2.3rem;
  line-height: 1.1em;
  font-family: "flama", sans-serif !important;
  font-weight: 300;
  color: #000;
  /*text-transform: uppercase;*/
}
.graphInfo span.numbers{
  display: block;
  font-size: 1.1rem;
  margin: 1rem 0 1rem 0;
  color: #777;
}

.graphBlock ul.upperBlock,
.graphBlock ul.lowerBlock{
  display: block;
  position: relative;
  padding: 0;
  margin-bottom: 0.5rem;
  height: 9rem;
  line-height: 100%;
  list-style: none;
  text-align: center;
  font-size:0;
  /*border-bottom: 1px solid #dedede;*/
}
.graphBlock ul.upperBlock{
  margin-bottom: 0.5rem;
  /*margin-top: -2rem;*/
}
.sp .graphBlock ul.upperBlock{
  /*margin-top: -7rem;*/
}
.graphBlock ul.lowerBlock{
  margin-bottom: 0;
  border: none;
}
.graphBlock ul li{
  display: inline-block;
  vertical-align:bottom;
  position: relative;
  font-size: 1rem;
  width: 1.6rem;
  height: 100%;
  margin: 0 0.2rem 0.3rem 0.2rem;
}
.graphBlock ul.lowerBlock li{
  vertical-align:top;
}
.graphBlock ul li span{
  width: 100%;
  display: block;
  position: absolute;
  bottom:0;
  cursor: pointer;
}
.graphBlock ul.lowerBlock li span{
  bottom: auto;
  top: 0;
}
.graphBlock ul li span b{
  display: block;
  opacity: 0;
  position: absolute;
  font-size: 0.9rem;
  line-height: 0.9rem;
  text-align: center;
  bottom:auto;
  width: auto;
  white-space: nowrap;
  top:-2rem;
  left: 50%;
  pointer-events:none;
  padding: 0.2rem;
  background: rgba(255,255,255,0.9);

  transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;

  transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}
.graphBlock ul.lowerBlock li span b{
  bottom:-2.5rem;
  top:auto;
}

.graphBlock ul li span:hover b{
  opacity: 1;
}

.graphBlock ul li:nth-child(1) span.avgTest{
  border-color: rgba(219,66,73,1);
}
.graphBlock ul li:nth-child(2) span.avgTest{
  border-color: rgba(224,140,61,1);
}
.graphBlock ul li:nth-child(3) span.avgTest{
  border-color: rgba(65,130,181,1);
}
.graphBlock ul li:nth-child(4) span.avgTest{
  border-color: rgba(142,69,131,1);
}
/*
.graphBlock ul li span.singleTest b{
  opacity:1;
}*/
.graphBlock ul li span.singleTest{
  z-index: 0;
  min-height: 1px;
}
.graphBlock ul li span.avgTest{
  z-index: 100;
  border: 1px dotted rgba(255,255,255,1);
  pointer-events:none;
  /*display: none;*/
}
.graphBlock ul li span.avgTest.overlayed{
  border-color: #fff;
}
.graphBlock ul.upperBlock li span.avgTest{
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
}
.graphBlock ul.lowerBlock li span.avgTest{
  border-right: 0;
  border-left: 0;
  border-top: 0;
}

/* barra dos testes */
.graphBlock ul li:nth-child(1) span.singleTest{
  background-color: rgba(219,66,73,1);
}
.graphBlock ul li:nth-child(2) span.singleTest{
  background-color: rgba(224,140,61,1);
}
.graphBlock ul li:nth-child(3) span.singleTest{
  background-color: rgba(65,130,181,1);
}
.graphBlock ul li:nth-child(4) span.singleTest{
  background-color: rgba(142,69,131,1);
}



/* barra da média */
.graphBlock ul li:nth-of-type(1) span.avgTest{
  background-color: rgba(219,66,73,0.15);
}
.graphBlock ul li:nth-of-type(2) span.avgTest{
  background-color: rgba(224,140,61,0.15);
}
.graphBlock ul li:nth-of-type(3) span.avgTest{
  background-color: rgba(65,130,181,0.15);
}
.graphBlock ul li:nth-of-type(4) span.avgTest{
  background-color: rgba(142,69,131,0.15);
}

/* extras - sinal e latência */


.graphExtras{
  width: calc(100%);
  margin: 2rem 0 2rem 0;
  overflow: hidden;
  font-size: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}
.graphExtras > div{
  font-weight: 500;
  width: calc((100% - 5.2rem)/4);
  text-align: right;
  font-weight: normal;
  float: left;
}
.graphExtras > div.labels{
  width: 5.2rem;
  text-align: right;
  font-size: 1.2rem;
  letter-spacing: 0.03rem;
  font-weight: 800;
  color: #777;
}
.graphExtras > div > div{
  height: 2.5rem;
}

.graphExtras .networkTitle{
  text-transform: uppercase;
  font-weight: 800;
}
.graphExtras .nw1 .networkTitle{
  color: #db4249;
}
.graphExtras .nw2 .networkTitle{
  color: #e08c3d;
}
.graphExtras .nw3 .networkTitle{
  color: #4182b5;
}
.graphExtras .nw4 .networkTitle{
  color: #8e4583;
}


.graphExtras ul.signalBar{
  display: block;
  font-size: 0;
}
.graphExtras ul.signalBar li{
  display: inline-block;
  width: 0.5rem;
  height: 1.3rem;
  margin: 0.4rem 0.2rem 0 0;
  background: #ccc;
}
.graphExtras .nw1 ul.signalBar li.full{
  background: #db4249;
}
.graphExtras .nw2 ul.signalBar li.full{
  background: #e08c3d;
}
.graphExtras .nw3 ul.signalBar li.full{
  background: #4182b5;
}
.graphExtras .nw4 ul.signalBar li.full{
  background: #8e4583;
}
.graphExtras .ping{
  font-weight: 800;
}
.graphExtras .nw1 .ping{
  color: #db4249;
}
.graphExtras .nw2 .ping{
  color: #e08c3d;
}
.graphExtras .nw3 .ping{
  color: #4182b5;
}
.graphExtras .nw4 .ping{
  color: #8e4583;
}

/* texto de explicação */
.graphText{
  margin:0;
  font-size: 1.4rem;
  line-height: 1.6em;
}

@media all and(max-width: 1570px){

  .mapArea {/*
    min-height: auto;
    height: 100%;
    width: auto;*/
  /*
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
            transform: tscale(1);

    -webkit-transition: -webkit-transform 0.3s;
    -ms-transition: -ms-transform 0.3s;
    transition: transform 0.3s;
    */
  }
  .mapArea.large {/*
    width: auto;
    min-height: auto;
    height: 250%;*/
  /*
    -webkit-transform: scale(1);
            transform: tscale(1);
            */
  }
}

@media all and (max-width: 970px){
  .networkTest{
    width: 100%;
  }

  .networkSelectors{
    right: 10px;
    text-align: right;
    left: auto;
  }
  .networkSelectors .nwType {
    text-align:right;
  }
  .networkSelectors button,
  .networkSelectors .nwType button{
    width: 72px;
    font-size: 1rem;
  }

  a.btnClose{
    display: block;
  }
  nav.graphNav{
    max-width: calc(100% - 3rem);
  }
  .graphHolder{
    height: calc(100% - 4px);
    margin-left: 0;
    left:0;
    border-right: 2px solid #dedede;
    top:2px;

    transition: "margin-left" 0.5s;
    -ms-transition: "margin-left" 0.5s;
    -webkit-transition: "margin-left" 0.5s;
  }
  .graphHolder.closed{
    margin-left: -120%;
  }

  .mapHolder{
    width: 100%;
  }
}

@media all and (max-width: 420px){
  .networkTest{
    height: 1000px;
  }
  .networkSelectors{
    right: 10px;
    text-align: right;
    left: auto;
    /*top: auto;
    bottom: 10px;*/
  }
  a.btnClose{
    display: none;
  }

  .graphHolder{
    max-width: 100%;
    margin-top: 380px;
    padding-top: 20px;
    height: calc(100% - 380px);
    top:0;
    left: 0;
    border: none;
  }
  .graphText{
    font-size: 1.45rem;
    line-height: 2.8rem;
  }
  .mapHolder{
    height: 380px;
    background: #fff;
    border: none;
  }
  .mapArea{
    margin-top: 90px;
    height: calc(100% - 70px);
    background: #fff;
  }
}






