/* JAVASCRIPT and FORMS FOR GENERATOR AND CALCULATOR PAGES*/

fieldset{
  width: 95%;
  margin: auto;
  padding: 0 0 20px 0;
  font-size:110%;
  border: 3px groove #00ccff;
}

/*
 label {
	  float: left;
	  width: 9.5em;
	  clear: left;
	  text-align: center;
	  padding: 0px;
	  line-height: 2em;
}
*/

select {
 	text-align: center;
 	width: 8em;
	height: 1.5em;
	font-size:110%;
}


.right-align2 select{
	width: 12em;
	font-size:100%;
}

.narrow select{
	width: 6em;
}


#unitSelect1, #unitSelect2{
	font-family: "Arial Narrow","Helvetica Narrow",Tahoma,Arial,Helvetica,sans-serif;
	letter-spacing: 0px;
}

.narrowFont{
	font-family: "Arial Narrow","Helvetica Narrow",Tahoma,Arial,Helvetica,sans-serif;
	letter-spacing: 0px;
}

#amOrPm{
	width: 3em;
}

select #accuracy{
	width:6em;
}

legend {
	font-size:85%;
	color: #330066;
	font-weight: bold;
}


.left-alignBDOH input{
  text-align: center;
  font-size:110%;
  width: 95%;
  border: 2px solid green;
  padding-right: 10px;
}


.left-align input, .right-align input{
  text-align: center;
  font-size:110%;
  width: 6em;
  border: 2px solid green;
  padding-right: 10px;
}

#getNumbers input{
	width: 10em;
}

#txtNumSM, #txtNumMS{
	width: 6em;
}

#txtNumB{
	width: 10em;
}

#txtNumF, #txtNumF1, #txtNumF2, #txtNumHM1, #txtNumHM2{
	margin: 5px 1px;
}

#hourNum1, #minNum1, #hourNum2, #minNum2{
	width:2em;
	margin: 4px 0;
}

fieldset button {
  margin: 12px 0;
  padding: 1px;
  font-size:110%;
  width: 9em;
  background-color: #330066;
  color: white;
  text-align:center;
  border: 3px outset gray;
}

fieldset .wide{
	width: 12em;
}

button .resetButton {
	color: black;
	background-color: #ffff00;
}

.clearLine{
	clear: both;
	line-height: 1em;
}

.clearLineWide{
	clear: both;
	line-height: 1.5em;
}



#percentSelect{
	border: 2px solid green;
	margin-left: 0px;
	line-height: 1.5em;
	width: 6em;
	background-color: pink;
}

form p{
	text-align: center;
}

#output, #output1, #output2, #outputSF, #outputSF2, #outputIF, #outputDF, 
#outputDF2, #outputDF3,  #outputDF4, #outputFDP1, #outputFDP2, #outputFDP3, #outputFDP4, #outputPF, #outputPF2, #outputPF3, 
#outputCF, #outputFC, #outputTD, #outputTD2, #outputDT, #outputSM, #outputMS,
#outputL, #outputL1, #outputL2, #outputA, #outputW, #outputS, #outputNS, #outputNS2, #outputNS3, #outputT, #outputABS, 
#outputAR, #outputAR2, #outputAR3, #outputAR4, #outputAS{
	padding: 2px 20px;
	border: 1px solid red;
	background-color: #ffffcc;
    text-align: center;
    font-size: 110%;
    position: relative;
    top: 2px;
    width: 6em;
}

#outputAR, #outputAR2, #outputAR3, #outputAR4, #outputAS{
	margin-top: -5px;
	min-height: 20px;
	vertical-align: middle;
	width: 180px;
}

#hiddenAns1, #hiddenAns2{
	display:none;
}

#outputAR{
	font-family: "Times New Roman", Georgia;
	font-size: 120%;
}

#outputNS, #outputNS2, #outputNS3{
	margin-top: -5px;
	min-height: 20px;
	vertical-align: middle;
	padding: 2px 0;
	font-size: 100%;
	width: 98%;
	float: right;
}

#outputL, #outputA, #outputS{
	width:8em;
}

#outputFI, #outputFI1, #outputFI2, #outputHM1, #outputHM2, #outputHM3{
	padding: 2px 10px;
	border: 1px solid red;
	background-color: #ffffcc;
    text-align: center;
    font-size: 110%;
	width: 5em;
	line-height: 1.3em;
	margin: 3px auto 6px auto;
	float: right;
}

#outputHM1, #outputHM2, #outputHM3{
	width: 7em;
}

#outputFI1{
	display:none;
}

#outputCon1, #outputCon2, #outputCon{					// Used for the converters with only two units e.g. mm to inches
	text-align: center;
 	width: 6em;
	height: 1.5em;
	font-size:110%;
	background: #b2b2b2;
	padding: 1px 20px;
	position: relative;
    top: 2px;
    margin: 5px 0;
}

#outputCon1, #outputCon2, #outputCon{
	position: relative;
    top: 2px;
}

#outputBDOH1, #outputBDOH2, #outputBDOH3, #outputBDOH4{
	text-align: center;
 	width: 100%;
	height: 1.5em;
	font-size:110%;
	background: #b2b2b2;
	padding: 1px 5px;
    margin: 0;
}

#outputConF, #outputConF1, #outputConF2, #outputConF3, #outputConF4, .outputUnits{
	text-align: center;
 	width: 3.5em;
	height: 1.4em;
	font-size:110%;
	background: white;
	padding: 0px 20px;
    margin: 10px 0 12px 0;
}

#outputConF, #outputConF1, #outputConF2{
	position: relative;
    top: -3px;
}

#outputConC1, #outputConC2, #outputConF3, .outputUnits{
	position: relative;
    top: -6px;
}

#secondOutputBox{
	display: none;
}

.outputUnits{
	background-color: #ffffcc;
	width: 4em;
}

.left-align, .left-alignBDOH{
	width: 41%;							/* Don't change this - optimised for mobile and desktop */
	padding: 5px 5px;
	margin-right: 2px;
	float: left;
	clear: left;
	text-align: right;
}

.left-alignBDOH{
	width: 60%;
}

.right-align, .right-alignBDOH, .right-align2{
	width: 51%;						/* Don't change this - optimised for mobile and desktop */
	padding: 5px 0;
	margin-left: 2px;
	float: left;
	clear: right;
	text-align: left;
}

.right-alignBDOH{
	width: 30%;
}

.dobCol{
	float: left;
	width: 25%;	
	min-height: 30px;
	padding: 5px 5px;
	text-align: center;
}


.dobRow:after{
	content: "";
	display: table;
	clear: both;
}

#Values, #Questions{
	width:9em;
	min-height:4em;
	margin:0.5em;
	padding-bottom:2em;
	text-align:center;
	float:left;
	background-color: #ccffff;
	line-height: 1.5em;
	visibility:hidden;
}

#Options{
	width:15em;
	margin:1em;
	padding-bottom:1em;
	float:left;
	background-color: #ccffff;
	text-align: center;
	font-size:100%;
	line-height:250%;
	visibility:hidden;
}


#Options input{
	margin-left:2em;
	float:left;
	text-align:center;
}



.WorksheetInfo {
text-align: left;
clear:both;
text-decoration: none;
padding-bottom: 1em;
line-height:150%;
padding-left:5%;
}


#GeneratorBlock{
	background-color: white;
	font-size:80%;
	display:block;
	clear:both;
	border: none;
	padding-top:1em;
	border-top: 1px solid black;
}

#outputPrimes, #outputFactors, #outputPrimes2{
	background-color: white;
	margin: 10px;
	padding: 10px;
	color: black;
	font-size: 95%;
	border: 1px solid red;
	background-color: #ffffcc;
	min-height:2em;
}

#outputFactors{
	font-size: 100%;
	background-color: black;
	color: white;
}

#outputFactors h3{
	color: white;
}

#showWorkingOut, #showWorkingOut1, #showWorkingOut2, #showWorkingOutA, #showWorkingOutW, #showWorkingOutL, #ageWorkingOut, #timeWorkingOut{
	clear: both;
	position: relative;
	top: 10px;
	margin: 20px 10px;
	padding: 10px 10px;
	color: white;
	display:none;
	background-color: black;
	font-size: 95%;
	line-height: 1.5em;
}

#ageWorkingOut, #timeWorkingOut{
	border: 5px groove #330066;
	margin: 20px 5px;
	background-color: aqua;
	color:black;
	font-size: 100%;
	text-align: left;
}

#ageWorkingOut p{
	text-align: left;
}

#timeWorkingOut p{
	text-align: left;
	font-size: 90%;
}

#ageWorkingOut h3, #timeWorkingOut h3{
	text-align: center;
	font-weight: bold;
	font-size: large;
}

#showWorkingOut p, #showWorkingOut1 p, #showWorkingOut2 p{
	text-align: left;
}

#showWorkingOut .yellow{
	color: #ffff00;
}

#showWorkingOut h3, #showWorkingOut1 h3, #showWorkingOut2 h3, #showWorkingOutA h3, #showWorkingOutW h3, #showWorkingOutL h3{
	font-weight: bold;
	font-size: large;
	color: white;
}

.finalAnswer{
	color: yellow;
	padding: 5px;
	background-color: DarkRed;
	border-top: 1px solid orange;
	border-bottom: 1px solid orange;
}

.poseQuestion{
	color: yellow;
	padding: 5px;
	background-color: MidnightBlue;
	border-top: 1px solid green;
	border-bottom: 1px solid green;
}

#areaSelectW1, #areaSelectW2{
	width: 8em;
}

#conSelect, #conSelect2{
	width: 13em;
	margin: 10px auto;
	float: center;
	display:none;
}


.mobLabel{
	clear: both;
	padding: none;
	margin: none;
	line-height: 0.5em;
}

#errComment, #errComment1, #errComment2, #infoComment{
	display:none;
	clear:both;
	border: 2px solid white;
	background-color: red;
	color: white;
	font-style: italic;
	text-align: center;
}

#infoComment{
	background-color: white;
	color: green;
}

#calcType, #measureType{
	display:none;
}


/* Style for tables in bdoh */
.bdoh{
	width:50%;
	margin: 10px auto;
	text-align: center;
}

.bdoh th{
	align: center;
}

.bhod td{
	align: center;
}

.bdoh .border{
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

.bdohtable{
	background-color: Azure;
	width:50%;
	margin: 10px auto;
	text-align: center;
	line-height: 1.5em;
	float: center;
}

.bdohtable td{
	border: 1px solid black;
}

.bdohtable th{
	background-color: green;
	color: white;
}

.topBorder{
	text-decoration: overline;
}

.hidden{
	display:none;
}

#monthFrom, #monthTo, #dayFrom, #dayTo, #yearFrom, #yearTo{
	width: 90%;
}

#month, #day, #year{
	width: 80%;
}


#dateNum1, #dateNum2{
	width: 8em;
	height: 1.4em;
}

.timeBox, .timeBox2{
	background-color: white;
	border: 1px solid green;
	width: 6.5em;
	padding: 0px 5px;
	clear: right;
	float: left;
}

.timeBox2{
	width: 10em;
	padding: 10px;

}

.timeBox3 select{
	width: 4em;
}

.timeBox input, .timeBox2 input{
  text-align: center;
  font-size:110%;
  width: 2em;
  border: none;
}

#unixTimerBox{
	width: 50%;
	height: 30px;
	background-color: #ff7f7f;
	color: black;
	float: center;
	margin: 10px auto;
	display: none;
	text-align: center;
	font-size: 120%;
	border: 3px groove green;
}

#primeCol1{
	width: 30%;
	margin-left:20%;
	margin-bottom: 2em;
	float:left;
	text-align: center;
	background-color: white;
	border: 1px solid black;
	display:none;
}

#primeCol2{
	width: 30%;
	float: left;
	text-align: center;
	background-color: white;
	border: 1px solid black;
	display:none;
	margin-bottom: 2em;
}

.CalculatorInfo{
	text-align: left;
	text-decoration: none;
	padding: 10px;
	clear:both;
	background-color: #e6e6e6;		/* This is light gray */
	width: 95%;
	border: 1px solid black;
	margin: 10px auto;
	float: center;
}

.buttonCalc{
	background-color: #330066;
	color: white;
	cursor: pointer;
	height: 35px;
	border-radius: 8px;
}

.buttonCalc:hover{
	background-color: green;
}

.italics{
	font-style: italic;
}

.pinkFont{
	color: pink;
}

/* LONG DIVISION STEP BY STEP CALCULATOR */


table {
	margin: 0px auto;
	border-spacing: 0px;
    border-collapse: collapse;
}

.longDivTable td{
	padding: 0px;
	padding-right: 5px; 
	padding-top: 3px;
	border-spacing: 0px;
	border-collapse: collapse;
}

.longDivTable tr{
	border-spacing: 0px;
	border-collapse: collapse;
}

.overLine{
	border-top: 2px solid white;
}

.underLine{
	border-bottom: 2px solid white;
}

.cornerLine{
	border-top: 2px solid white;
	border-left: 2px solid white;
}

td .cornerLine{
	padding: 0px;
	padding-left: 5px;
	padding-top: 3px;
	text-align: center;

}


li .horizontalList{
        display: inline-block;
        padding: 2rem;
}




