label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: bold;
}

html {
	font-size: 14px;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
	font-size: 14px;
	line-height: 1.42857143;
	color: #333;
	background-color: #fff;
    overflow-x: hidden;
}
.hdrCls{
	background-color: #000000;
}
.bkcRead{
	background-color: red;
}
.bkcYellow{
	background-color: yellow;
}
.bkcGray{
	background-color: gray;
}
.bkcGreen{
	background-color: green;
}
.calR{
	background-color: red;
}
.calY{
	background-color: yellow;
}
.calGy{
	background-color: gray;
}
.calGn{
	background-color: green;
}
.calC{
	text-align:center;
}

.bc{
	margin-bottom: 15px;
}

.topm{
	background-color:#959595;
	margin-bottom: 15px;
	color:#ffffff;
}
a.hfive:link {color:#ffffff;text-decoration:none; margin-bottom: 2px; margin-top: 2px;}
a.hfive:visited {color:#ffffff;text-decoration:none; margin-bottom: 2px; margin-top: 2px;}
a.hfive:hover {text-decoration:underline; margin-bottom: 2px; margin-top: 2px;}
.rowsel{
	outline: 1px dashed;
}

.tmpl_hdr{ background-color:#BC8C4E;}
.txt_white{ color:white;}
.modal-header .close {
	font-size: 30px; /*bigger*/
}

.center_div{
	margin: 0 auto;
	width:80%; /* value of your choice which suits your alignment */
}

.myEmpty {
  min-height: 10px;
}
.dv_border{
	border: 1px solid grey;
}
.big-checkbox {
	width: 20px; 
	height: 20px;
}

.badge-error {
  background-color: #b94a48;
}

.badge-warning {
  background-color: #f89406;
}

.badge-success {
  background-color: #468847;
}

.badge-info {
  background-color: #3a87ad;
}

.badge-danger {
  background-color: #d90000;
}
h7 { 
  display: block;
  font-size: 1em;
  margin-top: 1.33em;
  margin-bottom: 0.2em;
  margin-left: 0;
  margin-right: 0;
}
.table-condensed{
  font-size: 0.5em !important;
}
.tc_uts{
	color:#0d2de5;
}
.badge-uts {
	color: #fff;
	background-color: #0d2de5;
}
.dv_bc {
	border: 1px solid grey;
}
.emj_fs{
	font-size:25px;
}
.circle {
	border-radius: 50%;
	width: 20px;
	height: 20px;
	padding: 4px;
	background: #fff;
	border: 2px solid #000;
	color: #000;
	text-align: center;
	font: 18px Arial, sans-serif;
}
.BgRed{
	background-color: red;
}
.camdata-url {
    display: block;
    height: 100px;
    width: 320px;
    margin: 10px auto;
    resize: none;
    outline: none;
    border: 1px solid #111111;
    padding: 5px;
    font-size: 13px;
    box-sizing: border-box;
}

.photo-selection-container{
	position: relative; 
	float: left; 
	margin-left: 10px;
}
.photo-selection-checkbox{

	position: absolute; 
	bottom: 0px; 
	right: 0px; 
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --search-vertical-padding: 2.5rem;
    --search-horizontal-padding: 5rem;
    --logo-font-size: 2.5rem;
    --pron-font-size: 1.5rem;
    --tagline-font-size: 3.5rem;
    --display-font: "Poppins", sans-serif;
    --dropdown-btm: -2%;
}

body {
    font-family: "DM Sans", sans-serif;
}

body,
.container-fluid {
    margin: 0;
    padding: 0;
}

/* site logo and search bar */
.site-logo {
    padding-top: var(--search-vertical-padding);
}

.main-container-bottom {
    padding-top: var(--search-vertical-padding);
}

.site-logo {
    font-family: var(--display-font);
    font-size: var(--logo-font-size);
    font-weight: 700;
    color: #fff;
}

/* global search bar */
.search-bar-container,
.search-bar {
    position: relative;
}

.search-bar-container {
    min-height: 115px;
}

.search-container a,
.search-bar-container a {
	text-decoration: none;
	color: #fff;
}

.search-bar-container img {
    position: absolute;
    background-repeat: no-repeat;
    object-fit: cover;
    height: 100%;
    width: 100%;
    z-index: -2;
}

.site-search .search-input {
    position: relative;
}

.site-search .search-input::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -4px;
    bottom: -4px;
    right: -4px;
    padding: 1rem;
    outline: 2px solid white;
    content: "";
    border-radius: 5px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-search.active .search-input::before {
    opacity: 1;
}

.overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.search-input {
    position: relative;
}

/*search bar search icon */
.site-search i {
    position: absolute;
    color: black;
    font-size: 1.5rem;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 12px 15px;
}

.site-search i:hover {
    cursor: pointer;
    color: blue;
}

.main-search-container .index-tagline {
    margin-top: 3rem;
    padding-bottom: 1rem;
}

.main-search-container .main-tagline {
    display: none;
}

.sbar-container .index-tagline {
    display: none;
}

/* search-bar dropdown */
#sswfrm {
    position: relative;
}

#ssr {
    position: absolute;
    top: 100%;
    width: 74.5%;
    z-index: 2;
}

.search-input .s-box {
    position: relative;
}

.search-input select {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    height: 85%;
}

.search-input .btn-secondary {
    background-color: #e4e2e2;
    color: black;
    font-family: var(--display-font);
    margin-bottom: 0;
}

.select-container{
    z-index: 5;
}

.search-input:focus {
    z-index: 4;
}

.select-btn {
    height: 100%;
    width: 8rem;
    border-radius: 5px 0px 0px 5px;
}

.select-dropdown {
    display: none;
    position: absolute;
    background-color: #e4e2e2;
    /* width: fit-content; */
    width: 8rem;
    z-index: 5;
}

.select-dropdown.active {
    display: flex;
    flex-direction: column;
}

.select-dropdown input[type="radio"] {
    display: none;
}

.select-dropdown input[type="radio"]:checked + label {
    background-color: rgba(174, 181, 190, 0.395);
    font-weight: 600;
}

.select-dropdown:hover {
    cursor: pointer;
}

.select-dropdown label:hover {
    background-color: rgba(197, 222, 253, 0.395);
}

.select-dropdown li:hover{
    background-color: black;
}

.select-label {
    padding: 10px 2rem;
}

.select-container button {
    position: relative;
}

.select-container button i {
    font-size: 1.2rem;
    top: 48%;
}

.select-container button i:hover {
    color: black;
}

.site-search .form-control-lg {
    border-radius: 0px 5px 5px 0px !important;
}

/* alphabets */
#alphabets-container {
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 5px;
}

#alphabets-container li {
    display: flex;
    font-size: 15px;
    height: 35px;
    width: 35px;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    border: 1px solid black;
    transition: transform 100ms linear 0s;
}

#alphabets-container a {
    background: black;
    color: white;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 2px;
}

#alphabets-container li:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#alphabets-container li.active a {
    background: white;
    color: black;
} 

/* melanau culture */
.prod-container {
    padding: 15px;
    background-color: rgba(67, 64, 64, 0.05);
    border-radius: 5px;
}

.prod-container:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.prod-img img {
    width: 150px;
    height: 150px;
    border-radius: 5px;
}

/* word */
.main-word-pron a {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid black;
    border-radius: 50%;
    margin-right: 10px;
}

.main-word-pron a:hover {
    background-color: #e4e2e2;
}

.main-word-pron img {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-word-pron {
    font-size: var(--pron-font-size);
}

/* back office title */
.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* table */
.table {
    --bs-table-striped-bg: rgba(0, 0, 0, 0.03);
}

/* badges */
.badge {
    padding: 0.5em 0.75em !important;
}

.badge-success {
    background-color: #d9eae0;
    color: #1f9652 !important;
}

.badge-danger {
    background-color: #f2f2f2;
    color: #999999;
}

/* created and modified by */
.adm-details {
    background-color: #ebebeb;
}

/* pagination */
.paginationjs {
    margin: 3rem auto 4rem;
    justify-content: center;
}

/* footer */
footer {
    background-color: #181a1a;
}

.footer-container {
    color: #d1d1d1;
}

/* media query */

@media (min-width: 768px) and (max-width:992px) {
    :root {
        --logo-font-size: 1.75rem;
    }

    .navbar {
        padding-bottom: 0px !important;
    }
}

@media (min-width: 992px) and (max-width:1199.99px) {
    :root {
        --logo-font-size: 2rem;
    }
}

@media (min-width:992px) {
    .prod-container {
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    }
}

@media (max-width:992px) {
    .prod-container {
        background-color: transparent;
    }
}

@media (min-width:768px) {
    .site-search {
        padding-top: var(--search-vertical-padding);
    }

    .main-search-container .index-tagline {
        display: none;
    }

    .main-search-container .main-tagline {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --search-vertical-padding: 2rem;
    }

    .search-bar .site-logo {
        margin-bottom: 0.5rem;
    }

    .search-bar-container {
        min-height: 160px;
    }

    #ssr {
        width: 100%;
    }

    .product-item {
        text-align: center;
    }

    #sswtbl .dtc {     /* wqy */
        font-weight: 400 !important;
        color: #000 !important;
    }
}

@media (max-width: 576px) {
    :root {
        --logo-font-size: 1.75rem;
    }

    .search-bar-container {
        min-height: 140px;
    }

    /*search bar placeholder text */
    .site-search .form-control-lg {
        font-size: 1rem;
    }

    /*search bar search icon */
    .site-search i {
        font-size: 1.05rem;
    }
}

/* wqy */
@media (max-width: 366px) {
    
    /*search bar placeholder text*/
    .site-search .form-control-lg {
        font-size: 1rem;
    }
    .select-btn {
        width: 100px;
    }
    .select-dropdown.active{
        width: 100px;
    }
    .select-label {
        padding-left: 24px;
    }
}

/* richard's */
.modal-xl {
    max-width: 90% !important;
}

.tbx {  
    background-image:url(images/no_search.jpg);   
    background-position:right;   
    background-repeat:no-repeat;  
    background-size: contain;
    padding-left:17px;
}

.s-box {
    padding: 10px;
    /* border: #a8d4b1 1px solid !important; */
    border: none;
    border-radius: 4px !important;
}

/* wqy word detail label*/
.main-word-label {
    margin-bottom: 0px;
    font-family: var(--display-font);
    color: darkred;;
}
.malay-mean-label {
    display: block;
    font-size: 1.2rem;
    font-family: var(--display-font);
    color: darkred;;
    margin-top: 1.5rem;
    font-weight: 600;
}
.malay-meaning {
    color: #000;
    font-weight: 500;
}

.english-mean-label {
    display: block;
    font-size: 1.2rem;
    font-family: var(--display-font);
    color: blue;
    margin-top: 1.5rem;
    font-weight: 600;
}
.eng-meaning {
    color: #000;
    font-weight: 500;
}

/* wqy <ul> */
#sswtbl li {
    list-style-type: none;
    padding: .5rem .5rem;
}
#sswtbl #res-label {
    font-weight: 600;
}

#sswtbl .dtc {
    font-weight: 100;
    cursor: pointer;
}

.dtc.selected {
    background-color: #bdb5b5 ;
}

#sswtbl {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);

    background-color: #ffffff; 
    padding-left: 0;
}

#sswtbl.table>:not(caption)>*>*{
    background-color: #ffffff;
}

#sswtbl .dtc:hover {
    background-color: #bdb5b5;
}
/* wqy <ul> */

.dtc{
    /* background-color: #f2f4f7; */
    background-color: #ffffff; 
    color:black;
}

.dtc a{
    color:black;
    text-decoration: none;
}

.dtc-nores {
   font-weight: 600;
}

#sswtbl td {
    cursor: pointer;
}

#sswtbl td:hover {
    background-color: #f2f4f7;
}

.stc{
    color:black;
    text-decoration: none;
}

.stcsam{
    color:black;
    text-decoration: none;
}

.me-exam{
    color:red;
}

.me-disp {
    font-weight: 700;
    font-style: italic;
    color: darkred;
}

.en-exam{
    color:blue;
    display: block;
}

.hovertbl tr:hover {
  background-color: #e9eef7;
}
