/* ======== QUICK FIXES OF AUTOGENERATED CSS =============== */
div#entryContent .boxtable {
    font-size: 1em;
}

div#entryContent .boxtable td {
    font-size: 1em;
    padding: 0px 0px 5px 0px;
}

/* Holger's patch for Word Forms */
div#entryContent .INFLECTION-GROUP {
    display: table;
    font-size: 120%;
} /* New */
div#entryContent .INFLECTION {
    display: table-row;
} /* New */
div#entryContent .INFLECTION-TYPE {
    display: table; cell;
    padding-left: 0.3em;
} /* Update */
div#entryContent .INFLECTION-CONTENT {
    display: table-cell;
    padding: 0.0em 0.3em 0.0em 0.6em;
} /* Update */
div#entryContent .INFLECTION-GROUP .PRONS {
    display: none;
} /* New */
div#entryContent .I-BASEFORM {
    display: inline;
    font-weight: bold;
} /* New */
div#entryContent .I-VARIANT {
    display: inline;
    font-weight: bold;
} /* New */
div#entryContent a.QUERY {
    text-decoration: none;
    color: black;
}

.BASE {
    display: inline;
}

div#entryContent .SEP[context='PHRASE-VARIANT-before'], div#entryContent .SEP[context='PHRASE-VARIANT-between']
    {
    display: inline-block;
    margin: 0 .3em;
}

div#entryContent a.QUERY:hover {
    border-bottom: thin dotted gray;
}

div#entryContent .SENSE-INFO2 {
    text-align: center;
}

div#entryContent .SUB-SENSE-CONTENT {
    margin-left: 0;
}

div#entryContent .SENSE {
    margin: 0;
    max-width: 450px;
}

.HOMOGRAPH {
    line-height: 1.5em;
}

.entryBody {
    clear: left;
    max-width: 485px;
    width: 485px;
}


#entryBody {
    clear: left;
    width: 485px;
    float: left;
}

@media screen and (max-width: 741px) {
    #entryBody {
        max-width: 485px;
  		margin-bottom: 30px;
    }
}

@media screen and (max-width: 1010px) {
    #entryBody {
        max-width: 280px;
    }
}

div#RUNON {
    clear: left;
    max-width: 485px;
    width: 485px;
}

div#entryContent .H_S3 {
    margin-bottom: 30px;
}

div#entryContent div#PV-HOMOGRAPH h2 {
    display: inline;
}

div#entryContent div#PV-HOMOGRAPH h2.THES {
    display: block;
}

div#entryContent div#PV-HOMOGRAPH h2.PV-VARIANT {
    font-size: 100%;
}

div#entryContent ul#phrases h2.MULTIWORD {
    display: inline;
}

div#entryContent .GRAMMAR-TEXT {
    font-weight: bold;
}

div#entryContent .GREF-ENTRY {
    font-weight: bold;
}

div#entryContent .GREF-TYPE {
    font-style: italic;
}

div#entryContent .SEEALSO {
    font-size: 100%;
}

span.MULTIWORD {
    font-weight: bold;
}

.ITAL {
    font-style: italic;
}

div.specialMessage {
    padding: 10px;
    margin: 80px 0 40px 0;
    border: 0;
}

div.specialMessage .title {
    display: block;
}

div.specialMessage .message {
    
}

/* ======== CUSTOM CSS =============== */
h2.VARIANT {
    font-size: 100%;
    font-weight: normal;
}

h3.SENSE-ENTRY, h2.MULTIWORD, h2.PHRASE-VARIANT {
    display: inline;
}
/*========HEADWORD==========*/
div#entryContent #headword {
    border-bottom: 1px #c40000 solid;
    border-top: 1px #c40000 solid;
    margin-bottom: 9px;
}

#headword h1 { /*height: 30px;*/
    line-height: 1em;
    padding: 0;
    display: inline;
}

#headword .BASE-FORM {
    font-size: 1.8em;
    padding: 5px 0;
}

#headwordleft {
    margin-top: 5px;
    margin-bottom: 6px;
}

div#headword span.BASE-FORM .BASE {
    word-wrap: break-word;
}

#social_head {
    height: 20px;
    margin-left: 0px;
    margin-top: 7px;
    margin-bottom: 14px;
    letter-spacing: 4px !important;
}

.social_head_margin {
    margin-right: 10px;
}

h1.redword {
    color: #C40000;
    display: inline;
}

h1.MAINENTRY {
    color: #000000;
    display: inline;
}

#headwordright {
    float: right;
	margin-top: 5px;
}

#headwordright .button .label {
    display: inline-block;
	width: 120px;
	text-align: center;
}

#headwordright .button   {
	width: 128px;
	line-height: 1em;
	text-decoration: none;
	max-height: 27px;
}

h2.VARIANT {
    margin-bottom: 0.5em;
    vertical-align: middle;
}

h2.VARIANT .BASE {
    font-size: 1.2em;
    font-weight: bold;
}

/*========HEADBAR==========*/
#headbar {
    margin-bottom: 2.5em;
    vertical-align: middle;
    position: relative; /* fixes the redword and thesaurus layer */
}

#headbar img {
    vertical-align: middle;
}

.PART-OF-SPEECH {
    margin-right: 0.5em;
}

.PRONS img, .PRON, .ipared {
	margin-right: 0.5em;
    font-size: 13px;
    font-weight: normal;
    font-family: Lucida Sans Unicode, Lucida Grande;
}

.ipared {
	color: #C40000;
	font-size: 21px;
	line-height: 45px;
}

#headbar .wordforms {
    padding-top: 0em;
    display: inline;
}

#helplinks-box {
    float: right;
    clear: right;
    font-style: italic;
    text-align: right;
    width: 200px;
}


.t_hide_icon {
	float: right;
	display: inline-block;
	border-radius: 4px;
	border: 1px solid #aaa;
	padding: 6px 10px 4px 5px;
	cursor: pointer;
	text-align: right;
}

.contributeto_button {
	display: inline-block;
	border-radius: 4px;
	border: 1px solid #aaa;
	padding: 6px 10px 4px 5px;
	cursor: pointer;
	margin-top: -20px;
	margin-bottom: 14px;
	text-decoration: none;
}

span.text {
	line-height: 26px;
	height: 23px;
	font-size: 1em;
	color: #414141;
	font-weight: bold;
    text-decoration: none;
}

span.textfromopen {
	line-height: 0px;
	height: 23px;
	font-size: 1em;
	color: white;
	font-weight: bold;
	text-decoration: none;
}

@media screen and (max-width: 339px) {
	span.textfromopen {
		font-size: 0.9em;
	}
}

div.synonyms{
    margin-top:4px;
    line-height: 19px;
}
span.synonyms{
    display:inline-block;
}
span.icon_thesaurus_small_bullet {
    padding-top: 3px;
    font-size: 12px;
    color: #666666;
    min-height: 24px;
	padding: 0px;
}

@media screen and (max-width: 741px) {
	span.icon_thesaurus_small_bullet {
		margin-top: 5px;
	}
}

#helplist {
	float: right;
	font-style: italic;
	text-align: right;
	margin: 11px 0 9px 0;
}

#helplist a {
    color: #c40000;
    font-weight: normal;
    text-decoration: underline;
}

#helplist li {
    list-style-type: none;
    margin-bottom: 0em;
}

#helplist li img {
    margin: 0;
    padding-right: 5px;
    position: relative;
    bottom: 1px;
}

#redwordslayer {
    left: auto;
    right: 10px;
}

.thesaurus-layer {
    display: none;
    position: absolute;
    left: auto;
    top: auto;
    right: 10px;
    width: 280px;
    border: 1px solid #ccc;
    background-color: #FFFFFF;
    background-image: url('../images/grad40.gif');
    background-repeat: repeat-x;
    background-position: bottom;
    z-index: 10;
    padding: 20px 15px 15px 15px;
}

.thesaurus-layer a {
    text-decoration: underline;
    color: #C40000;
}

.thesaurus-layer a.thesaurus-close {
    float: right;
}

.thesaurus-layer h3 {
    font-size: 1.4em;
    color: #414141;
    margin-bottom: 1em;
}

.thesaurus-layer h3 img {
    margin-right: 0.5em;
    position: relative;
    bottom: 6px;
}


#helplinks-box a, #helplinks-box a:visited {
    color: #c40000;
    text-decoration: underline;
}

#redwordslayer a, #wordsformslayer-head a, #wordformslayer-1 a,
    #wordformslayer-2 a, #wordformslayer-3 a {
    font-style: normal;
}

#helplinks-box li#dictionary_entry_link a
    {
    font-size: 1em;
    font-weight: normal;
    color: #000;
}


#helplinks-box li#dictionary_entry_link a b
    {
    font-size: 1.1em;
    font-weight: bold;
}
/*========HEADINFO (SENSE MENU & USAGEBOX LINKS) ==========*/
.HEAD-INFO {
    margin-bottom: 10px;
    clear: left;
    max-width: 485px;
    width: 485px;
    float: left;
}
#menu {
    margin: 0;
    margin-bottom: 25px;
}

#menu li {
    margin-bottom: 0.2em;
}

#menu h3 {
    font-size: 100%;
    margin-bottom: 0.3em;
}

#menu ol {
    padding-left: 2em;
}

#usageboxlinks {
    background-color: #f8f8f8;
    border: 1px solid #aaa;
    padding: 10px;
    width: auto;
    margin-top: 20px;
}

@media screen and (max-width: 741px) {
    #usageboxlinks {
        margin-bottom: 20px;
    }
}

#usageboxlinks ul {
    padding: 0em 1.5em;
}

#usageboxlinks li {
    list-style-type:;
    margin-bottom: 0.2em;
}

#usageboxlinks li a:link, #usageboxlinks li a:active, #usageboxlinks li a:visited
    {
    color: #555;
}

#usageboxlinks li a:hover {
    text-decoration: none;
}

#innerleftcol {
    float: right;
    clear: right;
    width: 300px;
    margin: 10px 0 0 20px;
}

@media screen and (max-width: 1010px) {
    #innerleftcol {
        width: 234px;
        float: left;
		margin-left: 0px;
		margin-bottom: 10px;
	}
}

/* smartphone/portrait - PLMEDO-157 */
@media screen and (max-width: 380px) {
    #innerleftcol {
        float: none;
        width: auto;
        margin: 10px 0 0 0px;
        display: table;
    }
}


.innerleftcol {
    margin: 10px 0 0 20px;
    float: right;
    clear: right;
    width: 300px;
    clear: right;
}

@media screen and (max-width: 1010px) {
    .innerleftcol {
        width: 246px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 575px) {
    .innerleftcol {
        width: 246px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        clear: right;
        margin-top: 128px;
    }
}

/* smartphone/portrait - PLMEDO-157 */ 
@media screen and (max-width: 380px) {
    .innerleftcol {
        width: auto;
        margin-left: auto;
        margin-right: auto;     
        margin-top: 128px!important;
    }
}

/* =========== RELATED ENTRIES ================ */
#relatedentries {
    width: auto;
    max-height: 220px;
    padding: 0;
    border: 1px dotted #acacac;
    background-color: #FFF;
}

#browselist {
    float: right;
    width: 288px;
    max-height: 220px;
    overflow: auto;
    padding: 0px 0px 10px 10px;
    border: 1px dotted #acacac;
    margin: 20px 0px 20px 20px;
    background-color: #FFF;
}

@media screen and (max-width: 1010px) {
    #browselist {
        width: 222px;
    }
}

@media screen and (max-width: 380px) {
    #browselist {
        width: 96%;
    }
}

#relatedentries .entrylist {
    overflow: auto;
    max-height: 190px;
	padding: 0 10px 0 10px;
	width: auto;
    clear: left;
}

#browselist .header, #relatedentries h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0 .5em 0;
    color: #414141;
    line-height: 1.4em;
}

#relatedentries ul, #browselist ul {
    list-style-type: none;
}

#relatedentries li, #browselist li {
    margin-bottom: 0.2em;
}

#relatedentries a {
    text-decoration: none;
    color: #000000;
}

#relatedentries a:hover {
    text-decoration: underline;
    color: #000000;
}

#relatedentries span.PART-OF-SPEECH {
    padding-left: 0px;
    text-transform: uppercase;
    font-size: 0.7em;
    color: #999999;
}

#relatedentries a.morerelatedentries {
    display: block;
    min-height: 25px;
    margin: 5px 0 0 10px;
    color: #c40000;
    text-decoration: underline;
}
/* ===== Senses ==== */
div#entryContent ol.senses {
    padding-left: 2.2em;
    margin-bottom: 3em;
    margin-top: 0;
    list-style-type: none;
}

/* smartphone/portrait - PLMEDO-157 */
@media screen and (max-width: 380px) {
    div#entryContent ol.senses {
        padding-left: 0;
    }
}

div#entryContent ol.senses li {
    
}

.SENSE-BODY {
    margin-bottom: 2em;
}

.SENSE-BODY>div {
	overflow: hidden;
}

.SUB-SENSE-BODY {
    margin-bottom: 1em;
}

div#entryContent ol.senses li span.SENSE {
    /* div#entryContent ol.senses li div.EXAMPLES { */
    
}

span#EXAMPLE, p#EXAMPLE {
    color: #003399;
    font-style: italic;
}

span#EXAMPLE a, p#EXAMPLE a, span#EXAMPLE {
    text-decoration: none;
    color: #003399;
}

span#EXAMPLE a:hover, p#EXAMPLE a:hover {
    border-bottom: thin dotted gray;
}

div#entryContent .EXAMPLE {
    display: inline;
    line-height: 1.5em;
    color: #003399;
    font-style: italic;
}

span.GL {
	color: black;
	text-decoration: none;
	font-style: normal;
}

span.GL a:hover {
	border-bottom: thin dotted gray;
}

div#entryContent .SENSE-NUM {
    position: absolute;
    margin-left: -1.8em;
}

.SYNTAX-CODING,.RESTRICTION-CLASS,.STYLE-LEVEL,.DIALECT,.PART-OF-SPEECH,.SUBJECT-AREA
    {
    text-transform: uppercase;
    font-size: 0.8em;
}

div#entryContent .SENSE-INFO a:hover {
    border-bottom: thin dotted gray;
}

div#entryContent .SENSE-INFO a {
    color: black;
    text-decoration: none;
}

ol.senses ol {
    padding-left: 2em;
    padding-top: 1em;
    list-style-type: none;
    margin: 0 0 1em 0;
    font-weight: normal;
}

ol.PHRASE-DEF-LIST {
    list-style-type: none;
}

.PATTERNS-COLLOCATIONS {
    font-weight: bold;
}
/* =========== THESAURUS SNIPPET ================ */
.thessnippet {
	padding: 9px;
	margin: 0px 2px 10px 2px;
	font-size: 12px;
	color: #666666;
	line-height: 1.5em;
	background-color: #f1f1f1;
}

.thessnippet img {
    margin-right: 5px;
    position: relative;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

.thessnippet a {
    color: #c40000;
}

.thessnippet span.synonyms a {
	font-style: italic;
	color: #333333;
	text-decoration: none;
	display: inline;
	font-size: 1.2em;
}

.thessnippet span.synonyms a:hover {
    text-decoration: underline;
}

.entryBody h2,#phrases .SENSE-BODY h2.THES {
    font-weight: normal;
    color: #666;
}

.thessnippet a.cattitle {
    font-weight: bold;
    color: #444;
    text-decoration: none;
    cursor: pointer;
	margin-right: 3px;
}

.thessnippet .cattitle h2 {
    color: #666;
    font-weight: 900;
    display:inline;
}

.thessnippet a.cattitle:hover {
    text-decoration: underline;
}

.thessnippet .moreButton {
	display: inline-block;
	-moz-box-shadow: inset 0 0 3px #c1c1c1;
	-webkit-box-shadow: inset 0 0 3px #c1c1c1;
	box-shadow: inset 0 0 3px #c1c1c1;
	border-radius: 3px;
	border: 1px solid #adadad;
	box-sizing: border-box;
	color: #434343;
	background-color: #F8F8F8;
	line-height: 20px;
	margin: 4px 0px 0px;
	padding: 3px 8px 3px 8px;
	font-size: 15px;
	font-weight: normal;
	letter-spacing: 0;
	cursor: pointer;
	text-decoration: none;
}

#centred {
	text-align: center;
	max-width: 480px;
}

#show{
    width: 150px;
    text-align:center;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #aaa;
    padding: 6px 5px 4px 5px;
    cursor: pointer;
}

#show:hover .hiddenBox{
    display:block;
}
.hiddenBox{
    display:none;
    position: absolute;
    width: 150px;
    background: white;
    z-index: 1;
    -moz-box-shadow: 2px 2px 5px 0px #656565;
    -webkit-box-shadow: 2px 2px 5px 0px #656565;
    -o-box-shadow: 2px 2px 5px 0px #656565;
    box-shadow: 2px 2px 5px 0px #656565;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=134, Strength=5);
    margin-top: 5px;
    text-align:left;
}
.hiddenBox div{
    padding-left:15px;
    background-color:#D8D7D7;
}

.bodythessnippet .hiddenthessnippet,
.bodySYNTAX-CODING .hiddenSYNTAX-CODING,
.bodywordforms .hiddenwordforms,
.bodyEXAMPLES .hiddenEXAMPLES,
.bodyPRON .hiddenPRON{
     background-color:white;
}

/* ==== PHRASES ==== */
#phrases_container {
    margin-bottom: 4em;
    clear: left;
    max-width: 485px;
    width: 485px;
}

div#entryContent h3.TITLE {
    border-bottom: 1px #ccc solid;
    font-size: 1em;
    padding-bottom: 0.2em;
    margin-bottom: 1.5em;
    text-transform: uppercase;
    clear: left;
    max-width: 485px;
    width: 485px;
}

ul#phrases {
    padding-left: 2em;
    line-height:1.5em;
}

ul#phrases li { /*margin:1em 0;*/
    margin-bottom: 2em;
}

ul#phrases li ol {
    padding-left: 2em;
}

ul#phrases li ol li {
    margin: 0;
}
/* ==== PHRASAL VERBS ==== */
#phrases_container,
#phrasal_verbs_container {
    margin-bottom: 4em;
    clear: left;
    max-width: 485px;
    width: 485px;
}
#phrases_container ul ,
#phrasal_verbs_container ul {
    padding-left: 2em;
}
#phrases_container li,
#phrasal_verbs_container li {
    margin-bottom: 0.5em;
}

.wordforms {
    padding-top: 0.5em;
    display: block;
}

div#PV-HOMOGRAPH ol.senses {
    padding-left: 2.2em;
    margin-bottom: 0em;
    margin-top: 0;
    list-style-type: none;
}

div#PV-HOMOGRAPH ol.senses li {
    margin-bottom: 0em;
}

.phrasalverb {
    margin-bottom: 2em;
}

.phrasalverbsense {
    margin-bottom: 1em;
}

div#PV-HOMOGRAPH ol.senses div.SENSE {
    margin-left: 0;
}

div#PV-HOMOGRAPH .wordforms img {
    margin-bottom: 1em;
}
div#RUNON h2.ENTRY {
    display: inline;
}

div#entryContent .SYNTAX-CODING,div#entryContent .RESTRICTION-CLASS,div#entryContent .DIALECT
    {
    margin-right: 0.5em;
}
div#headbar .STYLE-LEVEL {
    margin-right: 0.7em;
}

.dict-arrow {
    vertical-align: middle;
    margin: 0 .1em;
}

.MAIN-XREF {
    margin-bottom: 2em;
    display: block;
    clear: left;
    width: 485px;
    max-width: 485px;
}

.MAIN-XREF a {
    padding-left: 0.5em;
}

.VOCAB-XREF {
    font-weight: bold;
}

div#entryContent .sideboxbody .boxtable td .VOCAB-XREF {
    display: inline-table;
}

/* =========== USAGE BOXES ================ */
.sidebox,.ONE-BOX {
    border: 1px solid #d6d6d6;
    margin-bottom: 2em;
}

.sidebox {
    max-width: 500px;
}

.ONE-BOX {
    width: 300px;
}

.ONEBOX-HEAD,.USAGE-NOTE-HEAD {
    background-color: #d6d6d6;
    padding: 0.5em 15px;
    font-size: 1em;
}

.sideboxbody {
    padding: 15px;
}

.sideboxbody .EX {
    font-style: italic;
    color: #039;
}

.sidebox ul,.ONE-BOX ul {
    padding: 0em 0em 0em 3em;
}

.sidebox img.foldimage {
    vertical-align: middle;
    float: right;
}

div#entryContent .layer {
    left: auto;
    top: auto;
}

div#entryContent .sideboxbody a:hover {
    border-bottom: thin dotted gray;
}

.sideboxbody .p, .sideboxbody .PARA {
    margin-bottom: 0.5em;
}

div#entryContent .sideboxbody .boxtable td {
    background-color: #EEE;
    padding: 5px;
    border: 1px solid #FFF;
    vertical-align: top;
}

div#entryContent .sideboxbody a {
    color: black;
    text-decoration: none;
}
/* Small print */
.smallprint p {
    color: #666666;
    font-size: 0.8em;
    text-align: left;
}

#pron .smallprint {
	margin-top: -10px;
}

#pron .smallprint p {
	font-size: 0.89em;
}

.smallprint a:link, .smallprint a:hover, .smallprint a:active, .smallprint a:visited {
    color: #666666;
}
.smallprint a:link, .smallprint a:active, .smallprint a:visited {
    text-decoration: none;
}
.smallprint a:hover {
    text-decoration: underline;
}
div#entryContent .sideboxbody .EX a {
    color: #039;
}
.EXGROUP {
    margin-bottom: 0.5em;
}

.t_thes_img {
	display: inline-block;
	height: 18px;
	width: 18px;
}

/* special display */
#headwordleft #syn_text {
  display: none;
}

#headwordright + #headwordleft #syn_text {
  display: inline;
}


/* other responsive features */
@media screen and (max-width: 1010px) {
    .HEAD-INFO, .entryBody, div#RUNON, #phrases_container, div#entryContent h3.TITLE, #phrasal_verbs_container, .MAIN-XREF {
        width: auto;
    }
}

.audio_play {
	cursor: pointer;
	background-image: url('../images/MEDOpronunciationicon.svg');
	 background-repeat: no-repeat;
    background-size: auto 100%;
	display: inline-block;
	width: 190px;
	height: 50px;
	margin-bottom: 12px;
    cursor: pointer;
}
.audio_play .audio_play_button{
    height:100%;
}

@media screen and (max-width: 1010px) {
	.audio_play {
		width: 132px;
		height: 35px;
	}
}
