
/* from video Responsive Pure CSS Menu Tutorial(No Javascript).mp4 
 from video Responsive Navigation Bar Html CSS and JQuery.mp4 
 multi-level additions 
 from video Easy Multi-Level Dropdown Menu Tutorial - Using Only CSS (With Animated Dropdown Arrows).mp4 
 from Responsive Multilevel Dropdown Menu With HTML And CSS #webtrickshome
 from Responsive Multi Level Dropdown Mnu with CSS CSS3 Animated Hamburger 
 * 
 * from Multi Level Dropdown Navigation Menu HTML CSS & Javascript 
 * 
*/

:root {
	box-sizing: border-box;
		
/*	--primary:  
	
	--header-bg: var(--primary);
*/
	--header_bg: blue; 
	--header_nav_text_color: black;
	--nav_submenu_bg: grey; 
	--nav_submenu_text_color: white;
	--hover_color: lightgrey;
	--dark: darkgrey;
	--light: lightgrey;
	--logo-color: white;
	
}


*, *::after, *::before {
	box-sizing: inherit;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helivetica, sans-serif;
/*	background-color: #bbb; */
	font-size: 1rem;
/*	line-height: 32px; */
	word-wrap: break-word !important;
	/*color: #fff*/
	min-height: 100vh;
}


/* Misc */
.clear {
clear:both;
}

/* navigation */
header {
	width: 100%;
	min-height: 50px;
	background: var(--header_bg); /*blue;*/ 
	position: relative;
	z-index: 3; /* added */
}

.bars {
	color: white;
	font-size: 2em;
	cursor: pointer;
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	transition: 0.5s linear;
	display: none;
}

header .menu-icon {
	/*border: 1px solid red;*/
	padding: 25px 20px;
	position: relative;
	float: right;
	cursor: pointer;	
}

header .menu-icon .nav-icon {
	background: var(--header_nav_text_color); /*#333;*/  
	display: block;
	height: 2px;
	width: 18px; 
	position: relative;
	transition: background 0.2s ease-out;
}

header .menu-icon .nav-icon:before {
	background: var(--header_nav_text_color);
	content: "";
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
	transition: all 0.2s ease-out;
	top: 5px;
}
header .menu-icon .nav-icon:after {
	background: var(--header_nav_text_color);
	content: "";
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
	transition: all 0.2s ease-out;
	top: -5px;
}

/* hides drop-main checkbox */
header #drop-main, header .submenu-btn {
	/* display: none; */ 
	/* https://codersblock.com/blog/checkbox-trickery-with-css/  */
	position: absolute; 
	left: -9999px; 
}
header #main-toggle {
	display: none;
}
/*
header .menu-btn:checked ~ .menu {
	left: 0;
}
*/

header #drop-main:checked ~ .menu-icon .nav-icon {
	background: transparent;
}

header #drop-main:checked ~ .menu-icon .nav-icon:before {
	transform: rotate(-45deg);
	top: 0;
}

header #drop-main:checked ~ .menu-icon .nav-icon:after {
	transform: rotate(45deg);
	top: 0;
}

.bars.rotate {
	transform: translateY(-50%) rotate(-180deg);
}

.logo {
	float: left;
	margin-left: 0.5em; /*100px;*/
	line-height: 50px;	 
}

.logo h2 {
	font-weight: 900;
	text-transform: uppercase;
}
.logo a {
	color: white;
	text-decoration: none;
	padding: 0;
}

#navbar {
	float: right;
	margin-right: 0.5em;
	background: var(--header_bg); /* if not set menu does not appear because text is white against white background */ /*blue;*/
	/*position: relative;*/
	/*list-style: none;*/ 
	/*overflow: hidden; */
}

#navbar > li {
	list-style: none;  /* inherits from ul therefre can be set on ul#navbar */
	display: inline-block;
	line-height: 25px;  /* changed from 50px  */
}

#navbar > li:hover {
	background: red;
}

#navbar a { /*used to be header a */
	color: white;
	text-decoration: none;
	text-transform: uppercase;
	padding: 10px 10px;  /* affects spacing of menu items */
	display: block; /* expands a element to cover entire area not just the words within a tag */
	/*outline: 1px solid black;*/
}

#navbar .drop-two label {
	color: white;
	text-transform: uppercase;
	padding: 10px 10px;  
	display: block;
}

#navbar .drop-one label {
	color: white;
	text-transform: uppercase;
	padding: 10px 10px;  
	display: block;
}
.menu-one {
	position: absolute;
	width: 100%;
	left: -100%;  /* 0; for testing */
	background:  whitesmoke; 
	display: flex;
	justify-content: space-around;
	box-shadow: 0 0 3px #000;
}

.drop-one:hover > .menu-one {
	left: 0;
}
.menu-one ul {
	flex: 1;
	text-align: center;
	list-style: none;
	padding: 10px 5px;
}

.menu-one ul a {
	color: var(--header_nav_text_color) !important;
	font-size: 0.8em;
}

.menu-one ul img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.menu-one ul h4 {
	text-transform: uppercase;
	color: teal;
	font-size: 1.1em;
	font-weight: 900;
}


.drop-two {
	position: relative;
}

.menu-two {
	position: absolute;
	list-style: none;
	background: grey; /*#555;*/ 
	left: 0;
	display: none; 
}

.menu-two a {
	font-size: 0.8em;
	padding: 2px 0;
}

.menu-two li {
	line-height: 25px;
	
}

.menu-two li:hover {
	 background: green; 
}

.drop-two:hover > .menu-two {
	display: block;
}

/*#navbar span {*/
.submenu-icon .drop-icon {
	display: inline-block;
	margin-left: 5px;
	transition: 0.3s;
}

.drop-two:hover span,
.drop-one:hover span {
	transform: rotate(-180deg);
}

.drop-two:hover .drop-icon,
.drop-one:hover .drop-icon {
	transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transition: 0.3s;
}
/* make .arrow point down */
.arrow {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/* arrow directions 
 * .right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}
* 
*/

/* end navigation */

/*login tabs */
#logregwrapper {
	width: 100%;
	position: absolute;
	top: 15%;
	
}

#tabbox {
	height: 20%;
	/*margin: 0;*/
}

#panel {
	background-color: #FFF;
	width: 100%;
	height: 80%;
	text-align: center;
	padding-top: 10%;
}
#panel ul {
	list-style-type: none;
}

#tabbox .tab {
background: #dedede;
display: inline-block;
/*height: 40px;*/
/*height: 20%;*/
line-height: 40px;
text-align: center;
/*width: 80px;*/
width: 50%;
float: left;
font-weight: bold;
font-size: 2vw;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-moz-border-radius: 4px 4px 0px 0px;
}

#tabbox a
{
color: blue;  /*#000;*/
margin: 0;
padding: 0;
text-decoration: none;
}

#tabbox .signup
{
/*margin-left:8px;*/
}

#tabbox .select
{
background-color:#FFF;
}

#loginbox
{
/*width: 100%;  padding goes off centre */
min-height:200px;
padding: 10px;
}

.awesome-form input {
	background: none;
	border: solid 2px #21a1e1;
	color: #21a1e1;
	padding: 15px 40px;
	font-size: 18px;
	
	width: 95%;
	/*font-size: 18px;
	width: 50%; */
}


/* https://stackoverflow.com/questions/38844309/chrome-user-agent-stylesheet-turn-off-for-transparent-background */
.awesome-form input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
input:-webkit-autofill
 {
  -webkit-text-fill-color: #21a1e1 !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset !important;
  background: none !important;
}

.awesome-form input:focus, .awesome-form input:active {
	outline: none;
}

.awesome-form input[type="text"], .awesome-form input[type="password"], .awesome-form input[type="email"] {
	border: none;
	border-bottom: solid 2px #21a1e1;
}

.awesome-form input[type="submit"]:active {
	color: white;
	background: #21a1e1;
}

.input-field {
	/*display: inline-block;*/
	display: block;
margin-right: 20px;
margin-top: 10px;
margin-bottom: 15px;
	position: relative;
}

.awesome-form input[type="submit"]{
	margin-right: 20px;
}


.input-field input {
	padding: 15px 0px;
}

.input-field label {
	position: absolute;
	top: 50%;
	/*left: 0px;*/
	left: 15%;
	transform: translateY(-50%);
	font-family: Georgia, Cambria,"Times New Roman", Times, serif;
	font-style: italic;
	font-size: 18px;
	color: #999;
	pointer-events: none;
}

.input-field input:focus + label {
	top: -10px;
	font-size: 12px;
	color: #aaa;
}

input.has-value + label {
	top: -10px;
	font-size: 12px;
	color: #aaa;
}

#signupbox
{
min-height:200px;
padding: 10px;
display:none;
}

/* end login tabs */


/* container */
#container {
/*min-height:485px;*/
position: relative;
min-height: 100vh;
border-radius:5px 5px 0 0;
}

/* end container */

#MainFeedback {
position: relative;
top: 60px;
}

#Main {
/*position: relative;*/
/*top: 70px;*/
padding-bottom: 2.5rem;    /* Footer height */
}
/* https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/  */
#footer {
	position: absolute;
  	bottom: 0;
  	width: 100%;
  	height: 2.5rem;            /* Footer height */
	text-align: center;  
}

.note-info {
	font-size: 0.5em;
}
/*building layout */
.arrears_legend {
	background: #b5a1a1;
}

/* How to EASILY Sort HTML Tables with CSS & Javascript Web Tutorial by dcode  */
.table_sortable th {
	cursor: pointer;
}
.table_sortable .th-sort-asc::after {
	content: "\25b4";
}
.table_sortable .th-sort-desc::after {
	content: "\25be";
}
.table_sortable .th-sort-asc::after,
.table_sortable .th-sort-desc::after {
	margin-left: 5px;
}
.table_sortable .th-sort-asc,
.table_sortable .th-sort-desc {
	background: blue;
	color: white;
}

.show-only-on-large td {
	min-width: 15%;
}
.uref {
	font-weight: bold;
	text-align: center;
}
.ulevies {
	font-size: 0.8em;
}
/*end building layout */


/*Making a Responsive Table Using HTML & CSS.mp4 */

table {
	/*border-collapse: collapse;*/
	width: 100%;
	/*margin: 10px auto 0;*/
	/*font-size: 1.5rem;*/
	/*color: #4a788b*/
}

table thead {
	background-color: gray; /*#d9f0fc;*/
	color: white;
}

table th, table td {
	/*border: 1px solid #6fcfff;*/
	/*padding: 5px 10px; */
	font-size: 1.5rem;
}


/*responsive forms*/
/* https://www.w3schools.com/howto/howto_css_responsive_form.asp */

/* Style inputs, select elements and textareas */
.resp-form input[type=text], 
.resp-form input[type=input], 
.resp-form input[type=number], 
.resp-form input[type=file], 
.resp-form input[type=email], 
.resp-form input[type=password], .resp-form select, .resp-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	resize: vertical;
}
/* Style the label to display next to the inputs */
.resp-form label {
	padding: 12px 12px 12px 0;
	display: inline-block;
}
/* Style the submit button */
.resp-form input[type=submit], .resp-form input[type=button] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  width: 100%; /* added to make span entire .row */
}

.resp-form input[type=button] {
	background-color: #1206b1;
}
.resp-form .row .ainput {
	background-color: #4CAF50;
	color: white;
	padding: 12px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	float: right;
	text-align: center;
	width: 100%; /* added to make span entire .row */
  }
/* Style the container */
.resp-form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
/* Floating column for labels: 25% width */
.resp-form .col-20 {
	float: left;
	width: 20%;
	margin-top: 6px;
  }
/* Floating column for labels: 25% width */
.resp-form .col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}
/* Floating column for inputs: 75% width */
.resp-form .col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}
/* Clear floats after the columns */
.resp-form .row:after {
  content: "";
  display: table;
  clear: both;
}

/*end of responsive forms */

/*  popi info css  */
.popiinfo * {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*
.popiinfo input[type=text] {
	width: 99% !important;
}
*/
.popiinfo span.popieye {
	display: inline-block;
	position: absolute;
	/*right: 15px;
	transform: translate(0, -50%);
	top: 50%;
	cursor: pointer;*/
}

.popiinfo .eyehide {
	display: none;
}
.popiinfo span.popieye img {
	width: 20px;
	/*height: 20px;*/
	/*margin-top: 5px;*/
	/*position: absolute;*/
	/*top: 50%;*/
	cursor: pointer;
	transform: translate(-30px, 50%);
}

/* end of popi info */


@media screen and (max-width: 649px) {

	.smart-table thead {
		display: none;
	}

	.smart-table tr, .smart-table td {
		display: block;
	}

	.smart-table tr:not(:last-child) {
		border-bottom: 5px solid #5ca0c3;
	}

	.smart-table td {
		padding-left: 54%;
		position: relative;
		z-index: -1;
	}

	.smart-table td::before {
		position: absolute;
		padding: 5px;
		left: 0;
		top: 0;
		bottom: 0;
		width: 45%;
		content: attr(data-col-title);
		font-size: 1rem;
		font-weight: bold;
		background-color: #f3f6fa;
	}

/* end of responsive tables */

/* responsive forms */
/* https://www.w3schools.com/howto/howto_css_responsive_form.asp */
.resp-form .col-25, .resp-form .col-20, .resp-form .col-75, .resp-form input[type=submit], .resp-form input[type=button] {
    width: 100%;
    margin-top: 0;
  }

#emessage {
	min-height: 150px;
}  
/* end of responsive forms */

#accbal {
	display: none;
}

}


@media (min-width:48em) {

/* navigation menu */
/* end navigation menu */

/* login tabs*/

	.awesome-form input {
		/*font-size: 18px;*/
		/*width: 95%;*/
		width: 50%;
	}

	.input-field label {
		left: 45%;
	}	

/* end login tabs */

/* layout of building */
/* https://toolset.com/forums/topic/conditional-output-of-a-content-template-based-on-screen-width/ */
	  .show-only-on-small {
	    display: none;
	  }
	  .show-only-on-large {
	    display: block;
	    padding-right: 1em;
	    padding-left: 1em;
	  }


/* end layout of building */


}	/* end @media (min-width:48em) */


@media (max-width: 1145px) {
	
	.logo, #navbar {
		margin: 0;
		width: 100%;
		text-align: center;
	}
	
}

@media (max-width: 950px) {
	
	/* make logo 80% and bars 20% , need to create div for bars first*/

	#navbar {
		position: absolute;
		top: 50px;
		left: -100%; /* makes navbar disappear .bars appear*/
		text-align: left;
		transition: 0.5s linear;
	}

	.logo {
		width: 80%;	/* added this to prevent main-toggle from having its own block level and moving .logo down */
	}	
	header #main-toggle {
	display: inline-block;		/* changed from block to inline-lock to make it fit on same line as logo */
	}
	.bars {
		display: block;
	}
	/* replaces #navbar.active js */
	#drop-main:checked ~ #navbar {
		left: 0;
	}
	
	.submenu-btn:checked ~ .menu-two { /* .menu-two must be after .submenu-btn and belong to same parent*/
	/*.submenu-btn:checked + .menu-two { */	/* .menu-two must be immediately after .submenu-btn */
	display: block;
	}
	.submenu-btn:checked ~ .drop-icon
	/*, .drop-one:hover span */ 
	{
		transform: rotate(-135deg);
		-webkit-transform: rotate(-135deg);
	}
	
	.submenu-btn:checked + label {
		background: red;
	}
	
	/*#navbar.active {
		left: 0;
	}*/

	#navbar li {
		display: block;
	}	
	
	.menu-one {
		position: relative;
		box-shadow: none;
		display: none;
	}

	.drop-one:hover > .menu-one {
		display: block;
	}
	.submenu-btn:checked ~ .menu-one {
		display: block; 
		left: 0;
	}	

	.menu-one ul img {
		width: 80%;
		height: 150px;
		margin-left: auto;
		margin-right: auto;
	}	

	.menu-one ul {
		text-align: left;
	}
	
	.menu-two {
		position: relative;
	}
	
	
/*for layout change*/
	/* https://toolset.com/forums/topic/conditional-output-of-a-content-template-based-on-screen-width/ */
		.show-only-on-small {
		    display: block;
			padding-right: 1em;
			padding-left: 1em;
		  }

		.show-only-on-small td {
			height: 50px; 
			text-align: center;
			vertical-align: middle;
		}
	
		.ulevies {
			text-align: left;
		}
		
		  .show-only-on-large {
		    display: none;
		  }
	
/*end layout change */	
	
}
