html,body{/*to get the scroll on the side*/
	background:lightgray;
  z-index:5;
  height:100vh;
  width:100vw;
  margin: 0;
  padding: 0;
}
div#menu {/* you must include "div" for IE */ /*overflow: hidden;*/
  background-color: white;
  z-index:1;
  height: 7%;
  text-align: center;
  width: 100%;
  z-index:1;
  border-top:0px;
  border-right:0px;
  border-left:0px;
  border-bottom: 6px;
  border-style: solid;
  -moz-border-image: -moz-linear-gradient(right, #ff6347 0%, #99CCFF 100%);
  -webkit-border-image: -webkit-linear-gradient(right, #ff6347 0%, #99CCFF 100%);
  border-image: linear-gradient(to right, #ff6347 0%, #99CCFF 100%);
  -webkit-border-image-slice: 2;
  border-image-slice: 2;
}
.brand h5,
.brand h6 {
  display: inline;
  height:10%;
}
#topad{
  width: 70%;
  margin: 0 auto;
  margin-bottom:0%;
  margin-top: 1%;
}
#instructions{
  background: white;
  border-radius: 8px;
  width: 96%;
  margin:0 auto;
}
#logo{
  opacity: 0.9;
}
#main{
  width:100%;
  text-align: center;
  margin: 0 auto;
}
.title{
  height:90px;
  width: 1050px;
  border-style: solid;
  margin: 0 auto;
  border-top: 0px solid transparent;
  border-left: 0px solid transparent;
  border-right: 0px solid transparent;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(to right, #ff6347 0%, #99CCFF 100%);
  border-image-slice: 1;
}
#changeText {/*was year changing*/
  opacity: 1;
  transition: opacity 0.5s;
}
.hide {
  opacity: 0 !important;
}
#grafica {
  margin: 16%;
  margin-top:0%;
  margin-bottom:0%;
  width: 66%;
  height:auto;
  position:relative;
  float:left;
  background :white;
  border-radius:8px;
}
text.sex{  
  font-size: 30px; 
  font-family: Verdana,Geneva,sans-serif;
  color: #5c5c5c;
  margin-left:39px;
  margin-right:39px;
}
#preperiod{
  float: left;
  width: 330px;
  height: 60px;
  text-align: center;
  background-color:white;
  border-radius:8px;
  margin-top:20px;
  margin-left: 20px;
}
#period{
  float: left;
  width: 330px;
  height: 60px;
  text-align: center;
  background-color:white;
  border-radius:8px;
  margin-top:20px;
}
#buttons {
  float: left;
  width: 750px;
  height:50px;
  text-align: center;
}
button {
	display: inline-block;
  padding: 5px 10px;
  font-size: 28px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #99CCFF;
  border: none;
  border-radius: 15px;
  box-shadow: 0 7px #999;
}
button:hover {background-color: steelblue;}

button:active {
  background-color: steelblue;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
#pyramidmale {
  width: 330px;
  transform: rotate(180deg);
  float:left;
}
#age {
  width: 46px;
  height: 505px;
  float: left;
}
#pyramidfemale {
  width: 300px;
  float: left;
}
#population {/*xaxis under malepyramid*/
  width: 360px;
  height:35px;
  float: left;
  border: solid white;
}
#populationf {/*xaxis under malepyramid*/
  width: 320px;
  height:30px;
  float: left;
  margin-top:3px;
}
.xAxism {
  transform: rotate(180deg);
}
.axisAge line{
  stroke: #5c5c5c ;
}
.axisAge path{
  stroke: white;
}
.axisAge text{
  fill: #5c5c5c ;
}  
#key{
  width: 750px;
  height: 140px;
  float:left;
  margin-bottom:20px;
}
div.squares { 
  width: 50px;
  height: 100px;
  float:left; 
  position:relative;
}
div.firstsquare { 
  width: 27px;
  height: 100px;
  position:relative;
  float:left; 
}
 #info {
  width:96%;
  margin:2%;
  float: left;
  background-color: white;
  border-radius: 8px;
}
.left{
  width: 96%;
  float: left;
  margin:3%;
  border: 3px;
  text-align: justify;
}
table {
  border-collapse: collapse;
  width:96%;
  margin: 0 auto;
  text-align: center
}
table, th, td {
  border: 2px solid lightgray;
}
tr:nth-child(even) {background: white}
tr:nth-child(odd) {background: #f0f0f0}
td{
  font-family: Verdana, Geneva, sans-serif; 
  color: #5c5c5c;
  font-size: 28px;
}
div.disc{
  width:100%;
  float:left;
  background: gainsboro;
  transition: .5s ease;
  text-align: justify;
  border-radius: 8px;
  border-width:2%;
}
.advert{
  width: 70%;
  margin-left: 13%;
  margin-bottom:0px;
  float:left;
}
.midadvert{
  width: 80%;
  margin-left: 10%;
  margin-bottom: 2%;
  margin-right: 20%;
  float:left;
}
#followme{
  width:96%;
  margin:0 auto;
  text-align: center;
}
img.follow{
  width:6%;
  height: auto;
  margin:3%;
}
img.internal{
  width:25%;
  height:auto;
  margin: 2%;
  transition: .5s ease;
  backface-visibility: hidden;
  border:solid gainsboro;
  border-width:5px;
}
div.related{
  width:96%;
  float:left;
  background: gainsboro;
  transition: .5s ease;
  text-align: justify;
  border-radius: 8px;
  border-width:5px;
  margin: 2%;
}
.related:hover {
  background: darkgray;
  border-width:5px;
}
div.interpub{
  width:65%;
  text-align: center;
  float: right;
}
#imagespin{
  float:right;
  margin:2%;
  float: 96%;
}
#footerad{
  width: 96%;
  height: auto;
  margin:2%;
  float:left;
}
.screen{
  float:left;
  width:44%;
  margin:2%;
  height:auto;
}
div#menu2 {/* you must include "div" for IE */ /*overflow: hidden;*/
  background-color: white;
  width: 100%;
  z-index:1;;
  height: 7%;
  bottom: 0;
  border-top:6px;
  border-right:0px;
  border-left:0px;
  border-bottom: 0px;
  text-align: center;
  border-style: solid;
  -moz-border-image: -moz-linear-gradient(right, #ff6347 0%, #99CCFF 100%);
  -webkit-border-image: -webkit-linear-gradient(right, #ff6347 0%, #99CCFF 100%);
  border-image: linear-gradient(to right, #ff6347 0%, #99CCFF 100%);
  -webkit-border-image-slice: 2;
  border-image-slice: 2;
  float: left;
}
h1{/*viz title*/
  font-family: Courier New;
  color:dimgray;
  font-size: 3rem; 
  font-weight: 500; 
  text-align:center;
}
h2{/*info title*/
  font-size: 3rem;
  color:dimgray;
  text-align:center;
  font-weight: 500; 
  font-family: Courier New;
}
h3{/*info title*/
  font-size: 2.5rem;
  color:dimgray;
  text-align:center;
  font-family: Courier New;
}
h4{/*info title*/
  font-size: 2rem;
  color:dimgray;
  text-align:center;
  font-weight: 500; 
  font-family: Courier New;
}
h5{/*databayou title*/
  font-family: Verdana,Geneva,sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #f1f1f1; 
  text-align:center;
  text-shadow:1px 1px 0px #99CCFF,
              2px 2px 0px #B2B1D1,
              3px 3px 0px #CC97A3,
              4px 4px 0px #E57D75,
              5px 5px 0px #ff6347;
}
h6{/*databayou menu*/
  font-family: Verdana,Geneva,sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color:dimgray; 
  text-align:center;
}
text.title{/*years*/
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 0;
  line-height:0.8em;
  color:dimgray;
  text-align:center;
  font-weight: 500; 
  font-family: Courier New;
}
p.race{
  color:dimgray;
  font-size: 28px;
  text-align: justify;
  font-family: Verdana, Geneva,sans-serif; 
  margin-top:110%;
  font-weight: 500;
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);/* Safari */
  -moz-transform: rotate(-90deg);/* Firefox */
  -ms-transform: rotate(-90deg);/* IE */
  -o-transform: rotate(-90deg);/* Opera */
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
p{
  color:dimgray;
  font-size: 1.5rem;
  text-align: justify;
  line-height: 1.5;
  font-family: Verdana, Geneva,sans-serif;
  margin:2%;
}
p.test1{
  font-size: 2.3rem;
  color:dimgray;
  text-align:center;
  margin-bottom: 0%;
  margin-top: 0%;
  font-weight: 500; 
  font-family: Courier New, monospace;
}
text{  
  font-size: 16px; 
  font-family: Verdana,Geneva,sans-serif;
  color: #5c5c5c;
}
ul,ol{
  width:96%;
  margin:2%;
}
li{
  color:dimgray;
  font-size: 1.4rem;
  line-height:1.5;
  font-family: Verdana, Geneva,sans-serif; 
}
a.brand:link { 
  color: #f1f1f1; 
  text-decoration: none;
}
a.brand:visited { 
  color: #f1f1f1; 
  text-decoration: none;
}
a.brand:hover { 
  color: #f1f1f1; 
  text-decoration: none;
} 
a.brand:active { 
  color: #f1f1f1; 
  text-decoration: none;
} 
a:link {
  color: #ff6347;
	text-decoration: none;
	font-family: Verdana, Geneva, sans-serif; 
}
a:visited {
  color: #ff6347;
	text-decoration: none;
}
a:hover {
  color: #ff8c00;
	text-decoration: none;
}
a:active {
  color: #ff8c00;
	text-decoration: none;
}	