html, div {  
  display: block;  
}

.text {
	font-size: 15px;
}

.hidden {
	display: none;
}

body {
	width: 100%;
	height: 100%;
	margin: 0px;
	overflow: hidden;
}

#titleBox {
	margin-top: 100px;
	width: 350px;
	height: 120px;
    margin-left: auto;
    margin-right: auto;

   	z-index : 1;
   	overflow: hidden;
}

#titleBackgroundBox {
	position: absolute;
	width: 350;
	height: 120;
	background: #FFF;
	opacity: 0.5;
	border-radius: 6px;
	z-index: -1;
}

#backgroundImage {
	position: absolute;
	top: 0px;
	left: 0px;
  width: 100%;
  height: 100%;
  //background: url("https://lh4.googleusercontent.com/-3Gyv8gnsMus/ThjYYUHKs2I/AAAAAAAAA1M/vwXiOTkujpM/s640/359_IMG_20101129_161224.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.8;
  z-index : -1;

}

#ruler {
	position: absolute;
	top: 300px;
	left: 50px;
	height: 100px;
	background: #FAD382;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease; /* Safari and Chrome */
  -moz-transition: all 0.2s ease; /* Firefox */
  -ms-transition: all 0.2s ease; /* IE 9 */
  -o-transition: all 0.2s ease; /* Opera */
  
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  
  overflow: hidden;
  opacity: 0.9;
}

#ruler:hover {
	background: #FAD382;
	opacity: 0.95;
}

.calibrationItem {
	// All in the same position from the left.
	position: absolute;
	top: 300px;
	left: 50px;
	
	// Initially hidden.
	opacity: 0;
	visibility: hidden;
	border-radius: 14px;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease; /* Safari and Chrome */
	-moz-transition: all 0.3s ease; /* Firefox */
	-ms-transition: all 0.3s ease; /* IE 9 */
	-o-transition: all 0.3s ease; /* Opera */
  
	transform-origin: left top;
	-webkit-transform-origin: left top; /* Safari and Chrome */
	-moz-transform-origin: left top; /* Firefox */
	-ms-transform-origin: left top; /* IE 9 */
	-o-transform-origin: left top; /* Opera */
	
	overflow: hidden;
}

// TODO(ralf): Currently unused;
.calibrationItem span {
	width: 100%;
	font-size: 120pt; // multiplied by 10 to get a good initial size
	align: center;
	opacity: 0;
}

.calibrationItem:hover span {
	opacity: 1;
}

#calibrationCreditCard {
	position: absolute;
	top: 280px;
	left: 50px;
	background: url("images/calibration_credit_card.gif") no-repeat center center;
	background-size: cover;
}

#calibrationA4 {
	position: absolute;
	top: 10px;
	left: 50px;
	background: url("images/calibration_a4.jpg") no-repeat center center;
	background-size: cover;
}

#screenBox {
  position: absolute;
  top: 400px;
  left: 50px;
  width: 500px;
  height: 25px;
  line-height: 25px;
}

#screenBoxBackground {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  opacity: 0.9;
}

.backgroundBox {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFF;
}

#sizeSelection {
  position: absolute;
  margin-left: 0px;
  width: 300px;
}

#customScreenSizeBox {
	position: absolute;
	margin-left: 253px;
	width: 45px;
	
	 transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease; /* Safari and Chrome */
	-moz-transition: all 0.3s ease; /* Firefox */
	-ms-transition: all 0.3s ease; /* IE 9 */
	-o-transition: all 0.3s ease; /* Opera */
}

#customScreenSizeInput {
	position: absolute;
	margin-left: 0px;
	width: 35px;
}

#customScreenSizeUnit {
	position: absolute;
	margin-left: 35px;
	margin-top: 0px;
	width: 5px;
}

#helpBox {
	position: absolute;
	top: 430px;
	left: 50px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	
	background: #FFF;
	opacity: 0.9;
	border-radius: 6px;
	//display: none;
	
	transition: all 1s ease;
	-webkit-transition: all 1s ease; /* Safari and Chrome */
	-moz-transition: all 1s ease; /* Firefox */
	-ms-transition: all 1s ease; /* IE 9 */
	-o-transition: all 1s ease; /* Opera */
}

#helpSymbol {
	position: absolute;
	left: 7px;
	top: 0px;
	font-size: 12px;
}

#helpBox:hover {
	left: 50px;
	width: 500px;
	height: 200px;	
}

#helpBox .inner {
	visibility: hidden;
	width: 0px;
	height: 0px;
}

#helpBox:hover .inner {
	visibility: visible;
	width: 100%;
	height: 100%;
	margin: 2px;
}

#screenInfo {
  position: absolute;
  margin-left: 350px;
  top: 0px;
  width: 135px;
  color: #555;
}

#rulerMarkers {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease; /* Safari and Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -ms-transition: all 0.3s ease; /* IE 9 */
  -o-transition: all 0.3s ease; /* Opera */
  
  transform-origin: left;
  -webkit-transform-origin: left; /* Safari and Chrome */
  -moz-transform-origin: left; /* Firefox */
  -ms-transform-origin: left; /* IE 9 */
  -o-transform-origin: left; /* Opera */
  
  opacity: 1;
}

#ruler .markerText {
  position: absolute;
  top: 65px;
  // The horizontal position is determined dynamically.
  transform:scale(1, 1); /* W3C */
  -webkit-transform:scale(1, 1); /* Safari and Chrome */
  -moz-transform:scale(1, 1); /* Firefox */
  -ms-transform:scale(1, 1); /* IE 9 */
  -o-transform:scale(1, 1); /* Opera */
}

#ruler .marker {
  position: absolute;
  /* The horizontal position is determined dynamically. */
  top: 80px;
  transform-origin: bottom;
  -webkit-transform-origin: bottom; /* Safari and Chrome */
  -moz-transform-origin: bottom; /* Firefox */
  -ms-transform-origin: bottom; /* IE 9 */
  -o-transform-origin: bottom; /* Opera */
}

#ruler .marker.small {
  color: #000;
  transform:scale(1, 0.5); /* W3C */
  -webkit-transform:scale(1, 0.5); /* Safari and Chrome */
  -moz-transform:scale(1, 0.5); /* Firefox */
  -ms-transform:scale(1, 0.5); /* IE 9 */
  -o-transform:scale(1, 0.5); /* Opera */
}

#ruler .marker.medium {
  color: #000;
  transform:scale(1, 0.75); /* W3C */
  -webkit-transform:scale(1, 0.75); /* Safari and Chrome */
  -moz-transform:scale(1, 0.75); /* Firefox */
  -ms-transform:scale(1, 0.75); /* IE 9 */
  -o-transform:scale(1, 0.75); /* Opera */
}

#ruler .marker.large {
  color: #000;
  transform:scale(1, 1); /* W3C */
  -webkit-transform:scale(1, 1); /* Safari and Chrome */
  -moz-transform:scale(1, 1); /* Firefox */
  -ms-transform:scale(1, 1); /* IE 9 */
  -o-transform:scale(1, 1); /* Opera */
}

/* Ads. */
.ad {
	opacity: 0.5;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease; /* Safari and Chrome */
	-moz-transition: all 0.3s ease; /* Firefox */
	-ms-transition: all 0.3s ease; /* IE 9 */
	-o-transition: all 0.3s ease; /* Opera */
}

.ad:hover{
	opacity: 1;
}

#amazonLinkDe {
	position: absolute;
	bottom: 10px;
	right: 120px;
}

#amazonLinkUk {
	position: absolute;
	bottom: 10px;
	right: 10px;
}

/* About. */
#aboutBox {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	opacity: 0.9;
	background: #FFF;
	
	transition: all 1s ease;
	-webkit-transition: all 1s ease; /* Safari and Chrome */
	-moz-transition: all 1s ease; /* Firefox */
	-ms-transition: all 1s ease; /* IE 9 */
	-o-transition: all 1s ease; /* Opera */
	
	overflow: hidden;
}

#aboutBox:hover {
	width: 280px;
	height: 140px;
}

#aboutBox #aboutSymbol {
	position: absolute;
	top: 2px;
	right: 8px;
	font-size: 12px;
}

#aboutBox #aboutContent {
	position: absolute;
	top: 7px;
	left: 7px;
	width: 0px;
	height: 0px;
	visibility: hidden;
}

#aboutBox p {
	margin-top: 0px;
	margin-bottom: 0.5em;
	font-size: 13px;
}

#aboutBox:hover #aboutContent {
	visibility: visible;
	width: 260px;
	height: 150px;
}
