/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize (RESET all browser defaults)
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
# Layouts
    - Header
    - Main
    - Footer
    - Navigation
# Formatting
    - Format Font size related
    - Format Position related (ALIGNMENT)
    - Format colour related
    - Format highlight
    - Format Space related
    - Format Section related
    - Format hide/show related 
# Components
    - Top Bar
    - Tables
    - Lists
	- Contact Form
	- Buttons (Social Media buttons)
    - Filter & Sort
	- Media
    - Pagination
    - Light Box 
    - Flex Box
    - Responsive grid boxes 
    - Auto Suggest
    - E Commerce related
    - Horizontal Tabs
    - Progress Bar
    - Tagging (Content, People, Organisation)
    - Icons / Shapes
    - Carousel / Slide-show
    - Miscellaneous
# Utilities
	- Accessibility
    - Small screen (Keep in end)
--------------------------------------------------------------*/

/*===================== # Generic ================================= */
/* ---------------- Normalize -------------------------- */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and * `article` contexts in Chrome, Firefox, and Safari.
 */
h1,
h2 {
	font-size: 1.3em;
	margin: 0.2em 0;
    display: inline-block;
}
h2 {
	font-size: 1.2em;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* --------------- Text-level semantics ------------------------ */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bold;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* ------------- Embedded content ----------------- */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* ----------------- Forms ----------------- */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
/* button, */
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
    border: 2px solid #c2c2c2 ;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}


textarea {
	overflow: auto;      /* Remove the default vertical scrollbar in IE 10+. */
    resize: none;       /* Do not allow to resize textarea */
}

textarea:invalid {
    border: 1px solid red;      /* Textarea invalid highlight minlength or other error */
}
/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
    height:1.2em;
    width:1.2em;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* ---------------- Interactive -------------------- */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* ------------------ Misc ----------------------- */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* -------------- Box sizing ------------------ */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}


/* ============================= # Base =============================== */
/* ------------- Typography --------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1.1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

/* If any citation, show it in the right side */
cite{
    display: block;
    text-align: right;
}
/* Quote used as block paragraph in content */
blockquote {
	padding: 5px 5px 5px 15px;
    margin: 15px;
    border-left: 5px solid #c2c2c2;
    background: #F4F0F0;
    clear: both;
}

/* Quote used inline in content */
q { 
    padding: 5px 5px 5px 15px;
    margin: 15px;
    border-left: 5px solid #c2c2c2;
    background: #F4F0F0;
    clear: both;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
    padding: 5px;
}

/* ------------ Elements ------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 2em;
	list-style-type:initial;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* ----------- Links ---------------------- */
a {
	color: #4169e1;
}

/*
a:visited {
	 color: #0EDE92;
}
*/

a:hover,
a:focus,
a:active {
	color: #E32335;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* ------------- Forms ---------------------- */
/* 
I removed button resets 
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}
*/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

.inputtxt {
    width:96%;
    background-color:#FAF674;
    padding:2px;
    margin:1px;
    border-radius:3px;
    border:1px solid #7ac9b7;
}
.inputtxt:focus {
    background-color:#DDFA8C;
}

/* ========================= # Layouts ============================= */
body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0;
  position: relative;
}

header,
main,
aside,
nav,
#btm-footer {
  background: #fff;
  margin: 0;
  padding: 0;
}

header {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    height: 48px;       /* Same as topbar */
}

main {
  grid-column: 2 / 5;
  grid-row: 2 / 3; 
  padding: 20px 50px 20px 30px;
  /* flex-wrap: wrap; */
}
main a{
	text-decoration: none;
}
nav {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 0 20px;
    border-right: 1px solid #000;
    min-height: 80vh;
    /* SHADOW EFFECT offset-x | offset-y | blur-radius | spread-radius | color */
    -webkit-box-shadow: 3px 0 8px 5px #c2c2c2;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    box-shadow:         3px 0 8px 5px #c2c2c2;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

#btm-footer {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
  border-top: 1px solid #000;
  text-align: center;
  font-weight: bold;
}
#btm-footer a {
    text-decoration: none;
    display: inline-block;
    padding: 2px;
    margin: 0 5px;
}

/* ==================== # Formatting ========================== */
/*-------------- Format Font size / weight related ---------------*/
.small {
    font-size:0.9em;
}
.smaller {
    font-size: 0.7em;
}
.big {
    font-size: 1.2em;
}
.bigger {
    font-size: 1.5em;
}

.bold {
    font-weight:bold;
}

.box{
    display: block;
    width: 100%;
}

/* Show text in 1 line dont break at words */
.nobreak {
    white-space:nowrap;
}

/* Show in 1 line and show ellipses in very long text */
.partly {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 1.3em;
}


/*-------------- Format Position related (ALIGNMENT)---------------*/
.alignleft {
    /*rtl:ignore*/
    float: left;
    margin: 0 1em 1em 0.5em;
}

.alignright {
    /*rtl:ignore*/
    float: right;
    margin: 0 0.5em 1em 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

img.alignleft,img.alignright,img.aligncenter{
    /* SHADOW EFFECT offset-x | offset-y | blur-radius | spread-radius | color */
    -webkit-box-shadow: 4px 4px 4px 2px #c2c2c2;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    box-shadow:         4px 4px 4px 2px #c2c2c2;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

.fix{
    position:fixed;
    z-index: 100;
}

.bar {
    display: block;
    width: 100%;
}
.top {
    top:0;
    }

.btm {
    bottom:0;
    }

.left{
    left:0;
}

.right{
    right: 0;
}

/*-------------- Format colour related ---------------*/
.txt-white{
    color: #fff;
}
.txt-red {
    color: red;
}
.txt-green {
    color: green;
}
.bg-white {
    background-color: #fff;
    color: #000;
}
.bg-lgreen {
   background-color:#CAF8B5;
   color: #000;
}
.bg-green {
    background-color: #26D919;
    color: #fff;
}

.bg-lorange {
   background-color:#EDDC8B;
   color: #000;
}

.bg-yellow {
   background-color:#F1FC53;
   color: #000;
}


.bg-grey {
    background-color: #C2C2C2;
    color: #000;
}
.bg-lgrey {
    background-color: #E2E2E2;
    color: #000;
}

.alert,
.orange {
    background-color:#FCC37C;
}

.od,
.grey {
    background-color: #E2E2E2
}

/*-------------- Format highlight ---------------*/
.updated {
    background-color:#CAF8B5;
    transition:0.5s ease;
    -moz-transition:0.5s ease;
    -webkit-transition:0.5s ease;
}

.alert,
.salert {
    border: 1px solid red;
    background: #fef5e0;
    padding: 3px;
    margin: 3px;
    clear: both;
    line-height: 1.5em;
}

.alert img {
    vertical-align: middle;
}

.salert {
    padding: 2px;
    margin: 1px;
}

.errors,
.success {
    padding: 2px;
    margin: 0;
}

.errors{
    color: red;
}
.success {
    color: #00f
}

.mark {
    background-color: #f1ffed;
    padding: 10px;
    margin: 5px;
    border: 2px solid #086e04;
    clear: both;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    /* SHADOW EFFECT offset-x | offset-y | blur-radius | spread-radius | color */
    -webkit-box-shadow: 4px 4px 4px 2px #c2c2c2;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    box-shadow:         4px 4px 4px 2px #c2c2c2;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}
/*-------------- Format space related  ---------------*/
.marg0 {
    margin: 0px;
}
.marg3 {
    margin: 3px;
}
.marg5 {
    margin: 5px;
}
.marg10 {
    margin: 10px;
}

.pad0 {
    padding: 0px;
}
.pad3 {
    padding: 3px;
}
.pad5 {
    padding: 5px;
}
.pad10 {
    padding: 10px;
}

.bord1 {
    border: 1px solid #c2c2c2;
}
.bord2 {
    border: 2px solid #000;
}

.bordrad5{
    border-radius: 5px;
    -webkit-border-radius: 5px;
}
.bordrad10{
    border-radius: 10px;
    -webkit-border-radius: 10px;
}

/*-------------- Format section related  ---------------*/
.section {
    margin:5px 5px 10px 5px;
    padding:5px;
    border:1px dotted #000;
    border-radius: 10px;
    -webkit-border-radius: 10px;
}

/*-------------- Format hide/show related  ---------------*/
/* hide this element */
.hide {
    display: none;
}

/* ==================== # Components ========================== */
/*
main img{
border: 3px solid #c2c2c2;
padding:3px;
border-radius: 15px;
-webkit-border-radius: 15px
}
*/

/* --------------- Navigation ------------------- */
.navhead {
    border-bottom: 2px dotted #000;
    padding: 0 0 2px;
    font-size: 1.2em;
    margin-top: 15px
}

#tree{
	width: 100%;
    text-transform: uppercase;
    font-size: 1.1em;
}

#tree a {
    text-decoration: none;
}

#tree,
#tree li,
#tree ul {
    margin: 0;
    padding: 0;
    list-style:none;
}

#tree #active {
    background-color: #fff;
    padding-left: 10px;
}

#active li {
	padding:2px 0 0 21px;      /* Shift letters 2px down and 21px right */
}
#active a:hover{
	color: red;
	font-weight: bold;
}
#active h2{
	font-size: 1.1em;
	padding-left: 2px;
	color: green;
	margin-left:-10px;     /* - of #active padding-left */
    display:block;
}

#active strong {
    color: green;
}
#tree li ul {
    margin-left: 1px;
    background: url(/css/line1.gif) repeat-y;
}

#tree li li {
    background: url(/css/line2.gif) no-repeat;
}

/* ---------------------- Top Bar ------------------- */
#topbar {
    position: fixed;
    display: block;
    width: 100%;
    top: 0; /* Stay on top */
    padding: 0;
    margin: 0;
    height: 48px;
    background: #003366;
    z-index: 100;
    border-bottom: 1px solid #fff;
    vertical-align: middle;
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
}

.banner {
    color:#fff;
    font-size:30px;
    font-weight:bold;
    text-decoration:none;
    margin-left:2px;
    padding:2px;
}
    
/* -------------------  TABLES  -------------------- */
/* https://css-tricks.com/almanac/properties/t/table-layout/ */
.jtable {
    border: 1px solid #c2c2c2;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    padding: 0;
    table-layout: auto;                  /* This expands tables more than containing div but col width expands as per content see .tablediv*/
    /* table-layout: fixed; */           /* This makes tables to stay within div but equal fixed col width, USE LOCALLY */
    width:100%;
    /* text-align:left; */
    position: relative;
    background-clip: padding-box;       /* Will show border above cell background like .sticky-col */
    /* word-break: break-all; */
    /* word-wrap: break-word; */        /* Will wrap the words even breaking the words if required */
}

/* Zebra striping 
Default zebra was breaking in hidden rows which I frequently use so I removed it 
.jtable tr:nth-of-type(odd) { 
  background-color: #eee; 
}
*/

.jtable tr {
    border: 1px solid #c2c2c2;
    padding: 5px;
    }

.jtable th,td {
    padding: 0.25rem;
    text-align: left;
    color:#000;
    border: 1px solid #c2c2c2;
    
}

.jtable th {
    background-color:#dfebfd;
    text-transform: uppercase;
    font-weight: bold;
    position: -webkit-sticky;
    position: sticky;
    top: 0;     /* Don't forget this, required for the stickiness */
    z-index: 2;
    background-clip: padding-box;       /* Will show border above cell background like .sticky-col */
}

.sticky-col {
  position: -webkit-sticky;             /* for Safari */
  position: sticky;
  z-index:3;                            /* Keep 1 index higher than th */
  left: 0;                              /* required for the stickiness, change locally if required */
  background:inherit;                   /* required to prevent showing text below .sticky-col on scroll */
  background-clip: padding-box;         /* Will show border above cell background like .sticky-col */
}

/* If jtable overflows/expands more than the closing div, make closing div class=limittable */ 
.limittable {
    display:table;
    table-layout:fixed;
    width:100%;
}

/* ----------------------- Lists ------------------------- */
.jlist,
.jlist li {
    margin:0;
    padding:0;
    list-style-position: inside;
}
.jlist li{
    padding-left: 10px;
    margin-left: 10px;
}

/* ---------------------- BUTTONS ------------------------- */
/* 
I started using more semantic buttons replacing anchor links used previously
If there is change of URL or navigating to different page use anchor links
If there is change of dom or another action use button
*/
/* Login Button */
.login_btn {
    display:inline-block;
    padding:2px;
    margin-top:2px;
}

/* Big blue btn not round */
.nbtn {
    background: #036;
    color: #FFF;
    padding: 8px;
    margin: 5px;
    transition-duration: 0.4s;
    cursor: pointer;
}

/* Make buttons look like txt or links e.g. FOLLOW and X (Close) */
.btntxt {
  border: none;
  background-color: inherit;
  padding:2px;
  font-size: inherit;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  color: #00f;
}

/* Big rounded Buttons */
.rbtn {
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    padding: 5px 15px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    font-weight: bold;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    transition-duration: 0.4s;      /* Hover effect transition */
}

.nbtn:hover,
.rbtn:hover {
  background-color: #fff;
  color: #000;
}

/* Small rounded Buttons */
.rsbtn {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    padding:5px;
}

/* Search Button */
#srcico {
    display: inline-block;
    float: right;
    margin: 0 5px; 
    padding:0 5px;
    font-size:30px;
}

/* Social Media buttons */
#sharebar{
    position: fixed;
    height: 65px;
    margin: 0;
    padding: 10px;
    bottom: -65px;              /* Do not show by default */
    vertical-align:middle;
    text-align: center;
    border: 2px solid #c2c2c2;
    border-radius: 15px 15px 0px 0px;     /* top-left,top-right,btm-right,btm-left border-radius same as containing div radius*/
    background-color: #fff;
    z-index: 100;
    transition: bottom 0.3s; /* Transition effect when sliding down (and up) */
}

.shrbtn {
    display: inline-block;
    padding: 3px;
    cursor : pointer;
    border : 1px solid #c2c2c2;
    border-radius: 10px;
    color: black;
}

/* report class used for anchor/buttons which closes the box */
.report {
    display: block;
    font-weight: bold;
    float: right;
    text-decoration: none;
    margin: 3px;
    padding: 2px;
    }

#comparebtn {
    white-space:nowrap;
    padding: 5px;
    margin: 0;
}
#comparebtn a {
    text-decoration: none;
    color: #000;
}
/* ----------------------- Filter & Sort ------------------ */
#filterdiv
    {
    position:fixed;
    bottom:0;
    right:0;
    margin:0;
    padding:0;
    z-index:101;
    }

#filterbar
    {
    float:right;
    padding:5px;
    margin:2px;
    margin-bottom:10px;
    border: 1px dotted #000;
    border-top:0;
    background-color: #c2c2c2;
    font-weight: bold;
    }
.filteropt
    {
    padding:10px;
    border:1px solid #000;
    border-top:0;
    margin:5px;
    max-height:200px;
    overflow:auto;
    }
/* ---------------------- Media --------------------------- */
/* User detail box in blogs */
.userpic {
    float: left;
    border: 3px solid #d2d2d2;
    width: 90px;
    margin: 0 25px 5px 0;
    text-align: center;
    border-radius: 10px;
    -webkit-border-radius: 10px;
}

/* User image inside userpic box */
.upic {
    padding: 2px;
    margin: 0;
    background: #fff;
    height: 65px;
    width: 65px;
    /* border-radius: 50%;     /* Make the image round */
    border-radius: 10px;
    object-fit: cover;
}

.fpic {
    border: 2px solid #c2c2c2;
    padding: 2px;
    margin: 10px 2px 2px;
    max-width: 96%;
    height: auto;
    clear: both;
    display: block;
}

/* -------------------- Pagination ------------------------ */
div.pagination {
    padding: 2px;
    margin: 2px;
    width: 96%;
    clear: both;
    text-align: center;
}

div.pagination a {
    padding: 5px;
    margin: 2px;
    border: 1px solid #aad;
    text-decoration: none;
    color: #009
}

div.pagination a:active,
div.pagination a:hover {
    border: 1px solid #009;
    color: #000;
}

div.pagination span.current {
    padding: 5px;
    margin: 2px;
    border: 1px solid #009;
    background-color: #67aff9;
    color: #FFF;
}

div.pagination span.disabled {
    padding: 5px;
    margin: 2px;
    border: 1px solid #EEE;
    color: #DDD;
}

/* ---------------------- Light Box  ------------------------- */
.ltbox,
.ltboxcontent {
    display: none;
    position: fixed;
}

.ltbox {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1001;
    opacity: .8;
    filter: alpha(opacity=80);
}

.ltboxcontent {
    top: 2%;
    left: 2%;
    width: 95%;
    height: 95%;
    padding: 10px;
    border: 10px solid #dfebfd;
    background-color: #fff;
    z-index: 1002;
    overflow: auto;
    font-size: 1.3em;
    text-align: center;
    color: #000
}

.ltboxcontent a {
    color: #00F
}

/* -------------------- Responsive grid boxes -------------------- */
.gridlist {
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
    grid-auto-rows:minmax(min-content,auto);
    grid-gap:1 rem;
    grid-auto-flow: dense;
}

/* This has issues, long text do not wrap !!! Need to correct this !!*/
.griddiv {
    border:1px solid #000;
    border-radius: 5px;
    padding:0 5px 0 5px;
    margin:5px;
    position:relative;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0 3px 2px 2px #c2c2c2;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    box-shadow:         0 3px 2px 2px #c2c2c2;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}
.griddiv .data {
    flex: 1 1 auto;
}

.griddiv h2 {
    border-bottom: 1px solid #000;
    border-radius: 5px 5px 0px 0px;     /* top-left,top-right,btm-right,btm-left border-radius same as containing div radius*/
    margin:0 -5px 0 -5px;
    padding: 5px;
    text-align:center;
    text-transform: uppercase;
    background-color:#e6fcd9;
    display:block;
    position:relative;
    font-size:1.1em;
}

.cta {
    border-top: 1px solid #000;
    margin:0 -5px 0 -5px;       /* -5px to align line to end on both side */
    padding: 5px;
    text-align: center;
}

/* ---------------------- Flex Box  ------------------------- */
.flexcontainer {
    display: flex;                          /* or inline-flex */
    align-items: stretch;                   /* Stretches all items vertically to equal height */
    justify-content: flex-start;            /* Stacks all items horizontally to start */    
    /* justify-content:space-between; */    /* distribute all items equally spaced */
    gap: 10px 20px;                         /* row-gap column gap */
    flex-direction:row;                     /* Show Items in row horizontally */
    /* flex-wrap:wrap; */                   /* controls whether flex container is single or multi lined
    / * On small screen I just changed to column */
}

.flexitem {
    /* Most item designs can be done inline, rest mainly container decides about the items */

}
/* ---------------------- Auto Suggest --------------------- */
.autoc {
    width: 98%;
}

.sugbox {
    background: #FFF;
    border: 1px solid #000;
    border-top: none;
    z-index: 100;
    height: 100px;
    overflow: auto;
    padding:1px;
    margin:0;
}

.sugbox a {
    display:block;
    line-height:25px;
    width:auto;
    padding:2px;
    margin:1px;
    border:0;
    border-bottom:1px dotted #7E7B7B;
}

.sugbox img {
    height:30px;
    width:30px;
    vertical-align: middle;     /* Makes the anchortext vertically align */
    }

/* --------------------- - E Commerce related ------------------- */
.cart {
    display: inline-block;
    vertical-align:middle;
    padding: 5px; 
    margin:5px;
    font-weight:bold;
    background-color: #26d919;
    color: #000 !important;
    float: right;
    border: 2px solid #fff;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    text-decoration: none;
}

.circle {
  display: inline-block;
  border-radius: 50%;
  min-width: 18px;
  min-height: 18px;
  padding: 3px;
  background: #fff;
  color: #000;
  text-align: center;
  line-height: 1;
  box-sizing: content-box;
  white-space: nowrap;
}
.circle:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  padding-top: 100%;
  height: 0;
}
.circle span {
  display: inline-block;
  vertical-align: middle;
}


/* Highlight all buy and add to cart buttons */
.buy {
    background-color: #26D919;
    color: #000;
    border: 1px solid #479112
}

/* --------------- Horizontal Tabs ------------------ */
.htabs {
display:table;
border-collapse:separate;
border-spacing:2px 0;
}

.lo,.curr {
display:table-cell;
vertical-align:top;
padding:5px;
background:#dfebfd;
border:1px solid #000;
z-index:3;
font-weight:bold;
position:relative;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
width:auto;
}

.curr {
background:#fff;
border-bottom:1px solid #fff;
}

.curr1 {
border-top:1px solid #000;
padding:3px;
margin:-1px 1px 1px 1px;
overflow:auto;
z-index:1;
}

.nbox {
position:absolute;
border:1px solid #FF0000;
background:#FEF5E0;
padding:2px;
margin:0;
top:1px;
right:1px;
}

/* ------------- Progress Bar ------------- */
/* http://www.useragentman.com/blog/2012/01/03/cross-browser-html5-progress-bars-in-depth/
progress,          /* All HTML5 progress enabled browsers */
progress[role]     /* polyfill */
    {
    /* Turns off styling - not usually needed, but good to know. */
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    /* gets rid of default border in Firefox and Opera. */ 
    border: none;
    /* Needs to be in here for Safari polyfill so background images work as expected. */
    background-size: auto;
    /* Dimensions */
    width: 300px;
    height: 60px;
}

/* PROGRESS Polyfill */
progress[role]:after {
    background-image: none; /* removes default background from polyfill */
}

/* Ensure fallback text doesn't appear in PROGRESS polyfill */
progress[role] strong {
    display: none;
    }

progress,                          /* Firefox  */ 
progress[role][aria-valuenow] {    /* Polyfill */
   background: #ffeeee !important; /* !important is needed by the polyfill */
}

/* Chrome */
progress::-webkit-progress-bar {
    background: #ffeeee;
}
/* IE10 */
progress {
    color: black;
}

/* Firefox */
progress::-moz-progress-bar { 
    background: black;  
}

/* Chrome */
progress::-webkit-progress-value {
    background: black;
}

/* Polyfill */
progress[aria-valuenow]:before  {
    background: black;
}

/* --------- Tagging (Content, People, Organisation) -------------- */
/* ALL ANCHOR TAGS WHICH ARE @mention or #tag have class '.tag' OR '.men'*/
.tag,
.ppl,
.org {
    display:inline-block;
    padding:1px 3px 1px 3px;
    margin:1px 3px 1px 3px;
    border:1px solid #749FFD;
    background:#E1F6FC;
    font-size:0.9em;
    vertical-align: middle;
    border-radius:5px;
    -webkit-border-radius:5px;
    text-decoration:none;
}

/* CHANGE COLOUR OF MENTIONED PEOPLE OR ORG */
.ppl {
    border:1px solid #54D305;
    background:#EFFBDA;
}
.org {
    border:1px solid #FCB543;
    background:#FCF9E9;
}

/* ---------------- Icons / Shapes---------------------- */
.heart, .heartred {
    font-weight: bold;
    font-size: 1.8em;
    text-decoration: none;
    color: #b2b2b2;
    margin: 5px 5px 5px 15px;
}

.heartred {
    color: red;
    font-size: 2.3em;
}

.star {
    font-weight: bold;
    font-size: 2em;
    text-decoration: none;
    color: #b2b2b2;
    border: 0;
    margin: 0;
    padding: 0;
    -webkit-text-stroke: 1px black;         /* 1 px border to star */
}
.star-glow {
    color: gold;
}

/* ----------------- Carousel / Slide-show ------ */
.carousel {
  position: relative;
  width: 80%;
  height: 305px; 
  margin: 0 auto;
  border: 2px solid #000;
  border-radius: 5px;
}

.carousel-content {
  position: relative;
  overflow: hidden;
  transition: width .4s;
  height: 100%;
}

.slide {
  height: 100%;
  position: absolute;
  z-index: 1;
  transition: left .4s cubic-bezier(.47,.13,.15,.89);
  border:1 px solid #000;
  border-radius:10px;
  padding:5px;
}

.carouselnav {
  position: absolute;
  top: 50%;
  margin-top: -10px;
  background-color: rgba(150,150,150,.3);
  width: 40px;
  height: 40px;
  font-size:35px;
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  outline: none;
  color: #000;
  -webkit-user-select: none;
  display: flex; /* or inline-flex */
  align-items: center; 
  justify-content: center;
}

.nav-left {
    left: -50px;
}

.nav-right {
  right: -50px;
}

/* ----------------- Miscellaneous ------------- */
#disp_div a {
    text-decoration: none;
}

/* Makes any element sticky e.g. when window scrolls to that position, it remains on screen fixed after that */
.sticky-top{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
}
.sticky-btm{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    bottom: 0;
}

/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ============================ UTILITIES ============================== */
/* ----------- small screen -------------- */
/* Menu button generally hidden, shown only on small screen */
#menubtn {
    display: none;
}

/* Navigation menu generally shown, hidden only on small screen */
.nav-hide {
    visibility: visible;
    opacity: 1;
}

/* Class for Navigation menu on Small screen to appear */
.mobnav {
    position: fixed;
    top: 50px;
    left: 2px;
    border-bottom: 1px solid #000;
    z-index: 3;
    height: 95vh;
    width: 80vw;
    overflow: auto;
    overflow-x: hidden;
    visibility: visible;
    opacity: 1;
    transition: all .4s ease-in-out; /* Animate to appear */
}

/* Control layout in small screen */
@media (max-width:700px) {
    /* on Small screen - hide Nav menu */
    .nav-hide {
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease-in-out; /* Animate to dis-appear */
    }

    /* on Small screen - Make main column spread full screen */
    main {
    grid-column: 1 / 5;
    z-index: 1;
    padding: 20px;
    }

    /* on Small screen - Make menu button visible */
    #menubtn {
    display: inline-block;
    padding: 4px;
    margin: 2px;
    text-decoration:none;
    color:#fff;
    }

    /* on Small screen - Make topbar content small */
    #menubtn, 
    #srcico, 
    .banner {
    font-size:22px;
    }

    /* Responsive Tables */
    /* TABLES On Small screen - Make tables responsive */
    /* TABLES On Small screen - No Table border */
    .resptable {
      border: 0;
    }
    /* TABLES On Small screen - Hide table headers */
    .resptable thead{
        display:none;
    }
    /* TABLES On Small screen - Adjust Table rows which are not hidden */
    .resptable tr:not(.hide) {
      margin-bottom: 15px;
      display: block;
      border: 2px solid #c2c2c2;
    }

    /* TABLES On Small screen - Make each table columns as block level element e.g.below each other */
    .resptable td {
      display: block;
      text-align: right;
      border: 0;
      border-bottom: 1px solid #d2d2d2;
      /*
      This shows in 2 column
      position: relative;
      padding-left: 50%;
      */
    }
    /* TABLES On Small screen - Show data-label before column data */
    .resptable td:before {
    content: attr(data-label);
    font-weight: bold;
    /*
    This shows in 2 column
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    */
    float: left;
    text-transform: uppercase;
    }
    /* TABLES On Small screen - Last Column No botom border */
    .resptable td:last-child {
      border-bottom: 0;
    }

    /* TABLES On Small screen - Make table headers of small fonts */
    .jtable thead{
        font-size: 0.8em;
    }
    
    /* Stack flex items as columns */
    .flexcontainer {
    flex-direction:column;                     /* Show Items in column vertically */
    }

    .hide-small {
        display: none;
    }
}

/* ======================== OLD FORMAT TO DELETE OR MODIFY ================================ */
.sec {
    background: #b3d9ff;
    padding: 2px;
    margin: 0 0 5px;
    border-bottom: 1px solid #369
}


.s_ads {
    display: block;
    width: 150px;
    padding: 5px;
    margin: 2px;
    background: #FEF5E0;
    border: 2px solid red;
    font-size: 1.1em
}


.ajbox {
    border: 2px solid #00F;
    background: #fff;
    padding: 5px;
    margin: 0;
    width: auto;
    display: inline-block;
    max-height: 250px;
    overflow: auto
}

#fsbox {
    overflow: hidden;
    max-height: 200px;
    font-size:0.9em;
    line-height:0.9em;
}

/* Follow suggestion box */
.folsug {
    min-height: 180px;
    padding: 5px;
    margin: 2px;
    border: 2px solid #D2D2D2;
    width: 150px;
    text-align: center;
    float: left;
    position: relative;
    border-radius: 10px;
}


.filediv,.dragover {
    border:5px dashed #c2c2c2;
    padding:5px;
    margin:5px;
    min-height:2em;
    }
.dragover {
    border-color:#1EB517;
    }

.numcirc {
  width: 2.2em;
  line-height: 2.2em;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  border-radius: 50%; /* may require vendor prefixes */
  display:inline-block;
  font-size:0.9em;
  padding:1px;
}


