html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;}
/* Normalize Chrome vs Firefox SVG overflow */
svg {
  overflow: visible;
  overflow-clip-margin: content-box; /* optional, for spec alignment */
}
body {
	-webkit-text-size-adjust: none;
}
* {
	box-sizing: border-box;
}
html {
	font-size: 1rem; /* Base = 16px (default browser size) */
	transition: font-size 0.2s ease; /* Smooth animation */
}
:root {
	--nav-color-light: #004bd947;   /*#0074d9;*/
	--nav-color-dark: #003366;
	--text-color-light: #000000;
	--text-color-dark: #ffffff;
	--bg-color-light: #ffffff;
	--bg-color-dark: #121212;
	--bg-color-light-footer: #f4f4f4;
	--bg-color-dark-footer: #444444;
}
/* Removes the 'X' from Chrome, Safari, Edge, and Opera */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.tiro-telugu-regular {
  font-family: "Tiro Telugu", serif;
  font-weight: 400;
  font-style: normal;
}
.tiro-telugu-regular-italic {
  font-family: "Tiro Telugu", serif;
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'JIMS';
  font-style: normal;
  font-weight: 400;
  src:  url('./inc/JIMS.otf') ;
 }
@font-face {
  font-family: 'JIMS';
  font-style: normal;
  font-weight: 400;
  src:  url('./inc/JIMS.woff') ;
 }
@font-face {
  font-family: 'JIMS';
  font-style: normal;
  font-weight: 400;
  src:  url('./inc/JIMS.woff2') ;
 }
 
body {
	font-family: Mallanna;
	font-size: 1.3rem;
	margin: 0;
	background-color: var(--bg-color-light);
	color: var(--text-color-light);
	background-image:url(./img/beige.jpg);
	transition: background-color 0.3s ease, color 0.3s ease;
	overflow-x: auto;
}
.dark body {
	background-color: var(--bg-color-dark);
	color: var(--text-color-dark);
	overflow-x: auto;
}
button {
	background: #007acc;
	color: white;
	border: none;
	padding: 0.5rem 0.5rem;
	font-size: 1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	margin: inherit;
}
ul, ol {
	padding-left: 40px;
}
.container {
	/*max-width: 1024px; */
	width: 100%;
	margin: 0 auto;
	/*padding: 0 0.5rem;*/
	/*background: rgba(0,0,0,0.3);*/
	border-width: 0px 1px 0px 1px;
	border-style: solid;
	border-color: #aaaaaa;
	flex: 1;
}
/* Container */
	.container {
		margin: 0 auto;
		max-width: 100%;
		width: 1200px;
	}
		@media screen and (max-width: 1680px) {
			.container {
				width: 1200px;
			}
		}
		@media screen and (max-width: 1280px) {
			.container {
				width: 100%;
				/*width: calc(100% - 70px);*/
			}
		}
		@media screen and (max-width: 980px) {
			.container {
				width: 100%;
				/*width: calc(100% - 100px);*/
			}
		}
		@media screen and (max-width: 736px) {
			.container {
				width: 100%;
				/*width: calc(100% - 40px);*/
			}
		}
		@media screen and (max-width: 360px) {
			.container {
				width: 100%;
				/*width: calc(100% - 40px);*/
			}
			.nav-brand {
				font-size: 1.6rem !important;
				font-weight: 600;
			}
		}


.app {
	background-color: var(--bg-color-light);
	color: var(--text-color-light);
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.dark .app {
	background-color: var(--bg-color-dark);
	color: var(--text-color-dark);
}
.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	gap: 2rem;
	font-size:12px;
	line-height:12px;
	border:1px solid #aaaaaa;
	padding: 5px;
	background-color: var(--bg-color-light-footer);
	color: var(--text-color-light);
	a {
		text-decoration: none;
		color: var(--text-color-light);
	}
}
.dark .footer {
	background-color: var(--bg-color-dark-footer);
	color: var(--text-color-dark);
	a {
		text-decoration: none;
		color: var(--text-color-dark);
	}
}
.FpHidden {display:none;}
.FrontPage {padding:5px; margin:5px; border:0px; background-color:#eeeeff; margin-left:auto; margin-right:auto;}
.dark .FrontPage {background-color:var(--bg-color-dark);}
.leftright {
	display: flex;
	justify-content: space-between;
	a {
		text-decoration: none;
	}
}
#currentsearches { padding: 2px; margin: 5px; background-color: #007bff; }
#prevsearches { padding: 2px; margin: 5px; background-color: #007bff; }
.gotop {float:right;}

nav {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100vw;
  height: 64px; /* Fixed height */
  align-items: center;
  background-color: var(--nav-color-light);
  padding: 0 10px;
}
.dark nav {
	background-color: var(--nav-color-dark);
	color: var(--text-color-dark);
}
/* Each box shares equal space but can be aligned differently */
.nav-box {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-logo {
	justify-content: flex-start; /* Left aligned */
}
.nav-logo a {
	display: flex;          /* or display: block */
	align-items: center;
	height: 100%;
}
.responsive-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}
.nav-brand {
	justify-content: center; /* Center aligned */
	font-size: 2.4rem;
	font-weight: 600;
	color: var(--text-color-light);
}
.dark .nav-brand {
	color: var(--text-color-dark);
}
.nav-actions {
	justify-content: flex-end; /* Right aligned */
}
#hamburger {
	background: none;
}
#hamburger svg {
	width: 24px;
	height: 24px;
	fill: black;
}
.dark #hamburger svg {
	fill: white;
}

/* Slide-out menu */
.menu {
	position: fixed;
	top: 0;
	right: -300px;
/*	width: 250px;*/
	height: 100vh;
	background: #fff;
	color: #000;
	overflow-y: auto;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	z-index: 999;
}
.dark .menu {
	background: #222;
	color: #fff;
	border-left: 1px solid #444;
}
.menu.active {
	right: 0;
}
.menu ul {
	list-style: none; /* Remove default list bullets */
	padding: 0 10px;
	margin: 0;
}
.menu ul li.separator {
	border-bottom: 1px solid #ddd;
}
.menu a {
	text-decoration: none;
	color: inherit;
}
.dark .menu a {
	border-color: #444;
}
.menu a:hover {
	background-color: #f0f0f0;
}
.menu .close-btn {
	align-self: flex-end;
	cursor: pointer;
	padding: 8px;
	margin: 16px;
}
.menu-item {
	display: flex;                  /* Flexbox layout for horizontal alignment */
	align-items: center;            /* Vertically align items in the center */
	padding: 10px 15px;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}
.menu-item svg {
	margin-right: 10px;		/* Space between icon and text */
	width: 20px;							/* Set size of the icon */
	height: 20px;
}
.menu-item span {
	margin-left: 5px;				/* Optional: adds slight space between text and icon */
}
.menu-item:hover {
	background-color: #555;
}
.dark .menu a:hover {
	background: #333;
}

.sideMenuItems {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
/*    border-top: 1px solid black;
    border-left: 1px solid black;
	background: honeydew;
	text-align: left; */
	gap: 0.2em;
	padding: 10px 10px 50px 10px;
}
.sideMenuItems > div {
/*
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding: 0.5em; */
}
.dark .sideMenuItems {
	background-color: #333;
}
.sideMenu-item {
	display: flex;                  /* Flexbox layout for horizontal alignment */
	align-items: center;            /* Vertically align items in the center */
	/*padding: 10px 15px;*/
	color: white;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}



.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3);
	display: none;
	z-index: 998;
	overflow-y: auto;
}
.overlay.active {
	display: block;
}

.search-form {
	width: 100%;
	margin: 0 auto;
	padding: 0.5rem;
	background-color: rgb(253, 238, 197);
}
.dark .search-form {
	background-color: var(--bg-color-dark);
}

form#abdict {
	display: flex;
	max-width: 640px;
	flex-wrap: nowrap;
	gap: 0.5rem;
	align-items: flex-end;
	margin: 0px auto;
}
.search-wrapper {
	flex: 1 1 auto;
	position: relative;
}
label #checkTE {
	font-weight: normal;
}
.search-button {
  background-color: #007bff; /* Blue background */
  border-radius: 50%;
  display: flex;            /* Flex to center content */
  justify-content: center;  /* Center horizontally */
  align-items: center;      /* Center vertically */
}
.search-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}
.search-button svg {
  fill: none;         /* Ensures the icon has no fill */
  stroke: white;      /* White color for the icon */
}
.search-container {
	flex: 1 1 auto;
	position: relative;
}
.search-box {
	width: 100%;
	font-family: Mandali;
	font-size: 1.2rem;
	padding: 0px 40px 0px 10px; /* Extra space for the "X" icon */
	border: 1px solid #ccc;
	border-radius: 20px;
}
.dark .search-box {
	background-color: var(--bg-color-dark);
	color: var(--text-color-dark);
}
.search-box: focus {
  border: 1px solid yellow;
}
.dark .search-box: focus {
  border: 1px solid green;
}

/*
#strSearch {
	width: 100%;
	padding: 0.5rem;
	font-size: 1rem;
}
*/
.clear-icon {
  position: absolute;
  top: 70%;
  right: 10px; /* Position the icon on the right inside the input */
  transform: translateY(-50%); /* Vertically center the icon */
  cursor: pointer;
  display: none; /* Hide by default */
}

#autocomplete-list {
	position: absolute;
	background: white;
	border: 1px solid #ccc;
	max-height: 180px;
	overflow-y: auto;
    width: calc(100% - 20px);
    margin-top: 0;
    padding-left: 0;
    list-style: none;
    z-index: 1000;
    display: none;
}
#autocomplete-list li {
	padding: 0.3rem 0.5rem;
	cursor: pointer;
}
#autocomplete-list li.active,
#autocomplete-list li:hover {
	background-color: #0077cc;
	color: white;
}
#results { margin-top: 1rem; }

#layouttop {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex-wrap: wrap;
	width: 100%;
	padding: 0.5rem;
}
#layouttop a {
	color: #000000;
}
.dark #layouttop a {
	color: #ffffff;
}

#adv-panel {
	position: fixed;
	font-size: 0.8rem;
	top: 0;
	right: 0px;
	/*width: 400px;*/
	height: 100vh;
	background: #f0f0f0;
	padding: 1rem;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 1500;
}
#adv-panel.open {
	transform: translateX(0);
}
.dark #adv-panel {
	background: #000000;
	color: #ffffff;
}
.optgroup {
	padding: 5px;
	margin: 10px 0px;
	border:1px solid #000;
}
.dark .optgroup {
	border:1px solid #fff;
}
.dark .optgroup a {
	color: #0ff;
}
#querydiv2 {
	background-color: #eeeeee;
	/*font-family: Gautami, Arial, Verdana, Geneva, Arial, Helvetica, sans-serif;*/
	padding: 4px;
	border: 1px solid black;
	font-size: 1.2rem;
	position: absolute;
	visibility: hidden;
	z-index:1;
}
.dark #querydiv2 {
	background-color: #555;
	color: var(--text-color-dark);
	border: 1px solid #888;
}
.result2 {
	cursor: pointer;
	border-bottom: 1px solid rgb(119, 119, 119);
	padding: 3px 0px;
	background-color: rgb(238, 238, 238);
}
.dark .result2 {
	background-color: rgb(85, 85, 85); /*#555; #555555*/
}

#querydiv2x {
/*	//background-color: #eeeeee;
	//font-family: Gautami, Arial, Verdana, Geneva, Arial, Helvetica, sans-serif;
	//border: 1px solid black;
	//position: absolute;*/
	padding: 4px;
	font-size: 14px;
	visibility: hidden;

	position: absolute;
	background: white;
	border: 1px solid #ccc;
	/*max-height: 180px;*/
	overflow-y: auto;
    width: calc(100% - 20px);
    margin-top: 0;
    padding-left: 0;
    list-style: none;
    z-index: 1000;
    /*display: none;*/
}
#querydiv2 li {
	padding: 0.3rem 0.5rem;
	cursor: pointer;
}

#querydiv2 li.active,
#querydiv2 li:hover {
	background-color: #0077cc;
	color: white;
}
.styled-select2 select {
	background: transparent;
	width: 110px;
	padding: 0px;
	border: 1px solid #ccc;
	height: 24px;
	font-family: Mandali;
	display:inline;
}

#KbMap  {padding-top: 4px;z-index:100; display: flex; justify-content: center;}
#itxDrag  {display:none;}
#rtsDrag  {display:none;}
#slpIS  {display:none;}
#hkIS   {display:none;}
#vhIS   {display:none;}
#wxIS   {display:none;}
#iastDrag {display:none;}
#xxIS   {display:none;}
#enDrag   {display:none;}

DIV.gotop {float:right;}
SPAN.dict {font-style:italic}
SPAN.ul1 {text-decoration:underline;}
SPAN.cf {padding-left:0; color:#ff8000;}
SPAN.abnsw_cf {padding-left:0; color:#ff8000;}
SPAN.q1 {border-top:10px; padding-top:4px; padding-left:0; color:#0080ff;}
SPAN.co1 {padding-left:0; color:#408080;}
SPAN.pnc_abbr {color:#008888; display:inline; background: #F4F4F4;}
SPAN.mpk_nj {padding-left:0; color:#ff8000;}
SPAN.mpk_tgkp {padding-left:0; color:#ff8000;}
SPAN.mpk_rs_abbr {padding-left:0; color:#ff8000;}
DIV.cf {border:0px; margin:0px; padding:0px; color:#ff8000;}
DIV.q1a {margin:0px; border:0px; padding:0px; color:#0080ff;}
DIV.q2a {margin:0px; border:0px; padding:0px; color:#0080ff;}
DIV.q1 {margin:0px; border:0px; padding:0px; color:#00c0ff; background-color:#ffffff;}
DIV.q2 {margin:0px; border:0px; padding:0px; color:#0080ff; background-color:#ffffff;}
DIV.q3 {margin:0px; border:0px; padding:0px; color:#0080ff; background-color:#eeeeee;}
DIV.q4 {margin:0px; border:0px; padding:0px; color:#0080ff; background-color:#eeeecc;}
DIV.co {margin:0px; border:0px; padding:0px; color:#408080;}
DIV.meaningEC dd ul li br {margin:0px; border:0px; padding:0px;}
DIV.janya {margin:0px; border:0px; padding:0px;}
SPAN.janya-t1 {color:#FF8000;}
SPAN.janya-t2 {color:#FF8000;}
dd ul1 {margin:0px 0px 0px 0px; padding-left:30px; border:0px;}
dd li1 {margin:0px; padding:0px; border:0px;}
dd ul {margin:0px 0px 0px 15px; padding:0px; border:0px;}
dd li {margin:0 0 0 10px; padding:0px; border:0px;}
#button {padding-top:2px; font-size:14px; font-weight:bold; font-family: Arial, "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;}
#layout {background-color:#eeeeff; border-radius: 10px; flex: 1; min-width: 200px;}

/*------------------ bubble tooltip --------------*/
/*http://trentrichardson.com/examples/csstooltips/*/
/*------------------------------------------------*/
SPAN.abnsw_abbr {position:relative; font-weight:normal;}
SPAN.abnsw_abbr SPAN {display:none;}
SPAN.abnsw_abbr:hover { text-decoration:none;}
SPAN.abnsw_abbr:hover SPAN.abnsw_abbrtip {display:block; position:absolute; top:5px; left:0; padding:15px 0 0px 0; width:200px; color:#993300;}
SPAN.abnsw_abbr:hover SPAN.abnsw_expl {display:block; font-size:100%; padding:12px 8px; background:url(../img/bubble_filler.gif) repeat bottom;}

DIV.wmsect {border:1px solid #6666AA; border-radius:10px; border-collapse:collapse; margin:0px 0px 5px 0px; padding:5px; background-color:#EEEEFF;}
DIV.wmsect .title {border:0; padding:0;}
DIV.wmsect dl {padding: 5px; margin:0; border:1px solid #ddd;}
DIV.wmsect dd {padding: 0px 5px 5px 5px; margin:0px; background-color:#FFFFFF;}

.dark #layout {background-color:#0000;}
.dark #leftbar2 {background-color:#0000;}
.dark #leftbar2 a:link, .dark #leftbar2 a:visited {background-color: #444444; color: #ffffff;}
.dark #leftbar2 a:hover, .dark #leftbar2 a:active {background-color: #444444; color: #ffffff;}

.dark .wmsect {background-color:#000000;}
.dark .wmsect dd {background-color:#000000;}
.dark .wmsect dt {background-color:#444444;}
.dark .q1 {background-color:#000000;}
.dark .q2 {background-color:#000000;}
.dark .q3 {background-color:#000000;}
.dark .q4 {background-color:#000000;}
.dark .co {background-color:#000000;}

DIV.wmsect dt {padding: 5px 0px 5px 0px; margin:0px; background-color:#DDDDDD;}
DIV.wmsect h3 {margin:0px; padding:0px; border:0px; display:inline;}

.sidebar {
  -webkit-transition: margin-left .3s ease-out;
  transition: margin-left .3s ease-out;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 20rem;
  flex: 0 0 20rem;
  background-color: #373737;
  color: #FFFFFF;
  padding: 1rem 2rem 0 2rem;
}

#leftbar2 {
	/*display:none; float:left; width:175px; margin:0px 0px 0px 0px; padding:5px;*/
	min-width: 180px;
	flex-shrink: 0;
	transition: margin-left .3s ease-out;
	background-color:#EEEEFF;
	border-radius:10px;
	border: 1px solid #6666AA;
}
DIV#leftbar2 ul.toc {margin:0px 0px 0px 0px; padding:0px;border:0px;}
DIV#leftbar2 ul.toc li {font-size:90%; list-style-type:none; padding-top:0px; padding-bottom:2px;}
DIV#leftbar2 ul.toc li a {text-decoration:none;}
DIV#leftbar2 ul.toc li a:hover {text-decoration:none;}
#leftbar2 a:link, #leftbar2 a:visited, #leftbar2 a:hover, #leftbar2 a:active {background-color: #F6F4F0; border: 1px solid #E5E5E5; border-radius: 2px 2px 2px 2px; color: #000000; display: block; margin-top: 1px; padding: 2px; text-decoration: none;}
#leftbar2 a:hover, #leftbar2 a:active {background-color: #FFFFFF;}

.dark #leftbar2 {background-color:#0000;}
.dark #leftbar2 a:link, .dark #leftbar2 a:visited {background-color: #444444; color: #ffffff;}
.dark #leftbar2 a:hover, .dark #leftbar2 a:active {background-color: #444444; color: #ffffff;}

.dark #prevsearchesx {background-color:#0000;}
.dark #prevsearchesx a:link, .dark #prevsearchesx a:visited {background-color: #444444; color: #ffffff;}
.dark #prevsearchesx a:hover, .dark #prevsearchesx a:active {background-color: #444444; color: #ffffff;}

#prevsearches2 {display:none;}
#prevsearchesx {
	/*display:none; float:left; width:175px; margin:0px 0px 0px 0px; padding:5px;*/
	min-width: 180px;
	flex-shrink: 0;
	transition: margin-right .3s ease-out;
	background-color:#EEEEFF;
	border-radius:10px;
	border: 1px solid #6666AA;
}
#prevsearchesx a { text-decoration: none; }
#prevsearchesx a:link,
#prevsearchesx a:visited {
	background-color: #F6F4F0;
	border: 1px solid #E5E5E5;
	border-radius: 2px 2px 2px 2px;
	color: #000000;
	display: block;
	margin-top: 3px;
	padding: 2px;
	text-decoration: none;
}
#prevsearchesx a:hover,
#prevsearchesx a:active {
	background-color: #FFFFFF;
}

#prevsearches-panel {
	position: fixed;
	top: 0;
	right: -300px;
	width: 250px;
	height: 100vh;
	background: #fff;
	color: #000;
	overflow-y: auto;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	z-index: 999;
}
.dark #prevsearches-panel {
	background: #222;
	color: #fff;
	border-left: 1px solid #444;
}
#prevsearches-panel.active {
	right: 0;
}
.dark #prevsearches-panel a:link, .dark #prevsearches-panel a:visited {background-color: #222; color: #ffffff;}
.dark #prevsearches-panel a:hover, .dark #prevsearches-panel a:active {background-color: #222; color: #ffffff;}

#prevsearches-panel .close-btn {
	align-self: flex-end;
	cursor: pointer;
	padding: 8px;
	margin: 16px;
}

#currentsearches-panel {
	position: fixed;
	top: 0;
	left: -300px;
	width: 250px;
	height: 100vh;
	background: #fff;
	color: #000;
	overflow-y: auto;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transition: left 0.3s ease;
	z-index: 999;
}
.dark #currentsearches-panel {
	background: #222;
	color: #fff;
	border-left: 1px solid #444;
}
#currentsearches-panel.active {
	left: 0;
}
.dark #currentsearches-panel a:link, .dark #currentsearches-panel a:visited {background-color: #222; color: #ffffff;}
.dark #currentsearches-panel a:hover, .dark #currentsearches-panel a:active {background-color: #222; color: #ffffff;}

#currentsearches-panel .close-btn {
	align-self: flex-end;
	cursor: pointer;
	padding: 8px;
	margin: 16px;
}

@media (max-width: 600px) {
	.prevsearchesxx {
		width: 100%;  /* Full width for the right column */
	}
}
@media (max-width: 400px) {
	.layout {
		width: 100%;  /* Full width for the center column */
	}
}

@media (max-width: 400px) {
  #adv-panel {
    width: 100%; /* Even smaller panel for very small screens */
  }
}

#toTopBtn {
	display: none; /* Hidden by default */
	position: fixed;
	bottom: 10px; /* 30px */
	right: 20px;  /* 20px */
	z-index: 100;
	background-color: #007bff;
	color: white;
	border: none;
	outline: none;
	/*padding: 0px 12px 4px 12px; */ /*12px 18px*/
	border-radius: 50%; /*5px*/
	font-size: 24px;
	cursor: pointer;
	transition: opacity 0.4s, transform 0.3s;
}

#toTopBtn:hover {
	background-color: #0056b3;
	transform: scale(1.1);
}

.mvpk_modal {
	z-index:1;
	display:none;
	padding-top:10px;
	position:fixed;
	left:0;
	top:0;
	width:100%;
	height:100%;
	overflow:auto;
	background-color:rgb(0,0,0);
	background-color:rgba(0,0,0,0.8)
}
.mvpk_modal_content{
	margin: auto;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.modal-hover-opacity {
	opacity:1;
	filter:alpha(opacity=100);
	-webkit-backface-visibility:hidden
}
.modal-hover-opacity:hover {
	opacity:0.60;
	filter:alpha(opacity=60);
	-webkit-backface-visibility:hidden
}
.mvpk_close {
	text-decoration:none;float:right;font-size:24px;font-weight:bold;color:white
}
.mvpk_img_link {
	text-decoration:underline;
	cursor:pointer;
}

.draggable {
	position: absolute;
/*    width: 70vw;
	max-width: 400px;*/
	min-width: 220px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	overflow: hidden;
/*	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);*/
	transition: box-shadow 0.2s, transform 0.3s ease;
}
.kbmapIS {
	width: 100%;
	max-width: 800px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}
/*
    .drag_title {
      background-color: #0077cc;
      color: #fff;
      padding: 10px 15px;
      font-weight: bold;
      /*display: flex;* /
      justify-content: space-between;
      align-items: center;
      cursor: move;
    }

    .drag_title img {
      width: 16px;
      vertical-align: middle;
    }

    .table-container {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
    }
*/

.draggable {
	position: absolute;
/*	width: 70vw;
	max-width: 400px;*/
	min-width: 220px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	overflow: hidden;
/*	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);*/
	ransition: box-shadow 0.2s, transform 0.3s ease;
}
.draggable-title-bar {
	background: #007bff;
	color: white;
	padding: 12px;
	font-weight: bold;
	cursor: grab;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.draggable-title-bar:active {
	cursor: grabbing;
	background: #0056b3;
}

    table.tmap {
      width: 100%;
      /*min-width: 720px;*/
      border-collapse: separate;
      border-spacing: 5px;
      text-align: center;
    }

    table.tmap td {
      background: #f9f9f9;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
      /*padding: 8px 6px;*/
      /*width: 8%;*/
      min-width: 45px;
      transition: all 0.15s ease-in-out;
      user-select: none;
    }

    /* Key hover and active (press) effects */
    table.tmap td:hover {
      background: #e9f3ff;
      transform: translateY(-1px);
      box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
      cursor: pointer;
    }

    table.tmap td:active {
      background: #cce3ff;
      transform: translateY(1px);
      box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
    }

    .kb-1 {
      display: block;
      font-size: 0.85rem;
      color: #333;
      font-weight: bold;
    }

    .kb-2 {
      display: block;
      font-size: 1rem;
      color: #0077cc;
      margin-top: 4px;
    }

    /* Backspace image refinement */
    .kb-img {
      max-width: 26px;
      width: 100%;
      height: auto;
      vertical-align: middle;
    }

    @media (max-width: 600px) {
      .kb-1 {
        font-size: 0.75rem;
      }
      .kb-2 {
        font-size: 0.9rem;
      }
      table.tmap td {
        /*padding: 6px 4px;*/
        /*min-width: 35px;*/
      }
      .kb-img {
        max-width: 20px;
      }
    }

/*
.black_overlay{display: none; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-color: black; z-index:1001; opacity:.20;}
.white_content {display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0px; z-index:1002; overflow: auto;}
.white_content {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0px;
	z-index:1002;
	overflow: auto;
}
#layoutRR {padding:5px; border:2px solid #99BBEE; background-color:#eeeeff;}

#leftcol {float:left; width:380px; margin:0; background-color:white; background-color:#eeeeff;}
#stitle {margin:0px;}
#layoutRR #contentcol {margin-left:380px; padding-left:5px; border-left: 2px solid #616161;}
#savarana {margin:0 20px 0 0;}
*/

  /* --- Overlay --- */
  #light.white_content {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
  }

  /* --- Modal box --- */
  #RptErrorDiv {
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 1000px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 0.9em;
  }

  /* --- Header --- */
  .drag_title {
    background: #333366;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }

  .drag_title img {
    width: 16px;
    cursor: pointer;
  }

  /* --- Flex layout --- */
  #layoutRR {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
/*    gap: 20px;
    padding: 15px;*/
    box-sizing: border-box;
    width: 100%;
  }

  /* --- Columns --- */
  #leftcol,
  #contentcol {
    flex: 1 1;  /*1 1 400px;*/
    /*min-width: 0;*/
    max-width: 100%;
    box-sizing: border-box;
  }

  #leftcol {
    padding: 10px;
  }

  #contentcol {
    padding: 10px;          /* ✅ inner spacing for form column */
    background: #fff;
  }

  /* --- Scrollable meaning box --- */
  #RptMeaning {
    height: 400px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #333366;
    border-radius: 4px;
    background: #fafafa;
  }

.dark #leftcol, .dark #contentcol, .dark #RptMeaning {
	background-color: var(--bg-color-dark);
	color: var(--text-color-dark);
}

  /* --- Form styling --- */
  form#abdictrpt {
    display: flex;
    flex-direction: column;
  }

  textarea.field {
    width: 100%;
    resize: vertical;
    padding: 10px;          /* ✅ internal text padding */
    font-size: 1em;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  input[type="text"],
  input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #aaa;
    border-radius: 3px;
    box-sizing: border-box;
  }

  input[type="button"] {
    background: #333366;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
  }

  input[type="button"]:hover {
    background: #444488;
  }

  label {
    font-weight: bold;
  }

  #title, #stitle {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
  }

  /* --- Responsive stacking --- */
  @media (max-width: 900px) {
    #layoutRR {
      flex-direction: column;
    }
    #leftcol, #contentcol {
      flex: 1 1 100%;
      width: 100%;
    }
  }

.cHP {
	display: flex;
	justify-content: center;
}

.poems {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.poem {
	display: flex;
	align-items: flex-start;
}
.pC {
	width: 50px;
	flex-shrink: 0;
}
.pT {
	flex: 1;
}
.pL {
	text-indent: -3em;
	padding-left: 3em;
}
.pL2 {
	text-indent: -2em;
	padding-left: 3em;
}
