
#menu {
	display:none;
}
.hide {
	display: none;
}

/* Wait Spinner Starts */
.loader {
    position: fixed;
    top: 0; right: 0;
    bottom: 0; left: 0;
    background: #fff;
	z-index: 200;
	max-width: 100%;
	margin-top: 0;
}
.spinner {
	margin-top: 200px;
}

/* Wait Spinner Ends */

body,p,td,div,span{
	/* font-family:veranda, arial,helvetica,sans-serif;
	font-size:12pt;
	color:#000; */
}
body{background:#fff;margin:0px;padding:0px;border:0;text-align: center;}

body.unit-converter #contentarea {
	margin-top: 90px;
}

#contentarea {
	min-width: 320px;
}
#div_unit_selection {
	/* position: relative; */

}
#div_unit_selection div:nth-child(2) {
	/* width: 200px;  */
}

#sel_unit{
	width: 100%;
	display: inline-block;
	font-size: 20px;
	padding: 10px;
}
#sel_unit option {
	font-family: Arial;
}

.copy-result {
	position: absolute;
    right: 5px;
    bottom: 0px;
	cursor: pointer;
}
#pCopySuccessMsg {
  opacity: 0;
  transition: 1s;
}
#pCopySuccessMsg.fade-in {
  opacity: 1;
  transition: 1s;
}
#pCopySuccessMsg.hide {
  display: none;
}

#unit_sch_btn {
	width: 110px;
	height:44px;
	border: solid 1px #888;
	border-radius: 4px;
	padding:5px 3px 3px 5px;
}
#unit_sch_btn * {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	cursor: pointer;
}
#unit_sch_btn > span {
	font-size:small;
}
.search-icon {
	max-width: 100%;
	width: 40px;
	height: auto;
	cursor: pointer;
}


#div_unit_selection > div:nth-child(1),
 #div_unit_selection > div:nth-child(2){
	display: inline-block;
	vertical-align: middle;
}
#div_unit_selection > div:nth-child(1) {
	width: calc(100% - 190px);
	text-align: left;
}
#div_unit_selection > div:nth-child(2) {
	width: 180px;
	float:right;
}

/* #div_unit_selection > div:nth-child(3) {
	position:absolute;
	display: none;
} */
#search_field_container {
	left: 0;
    right: 0;
    margin: auto;
	min-height:50px;
	height: 1px;
	width: 450px;
	max-width: 100%;
	border: solid 1px;
    border-color: var(--wp--preset--color--foreground);
    border-radius: 5px;
	padding-bottom: 5px;
    background-color: #fff;
	text-align: left;
	overflow: hidden;

	position:absolute;
	left: 0px;
	display: none;

	opacity: 0;
	translate: 0 25vh;
	transition-property: display, opacity;
	transition-duration: 1s !important;
	transition-behavior: allow-discrete;
}
#search_field_container .search-icon {
	position: absolute;
	margin-right: 11px;
	margin-top: 2px;
	max-height: 40px;
}
#search_field_container.show-search-field {
	display:block ;
	height:auto;
	z-index: 200;
	translate: 0 0;

	top: 75px;
	opacity: 1;

	@starting-style {
		opacity: 0;
		translate: 0 -25vh;
	}
}

#calcResults {
	/*position: absolute;*/
	/*top: 10px;*/
	/*left: 5%;*/
	font-size: 17px;
}
#headerbg{
	/*background: rgb(2,0,36);*/
	/*background: linear-gradient(180deg, rgba(2,0,36,1) 1%, rgba(31,110,191,1) 5%, rgba(255,255,255,1) 17%);*/
	background: rgb(2,0,36);
	background: linear-gradient(180deg, rgba(2,0,36,1) 12%, rgba(31,110,191,1) 41%, rgba(255,255,255,1) 98%);
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100px;
	width: 100%;
	z-index: -1;
}
#content > h3 {
	margin-bottom: -2px;
}

p{margin:5px 0 8px 0;}
img{border:0px;}
h1{font-size: 17px;	font-weight: normal;padding:0;}
#resulth1{background-color:#ffefe7;padding:0px 5px 0px 5px;border-top:#930 1px dotted;}
h2{font-size:18pt;font-weight:bold;color:#012c71;padding:0; margin-bottom: 2px;}
h3{font-size:16pt;font-weight:bold;color:#012c71;}
h3 a{color:#012c71;}
h3 a:hover{text-decoration:none;}
h4{font-size:13pt;font-weight: bold;padding:0; margin: 0px;}
a{color:#012c71;text-decoration:underline;}
a:hover{text-decoration:none;}
#clear{margin-left: auto;margin-right: auto;clear: both;height: 1px;}

#headerarea{ 	text-align: center;}
#header{width:990px;height:60px;padding:0px;margin-left: auto;margin-right: auto;text-align: left;overflow:auto;}
#logo{padding: 16px 0px 0px 0px;width:300px;float:left;}

#contentarea{width:990px;padding-top:5px;margin-left: auto;margin-right: auto;text-align: left;overflow:auto;min-height: 650px;}
#content{padding:0px 0px 15px 0px;width:620px;float:left;}
#right{width:336px;float:right;text-align:center;}



/* Start Select styles */
select:hover{cursor:pointer;}
select {
	/* styling */
	background-color: white;	
	border-radius: 4px;
	display: inline-block;
	font: inherit;
	line-height: 1.5em;
	padding: 0.5em 3.5em 0.5em 1em;

	/* reset */

	margin: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
}
#sel_unit {
	border: thin solid blue;
}

/* arrows */

select.classic {
	background-image:
			linear-gradient(45deg, transparent 50%, blue 50%),
			linear-gradient(135deg, blue 50%, transparent 50%),
			linear-gradient(to right, skyblue, skyblue);
	background-position:
			calc(100% - 20px) calc(1em + 2px),
			calc(100% - 15px) calc(1em + 2px),
			100% 0;
	background-size:
			5px 5px,
			5px 5px,
			2.5em 2.5em;
	background-repeat: no-repeat;
}

select.classic:focus {
	background-image:
			linear-gradient(45deg, white 50%, transparent 50%),
			linear-gradient(135deg, transparent 50%, white 50%),
			linear-gradient(to right, gray, gray);
	background-position:
			calc(100% - 15px) 1em,
			calc(100% - 20px) 1em,
			100% 0;
	background-size:
			5px 5px,
			5px 5px,
			2.5em 2.5em;
	background-repeat: no-repeat;
	border-color: grey;
	outline: 0;
}

select.round {
	background-image:
			linear-gradient(45deg, transparent 50%, gray 50%),
			linear-gradient(135deg, gray 50%, transparent 50%),
			radial-gradient(#ddd 70%, transparent 72%);
	background-position:
			calc(100% - 20px) calc(1em + 2px),
			calc(100% - 15px) calc(1em + 2px),
			calc(100% - .5em) .5em;
	background-size:
			5px 5px,
			5px 5px,
			1.5em 1.5em;
	background-repeat: no-repeat;
}

select.round:focus {
	background-image:
			linear-gradient(45deg, white 50%, transparent 50%),
			linear-gradient(135deg, transparent 50%, white 50%),
			radial-gradient(gray 70%, transparent 72%);
	background-position:
			calc(100% - 15px) 1em,
			calc(100% - 20px) 1em,
			calc(100% - .5em) .5em;
	background-size:
			5px 5px,
			5px 5px,
			1.5em 1.5em;
	background-repeat: no-repeat;
	border-color: green;
	outline: 0;
}

select.minimal {
	background-image:
			linear-gradient(45deg, transparent 50%, gray 50%),
			linear-gradient(135deg, gray 50%, transparent 50%),
			linear-gradient(to right, #ccc, #ccc);
	background-position:
			calc(100% - 20px) calc(1em + 2px),
			calc(100% - 15px) calc(1em + 2px),
			calc(100% - 2.5em) 0.5em;
	background-size:
			5px 5px,
			5px 5px,
			1px 1.5em;
	background-repeat: no-repeat;
}

select.minimal:focus {
	background-image:
			linear-gradient(45deg, green 50%, transparent 50%),
			linear-gradient(135deg, transparent 50%, green 50%),
			linear-gradient(to right, #ccc, #ccc);
	background-position:
			calc(100% - 15px) 1em,
			calc(100% - 20px) 1em,
			calc(100% - 2.5em) 0.5em;
	background-size:
			5px 5px,
			5px 5px,
			1px 1.5em;
	background-repeat: no-repeat;
	border-color: green;
	outline: 0;
}


select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #000;
}
/* End Select styles */

#cnvtFrom,
#cnvtTo {
	width: calc(100% - 5px);
}

.div_row {
	margin-top:8px;
	position: relative;
}
.div_row > div {
	margin-top: 8px;
}
#convert_form > div:nth-child(1) {
	position: relative;
}
#txtFrom {
	background: transparent;
    position: relative;
    z-index: 1;
}
.field-background {
    position: absolute;
    width: calc(100% - 5px);
    height: 37px;
    border: solid 1px transparent;
    border-radius: 5px;
    background-color: #FFF;
    bottom: 2px;
    z-index: 0;
}
.metrix-cue {
	position:absolute;
	right: 10px;
	bottom: 8px;
}
.div_row.amount-row > div:nth-child(2){
	display: none;
}
#spnQtyField {
	cursor: pointer;

}

#logo > a > span.logo-title{
	color: #FFFFFF;
}
.control-button {
	cursor: pointer;
	margin:auto;
	border:solid 1px #888888;
	width: 40px;
	height:40px;
	border-radius: 50%;
	background-image: url(/wp-content/plugins/unit-converter/images/reverse_100x100.gif);
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: center;
}

.reverse-way{
	width: 28px;
	height: auto;
}
.reverse-way:hover{
	border-radius: 3px;
	border: solid 1px #666666;
	box-shadow: 2px 2px 3px #666;
	zoom: 0.93;
}
#convert_form{
	position: relative;
	background-color: #eeeeee;
	border: solid 1px #888888;
	border-radius: 5px;
	min-height: 210px;
	margin-top: 8px;
}
#convert_form > form {
	margin-top: 10px;
}

.txt-input{
	padding:8px 4px;
	border: 1px solid #000;
	border-radius: 4px;
	box-shadow: 2px 2px 3px #666;
	font-size: 20px;
	width: calc(100% - 12px);
	max-width: 100%;
}




#calcResults{
	border-radius: 5px;
	text-align:center;
	font-size: 20px;
	background-color: #FFF;
}
#ucresult{
	margin: 2px 0px;
	border-radius: 5px;
	text-align:center;
	padding: 10px 5px;
}
#toother div{
	display:inline-block;
	width: 295px;
}
#seek_conversion{
	padding: 1px 10px 0px 10px;
	background-color: #e2f0f4;
	border: 1px solid #87adc7;
}
#schResult{
	padding:15px 0px;
}
#schResult div{
	margin-bottom:5px;
	padding: 8px;
	background-color: #fff;
	border-radius: 5px;
}
#schResult div i{
	font-weight: bold;
	color: #f00;
	font-size: 16px;
}
#schResult div span{
	padding-left: 20px;
	color: #012c71;
}

#homelist ul{
	margin-top: 3px;
}

#sciout{
	padding: 2px 2px 5px 5px;
	border-top:1px solid #ccc;
	border-left:1px solid #ccc;
	border-right:1px outset #ccc;
	border-bottom:1px outset #ccc;
	background: #eee;
}
#sciOutPut{
	font-size:17px;
	padding:3px;
	margin:2px;
	cursor:text;
	text-align:right;
	background-color:#333;
	border:1px solid #333;
	border-radius: 0px;
	color:#fff;
}
.scifunc{
	display: inline-block;
	display: table-cell;
	vertical-align: middle;
	text-align:center;
	width:50px;
	height:28px;
	margin:1px;
	border:1px solid #aaa;
	border-radius: 3px;
	font-family:arial,helvetica,sans-serif;
	font-size:14px;
	font-weight:bold;
	color:#000;
	background-color:#ddd;
}
.scifunc:active {
	background-color:#000;
	color:#ffffff;
}
.scinm{
	display: inline-block;
	display: table-cell;
	vertical-align: middle;
	padding: 0px 0px;
	text-align:center;
	width:50px;
	height:28px;
	margin:1px;
	border:1px solid #333;
	border-radius: 3px;
	font-family:arial,helvetica,sans-serif;
	font-size:14px;
	font-weight:bold;
	color:#fff;
	background-color:#333;
}
.scinm:active {
	background-color:#aaaaaa;
	color:#000000;
}

#txtFrom::selection{
	color: #8bf810;
	background: #161686;
}
.sciop{
	display: inline-block;
	display: table-cell;
	vertical-align: middle;
	padding: 0px 0px;
	text-align:center;
	width:50px;
	height:28px;
	margin:1px;
	border:1px solid #888;
	border-radius: 3px;
	font-family:arial,helvetica,sans-serif;
	font-size:14px;
	font-weight:bold;
	color:#000;
	background-color:#ccc;
}
.sciop:active {
	background-color:#000000;
	color:#ffffff;
}
.scird{
	display: inline-block;
	display: table-cell;
	vertical-align: middle;
	text-align:center;
	height:28px;
	margin:1px;
	border:1px solid #eeeeee;
	border-radius: 3px;
	font-family:arial,helvetica,sans-serif;
	font-size:13px;
	color:#262626;
}
.scieq{
	display: inline-block;
	display: table-cell;
	vertical-align: middle;
	padding: 0px 0px;
	text-align:center;
	width:50px;
	height:28px;
	margin:1px;
	border:1px solid #333;
	border-radius: 3px;
	font-family:arial,helvetica,sans-serif;
	font-size:14px;
	font-weight:bold;
	color:#fff;
	background-color:#333;
}
.scieq:active {
	background-color:#ff0000;
	color:#ffffff;
}
#sciInPut{
	font-size:16px;
	color:#000;
	text-align:right;
	overflow: hidden;
	width:530px;
	word-wrap: break-word;
	padding:5px 10px 0px 0px;
	margin-bottom:0px;
}
#sciInPut b{
	color:#ccc;
	font-weight:bold;
}
.logo-one{
	display:inline-block;
	vertical-align: middle;
}
.logo-title{
	margin-left: 5px;
	font-size: x-large;
	display:inline-block;
	vertical-align: middle;
}


#unit_index{ 
	max-width:100%;
	padding-top: 8px;
}
#unitSI {
	background-image: url('/wp-content/plugins/unit-converter/images/searchicon.png'); /* Add a search icon to input */
	background-position: 10px 12px; /* Position the search icon */
	background-repeat: no-repeat; /* Do not repeat the icon image */
	font-size: 20px; /* Increase font-size */
	padding: 12px 20px 12px 40px; /* Add some padding */
	border: 1px solid #666; /* Add a grey border */
	margin: 2px 0px 0px 2px;
    border-radius: 4px;
    font: inherit;
    line-height: 1.5em;
	margin-bottom: 12px; /* Add some space below the input */
	width: calc(100% - 60px);
	width: calc(100% - 120px);
}
#unitUL {
	/* Remove default list styling */
	list-style-type: none;
	padding: 0;
	margin: 0;
	max-height: 380px;
}
#unitUL li a {
	border: 1px solid #ddd; /* Add a border to all links */
	margin-top: -1px; /* Prevent double borders */
	background-color: #f6f6f6; /* Grey background color */
	padding: 12px; /* Add some padding */
	text-decoration: none; /* Remove default text underline */
	font-size: 18px; /* Increase the font-size */
	color: black; /* Add a black text color */
	display: block; /* Make it into a block element to fill the whole list */
}
#unitUL li a:active {
	background-color: pink;
}
#unitUL li a:hover:not(.header) {
	background-color: #eee; /* Add a hover effect to all links, except for headers */
}
#unitUL li a.cat-row{background-color: #cbc9c9;}
#unitUL {
	/* height: 220px; */
	overflow-y: scroll;
	/* display:none; */
}

#unitUL > li > a:focus, 
#unitUL > li > a:active {
	background-color: #a9bdff;
}

.modelBG-class {
	/* width: calc(100vw - 15px); */
	width: 100vw;
	max-width: 100%;
	/* height: calc(100vh + 0px); */
	height: 100vh;

	position:absolute;
	top: 0px;
	left: 0px;
	transition-property: display, opacity;
	transition-duration: 1s !important;
	transition-behavior: allow-discrete;

	background-color: #000;
	opacity: 0.8;
}
.close {
  position: absolute;
  right: 10px;
  top: 18px;
  width: 35px;
  height: 35px;
  opacity: 0.3;
}
.close:hover {
  opacity: 1;
}
.close:before, .close:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 33px;
  width: 2px;
  background-color: #333;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}

.div_row.amount-row > div {
	position: relative;
}
	.div_row.unit-select-row label {
		position: absolute;
		margin-top: -25px;
	}

@media (max-width:800px){
	#logo{padding: 6px 0px 0px 6px;width:250px;float:left;}
	#logo img{width:36px;height: 36px;}
	#header{width:auto;height:46px;}
	#contentarea{width:auto;padding:6px;}
	#content{width:auto;}
	#right{width:100%;}
	#footerarea{width:auto;}
}

@media (min-width: 600px) {
	.div_row.amount-row > div:nth-child(2) {
		display:none;
	}
	.div_row.amount-row > div,
	.div_row.unit-select-row > div {
		display: inline-block !important;
		width: calc(50% - 30px);
		vertical-align: middle;
	}
	.div_row.amount-row > div {
		width: calc(50% - 10px);
	}
	.div_row.amount-row > div:nth-child(1), 
	.div_row.unit-select-row > div:nth-child(1) {
		margin-left: 5px;
	}
	.div_row.unit-select-row > div:nth-child(2) {
		width: 42px;
	}
	.div_row.unit-select-row label {
		display: none;
	}
}
@media (min-width: 450px) {
	.popular-conversions ul li {
		display:inline-block;
		width: 47%;
		vertical-align: middle;
	}
}
@media (max-width:600px){
	.ucdcinput{width:160px;}
	.ucdcsubmit{font-size: 17px;padding:6px 10px;}
	#uctable{width: 400px;}
	.uccell{padding:0.5ex;width:200px;}
	#menu {font-size: 13px;}
	#menuon {font-size: 13px;}
	#qcscif{display:none;}
	#sciInPut{width:auto;}
	body.unit-converter #contentarea {
		margin-top: 60px;
	}
	#result_formatting {
		margin-top: 10px;
	}
	ul > li {
		margin-top: 10px;
	}
}

@media (max-width:430px){
	.uclabel{display:none;}
	#uctable{width: 320px;}
	.uccell{padding:0.5ex;width:160px;}
	#menu a {padding: 8px 3px;}
	#menuon a {padding: 8px 3px;}
	#qcscif{display:none;}
	#sciInPut{width:auto;}
}

@media screen and (max-width: 359px) {
	.mcontent {
		margin-left: auto;
		margin-right: auto;
		text-align: left;
		padding: 2px;
	}
}
/* @media (min-width:420px){
	#tbl_calcForm > tbody > tr > td:nth-child(1) {width:50%;}
} */
@media all and (max-width:450px){
	table,tr, td, tbody, td p table div, table table{
		width:100%!important;
		float:left;
		clear:both;
		display:block;
		text-align:center;
	}
	
}
