:root {
  --menu-radius-size: 8px;
}

/* header */
.header {
  padding: 0px 10px;
}

.header .container-nav {
  border-top: 1px solid white;
}

header .brand-logo {
  font-weight: bold;
  font-size: 40px;
  text-decoration: none !important;
}

footer .grid-child {
  display: flex;
  flex-direction: column;
  padding: 0px !important;
}

footer .grid-child ul,
footer .grid-child div {
  width: 100%;
}

footer .grid-child ul {
  padding: 10px;
}

footer .grid-child div {
  padding: 0px !important;
  text-align: center;
}

/* horizontal footer menu */
footer .mod-list,
footer ul li {
  display: inline-block;
  #margin: 0px 10px;
  line-height: 25px;
}

footer div {
  padding: 10px 0px !important;
}

/* menu */
.mod-list li {
  padding: 0px !important;
}

.container-header .mod-list a:hover,
.container-footer .mod-list a:hover {
  background: lightgray;
  color: black !important;
  border-radius: var( --menu-radius-size );
}

.mod-list a {
  display: inline-block;
}

/* for J4 */
.container-header .mod-list,
.container-footer .mod-list,
.container-banner .mod-list {
  border-radius: var( --menu-radius-size );
}

.level-2:has( > ul > li > ul li.active ),
.level-2:has( > ul > li.active ),
.container-header .mod-list .active,
.container-footer .mod-list .active {
  color: blue;
  background: white;
  border-radius: var( --menu-radius-size );
}

.container-banner .mod-list .active a {
  background: #005e8d;
  color: #fff;
  border: 1px solid lightgray;
  border-radius: var( --menu-radius-size );
}

.container-banner .mod-list a:hover {
  background: #D0E6F9;
  border-radius: var( --menu-radius-size );
}

.container-header .mod-menu > .deeper > button {
  display: none !important;
}

/* for J3 */
.container nav .nav > .deeper:has( li.active ) > a,
.footer .container .mod-list .active a,
.footer .container .mod-list .current a {
  color: white;
  background-color: #005783;
  border-radius: var( --menu-radius-size );
}

.container-header .deeper button {
  transform: rotate( -90deg ) translate( -4px, -1px ) scale( 0.7, 1.5 );
}

@media (min-width: 600px) {
  /* for J3 */
  .nav-collapse .nav-pills {
    display: flex;
  }
}

.divider {
  flex: 1;
}

.divider {
  border: none !important;
}

.divider span {
  display: none;
}

.mod-list a {
  text-decoration: none !important;
  padding: 2px 10px;
  flex: 1;
}

.container-header .deeper:hover > ul {
  display: inline-block !important;
  position: absolute !important;
  background: white !important;
  min-width: 150px;
}

.mm-collapse {
  border: 1px solid #EBEBF1;
}

.container-nav .mod-menu ul {
  border: 1px solid lightgray;
}

.container-nav .mod-menu ul ul {
  left: 100%;
  top: 0;
  margin-left: 1px;
  margin: 0px !important;
}

/* banner menu */
.container-banner .mod-menu {
  display: flex;
  background: #f2dede;
  padding: 3px;
  gap: 5px;
  flex-wrap:  wrap;
  flex-direction:  row;
}

@media (min-width: 600px) {
  .container-header .navbar {
    flex: 1;
  }

}

@media (max-width: 600px) {
  .navbar > div {
    margin-top: 10px;
  }

  .container-header .mod-menu > li {
    margin: 7px 0px;
  }

  .container-banner .mod-menu {
    justify-content: center;
  }

  .divider {
    display: none;
  }

}

.container-banner .mod-menu a {
  background: white;
  color: #005e8d;
  border-radius: var( --menu-radius-size );
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

fieldset.radio.btn-group {
  padding-left: 0;
}

.alert-dialog {
  display: none;
}

.alert-dialog.ui-dialog {
  background: #ECE9E8;
  border: 1px solid gray;
  font-family:Verdana;
  font-size: 12px;
  display: none;
}

.alert-dialog .ui-dialog-buttonpane {
  background: #ECE9E8;
  border-top: 1px solid gray;
}

.alert-dialog .ui-dialog-titlbar,
.alert-dialog .ui-dialog-clearfix,
.alert-dialog .ui-corner-all {
  background: #ECE9E8;
}

.alert-dialog ul {
  padding-left: 5px;
  margin: 5px;
}

.alert-dialog {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.alert-dialog-content {
  background-color: white;
  margin: auto;
  padding-left: 20px;
  padding-right: 10px;
  padding-top: 0px;
  padding-bottom: 20px;
  border: 1px solid gray;
  max-width: 500px;
}

/* The Close Button */
.alert-dialog-close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  text-align: right;
}

.alert-dialog-close:hover,
.alert-dialog-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.alert-error {
  text-align: center;
  margin: 0px 0px 10px 0px;
  padding: 5px;
  border: 1px solid pink;
  background-color: #f2dede;
  color: #b94a48;
}

.alert-error h4 {
  color: #b94a48;
}

/********************/
.question-dialog.ui-dialog {
  background: #ECE9E8;
  border: 1px solid gray;
  font-family:Verdana;
  font-size: 12px;
}

.question-dialog .ui-dialog-buttonpane {
  background: #ECE9E8;
  border-top: 1px solid gray;
}

.question-dialog .ui-dialog-titlbar,
.question-dialog .ui-dialog-clearfix,
.question-dialog .ui-corner-all {
  background: #ECE9E8;
}

.question-dialog ol {
  padding-left: 20px;
  margin: 5px;
}

.row-fluid .jarticle-list ul,
.row-fluid .jarticle-list ol {
  padding: 0px 0px 0px 20px;
  margin: 0px !important;
}

.site-grid .jarticle-list > ul {
  padding: 10px 0px 0px 20px;
}

.site-grid .jarticle-list > ul ul {
  padding: 10px 0px 20px 20px;
}

.jarticle-list li:not(:last-child) {
}

.container-banner .custom h1 {
  margin: 10px 10px 50px 10px;
  padding-top: 12px;
}

.container .custom h1 {
  margin: 10px 0px 50px 0px;
  padding-top: 12px;
}

.container-banner .custom h1,
.container .custom h1 {
  border-top: 6px solid red;
}

.container-banner .custom h1,
.container .custom h1,
.jarticle-list h1 {
  font-size: 16px;
  font-weight: bold;
}

.jarticle-list h2 {
  font-size: 13px;
  font-weight: bold;
}

.jarticle-list h3 {
  font-size: 13px;
  font-weight: bold;
}

.jarticle-list h4 {
  font-size: 12px;
  font-weight: bold;
}

.container-banner .custom h1,
.container .custom h1,
.jarticle-list h1,
.jarticle-list h2,
.jarticle-list h3,
.jarticle-list h4 {
  color: green;
}

.jarticle-list img {
  #border: 1px solid #E3DFDE;
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: center;
  margin: 0px 0px 10px 10px;
}

.options {
  display: flex;
  align-items: center;
  margin: 2px 0px;
}

.options-container select {
  width: auto;
  padding: 4px;
  margin: 0px 5px;
}

.options-container input {
  padding: 4px !important;
}

.option {
  display: inline-block;
  margin: 2px 2px;
  padding: 0px 5px;
  border: 1px solid gray;
}

.option input[type=checkbox] {
  vertical-align: -2px;
  margin-right: 2px;
}

.button-div,
main h2,
main h3 {
  text-align: center;
}

html {
  font-size: 13px;
}

body {
  max-width: 980px;
  margin: auto;
  padding: 0px !important;
  border: 1px solid lightgray;
}

/* Turn off super user front end editing */
[id^="dropdownMenuButton"],
.jmodedit,
a[href*="task=article.edit"] {
  display: none !important;
}

/* Turn off Forgot your username */
.nav a[href*="view=remind"],
.com-users-login__remind {
  display: none;
}

table caption {
  caption-side: top !important;
  text-align: center;
  color: black;
}

/*
 * sourcerer add empty p tags in the start and end of it codes.
 * Turn it off using css!
 */
p:empty {
  display: none;
}

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

  body {
    padding: 0px !important;
    margin: 0px !important;
  }

}

.container-header {
  display: grid;
  grid-gap: 0px;
  grid-template-areas: "brand belowtop"
                       "menu .";
}

/* belowtop is the 1st child of Cassiopeia header */
.container-header > :nth-child( 1 ) {
  grid-area: belowtop;
  justify-content: right;
  align-items: center;
}

/* brand is the 2nd child of Cassiopeia header */
.container-header > :nth-child( 2 ) {
  grid-area: brand;
}

/* menu is the 3rd child of Cassiopeia header */
.container-header > :nth-child( 3 ) {
  grid-area: menu;
  grid-column: 1 / span 2;
}

/* for mobile device */
@media (max-width: 600px) {
  .container-header {
    grid-template-areas: "brand"
                         "belowtop"
                         "menu";
  }
  .container-header > :nth-child( 1 ) {
    justify-content: left;
  }
}
.level-table {
  margin: auto;
}

.level-table td {
  border: 1px solid gray;
}

.level-table thead {
  text-align: center;
}

.level-table {
  max-width: 800px;
  margin-bottom: 20px;
}

.level-table caption {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.level-table td {
  padding-left: 5px;
  padding-right: 5px;
}

.subscription-policy {
  border: 1px solid gray;
  max-width: 800px;
  margin: auto;
  padding-right: 10px;
}

.subscription-policy h4 {
  margin: 10px;
}

.level-table {
  margin: auto;
}

.level-table td {
  border: 1px solid gray;
}

.level-table thead {
  text-align: center;
}

.signupForm {
  margin: auto;
  padding: 10px 5px 5px 5px;
  min-width: 280px;
  max-width: 500px;
}

.signupForm .tab {
  display: none;
  margin: 0px;
  border: 1px solid lightgray;
}

.signupForm div ul {
  border: 1px solid lightgray;
  list-style-type: none;
  text-align: left;
}

.signupForm div ul input {
  margin: 1px 3px 3px -10px;
}

.signupForm table {
  margin: 5px;
  width: calc( 100% - 10px );
  border: 1px solid lightgray;
}

.signupForm table td {
  height: 35px;
  padding: 1px 5px 1px 5px;
}

.signupForm .payment_area {
  margin: 5px;
  border: 1px solid lightgray;
}

.signupForm .payment_area p {
  padding: 0px 0px 0px 5px;
  margin: 5px 0px 10px 0px;
}

.signupForm .payment_group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap !important;
  margin-bottom: 5px;
  padding-bottom: 5px;
  justify-content: space-evenly;
  #border-bottom: 1px solid lightgray;
}

.signupForm .payment_group p {
  margin: 2px;
}

.signupForm .payment_group [type=radio] { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.signupForm .payment_group [type=radio] + img {
  cursor: pointer;
}

.signupForm .payment_group [type=radio]:checked + img {
  outline: 2px solid #f00;
}

.signupForm img {
  width: 80px;
  vertical-align: middle;
}

.signupForm h1 {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: underline;
  margin: 0px;
}

.signupForm table input {
  box-sizing: border-box;
  width: 100%;
  display:inline-block;
  position:relative;
  border: 1px solid gray;
  margin: 0px;
}

.signupForm input.invalid {
  background-color: #ffdddd;
}

.signupForm .button-group {
  display: flex;
  flex-direction: row;
  padding: 10px;
  justify-content: flex-end;
}

.signupForm .prevBtn,
.signupForm .nextBtn {
  background-color: #04AA6D;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  margin: 2px;
  font-size: 17px;
  cursor: pointer;
}

.signupForm .prevBtn {
  background-color: #bbbbbb;
}

.signupForm br {
  padding: 0;
  margin: 0;
  height: 1px;
}

.signupForm .msg-line {
  font-size: 10px;
  padding: 0;
  margin: 0;
}

.signupForm div {
  vertical-align: top;
  padding: 0;
  margin: 0;
}

.signupForm div,
.signupForm table {
  font-size: 12px;
}

.signupForm table td span {
  font-size: 10px;
}

.signupForm .two-lines {
  line-height: 14px;
}

.signupForm .form_error .msg-line {
  color: #D83D5A;
}

.signupForm .form_error input {
  border: 1px solid #D83D5A;
}

.signupForm .form_success .msg-line {
  color: green;
}

.signupForm .form_success input {
  border: 1px solid green;
}

.signupForm ul {

  border: 1px solid gray;
  list-style-type: none;
  margin: 5px;
  padding: 5px;

}

.signupForm ul li {
  margin: 10px;
}

.dataTables_scroll {
  border: 1px solid black;
}

.jml-data-table {
  font-size: 12px;
  width: 100%;
  table-layout: fixed;
}

.jml-data-table th,
.jml-data-table td {
  border: 1px solid lightgray;
  vertical-align: middle !important;
  padding: 2px 5px !important;
}

.dt-buttons {
  text-align: center;
}

.dataTables_wrapper {
  padding: 10px;
}

.dataTables_wrapper select {
  width: auto;
  margin: 5px 2px;
  padding: 2px 2px;
}

.dataTables_filter {
  padding-top: 5px;
}

.dataTables_length {
  padding-right: 30px;
}

.custom-table {
  margin-bottom: 10px;
}

.custom-table tr td input {
  margin: 2px;
  padding: 0px;
}

.custom-table tr td {
  border: 1px solid lightgray;
}

.custom-table tr td.col1 {
  padding: 0px 5px 0px 5px;
}

.custom-table input {
  width: 150px;
}

.custom-table {
  margin-left: auto;
  margin-right: auto;
}

.custom-table caption {
  margin: 5px;
  color: green;
  font-weight: bold;
}

.jml-data-table th,
.jml-data-table td {
  padding: 1px 2px !important;
  vertical-align: middle;
}

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

  .jml-data-table {
    overflow-x: auto;
  }

  .dataTables_wrapper {
    margin: -15px !important;
  }

  .dataTables_wrapper .dt-buttons,
  .dataTables_wrapper .toolbar {
    float: none;
    text-align: center;
  }

  .dataTables_length {
    padding-right: 0px;
  }
}

#contact-form {
  margin: 0 0 18px;
}
#contact-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
#contact-form legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 18px;
  font-size: 19.5px;
  line-height: 36px;
  color: #333;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}

#contact-form input,
#contact-form textarea {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  margin-bottom: 0;
  vertical-align: middle;
  width: 310px;
  border: 1px solid lightgray;
}

#contact-form textarea {
  resize: both;
}

#contact-form .control-group {
  margin-bottom: 9px;
}
#contact-form legend + .control-group {
  margin-top: 18px;
  -webkit-margin-top-collapse: separate;
}
#contact-form .control-group {
  margin-bottom: 18px;
  *zoom: 1;
}
#contact-form .control-group:before,
#contact-form .control-group:after {
  display: table;
  content: "";
  line-height: 0;
}
#contact-form .control-group:after {
  clear: both;
}
#contact-form .control-label {
  float: left;
  width: 160px;
  padding-top: 5px;
  text-align: right;
}
#contact-form .controls {
  *display: inline-block;
  *padding-left: 20px;
  margin-left: 180px;
  *margin-left: 0;
}
#contact-form .controls:first-child {
  *padding-left: 180px;
}

@media (max-width: 480px) {
  #contact-form .control-label {
    float: none;
    width: auto;
    padding-top: 0;
    text-align: left;
  }
  #contact-form .controls {
    margin-left: 0;
  }

  #contact-form input,
  #contact-form textarea {
    width: 250px;
  }
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 1em;
  width: 1em;
  border-radius: 50em;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(45deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,#000 45%,#000 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%),
    linear-gradient(135deg, transparent 0%,transparent 43%,#000 45%,#000 55%,transparent 57%,transparent 100%);
}

input[type="search"]:focus::-webkit-search-cancel-button {
  opacity: .3;
  pointer-events: all;
}

input[type="search"].dark::-webkit-search-cancel-button {
  filter: invert(1);
}

.container-below-top input {
}

.jml-search-box {
  padding: 3px;
  border: 1px solid gray;
  max-width: 250px;
  margin-right: 2px;
}

.jml-search-box:focus {
  outline: none;
}

.jml-search-button {
  padding: 3px 10px;
  border-radius: 10px;
  color: #fff;
  background-color: #004b8d;
  background-image: -moz-linear-gradient(top,#005e8d,#002f8d);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#005e8d),to(#002f8d));
  background-image: -webkit-linear-gradient(top,#005e8d,#002f8d);
  background-image: -o-linear-gradient(top,#005e8d,#002f8d);
  background-image: linear-gradient(to bottom,#005e8d,#002f8d);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005e8d', endColorstr='#ff002e8d', GradientType=0);
  *background-color: #002f8d;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

