*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  font-size: 10px;
  -webkit-tap-highlight-color: transparent;
}

html, body{
	width:100%; height: 100%;
  margin:0;
  padding:0;
}

body {
  font-family: 'Flama', Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 2.8rem;
  overflow: hidden;
	max-width: 100%;
}

/* top bar */
#top-bar{
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  /*padding: 0 10px;*/
}

.oesp {
  display: inline-block;
  position: relative;
  font-family: "OESP";
  font-size: 2.5rem;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 20px;
  overflow: hidden;
  margin: 0;
  text-decoration: none;
}
.oesp span{
  text-indent: -10000px;
  font-size: 0;
}
.oesp:before {
  content: '\f000';
  color: #000;
  /*left: 15px;*/
}
.oesp:hover:before {
  color: #333;
}
/*
.sharebar{
  float: right;
  margin-right: 10px;
}*/

.sharebar {
  margin-right: -0.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: block;
  position: relative;
  float: right;
  z-index:10000000;
  font-size: 2rem;
  top: 0px;
  right: 0px;
  color: #000;
}
@media (min-width: 540px) {
  .sharebar {
    /*margin-right: 4%;*/
  }
}

.sharebar > ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 2px 0 0;
  padding: 0;
  list-style: none;
  max-height:
}

.sharebar > ul > li {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 2px .5rem 0 0;
  line-height: 2.5rem;
}

.sharebar > ul > li:nth-child(3) {
  margin-right: 0;
}



.sharebar li a{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-decoration: none;
  width: 3rem;
  overflow: visible;
  cursor: pointer;
}

.sharebar li a, .sharebar {
  color: #000; /* #006393; */
}

.sharebar li a:hover{
  color: #333;
}

.sharebar li a span {
  font-size: 1rem;
  height: 0;
  opacity: 0;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
  white-space: nowrap;
  line-height: 1.5em;
}

.sharebar li:hover span {
  opacity: 1;
}



@media (max-width: 600px) {
  .sharebar {
    font-size: 1.8rem;
  }
  .sharebar li a {
    width: 2.4rem;
  }
}

[data-browser="safari"] #share-link,
[data-browser="firefox"] #share-link {
  display: none;
}


/*  */
#page{
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: fixed;
  overflow-y: scroll;
  padding: 0;
  left: 0;
}
@media (max-width:720px){
  #page{
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: fixed;
    overflow-x: scroll;
    overflow-y: scroll;
    padding: 0;
  }
}


#pubBanner{
  width: 100%;
  max-width: 980px;
  overflow: hidden;
  margin: 130px auto 0 auto;
  line-height: 0;
  text-align: center;

  transition: margin 0.3s;
  -moz-transition: margin 0.3s;
  -webkit-transition: margin 0.3s;
}

#pubBanner #OAS_Position1{
  display: inline-block;
}

#pubBanner.alert{
  margin: 200px auto 0 auto;
}

#puzzleContainer{
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 540px;
	margin: 20px auto 280px auto;
  padding: 0 ;
  /*overflow:hidden;*/
  clear:both;
  z-index:10;

  transition: margin 0.3s;
  -moz-transition: margin 0.3s;
  -webkit-transition: margin 0.3s;
}
#puzzleContainer.alert{
  margin: 20px auto 280px auto;
}

body.zoomed #puzzleContainer{
  height: 200%;
}

#puzzleHolder{
	position: relative;
	width: 100%;
	margin: 0;
  padding: 0;
	clear:both;
	z-index:10;
  top:0; left:0;
  overflow: hidden;
  margin-bottom:200px;

  -ms-transform-origin: 0% 0%; /* IE 9 */
  -webkit-transform-origin: 0% 0%; /* Chrome, Safari, Opera */
  transform-origin: 0% 0%;
}

body.zoomed #puzzleHolder{
  transform: scale(2);
  -moz-transform: scale(2);
  -webkit-transform: scale(2);
}

#puzzleHolder img{
  width: 100%;
  height: auto;
	position: absolute;
}

#puzzleInputs, #puzzleAnswers{
	position:absolute;
	width: 100%;
	max-width: 100%;
	font-family:Tahoma, Geneva, sans-serif;
	font-size:1.5rem;
  font-weight: 400;
	overflow:hidden;
  margin-bottom:200px;

  /*
  display: flex;
  flex-direction: row;
  -webkit-flex-direction: row;
  -mozilla-flex-direction: row;
  */
}

#puzzleInputs{
	z-index:8;
}

#puzzleAnswers{
	display:none;
	z-index:7;
}

#copyright{
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.3rem;
  position: absolute;
  bottom:5px;
  color: #666;
}

#copyright span.dev{
  display: inline-block;
  float: left;
  text-align: left;
  margin-right: 2px;
}

#copyright span.logoCopy{
  float: right;
  text-align: right;
  margin-right: 2px;
}

#copyright span.logoCopy img{
  width: 25px;
  opacity: 0.3;
  position: relative;
  vertical-align:top;
}


body.zoomed #copyright{
  /*margin-bottom: 40px;*/
}

.title{
	margin: 0 auto 0 auto;
  position: fixed;
  width: 100%;
  top:0;
  text-align: left;
	padding: 10px 20px 10px 10px;
  z-index: 180000;
  background: #e9e9e9;
  /*border-bottom: 1px solid #dedede;
  box-shadow: 0 3px 24px rgba(0,0,0,0.1);*/
}
.title h1{
  font-family: 'Flama', Helvetica, Arial, sans-serif;
  font-weight: normal;
	padding:0; margin:0;
	text-transform:uppercase;
  margin: 1.2rem 0 0 0;
  float: left;
  font-size: 2.5rem;
  max-width: 340px;
  line-height: 1.3;
  overflow: hidden;

  transition: max-height 0.3s;
  -moz-transition: max-height 0.3s;
  -webkit-transition: max-height 0.3s;
}

.title .topBt{
  overflow: hidden;
  margin: 0 0.5rem 0 0.5rem;
  width: 280px;
  text-align: right;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.title .intro {
  display: block;
  line-height: 60px;
	color: #000;
  text-align: right;
	font-weight: normal;
	letter-spacing: 0.01em;
	margin: 0 auto 0 auto;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
}

.title .intro p{
  line-height: 1.3;
  width: calc(100% - 250px);
  max-width: 340px;
  margin: 0;
  text-align: left;
  float: left;
  clear: left;
}

.first{
	float:left;
	clear:left;
}

.puzzleField{
  font-family: "Times", serif;
  box-sizing: border-box;
	padding: 0;
	margin: 0;
	border: 0;
	border:none;
	font-size: 4.2rem;
  font-weight: 300;
	text-align:center;
  line-height: 6.5rem;
	display:block;
	float:left;
	color: #666;
	opacity: 0.9;
	background-color:transparent;
	text-shadow: 2px 2px rgba(255,255,255,0.4);

  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.puzzleField.wrongAnswer{
	background-color:rgb(255,247,216);
	background-color:rgba(255,225,100,0.2);
}
.puzzleField.highlighted{
	background-color:rgb(215,235,255);
	background-color:rgba(121,187,255,0.2);
}
.puzzleField.current{
	background-color:rgb(200,225,255);
	background-color:rgba(121,187,255,0.5);
}
.box{
	font-family:Tahoma, Geneva, sans-serif;
	font-size:1rem;
	text-align:center;
	color: #333;
	display:block;
	float:left;
}
.puzzleField.half1, .puzzleField.half2{
  /*margin-top:0.1rem;*/
	font-size: 1.8rem;
  line-height: 4.5rem;
}

#alertBox{
	background-color:#d9d9d9;
	width: 100%;
  max-width: 540px;
	padding:0 15px;
	line-height:1.2;
  font-weight: normal;
	/*box-shadow: 0px 0px 0px 6pt rgba(0,0,0,0.1);*/
	color:#333;
	text-align:left;
  margin: 0 auto;

	border-radius:3px;
	-o-border-radius:3px;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	max-height: 0;
	z-index:0;
  overflow: hidden;

  /*
  	position:absolute;
    top: 50%;
  	left: 50%;

    transform: translate(-50%, -55%);
    -moz-transform: translate(-50%, -55%);
    -webkit-transform: translate(-50%, -55%);

    -ms-transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
  */

  transition: max-height 0.3s, margin 0.3s;
  -moz-transition: max-height 0.3s, margin 0.3s;
  -webkit-transition: max-height 0.3s, margin 0.3s;
}

#alertBox.visible{
  max-height: 100px;
  margin: 2rem auto 0 auto;
}

#alertContent{
	padding:10px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

#closeButton {
  background: #fff;
	border-radius:3px;
	-o-border-radius:3px;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	text-indent:0;
	border:1px solid #ccc;
	display:inline-block;
	color:#333;
	font-size:1.5rem;
	font-weight:normal;
	font-style:normal;
	line-height:24px;
	text-decoration:none;
	text-align:center;
	margin: 0 auto 0.5rem auto;
  border:none;
  display: block;
  width: 5rem;
  padding: 0.15rem 0.15rem;
}

#closeButton:hover {
	background-color:#4197ee;
}

#timeCounter{
  display: inline-block;
  width: calc(100% - 220px);
  margin: 0;
  font-size: 1.35rem;
  line-height: 2rem;
  vertical-align: middle;
  padding-bottom: 0rem;
  text-align: right;
  font-weight: bold;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

#timeCounter span{
  font-weight: normal;
  letter-spacing: 0;
  font-size: 1.3rem;
}

#btCheck:focus,
#btClear:focus{
  outline: none;
}

#btCheck:hover,
#btCheck:active,
#btClear:hover,
#btClear:active {
  background-color: #d9d9d9;
  outline: none;
}

#btCheck {
  width: 85px;
}

#btClear {
  width: 75px;
}

#btCheck, #btClear, #btZoom {
  background-color: #fff;
	border-radius:4px;
	-o-border-radius:4px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
  -webkit-appearance: none;

	text-indent:0;
	display:inline-block;
	color:#333;
  background: #fefefe;
	font-weight:normal;
	font-style:normal;
	text-decoration:none;
	text-align:center;
	letter-spacing:1px;
	padding: 0.4rem 1rem;

  font-family: 'Flama', Helvetica, Arial, sans-serif;
	font-size:1.6rem;
	margin-right:0.2rem;
	vertical-align: bottom;
  border: 0;
  cursor: pointer;
  display: inline-block;
  /*border: 1px solid #d3d3d3;*/
  line-height: 3rem;
}

#btZoom:focus,
#btZoom:active {
  outline: none;
}

#btZoom{
  float: none;
  margin: 3px 0 0 0;
  display: none;
  width: 40px;
  background: transparent url('../media/images/zoom-icons.svg') no-repeat -40px center;
  background-size: auto 40px;
  border: 0;
  background-color: #d3d3d3;
}
#btZoom.hidden{
  display:none;
}

body.zoomed #btZoom{
  background-position: 0px center;
}

#keyboardContainer{
	position: fixed;
  bottom: -360px;
	width: 100%;
	background: #e7e7e7;
	padding: 20px 20px 20px 10px;
	z-index:100;
	box-shadow: 0 -3px 24px rgba(0,0,0,0.1);
	margin: 0 auto;
  font-weight: normal;

  -ms-transform-origin: 0% 100%; /* IE 9 */
  -webkit-transform-origin: 0% 100%; /* Chrome, Safari, Opera */
  transform-origin: 0% 100%;
}

#keyboardContainer.open{
  bottom:0;
}

#keyboard{
	display:block;
	position: relative;
	overflow: hidden;
	list-style: none;
	margin:0 auto 0 auto;
  padding:0;
	width: 100%;
	max-width: 380px;

  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#keyboard li{
	display:block;
	width: calc(100%/6);
	float: left;
	padding: 3px;
  min-height: 42px;
	cursor: pointer;
}

#keyboard li:hover,
#keyboard li:focus{
  background-color: #d3d3d3;
}

#keyboard li.delete,
#keyboard li.hide{
	width: calc((100%/6)*1.5);
}

#keyboard li span{
	display:block;
	border-radius: 5px;
	padding: 10px 2px;
	background-color: #fff;
	text-align: center;
	font-size: 21px;
  min-height: 42px;
	line-height: 24px;
	text-transform: uppercase;
}

#keyboard li.sp1 span, #keyboard li.sp2 span{
  height: 100%;
	background-color: #f8f8f8;
	cursor: default;
}

#keyboard li.delete span{
	background: #fff url('../media/images/backspace.svg') center no-repeat;
	background-size: 20px auto;
}

#keyboard li.hide span{
	background: #fff url('../media/images/keyboard.png') center no-repeat;
	background-size: 30px auto;
}

#keyboard li span:active{
	background-color: #eee;
}

#keyboard li.sp1 span:active, #keyboard li.sp2 span:active,
#keyboard li.sp3 span:active{
	background-color: #f8f8f8;
}

/***************************/
/* Calendar */

.calendar{
  position: absolute;
  z-index:100000000;
  display: none;
	opacity: 0;

  background: #fff;
  width: 100%;
  max-width: 240px;
  min-height: 40px;
  overflow: hidden;
  padding: 10px;
  margin: 1px 0 0 -1px;
  top: 30px;
  right: 0px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.15);

  transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
}

.calendar.visible{
	display: block;
	opacity: 1;
}

.calendar .cal-title {
	position: relative;
	text-align: center;
	overflow: hidden;
	margin:0;
	padding:0;
}

.calendar ul{
	margin:0;
	padding:0;
	list-style-type: none;
  line-height: 1.2rem;
}

.calendar .cal-title a{
  display: inline-block;
  width: 20px; height: 30px;
  text-decoration: none;
  font-size: 2rem;
  color: #333;
}

.calendar .cal-title a:before{
  display: inline-block;
  width: 20px; height: 30px;
  text-decoration: none;
  font-size: 1rem;
  color: #000;
}
.calendar .cal-title a:hover:before{
  display: inline-block;
  width: 20px; height: 30px;
  text-decoration: none;
  font-size: 1rem;
  color: #555;
}

.calendar .cal-title a.cal-prev-month:before{
  content: '◀';
}

.calendar .cal-title a.cal-next-month:before{
  content: '▶';
}

.calendar .cal-title a:visited{
  color: #333;
}

.calendar .cal-title a:hover{
  color: #000;
}

.calendar .cal-title a.disabled{
  opacity: 0.2;
  cursor: auto;
}

.calendar .cal-title span.cal-year{
  display: block;
  width: 100%;
  font-size: 1.5rem;
  background: #006194;/*#006194;*/
  color: #fff;
  padding: 2px 0;
  margin-bottom: 8px;
}

.calendar .cal-title span.cal-month{
  display: inline-block;
  width: calc(100% - 60px);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.calendar .cal-week-days, .calendar .cal-month-days{
	display:block;
	clear:both;
	width: 100%;
	margin:0;
	padding:0;
	white-space: normal;
	font-size:0;
	text-align: left;
}

.calendar .cal-week-days{
	margin-top: 0px;
}

.calendar .cal-week-days li, .calendar .cal-month-days li{
  list-style: none;
  display: inline-block;
  width: calc( 100% / 7);
  padding:0; margin: 6px 0 2px 0;
  text-align: center;
  font-size:1.3rem;
  cursor: default;
}

.calendar .cal-week-days li{
  color: #006194;
}

.calendar .cal-month-days li{
  position: relative;
  margin: 0;
  cursor: pointer;
  color: #333;
  line-height: 2.3rem;
  padding: 0.1rem 0 0 0;
  overflow: visible;

  transition: background-color 0.3s;
  -moz-transition: background-color 0.3s;
  -webkit-transition: background-color 0.3s;
}
.calendar .cal-month-days li.disabled{
  cursor: auto;
  color: #bbb;
  z-index:10;

  transition: none;
  -moz-transition: none;
  -webkit-transition: none;
}

.calendar .cal-month-days li:not(.disabled):hover{
  color: #000;
}

.calendar .cal-month-days li:not(.disabled):after{
  content: '';
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  left: 50%; top:50%;
  z-index:-1;
  background-color: #fff;

  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.calendar .cal-month-days li:not(.disabled):hover:after{
  background-color: #e6ecee;
}

.calendar .cal-month-days li.today:after{
  background-color: #e6ecee;/*c6d7dc*/
}

@media screen and (max-width:540px){
	body{
		/*font-size: 1.4rem;*/
	}
}

@media screen and (max-width:540px){
	body{
		font-size: 1.3rem;
	}
  #top-bar{
    padding: 5px 4%;
    line-height: 1.2;
  }
  .oesp{
    font-size: 2.5rem;
  }

  #top-bar{
    padding-top: 15px;
  }

  .calendar{
    top: 45px;
    /*width: 100%;
    max-width: 100%;*/
  }

  .title{
    width: 100%;
    padding: 0;
    line-height: 7rem;
  }
  .title h1{
		font-size: 2rem;
    max-height: 0;
    padding: 0;
    margin:0;
  }
  .title h1.alert{
    max-height: 100px;
    margin-bottom: 1rem;
  }
  .title .topBt{
    width: 210px;
  }
  .title .intro p,
  .title .intro h1{
    width: 100%;
    max-width: 280px;
  }
  .title .intro,
  .title .topBt{
    width: 100%;
    display: block;
    float: left;
    margin: 0 auto 0 auto;
    font-size: 1.25rem;
    text-align:left;
    line-height: 1.2;
  }
  .title .intro{
    margin: 1rem auto 1.5rem auto;
    padding: 0 4%;
  }

  #timeCounter{
    text-align: center;
    margin-right: 2px;
  }

	#btClear, #btCheck, #btZoom{
		font-size: 1.5rem;
		float:none;
		display: inline-block;
  	padding: 0.2em 0.8em;
  }
  #btZoom{
    display:inline-block;
    float: right;
  }
	#keyboard li{
		display:block;
		float: left;
		padding: 2px;
	}

	#keyboard li span{
    height: 36px;
    font-size: 1.8rem;
    line-height: 1;
		min-height: 36px;
	}

  #puzzleContainer{
    padding: 0 4%;
    margin: 0px auto 200px auto;
  }
  #puzzleContainer.alert{
    margin: 0px auto 200px auto;
  }

  .puzzleField{
		font-size:3.2rem;
    line-height: 1.8;
	}
}
@media screen and (max-width:500px){
  .puzzleField{
		font-size:2.7rem;
    line-height: 1.6;
	}
}

@media screen and (max-width:400px){
  .puzzleField{
		font-size:2.5rem;
    line-height: 1.4;
	}
}

#horizOverlay{
  display: none;
  background: #fff;
  z-index:10000000;
  position: fixed;
  width: 100%;
  height: 100%;
  top:0;
  left:0;
}
#horizOverlay p{
  display: block;
  position: absolute;
  width: 100%;
  max-width: 240px;
  top: 40%;
  left: 50%;
  text-align: center;
  font-size: 1.7rem;

  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
@media screen and (max-height:400px) and (orientation: landscape) {
  #horizOverlay{
    display: block;
  }
}

*.unselectable {
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

/* Paywall */
div.pw-container {
  position: relative;
  margin: 0 auto;
  z-index: 10001;
}
#signwall-estadao,
#paywall-estadao {
  top: 0 !important;
}

/* Barra Parceiros */

.OESP__barra--wrapper {
  width: 850px !important;
}

.title,
#page {
  top: 40px;
}

.oesp {
  display: inline-block;
  visibility: hidden;
}

@media screen and (max-width:720px) {

  .oesp {
    display: none;
  }

  .sharebar {
    float: none;
  }
}
