/********************************************************************
HTML TAGS
********************************************************************/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic);

body { 
	background: #FFF;
	margin:0;
}
body, table {
	font: 10pt 'Open Sans',Arial, Helvetica, sans-serif;
}

body.header {
	margin: 0px;
	padding: 0px;
}
body.footer {
	color: #333;
	text-align: center;
	margin: 0px;
	padding: 3px;
	font: 7pt 'Open Sans',Arial, Helvetica, sans-serif;
}

h1 {  
	font: bold 15pt 'Open Sans',Arial, Helvetica, sans-serif;;
}

h2 {  
	font-size: 13pt; 
	font-weight: normal;
	color: #0000ff;
}

th {
	text-align: left;
	font-weight: bold;
}

span.blueWord{
	color: #0000FF;
}
/*******************************************************************/

/********************************************************************
LAYOUT STYLES
********************************************************************/
.logo{
	padding: 5px 5px 3px;
}

.grammar-icon{
	width: 45px;
	height: 35px;
	vertical-align: text-bottom;
	padding: 0 5px;
	opacity: 0.8;
}

.grammarhead {
	font-family: 'Open Sans',Arial, Helvetica, sans-serif;
	position:relative;
	padding: 5px 5px;
	background: #E84C3D;
	text-align:left;
	font-size: 26px;
	color: #fff;
	font-weigh: 200;
	z-index:1;
}
.grammarnav {
	position:absolute;
	top:47px;
	left:0;
	width:200px;
	bottom:30px;
	background:#eee;
	padding-left:10px;
	overflow-y:scroll;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 10px;
	cursor: default;
}
.grammarbody {
	position:absolute;
	top:47px;
	bottom:30px;
	left: 230px;
	right:0;
	padding: 20px;
	background:#fff;
	overflow-y:scroll;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 10px;
}
.grammarfoot {
	 background: #e84c3d none repeat scroll 0 0;
    bottom: 0;
    color: #fff;
    font-size: 1em;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    text-align: center;
}
/*******************************************************************/

/********************************************************************
HEADER STYLES
********************************************************************/

.grammarhead .bar{
	border:1px solid #B7B7B7;
	height:20px;
	margin:0 10px;
}

.grammarhead #title,.grammarhead #contents {
	color:#666666;
	font-weight:bold;
	padding-left:10px;
}

.grammarhead #contents {
	font-size:14px;
}
/*******************************************************************/

/********************************************************************
MENU STYLES
********************************************************************/
#menu {
	font-family: 'Open Sans',Arial, Helvetica, sans-serif;
	font-size: 12px;
	background: #eee;
	xpadding-top:70px;
	padding-bottom: 30px;
}

#menu h2 {
	color:#666666;
	margin: 8px 0;
	font-size: 18px;
}
#menu p {
	font-size: 14px;
	font-weight: 200;
	margin-top: 5px;
	margin-bottom: 5px;
}

#menu li {
	font-size: 12px;
}

#menu ul {
	margin-top: 0px;
	padding-top: 0px;
	margin-left: 18px;
	padding-left: 0px;
}

#menu a { 
	text-decoration: none;
}

#menu p a {
	color: #000;
	transition: all 0.2s ease;
}

#menu a:hover { 
	color: #666;
}

#menu li, #menu .title-sublist{
	color: #E84C3D;
}

#menu .show-list{
	cursor: pointer;
}

#menu li a, #menu li span{
	color:#111111;
	transition: all 0.2s ease;
}

#menu li a:visited { 
	color: #07F;
}

#menu li a:hover { 
	color: #07F;
}
/*******************************************************************/

/********************************************************************
CONTENT PAGE STYLES
********************************************************************/
.theword {
	color: #c00;
}

h2 .theword {
	font-weight: bold;
	color: #000099;
}

.example {
	color: #c00;
}

.highlight {
	color: #c00;
}

.highlight2 {
	color: #00C;
}

.incorrectexample {
	color: #c00;
	text-decoration: line-through;
}

.partofspeech {
	font-weight: bold;
}

.symbol {
	font-size: 14pt;
	font-weight: bold;
}

table.center-cells td, table.center-cells th {
	text-align: center;
}
div.border { padding:10px; border: 1px solid #ccc; }
table.border {
	border-bottom: 1px solid #ccc;
	border-right: 1px solid #ccc;
}
table.border td {
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
}
table.border th {
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	background-color:#EEE;
}

.sublist-show{
	display: block !important;
}

.sublist-hide{
	display: none !important;
}

/*******************************************************************/
.field{
  overflow: hidden;
  width: 170px;
  vertical-align: middle;
  white-space: nowrap;
  margin-top: 10px;
  box-shadow: 1px 1px 3px #bfbebf;
}

.field input#searcher{
  width: 170px;
  height: 35px;
  border: none;
  font-size: 10pt;
  float: left;
  padding-left: 15px;
  border-radius: 5px;
}

.field button.icon{
  border-bottom-right-radius: 2px;
  border-top-right-radius: 2px;   
  border: none;
  background: url(images/search.png) no-repeat 50% 50%;
  height: 35px;
  width: 40px;
  color: #fff;
  font-size: 10pt; 
  outline: none;
  opacity: 1;
  margin-left: -40px;
  background-color: #E84C3D;
  margin-bottom: -4px;
}
/** NUEVO **/
#grammarnav {
	position: fixed;
	width: 250px;
	left: 0;
	top: 0;
	bottom: 0;
	background-color: #f4f4f4;
	transition: left 0.3s ease;
	overflow-y: auto;
}
.grammarbody {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	overflow-y: auto;
	transition: left 0.3s ease;
}
.grammarhead {
	width: 100%;
	/* Ocupa todo el ancho */
	height: 40px;
	/* Altura fija */
	background-color: #f00;
	/* Color rojo para visibilidad, cambia según tu diseño */
	position: fixed;
	/* Fijo en la parte superior */
	top: 0;
	left: 0;
	z-index: 1000;
	/* Asegura que siempre esté en la parte superior */
}
.menu {
	width: 50px;
	/* Ajusta según el tamaño del ícono */
	height: 50px;
	/* Ajusta según el tamaño del ícono */
	background-image: url('images/menu.png');
	/* Reemplaza con la URL de tu imagen */
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	display: none;
	position: absolute;
	top: 50px;
	margin-top: 10px;
	right: 15px;
	z-index: 50;
}
@media (min-width: 768px) {
	.grammarbody {
		position: absolute;
		top: 50px;
		/* Ajustado para comenzar debajo del grammarhead */
		left: 250px;
		/* Espacio para el menú lateral */
		right: 0;
		bottom: 0;
		overflow: auto;
	}

	#grammarnav {
		position: fixed;
		top: 50px;
		/* Empieza debajo del grammarhead */
		left: 0;
		width: 250px;
		bottom: 0;
		transition: left 0.3s;
	}
	.menu {
		display: none;
	}
}

@media (max-width: 768px) {
	.grammarbody {
		position: absolute;
		top: 50px;
		/* Ajustado para comenzar debajo del grammarhead */
		left: 0;
		right: 0;
		bottom: 0;
		overflow: auto;
		padding: 20px;
	}

	#grammarnav {
		position: fixed;
		top: 50px;
		/* Empieza debajo del grammarhead */
		left: -250px;
		width: 250px;
		bottom: 0;
	}
	.menu{
		display: block;
	}
}

