/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

@font-face {
    font-family: 'flamabook';
    src: url('../fonts/flama-book-webfont.eot');
    src: url('../fonts/flama-book-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/flama-book-webfont.woff') format('woff'),
         url('../fonts/flama-book-webfont.ttf') format('truetype'),
         url('../fonts/flama-book-webfont.svg#flamabook') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'flamamedium';
    src: url('../fonts/flama-medium-webfont.eot');
    src: url('../fonts/flama-medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/flama-medium-webfont.woff') format('woff'),
         url('../fonts/flama-medium-webfont.ttf') format('truetype'),
         url('../fonts/flama-medium-webfont.svg#flamamedium') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    overflow: hidden;
    font-family: 'flamabook';
    color: #4d4d4f;
}

#header {
    position:absolute; 
    background: rgba(255,255,255,0.9); 
    min-width: 970px;
    width: 100%; 
    height: 72px; 
    z-index: 10;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow:    0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    box-shadow:         0px 0px 20px 0px rgba(0, 0, 0, 0.3);
}

#siteBar {
  background: #4d4d4f;
  width:100%;
  height:34px;
  left: 0px;
  position:absolute;
  top:0;
  z-index:101;
  text-align:center;
  min-width:970px;
}

#title {
    position: absolute;
    top: 27px;
    left: 2.2em;
    font-size: 18px;
    text-transform: uppercase;
    font-family: 'flamamedium';
    float: left;
}
#title span {
    font-family: 'flamabook';
}

/* Redes sociais */
#shareBar{
  position: absolute;
  width: 120px; height: 40px;
  top: 38px; 
  right: 2.2em !important;
}
#header #shareBar{
  right:0;
}
#shareBar a{
  display:block; float:left;
  text-decoration: none;
  width: 30px; height: 30px;
  margin-left: 10px;
  background: transparent url('https://infograficos.estadao.com.br/geral/img/social-icons-round.png') no-repeat center top;
}
#shareBar a span{
  display: block;
  text-decoration: none;
  text-align: center;
  color: #999;
  font-size: 11px;
  font-weight: bold;
  margin-top: 40px;
}
#shareBar a#btFbShare{ background-position: -40px 0; margin-left: 0; }
#shareBar a#btFbShare:hover{ background-position: -40px -40px; }
#shareBar a#btGPlusShare{ background-position: -80px 0; }
#shareBar a#btGPlusShare:hover{ background-position: -80px -40px; }
#shareBar a#btTwitterShare{ background-position: 0 0; }
#shareBar a#btTwitterShare:hover{ background-position: 0 -40px; }

#viewport {
    position: absolute; 
    top: 0; 
    left:0; 
    min-width: 970px; 
    width: 100%; 
    height: 100%; 
    margin:0 auto;
    background: #e9fbff;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U5ZmJmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  #e9fbff 0%, #ffffff 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e9fbff), color-stop(100%,#ffffff));
    background: -webkit-linear-gradient(top,  #e9fbff 0%,#ffffff 100%);
    background: -o-linear-gradient(top,  #e9fbff 0%,#ffffff 100%);
    background: -ms-linear-gradient(top,  #e9fbff 0%,#ffffff 100%);
    background: linear-gradient(to bottom,  #e9fbff 0%,#ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e9fbff', endColorstr='#ffffff',GradientType=0 );
}

.content {
    display: none;
    position:fixed;
    width: 385px;
    left: 50%;
    top: 50%;
    margin-top:36px;
    -ms-transform: translate(23px  , -50%); /* IE 9 */
    -webkit-transform: translate(23px  , -50%); /* Chrome, Safari, Opera */
    transform: translate(23px  , -50%);
}

.content > img {
    max-width: 100%;
    min-width:385px;
    max-height:80%;
    min-height:488px;
}
#torre {
    left: 5px;
}

.torre {
    position:absolute;
    width: 480px;
    height: 638px;
}

.comum { background: url('../img/t_mod_comum.png') no-repeat; }

.base { background: url('../img/t_base.png') no-repeat; }

.nivel { background: url('../img/t_mod_nivel.png') no-repeat; }

.topo { background: url('../img/t_top.png') no-repeat; bottom: 18645px !important;}


.torre-grad {
    position:absolute;
    bottom: 169px;
}

.grad {
    position: absolute;
    background: url('../img/graduacao.png') no-repeat 0 -1px;
    width: 7px;
    height: 169px;
    left: 52px;
    bottom: 0;
}
.torre-grad:last-child .grad {
    background-position: 0 140px;
}
.metragem {
    position: absolute;
    width: 48px;
    text-align: right;
    height: 169px;
    bottom: 0;
    top: -2em;
    display:table-cell;
    vertical-align:bottom;
}

.link-reportagem {
    position:absolute;
    left:0;
    top: 38%;
    font-family: 'flamamedium';
    color: #8bbacc;
}
.link-reportagem img {
    margin-right: 10px;
}

.link-reportagem:hover {
    text-decoration: underline;
}

.clouds {
    position:absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: 1;
    overflow: hidden !important;
}

.cloud {
    position:absolute; 
    left: -100px; 
    width: 350px;
    height: 200px;
    background-image: url('../img/cloud2.png');
    background-size: 100% auto;
}

#nav {
    position:absolute;
    width: 54px;
    height: 200px;
    right:15px;
    top:50%;
    font-family: 'flamamedium';
    -ms-transform: translateY(-50%); /* IE 9 */
    -webkit-transform: translateY(-50%); /* Chrome, Safari, Opera */
    transform: translateY(-50%);
}

#mini-torre {
    position:absolute;
    width: 50%;
    height: 100%;
    background-image: url('../img/mini-torre.png');
    background-repeat: no-repeat;
    background-position: right center;
    right: 6px;
    top:0;
}

#nav a {
    width: 100%;
    color: #fff;
    height: 30px;
    line-height:30px;
    padding-left: 6px;
    margin-bottom: 4px;
    display:block;
}

#a-wrap, #bg-wrap {
    position: absolute;
    height: 100%;
    width: 100%;
}

#nav .bg {
    height: 30px;
    margin-bottom: 4px;
    background: rgba(139, 186, 204, 0.3);
}

#nav .bg.active {
    background: rgba(139, 186, 204, 1);
}

#nav a:hover {
    color: rgba(139, 186, 204, 1);
}

#nav a.active {
    color: #fff;
}

.nav-btn {
    position: fixed;
    width: 46px;
    height: 62px;
    background-repeat: no-repeat;
    left: 50%;
    -ms-transform: translateX(-50%); /* IE 9 */
    -webkit-transform: translateX(-50%); /* Chrome, Safari, Opera */
    transform: translateX(-50%);
    -webkit-transition: all 200ms ease;
    -moz-transition: all  200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}

#up {
    top: 72px;
    background-position: 0 -17px;
    background-image: url('../img/nav-btn-up.png');
}

#up:hover {
    background-position: 0 0 !important;
    opacity: 0.8 !important;
}

#down {
    bottom: -45px;
    background-position: 0 17px;
    background-image: url('../img/nav-btn-down.png');
}

#down:hover {
    background-position: 0 0 !important;
    opacity: 0.8 !important;
}

a {
    text-decoration: none;
    outline: 0;
}

#haste {
    display:none;
    position: absolute;
    min-width:120px;
    width:13%;
    max-width: 200px;;
    left:395px; 
    top: 50%;
    -ms-transform: translateY(-50%); /* IE 9 */
    -webkit-transform: translateY(-50%); /* Chrome, Safari, Opera */
    transform: translateY(-50%);
}

#custo {
    display:none;
    position: absolute;
    min-width:120px;
    width:28%;
    margin-left: 23px;
    left:50%; 
    top: 110px;
   /* -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);  
    transform: translateY(-50%);*/
}

#creditos {
    position:absolute;
    text-align:right;
    right: 15px;
    font-size: 9px;
    color: #ccc;
    bottom:0;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {

}

/* Telas menores que 970 de largura */
@media only screen and (max-width : 970px) {
    body {
        width:970px !important;
        min-width:970px !important;
        overflow-x: auto;
    }

    #viewport {
        min-width: 970px !important; 
        width: 970px !important; 
    }

    #nav, .content, .nav-btn, #shareBar {
        position: absolute;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
