@charset "utf-8";

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body { 
    background-color:#e3e3e3;
    font-family:Arial,Helvetica,sans-serif;
    margin: 0 auto;
    min-width:736px;
    width:100%;
}

.main {
    max-width: 1100px;
    margin: 20px auto;
    width:100%;
    background-color:#e3e3e3;    
    padding: 130px 0 0 0;
}

/* Header section */

header {
    position: fixed;
    top: 0;
    z-index: 100;    
    display: block;
    height: 150px;
    margin: 0 auto;
    overflow-y:hidden;
    padding: 0 4px;
    width:100%;    
    background-image: url(/img/wood.jpg);
    background-repeat: repeat-x;
}

h1 {
    color: #333333;
    font-size: 30px;
    text-align: center;
    line-height:35px;
    height:50px;
    background-repeat: no-repeat;
}

h1 {
    color: #fff;
    font-size: 30px;
    text-align: center;
    line-height: 35px;
    height: 50px;
    background-repeat: no-repeat;
    padding: 0 10px;
    position: fixed;
    top: 65px;
    left: 15px;
}

#homePageH1 {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    color: #1a2b3c !important;
    font-weight: 700;
    text-align: left;
    margin: 0 0 1.5rem;
    max-width: 100%;
    height: auto;
    line-height: 1.2;
    padding: 0;
}

#logo {
    display:block;
    height: 50px;
    left: 25px;
    position: relative;
    top: 18px;
    width: 500px;
    background-image: url(/img/logo.png);
}
           
#topMenu {
    float: right;
    height: 40px;
    margin: 0 1%;
    position: fixed;
    top: 10px;
    width: 300px;
    right: 150px;
    top: 85px;    
}

#topMenu a {
    display:block;
    height:40px;
    width:40px;
    float:left;
    margin:0 10px;
}           

#language {
    clear:both;
    display:block;
    float:right;
    padding: 4px 5px 5px 10px;
    background-color:#f4f4f4;
    border:1px solid #888888;
    margin: 10px 10px;
    color:#595959;
    font-weight:bold;
    font-size:13px;                
    position: fixed;
    top: 80px;
    right: 20px;    
}

#breadcrumb {
    font-size: 12px;
    margin: 14px 0 0 25px;
    height: 50px;
    color:#cccccc;
}

#breadcrumb a {
    color:#cccccc;
    text-decoration: none;
}

/* Page structure */

.col {
    margin:0 10px 10px 0;
}
 
.smallcol {
    margin:0 10px 10px 0;
    max-width:740px;
    width:740px;
    min-width:740px;
    float:left;
}

.narrowcol {
    margin:0;
    max-width:300px;
    width:300px;
    min-width:300px;
    float:right;    
}

.removeIcon {
    padding:0 0 0 5% !important;
    max-width:95% !important;
    width:95% !important;
}

.nowrap {
    display:inline-block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
}

.sideFeature {
    display:block;
    width:300px;
    height:auto;
}

.sideNav {
    margin:10px 0 0 0;
    width:300px;
}

.clear {
    clear:both;
}

.left {
    display:block;
    max-width: 728px;
    min-width: 728px;
    float:left;
}

.right {
    float: right;
    margin: 0 0 0 30px;
    max-width: 300px;
    width: 100%; 
}
/* Convert section */

#userInput,#userConvert,.underButton,.leftButton,.rightButton,#userTable {
    background-color:#3e7589;
    margin:2px auto;
    padding: 2% 5%;
    line-height: 24px;    
    width:auto;       
}

#searchInput {
    background-color: #3e7589;
    min-height: 20px;
    margin: 1px 1px;
    padding: .25% 5%;
    width: 670px;
    line-height: 24px;
}

.searchSuggestion {
    width: 90%;
    background-color:#3e7589;
    display: block;
    border: 1px solid #fff;
    border-left:none;
    border-right:none;
    border-bottom:none;
    height: 60px;
    line-height: 60px;
    padding: 0 0 0 50px;
    background-repeat:no-repeat;
    background-position:left center;
    color:#ffffff;        
}

.fractionSelect {
    width: 30%;
    height: 90%;
    font-size: 1.5em;
}

.control {
    display: block;
    background-color: #a6a6a6;
    height: 35px;
    line-height: 35px;
    margin: 0 0 2px;
    min-height: 35px;
    padding: 0 0 0 10%;
    width: 90%;      
    color:#fff;
    font-weight: bold;     
}

.tableControl {
    padding: 5px 0 0 5%;
    max-width: none;
    width: 95%;
    display: block;
    background-color: #a6a6a6;
    float: none;
    height: 40px;
    line-height: 36px;
    margin: 2px 0;
    min-height: 36px;
    min-width: 360px;
}

.tableColumn {
    float:left;
    width:24%;
    min-width:200px;
    margin:0 0.5%;
}

.tableColumnColumn {
    float:left;
    width:49.5%;
    margin:0 0.5% 0 0;
}

.tableElement {
    width:49%;
    min-height:40px;
    background-color:#eeeeee;
    margin:1px 0.5%;
    text-align:center;
    line-height:40px;
    max-height:40px;
    float:left;
}

.tableTitle {
    background-color:#cccccc;
    width: 49%;
    min-height: 50px;
    line-height: 50px;            
}

.controlOptions {
    height: 36px;
    width: 150px;
    margin: 0 30px;
    float: right;            
}

.answer {
    font-size: 3vw;
    line-height: 4vw;
    margin: 10px 0;
    text-align: center;
    width: auto;
}

.underButton {
    background-repeat: no-repeat;
    color: #fff;
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 50px;
    min-height: 50px;
    padding:0 7%;
    text-decoration: none;              
    width:86.1%;
    max-width:86.1%            
}

/* Alpha results */

#search,#popular,#tableList,#softSearch {
    display: block;
    float: left;
    margin: 0;
    /* max-width: 650px; */
    padding: 0; 
}

#tableList {
    width: 640px;
}

.tableTitle {
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    color:#333333;
}

#search,#softSearch {
    width: 100%;
    margin:10px 0;
}

#search {
    display:none; 
}

#search ol,#tableList ol,#softSearch ol {
    display:block;
    margin: 0 0 0 -40px;
}

#search ol li a{
    display:none;
}

#search .convertForm a,#tableList .convertForm a,#softSearch .convertForm a {
    display:block;
}

#suggested {
    max-width: 640px;
    width: 100%;     
}

#suggestedTable {
    max-width: 320px;
    width: 100%;         
}

#suggested a,#suggestedTable a {
    background-color: #fff;
    color: #666666;
    display: block;
    float: left;
    font-size: 18px;
    line-height: 50px;
    margin: 1px 10px;
    padding: 0 20px;
    text-decoration: none;
    width: 30%;
}

#suggestedTable a {
    width:90%;
}

.rightHome,.rightType,.rightUnit {
/*    max-width: 500px;    */
}

.convertForm {
    height: 50px;
}

.convertForm a,#popular a {
    background-color: #3e7589;
    color: #fff;
    display: block;
    float: right;
    font-size: 16px;
    font-weight: bold;
    height: 36px;
    line-height: 36px;
    margin: 0 3px;
    max-width: 150px;
    padding: 0 10px;
    text-decoration: none;
}

#search li,#popular a,#tableList li,#softSearch li {
    background-color: #cccccc;
    color: #666666;
    display: block;
    font-size: 14px;
    line-height: 14px;
    margin: 1px 0;
    padding: 0 20px;
    width: 96.2%;
}

#search li {
    margin: 1px 0.25%;
    width: 29%;    
}

#tableList li {
    padding: 20px 20px 10px 20px;    
}

#popular a {
    font-size: 16px;
    margin:1px -18px;
    line-height: 36px;
}

#search .argument,#softSearch .argument {
    font-size: 24px;
    height: 30px;
    padding: 2px 10px;
    width: 120px;
}
            
.featureTypes,.featureTypesConv,.tableTypes {
    float: right;
    margin: 0 0 0 0px;
    max-width: 322px;
    /*min-height: 500px;*/
    min-width: 282px;
    width: 290px;
    padding-top: 0;
    padding-bottom: 0;
}

.featureTypes .typeConv {
    display: flex;
    align-items: center;
    height: auto;
    line-height: 1.3;
    padding-top: 0;
    padding-bottom: 0;
}

.featureTypesConv {
    min-width: 145px;
    width: 145px;    
}

.noadcolumn {
/*    max-width: 470px;
    width: 470px;    */
    max-width: 100%;
    width: 100%;
}

.withadcolumn {
/*    max-width: 470px;
    width: 470px;    */
    float:right;
    width: 100%;
}

.tableTypes {
    max-width:600px;
    width:600px;
}

.featureTypes p,.tableTypes p {
    width:85%;
}

#featureLinks a{
    width:408px;
}

#inlinesearch {
    float: right;
    margin:2% 5%;
    height:32px;
    width:40%;
    padding:0 0 0 2%;
}

.type,.typeConv,.feature,.featureConv,.unit,.tounit,.unitConv,.popLink {
    display:block;
    margin:0 0 2px 0;
    height:50px;
    background-color:#a6a6a6;
    background-repeat: no-repeat;
    background-position: 5px 5px;
    color: #ffffff;.
    font-weight: bold;
    line-height: 50px;
/*    padding: 0 0 0 60px; */
    padding: 0 0 0 18%;
    text-decoration: none;
    width: 92%;                              
}

#popLinks {
    display:block;
    width:728px;
    float:left;
}

#popLinks ol{
    margin: 8px 0 0 -40px;
}

#popLinks li{
    list-style-type: none;
}

#popLinks ol li a {
    display:block;
    background-color: #fff;
    min-height: 30px;
    height: auto;
    line-height: 1.3;
    width:330px;
    margin: 2px 2px;
    padding: 8px 10px;
    box-sizing: border-box;
    text-decoration:none;
    color:#000;
    white-space: normal;
}

body.links-page #popLinks .linksColumns {
    display: flex;
    gap: 8px;
    margin: 8px 0 0 0;
}

body.links-page #linksPageH1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    float: left;
    clear: both;
    width: 728px;
    max-width: 100%;
    height: auto;
    margin: 0 0 8px;
    padding: 0;
    color: #333333 !important;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}

/* Terms page desktop: full-width title, body text left, type links right */
body.links-page main:has(article.termsPageContent) #linksPageH1 {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
}

body.links-page article#information.termsPageContent {
    float: left;
    clear: both;
    width: 728px;
    max-width: calc(100% - 340px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.links-page article#information.termsPageContent p {
    font-size: 14px;
    color: #4c4c4c;
    margin: 20px 0;
    font-weight: normal;
}

body.links-page article#information.termsPageContent p:first-child {
    margin-top: 0;
}

body.links-page article#information.termsPageContent ul {
    margin: 0 0 20px;
    padding-left: 1.5em;
}

body.links-page article#information.termsPageContent li {
    list-style-type: disc;
    color: #4c4c4c;
    font-size: 14px;
    font-weight: normal;
}

body.links-page main:has(article.termsPageContent) #sideMenu.homeSideMenu {
    float: right;
    clear: none;
    margin-top: 0;
}

/* Unit-to-unit desktop: teal panel fits content with modest space below input */
body.unit-to-unit-page #userConvert {
    height: auto !important;
    min-height: 0;
    padding: 1% 5% 28px;
    box-sizing: border-box;
}

body.unit-to-unit-page #userConvert #convertForm {
    height: auto;
    min-height: 0;
}

body.unit-to-unit-page #userConvert .unitConvertTitle {
    margin: 0 0 0.75rem;
}

body.unit-to-unit-page #userConvert .singleArg,
body.unit-to-unit-page #userConvert .doubleArg,
body.unit-to-unit-page #userConvert .tripleArg {
    margin-bottom: 4px;
}

body.calc-page #calcPageH1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 8px;
    padding: 0;
    color: #333333 !important;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}

body.links-page #popLinks .linksCol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 330px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.links-page #popLinks ol,
body.links-page #popLinks .linksCol li {
    float: none;
    width: auto;
    list-style-type: none;
}

body.links-page #popLinks ol li a,
body.links-page #popLinks .linksCol li a {
    width: 100%;
    margin: 0;
}

.featureConv {
    font-size: 14px;
    font-weight: bold;
    line-height: 15px;
    min-height: 40px;
    padding: 10px 2% 0 20%;
    width: 78%;
}

.typeConv,.popLink {
    font-size: 14px;
    font-weight: bold;
    line-height: 50px;
    min-height: 50px;
    padding: 0 0 0 20%;
    width: 80%;
}

.popLink {
    width:668px;
    padding:0 0 0 30px;
}

.rightHome .featureConv,.rightHome .typeConv {
    width: 86.5%;    
}

.typeConversionPage .unitConv,.unitConversionPage .unitConv {
    background-color: #595959;
    color: #fff ;
    padding-left: 20%;
    width: 77%;    
}

.unitConv {
    background-color: #595959;
}

.unitConversionPage .unit2UnitConv {
    background-color: #c8c8c8;
    color: #fff ;
    padding-left: 25%;
    width: 72%;    
}

.noadcolumn a,.withadcolumn a {
/*    max-width: 410px;
    width: 410px;  */
    max-width: 82%;
    width: 82%;
}            
            
#towerAd {
    display:block;
    float:left;
    margin:0 0px 10px 0px;
}
            

            
h2 {
    color:#4c4c4c;
}    
            
h4 {
    font-size: medium;
    line-height: 50px;
    margin: 0;
}
            
#userInputRight h1{
    color: #fff;
    font-size: 26px;
    margin: 10px 0;
    width: 90%;
    text-align: left;
}

h2 a, p a, h3 a {
    color:#064d6b;
    text-decoration: none;
}

p { 
    color: #4c4c4c;    
}

.footerText p {
    color:#fff;
}

.infoLink {
    cursor: pointer;
}

#webTool {
    background-position:0;
}

#bookmarkTool {
    background-position:2px 6px;
}

textarea {
    max-width:728px;
    width:50%;
    height:600px;
}

.infoBox {
    background-color: #eeeeee;
    display: none;
    font-size: 20px;
    min-height: 40px;
    padding: 10px;
}

#FromInfoBox,#ToInfoBox {
    font-size: 16px;
    height:auto;
}

#FromInfoBox ul,#ToInfoBox ul {
/*    height: 80px; */
}

            
            #smallBannerSpace {
                margin:0 0 20px 0;
            }
            
            .unit {
                background-color:#bbbbbb;
                padding: 0 0 0 23%;
                width: 210px;                   
            }
            
            .noadcolumn .unit,.withadcolumn .unit {
                width: 77%;                   
            }

            .tounit {
                background-color:#cccccc;
                padding: 0 0 0 28%;
            }

            .noadcolumn .tounit,.withadcolumn .tounit {
                width: 72%;                    
            }
            
            .bluebg {
                background-color: #3e7589;
            }

            .greybg {
                background-color: #a6a6a6;
            }
            
            .type:hover,.typeConv:hover,.feature:hover,.featureConv:hover,.unit:hover,.tounit:hover,.convertForm a:hover,#popular a:hover,.popLink:hover {
                background-color:#413f3f;
            }
           

            
            #userInput,#userConvert,#userTable {
                 /*float:left;*/
            }
            
            #userConvert,#userTable {
                min-width:90%px;
                
                
            }
            
            #userConvert h1,#userTable h1 {
                color: #fff;
                font-size: 22px;
		margin: 0;
            }

            #userConvert .unitConvertTitle {
                color: #fff;
                text-align: center;
                font-size: 22px;
                font-weight: 700;
                line-height: 1.35;
                margin: 0 0 1rem;
                padding: 0;
            }

	    #convertForm {
		height:60px;
	    }
	    
            #userTable {
                padding: 1px 10px;
                width: 708px;
            }

            #userTable h1{
                height: 30px;
                line-height: 20px;
                padding: 15px 0 10px;
            }
            
            #userTable .temperature,#userTable .length,#userTable .area,#userTable .volume,#userTable .weight,#userTable .speed,
            #userTable .time,#userTable .currency,#userTable .angle,#userTable .pressure,#userTable .energy-and-power,#userTable .health {
                background-position: 5px 8px;
            }
                       
            .leftButton,.rightButton {
                background-repeat: no-repeat;
                color: #fff;
                display: block;
                font-size: 16px;
                font-weight: bold;
                line-height: 50px;
                min-height: 50px;
                padding: 0 0 0 60px;
                text-decoration: none;
                max-width: 678px;             
            }
                        
            .halfButton {
                float: left;
                margin: 1px 2px 2px 0;
                max-width: 302px;
            }

            .endButton {
                float: left;
                margin: 1px 0;
                max-width: 304px;
            }
            
            .leftButton,.rightButton {
                float: left;
                margin: 0 2px 0 0;
                max-width: 327px;
                padding: 0 0 0 35px;
            }
            
            .rightButton {
                max-width:329px;
                text-align: right;
                padding: 0 35px 0 0;
                margin:0;
            }
            
            #minimisedControls {
                margin:0 0 80px;
            }
                       
            #sigfig,#format,#startval,#incs,#sigfigipt,#opformat,.tableParam {
                float: right;
                font-family: Arial,Helvetica,sans-serif;
                font-size: 14px;
                font-weight: bold;
                height: 26px;
                margin: 4px 40px;
                min-width: 200px;
                color: #4c4c4c;
            }
            
            #startval {
                height:20px;
                padding: 2px 5px;
            }
            
            #incs,#sigfigipt,#opformat {
                padding: 2px 5px;
                width: 212px;
            }
            
            #answer,#mobileAnswer {
                font-size: 60px;
                line-height: 60px;
                margin: 10px 0 0;
                overflow: hidden;
                text-align: center;
                width:auto;
            }

            .bmiAnswerCategory {
                margin: 0 0 10px;
                text-align: center;
                font-size: 60px;
                line-height: 1.1;
                font-weight: 700;
                color: #333;
            }
            
	    #mobileAnswer {
		display:none;
	    }
	    
            .like {
                margin:5px 0 0 0;
            }
            
            .type:hover {
                background-color:#413f3f;
            }
            
            #userInput h1 {
                background-repeat: no-repeat;
                background-size: 10% auto;
                color: #ffffff;
                font-size: 24px;
                min-height: 15px;
                padding: 0;
                text-align: left;               
            }
            
            #userInput p {
                color: #fff;
                font-size: 24px;
                font-weight: bold;
            }
            
            .inputField,.inputFieldNE,.searchField {
                font-size: 24px;
                height: 39px;
                border: 1px solid #064d6b;
                padding: 0 0 0 3%;
            }
	    
	    .searchField {
		    width: 45%;
	    }

            #argumentConv1,#argumentConv2 {
                width: 32%;
            }

            #argumentConv2a,#argumentConv2b {
                width: 10%;
            }

            #argumentConv2a {
                width: 15%;
                margin:0 0 0 4%;
            }

            .fractionSlash {
                color: #fff;
                font-size: 30px;
                margin: 0 5px;                
            }

            #working {
                position:relative;
                padding:20px 0 20px 0;
            }
            
            .wrow {
                display:block;
                height:80px;
            }
            
            .wspace {
                display:block;
                height:30px;
            }
            
            .wcol {
                float:left;
                text-align:center;
                line-height:15px;
            }
            
            .wleft {
                clear:both;    
                width:60px;
            }
            
            .wmiddle {
                width:300px;
            }
            
            .wline {
                line-height:2px;
            }            
            
            .temperature {
                background-image: url(/img/temperature.png);
            }
            
            .weight {
                background-image: url(/img/weight.png);
            }
            
            .length {
                background-image: url(/img/length.png);
            }
            
            .area {
                background-image: url(/img/area.png);
            }
            
            .volume {
                background-image: url(/img/volume.png);
            }

            .speed {
                background-image: url(/img/speed.png);
            }
            
            .currency {
                background-image: url(/img/currency.png);
            }
            
            .time {
                background-image: url(/img/time.png);
            }

            .angle {
        	background-image: url(/img/angle.png);
            }
            
            .pressure {
                background-image: url(/img/pressure.png);
            }
            
            .energy-and-power,.energy {
                background-image: url(/img/energy.png);
            }
            
            .health {
                background-image: url(/img/health.png); 
            }
            
            .swapIcon {
                background-image: url(/img/swap.png); 
            }
            
            .tableIcon {
                background-image: url(/img/table.png); 
                background-position: 0px 0px;
            }
            
            .appIcon {
                background-image: url(/img/app.png); 
            }

            .calcIcon {
                background-image: url(/img/calc.png); 
                background-position: 5px 5px;
            }
            
            .bookmarkIcon {
                background-image: url(/img/bookmark.png);	    
	    }
	    
            .home,.homeIcon {
                background-image: url(/img/home.png);
            }
            
            .sitemap {            
                background-image: url(/img/sitemap.png);
            }
            
            .links {            
                background-image: url(/img/links.png);
            }

            .contact {            
                background-image: url(/img/contact.png);
            }
            
            .webmaster {            
                background-image: url(/img/settings.png);
            }       
            
            .adfreeIcon {
                background-image: url(/img/adfree.png); 
                background-position: 5px;
            }            
            
            .formula,.working,.scientific,.exponential,.info,.tabCont {
                background-image: url(/img/more.png);
                background-position: 5px 5px;
            }
            
            .upArrow {
                background-image: url(/img/less.png);
                background-position: 5px 5px;
            }
            
            #result,#result2 {
                display:none;
                margin:5px 0;
            }            
            
            footer {
                width: 100vw;
                max-width: 100vw;
                margin-left: calc(50% - 50vw);
                margin-right: calc(50% - 50vw);
                box-sizing: border-box;
                padding: 1px 0 0 0;
                height: auto;
                min-height: 0;
            }

            #menulinks,
            .footerText {
                width: 100%;
                max-width: none;
                box-sizing: border-box;
            }
                       
            ul {
                padding: 10px 10px;
                list-style: none;                
            }
            
            li {
                width: 350px;
                float:left;
            }
            
            #menulinks, #langlinks, #conversionlinks, #promolinks {
                display:block;
                width:100%;
                color:#333333;
                text-decoration: none;
                background-color:#a6a6a6;
                height:80px;
            }
            
            .greyBg {
                background-color:#a6a6a6;
                height:90px;
            }
            
            #conversionlinks {
                height:100px;
            }
            
            #langlinks {
                height: auto;
                min-height: 0;
                margin: 0;
            }

            #langlinks ul::after {
                content: "";
                display: table;
                clear: both;
            }

            #langlinks li {
                background-color: #3e7589;
            }
            
            #menulinks a,#langlinks a, #conversionlinks a, #promolinks a {
                display:block;
                width:100%;
                color:#333333;
                text-decoration: none;
                background-color:#a6a6a6;               
            }

            #menulinks ul {
                display: flex;
                flex-wrap: nowrap;
                justify-content: space-between;
                width: 100%;
                box-sizing: border-box;
                padding: 0 10px;
                align-items: center;
            }

            #menulinks li {
                width: auto;
                float: none;
                white-space: nowrap;
                flex: 1 1 0;
            }

            #menulinks a {
                white-space: nowrap;
                width: auto;
                display: inline-block;
                padding: 0 10px;
            }

            #menulinks {
                height: auto;
                min-height: 0;
                padding: 8px 0;
                margin-top: 16px;
            }
            
            #promolinks {
                margin: -16px 0;
            }
            
            #langlinks, #langlinks a {
                background-color:#3e7589;
                color:#fff;
            }

            #langlinks a {
                line-height: 1.35;
                padding: 2px 10px;
                box-sizing: border-box;
            }
            
            .blueBg {
                height:auto;
                background-color:#3e7589;
                width:100%
            }            
            
            .footerText {
                background-color:#413f3f;
                color:#fff;
                padding: 10px 10px;
            }

            .footerText a {
                color:#ffffcc;
                text-decoration: underline;
            }
            
            .selected {
                background-color:#413f3f;                
            }

#convertBannerSpace {
    display:block;
    background-color:#FF0000;
    width:468px;
    height:60px;    
}

#tableControls {
    display:block;
    width:100%;
    height:50px;
}

.tableButton {
    background-color: #678d9d;
    color: #fff;
    display: block;
    float: left;
    font-size: 20px;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
    margin: 1% 0.5%;
    min-width: 300px;
    text-align: center;
    text-decoration: none;
    width: 49%;
}

.tableParamIP {
    height:22px;
    min-width:194px;
    
}

#conversionTable {
    clear: both;
    display: block;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

#innerConversionTable {
    left: -242px;
    margin: 0;
    padding: 0;
    position: relative;
    width: 1213px;
}

#innerConversionTable a {
    color: #fff;
}

.tableCol {
    float: left;
    left: 25%;
    margin: 20px 0 30px 2px;
    width: 240px;
}

.tableColComb {
    margin: 0 0 10px 0;
}

.tableCol h2,.tableCol li {
    display:block;
    height:45px;
    width:120px;
    line-height:20px;    
    background-color:#3e7589;
    float:left;
    font-size:14px;
    color:#fff;
    margin:0 0 0 0;
    padding:0 0 0 0;
    text-align:center;
}

.tableCol h2 a {
    font-size: 14px;
    text-decoration: none;
}

.tableCol li {
    clear:both;
    height:30px;
    margin:0 0 0 0;
    background-color:transparent;
    color:#4c4c4c;
}

.tableCol ol {
    display:block;
    width:120px;
    float:left;
    margin:0 0 0 0;
    padding:0 0 0 0;
}

/* iOS keypad */

#keypadarea {
    display:none;

}

.mobileField,#currencyMultiple {
    display:none;
}

#largeBanner {
    margin: 5px 20px 0 0;
    float:left;
}


.sideMenu,table {
    display: block;
    float: left;
    margin: 10px 0;
    min-width: 160px;
    max-width:300px;
    min-width: 300px;
}

table {
    margin:10px 10px;
}

tr {
    height:40px;
    text-align: center;
    background-color: #eeeeee;
    font-size: 12px;
    width:30%;
}

th {
    font-size: 12px;
    width:40%;
}

.tableCol table {
    margin:0;
}

.tableCol th, .tableCol td {
    width:115px;
    line-height: 20px;
    text-align: center;    
}

.tableCol th {
    background-color: #3e7589;
    color: #fff;
    font-size: 14px;
    height: 45px;
    line-height: 20px;
    text-align: center;
    text-decoration:none;
}

.tableCol th a {
    text-decoration:none;
}

.homeSideMenu {
    float:right;
    min-width: 32%;
}

#sideMenu.homeSideMenu a.featureConv,
#sideMenu.homeSideMenu a.typeConv {
    box-sizing: border-box;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 58px;
    display: block;
    background-repeat: no-repeat;
    background-position: 5px 5px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

#sideMenu.homeSideMenu a.featureConv {
    line-height: 50px;
    min-height: 50px;
    padding-top: 0;
    background-color: #3e7589;
}

#sideMenu.homeSideMenu a.typeConv.unitConv {
    background-color: #595959;
}

#sideMenu.homeSideMenu a.typeConv.unitConv:hover {
    background-color: #413f3f;
}

fractionSlashMob {
    display:none;
}

#language select {
    margin:0 0 0 10px;
    color:#333333;
    background-color:#ffffff;
    border:1px solid #888888;
}

.typeConversionPage {
/*    width:336px; */
}

.typeConversionPage a,.unitConversionPage a {
    padding-left: 15%;
    padding-right: 3%;
}

article li {
    float:none;
    width:auto;
    list-style-type: circle;
}

#mobileLeader {
    position:fixed;
    bottom:0px;
}

#boxAd {
    margin:10px 0;
}

#contentArea {
    margin:20px 0;
}

#titleinput,#step3 {
    display:none;
}

#bookmark-this {
  padding: 5px 10px;
  font-size: 12px;
  background: #f0ad4e;
  color: #fff;
  border: 1px solid #eea236;
  border-radius: 4px;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

#bookmark-this:hover {
  background: #ec971f;
  border: 1px solid #d58512;
  text-decoration: none;
}

#bookmark-this:active {
  border: 1px solid #d58512;
  -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
  background: #ec971f;
}

#mobileAppPromo {
    display:none;
}

.social {
    float: left;
    margin: 0 10px;
}

.bmiForm {
    min-height:120px;
}

.bmiUserConvert .bmiForm .bmiField.desktopField {
    width: 46%;
    box-sizing: border-box;
}

.bmiCategoriesMobile,
.bmiScaleMobile,
.bmiScaleLabel {
    display: none !important;
}

body.calc-page #result:not([hidden]) {
    display: block !important;
}

body.calc-page #result #answer,
body.calc-page #result .bmiAnswerCategory {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
    color: #333;
    display: block;
    width: 100%;
}

body.calc-page #result #answer {
    margin: 10px 0 0;
}

body.calc-page #result .bmiAnswerCategory {
    margin: 0 0 10px;
}

body.calc-page #result #paramDetail {
    text-align: center;
    color: #333;
}

.bmiFieldPair[hidden] {
    display: none;
}

/* BMI calculator: global h2/p greys fail contrast on teal and coloured bands */
#userConvert.bmiUserConvert h2,
.bmiUserConvert .bmiForm h2 {
    color: #fff;
}

.underweight h3,
.underweight p {
    color: #1a1a2e;
}

.normalweight h3,
.normalweight p {
    color: #1a1a1a;
}

.overweight h3,
.overweight p {
    color: #1a1a1a;
}

.obesityweight h3,
.obesityweight p {
    color: #fff;
}

.underweight,.normalweight,.overweight,.obesityweight {
    float:left;
    margin: 5px 0;
    width:170px;
    height:50px;
    overflow: hidden;
}

.underweight h3,.normalweight h3,.overweight h3,.obesityweight h3{
    padding:2px 15px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.25;
    margin: 0;
}

.underweight p,.normalweight p,.overweight p,.obesityweight p{
    padding:2px 15px;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}    

.underweight {
    background-color: #8888FF;
}

.normalweight {
    width:221px;
    background-color: #00FF00;    
}

.overweight {
    background-color: #FF8888;    
}

.obesityweight {
    width:160px;
    background-color: #7a1010;
}

.bmiLevel {
    float:left;
    width:0px;
    max-width:708px;
    min-height:30px;
}

.bmiPointer {
    margin:0 0;
    font-size: 40px;
    font-weight: bold;
}

tbody {
    min-width: 300px;
}

.unit2UnitConv {
    overflow-x: hidden;
}

.mobileOnly,.appPromo,.iPhoneOnly,.androidOnly {
    display:none;
}

div.lowTower {
  position: -webkit-sticky;
  position: sticky;
  top: 150px;
  min-height:250px;
  max-height:600px;
  width:300px;
  float: left;
}

#typeMenu a,#mainLinks a {
    display: block;
    float: left;
    width: 28%;
    height: 50px;
    margin: 1px 1px;
    min-width: 300px;
}

#mainLinks a.typeConv {
    display: flex;
    align-items: center;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    line-height: 1.2;
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    overflow: hidden;
    box-sizing: border-box;
    padding: 2px 8px 2px 58px;
    background-color: #595959;
    background-position: 5px center;
}

#mainLinks a.typeConv:hover {
    background-color: #413f3f;
}

.typeConv {
    padding: 0 0 0 5%;
}

#userInput {
    background-color: #3e7589;
    min-height: 20px;
    margin: 1px 1px;
    padding: 0.25% 5%;
    width: 88%;
    line-height: 24px;
}

#userInput .unitFieldLabel {
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.3;
    margin-right: 0.35em;
}

#search li {
    line-height: 24px;
    margin: 1px 0.5%;
    width: 28.25%;
}

.typeConv {
    padding: 0 0 0 58px;
}

/* Home/category sidebar: beats .typeConversionPage a { padding-left: 15% } */
.typeConversionPage a.typeConv {
    padding-left: 58px;
}

.featureConv {
    padding: 1% 0.25% 0 50px;    
}

.singleArg,.doubleArg,.tripleArg {
    width: 100%;
    height:90%;
    font-size: 1.5em;
}

.doubleArg {
    width: 45%;        
}

.tripleArg {
    width: 30%;        
}

.hideArg {
    display: none;
}

.showArg {
    display: block;
}

#adfree, #helpmetric {
    display: none;
}

/* Home desktop: type select + search block layout */
@media (min-width: 737px) {
    #userInput:has(h2),
    #userInput:has(.unitFieldLabel) {
        padding-top: 1rem;
    }

    #userInput:has(+ #searchInput),
    #userInput.unitSelectPanel:has(+ #searchInput) {
        width: 90%;
        box-sizing: content-box;
        padding: 0.25% 5%;
        margin: 0;
        padding-bottom: 0.5rem;
    }

    /* English home: single teal box (no search block below) */
    #userInput:has(h2):not(:has(+ #searchInput)),
    #userInput:has(.unitFieldLabel):not(:has(+ #searchInput)):not(.converterTypePanel) {
        width: 670px;
        box-sizing: content-box;
        padding-bottom: 1.25rem;
    }

    #userInput.unitSelectPanel:not(:has(+ #searchInput)) {
        box-sizing: border-box;
        padding-bottom: 1.25rem;
    }

    #userInput.unitSelectPanel #convertForm {
        height: auto !important;
        overflow: visible;
    }

    #userInput.unitSelectPanel .unitFieldLabel {
        display: block;
        margin: 0 0 0.75rem;
        color: #fff;
    }

    #userInput + #searchInput {
        margin: 0;
        padding-top: 12px;
    }

    #userInput:has(+ #searchInput) select.searchField {
        margin-bottom: 14px;
    }

    #userInput h2 {
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin: 0 0 1rem !important;
        padding: 0;
    }

    #userInput form p {
        margin: 0;
    }

    #searchInput h3 {
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin: 0 0 0.5rem !important;
        padding: 0;
    }

    #searchInput .unitFieldLabel {
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin: 0 0 0.5rem !important;
        padding: 0;
        display: block;
    }

    body.home-page #mainLinks {
        max-width: 740px;
        margin-right: 310px;
        box-sizing: border-box;
        clear: left;
        margin-top: 0;
    }

    body.home-page #mainLinks #homePageH2 {
        color: #4c4c4c;
        margin: 0 0 10px 0;
        padding: 0;
    }
}

/* Unit/type sidebar link lists — keep vertical padding off (beats later .typeConv rules) */
.featureTypes,
.featureTypesConv,
.tableTypes {
    padding-top: 0;
    padding-bottom: 0;
}

.featureTypes .typeConv {
    display: flex;
    align-items: center;
    height: auto;
    line-height: 1.3;
    padding-top: 0;
    padding-bottom: 0;
}

/* Sidebar / bottom link lists: dark grey unit links (#595959), same as type selection page */
.narrowcol .linkDiv .featureTypes a.typeConv.unitConv,
.linkDiv .featureTypes a.typeConv.unitConv {
    background-color: #595959;
}

.narrowcol .linkDiv .featureTypes a.typeConv.unitConv:hover,
.linkDiv .featureTypes a.typeConv.unitConv:hover {
    background-color: #413f3f;
}

/* Unit selection page: stack From/To selects, full width of teal box */
#userInput.unitSelectPanel #convertForm {
    height: auto;
}

#userInput.unitSelectPanel .unitSelectFields {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin: 0;
}

#userInput.unitSelectPanel select#unitFrom,
#userInput.unitSelectPanel select#unitTo {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

#userInput.unitSelectPanel .betweenSelectGap {
    line-height: 10px;
    margin: 0;
    padding: 0;
}

#userInput.converterTypePanel .unitFieldLabel {
    display: block;
    margin: 0 0 0.35em;
}

/* Metric conversion table hub: teal box + link grid match .org (desktop) */
@media (min-width: 737px) {
    body.table-page #userInput.converterTypePanel {
        width: 88%;
        box-sizing: border-box;
        height: auto;
        min-height: 0;
        padding: 12px 5% 16px;
    }

    body.table-page #userInput.converterTypePanel #convertForm {
        height: auto;
    }

    body.table-page #userInput.converterTypePanel p {
        margin: 0;
    }

    body.table-page #userInput.converterTypePanel select.searchField,
    body.table-page #userInput.converterTypePanel select#unitType {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.table-page #mainLinks {
        width: 88%;
        box-sizing: border-box;
        clear: left;
        margin: 1px;
    }

    body.table-page #mainLinks a.typeConv {
        width: calc(33.333% - 2px);
        min-width: 0;
        margin: 1px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        height: auto;
        min-height: 50px;
        max-height: none;
        padding: 4px 8px 4px 50px;
        font-size: 14px;
        font-weight: bold;
        line-height: 1.2;
        white-space: normal;
        overflow: hidden;
        background-position: 5px center;
    }

    /* Type / unit table index (e.g. volume-conversion-table.htm): link grid matches teal box */
    body.type-table-page #userInput {
        width: 90%;
        box-sizing: border-box;
        height: auto;
        min-height: 0;
        padding: 12px 5% 16px;
    }

    body.type-table-page #userInput.unitSelectPanel {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-bottom: 1.25rem;
    }

    body.type-table-page #userInput.unitSelectPanel #convertForm {
        height: auto !important;
        overflow: visible;
    }

    body.type-table-page #userInput p {
        margin: 0;
    }

    body.type-table-page #userInput .unitFieldLabel {
        display: block;
        color: #fff;
        font-weight: bold;
        font-size: 15px;
        line-height: 1.3;
        margin: 0 0 0.35em;
    }

    body.type-table-page #mainLinks {
        width: 90%;
        box-sizing: border-box;
        clear: left;
        margin: 1px;
    }

    body.type-table-page #mainLinks a.typeConv {
        width: calc(33.333% - 2px);
        min-width: 0;
        margin: 1px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        height: auto;
        min-height: 50px;
        max-height: none;
        padding: 4px 8px 4px 50px;
        font-size: 14px;
        font-weight: bold;
        line-height: 1.2;
        white-space: normal;
        overflow: hidden;
        background-position: 5px center;
    }
}

/* Unit-to-unit pages: Accuracy section */
.control.precision-section {
    background-color: #595959;
}

/* Conversion table controls: Starting value, Increment, Accuracy, etc. */
.control.tableControl {
    background-color: #595959;
}

/* Conversion table controls: align starting value input with selects */
#metricConversionTable #visibleControls .tableControlPanel {
    clear: both;
    box-sizing: border-box;
    width: 98.76%;
    margin: 0 0.62%;
    padding: 0;
}

#metricConversionTable #visibleControls .tableControlPanel .control.tableControl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-width: 0 !important;
    margin: 1px 0 0 0;
    padding: 6px 2.5% 6px 2.5%;
    float: none;
    line-height: 1.2;
}

#metricConversionTable #visibleControls .tableControlPanel .control.tableControl input.controlOptions,
#metricConversionTable #visibleControls .tableControlPanel .control.tableControl select.controlOptions {
    float: none;
    margin: 0 !important;
    box-sizing: border-box;
    height: 28px;
    width: 212px;
    min-width: 212px;
    max-width: 212px;
    flex-shrink: 0;
    background: #fff;
    color: #444c4c;
    border: 1px solid #b8b8b8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 5px;
}

#metricConversionTable #visibleControls .tableControlPanel .control.tableControl select.controlOptions {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23444c4c' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
}

/* Information article headings */
article#information h2 {
    color: #333333;
    font-weight: normal;
}

article#information h2 a {
    color: #333333;
    font-weight: normal;
}

/* Narrow viewports: avoid side-by-side table blocks if desktop CSS is served on a phone */
@media screen and (max-width: 736px) {
    #metricConversionTable .tableColumn {
        float: none;
        width: 100% !important;
        min-width: 0 !important;
        clear: both;
    }

    #metricConversionTable #visibleControls .tableControlPanel .control.tableControl {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        height: auto;
    }

    #metricConversionTable #visibleControls .tableControlPanel .control.tableControl input.controlOptions,
    #metricConversionTable #visibleControls .tableControlPanel .control.tableControl select.controlOptions {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        float: none;
    }
}
