:root {
    --strFontFace: Geneva, Arial, sans-serif;
    --strFontSize: medium;
    --strTextColor: #000000;
    --strTitleColor: #000000;
    --strFuncLightColor: #ffffff;
    --strFuncShadeColor: #7f7f7f;
    --strLinkColor: #0000FF;
    --strVLinkColor: #0000CC;
    --strNavBarColor: #000000;
    --strNavLightColor: #7f7f7f;
    --strNavShadeColor: #000000;
    --strNavTextColor: #ffffff;
    --strPageBGColor: #C0C0C0;
    --strExBGColor: #FFFFFF;

    --strBorderWidth_IfDropped: 3px; /* for JMH */
    --strBorderWidth_IfUnDropped: 1px; /* for JMH,JMM */
    --strBorderColor_IfUnDropped: silver; /* for JMH, JMM */
    --strBorderWidth_IfChecked: 3px; /* for JMM */
    --strAreaBGColor: white; /*for JMM */
    --strAreaBorderColor: silver; /* for JMM */
    --strMapBorderWidth: 5px; /* for JMM */
    --strMapBorderColor: silver; /* for JMM */
    --strMapPadding: 50px; /* for JMM */
    --strCatTitleBGColor: gold; /* for JMS and JMSV */
    --strCatTitleFontSize: 1.5em; /* for JMS and JMSV */
    --strCatTitleFontWeight: bold; /* for JMS and JMSV */
    --strCatBoxBGColor: #FFFFFF; /* for JMS and JMSV */
    --strGlossColor: #17a2b8; /*for mini audio button */
    --strGlossBGColor: white;

}

table, div, span, td {
    font-size: 1em;
    color: var(--strTextColor);
}

div.Titles {
    padding: 0.5em;;
    text-align: center;
    color: var(--strTitleColor);
}

button {
    font-family: var(--strFontFace);
    font-size: 1em;
    display: inline;
}

.ExerciseTitle {
    font-size: 140%;
    color: var(--strTitleColor);
}

.ExerciseSubtitle {
    font-size: 120%;
    color: var(--strTitleColor);
}

div.StdDiv, div.ExerciseContainer, div.ReadingContainer {
    background-color: var(--strExBGColor);
    text-align: center;
    font-size: 1em;
    color: var(--strTextColor);
}

div.StdDiv2 {
    background-color: var(--strExBGColor);
    text-align: left;
    font-size: 1em;
    color: var(--strTextColor);
    margin-bottom: 5px;
}

div.ReadingContainer, div.ExerciseContainer {
    min-width: 15em;
    flex-grow: 1;
    flex-basis: 0;
    margin: 1px;
}

div#ContainerDiv {
    margin: -1px;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.RTLText {
    text-align: right;
    font-size: 150%;
    direction: rtl;
    font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", var(--strFontFace);
}

.CentredRTLText {
    text-align: center;
    font-size: 150%;
    direction: rtl;
    font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", var(--strFontFace);
}

button p.RTLText {
    text-align: center;
}

.RTLGapBox {
    text-align: right;
    font-size: 100%;
    direction: rtl;
    font-family: "Times New Roman", var(--strFontFace);
   background-color: #bbbbbb;
}

.GapBox2 {
    max-height: 25px;
    background-color: #dddddd;
    border: 1px solid grey;
}

.Guess {
    font-weight: bold;
}

.CorrectAnswer {
    font-weight: bold;
}

div#Timer {
    padding: 0.25em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--strTitleColor);
}

span#TimerText {
    padding: 0.25em;
    border-width: 1px;
    border-style: solid;
    font-weight: bold;
    display: none;
    color: var(--strTitleColor);
}

span.Instructions {
}

div.ExerciseText {

}

.FeedbackText, .FeedbackText span.CorrectAnswer, .FeedbackText span.Guess, .FeedbackText span.Answer {
    color: grey;
    font-weight: bold;
    font-size: medium;
    font-family: Arial;

}

.LeftItem {
    font-size: 1em;
    color: var(--strTextColor);
    text-align: left;
}

.RightItem {
    font-weight: bold;
    font-size: 1em;
    color: var(--strTextColor);
    text-align: left;
}

span.CorrectMark {

}

input, textarea {
    font-family: var(--strFontFace);
    font-size: 120%;
}

select {
    font-size: 1em;
}

div.Feedback {
    background-color:white;
    left: 33%;
    width: 50%;
    z-index: 1;
    border-style: solid;
    border-color: #bce5d3;
    border-width: 2px;
    padding: 5px;
    text-align: center;
    color: var(--strTitleColor);
    position: absolute;
    display: none;
    font-size: 1em;
    border-radius: 0.5em;
    box-shadow: 0.1em 0.1em 0.1em lightgray;
}

div.ExerciseDiv {
    color: var(--strTextColor);
}

table.MatchTable {
    margin: 2em auto;
    border-width: 0;
}

table.FlashcardTable {
    background-color: transparent;
    color: var(--strTextColor);
    border-color: var(--strTextColor);
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    /*width: 90%;*/
    position: relative;
    text-align: center;
    padding: 0px;
}

table.FlashcardTable tr {
    border-style: none;
    margin: 0px;
    padding: 0px;
    background-color: var(--strExBGColor);
}

table.FlashcardTable td.Showing {
    font-size: 140%;
    text-align: center;
    width: 50%;
    display: table-cell;
    padding: 2em;
    margin: 0px;
    border-style: solid;
    border-width: 1px;
    border-radius: 0.5em;
    color: var(--strTextColor);
    box-shadow: 0.2em 0.3em 0.2em var(--strNavShadeColor);
    background-color: var(--strPageBGColor);
}

table.FlashcardTable td.Hidden {
    display: none;
}

div.JMixDrag, div.JMatchDrag {
    padding: 0;
    border-style: none;
}

div#GuessDiv {
    padding: 0.5em;
    margin-bottom: 2em;
}

div#SegmentDiv {
    margin-top: 2em;
    margin-bottom: 2em;
    text-align: center;
}

a.ExSegment {
    font-size: 120%;
    font-weight: bold;
    text-decoration: none;
    color: var(--strTextColor);
    display: inline-block;
    padding: 0.5em;
    border: solid 1pt gray;
    margin-bottom: 0.5em;
}

span.RemainingWordList {
    font-style: italic;
}

div.DropLine {
    position: absolute;
    text-align: left;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--strTitleColor);
    width: 80%;
    left: 10%;
}

.ClozeWordList {
    text-align: center;
    color : grey;
    border-bottom: solid;
    border-bottom-color: #17a2b8;
    width: content-box;
}

div.ClozeBody {
    text-align: justify;
    margin-bottom: 2em;
    line-height: 2.0
}

span.GapSpan {
    font-weight: bold;
}

table.CrosswordGrid {
    margin: auto auto 1em auto;
    border-collapse: collapse;
    padding: 0px;
    background-color: #000000;
}

.cross-mel{
    display: flex;
    align-items: center;
    flex-direction: row;

}

table.CrosswordGrid tbody tr td {
    width: 1.5em;
    height: 1.5em;
    text-align: center;
    vertical-align: middle;
    font-size: 140%;
    padding: 1px;
    margin: 0px;
    border-style: solid;
    border-width: 1px;
    border-color: #000000;
    color: #000000;
}

table.CrosswordGrid span {
    color: #000000;
}

table.CrosswordGrid td.BlankCell {
    background-color: #000000;
    color: #000000;
}

table.CrosswordGrid td.LetterOnlyCell {
    text-align: center;
    vertical-align: middle;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
}

table.CrosswordGrid td.NumLetterCell {
    text-align: left;
    vertical-align: top;
    background-color: #ffffff;
    color: #000000;
    padding: 1px;
    font-weight: bold;
}

.NumLetterCellText {
    cursor: pointer;
    color: #000000;
}

.GridNum {
    vertical-align: super;
    font-size: 66%;
    font-weight: bold;
    text-decoration: none;
    color: #000000;
}

.GridNum:hover, .GridNum:visited {
    color: #000000;
}

table#Clues {
    margin: auto;
    vertical-align: top;
}

table#Clues td {
    vertical-align: top;
}

table.ClueList {
    margin: auto;
}

td.ClueNum {
    text-align: right;
    font-weight: bold;
    vertical-align: top;
}

td.Clue {
    text-align: left;
}

div#ClueEntry {
    text-align: left;
    margin-bottom: 1em;
}

div.Keypad {
    text-align: center;
    display: none; /* initially hidden, shown if needed */
    margin-bottom: 0.5em;
}

div.Keypad button {
    font-family: var(--strFontFace);
    font-size: 120%;
    background-color: #ffffff;
    color: #000000;
    width: 2em;
    border-style: solid;
    border-width: 1px;
    border-radius: 0.5em;
    box-shadow: 0.2em 0.3em 0.2em var(--strTextColor);
}

div.QuestionNavigation {
    text-align: center;
}

.QNum {
    margin: 0em 1em 0.5em 1em;
    font-weight: bold;
    vertical-align: middle;
}

textarea {
    font-family: var(--strFontFace);
}

.QuestionText {
    text-align: left;
    margin: 0px;
    font-size: 1em;
}

.Answer {
    font-size: 120%;
}

.PartialAnswer {
    font-size: 120%;
    letter-spacing: 0.1em;
    color: var(--strTitleColor);
}

.Highlight {
    color: #000000;
    background-color: #ffff00;
    font-weight: bold;
    font-size: 120%;
}

ol.QuizQuestions {
    text-align: left;
    list-style-type: none;
}

li.QuizQuestion {
    padding: 1em;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
}

ol.MCAnswers {
    text-align: left;
    list-style-type: upper-alpha;
    padding: 1em;
}

ol.MCAnswers li {
    margin-bottom: 1em;
}

ol.MSelAnswers {
    text-align: left;
    list-style-type: lower-alpha;
    padding: 1em;
}

div.ShortAnswer {
    padding: 1em;
}

.FuncButtonind {
    border-radius: 0.5em;
    min-width: 2em;
    max-height: 2em;
    color: gray;
    background-color: #dddddd;
    cursor: pointer;
    box-shadow: 0.1em 0.1em 0.1em var(--strFuncShadeColor);
    margin-left: 4px;
    text-align: center;
}

.FuncButtonind:active {
    box-shadow: none;
}

.FuncButtonind:hover {
    color: var(--strExBGColor);
    background-color: #b3d7ff;
}

.FuncButton {
    border-radius: 0.5em;
    padding: 0.7em;
    min-width: 2em;
    color: white;
    background-color: #abdde5;
    cursor: pointer;
    box-shadow: 0.1em 0.1em 0.1em var(--strFuncShadeColor);
    margin-left: 4px;
}

.FuncButton:active {
    box-shadow: none;
}

.FuncButton:hover {
    color: var(--strExBGColor);
    background-color: var(--strTextColor);
}

.FuncButton3 {
    border-radius: 0.5em;
    padding: 0.7em;
    min-width: 2em;
    color: grey;
    background-color: gainsboro;
    cursor: pointer;
    box-shadow: 0.1em 0.1em 0.1em var(--strFuncShadeColor);
    margin-left: 4px;
}

.FuncButton3:active {
    box-shadow: none;
}

.FuncButton3:hover {
    color: var(--strExBGColor);
    background-color: var(--strTextColor);
}


div.NavButtonBar {
    background-color: var(--strNavBarColor);
    text-align: center;
    margin: 0.25rem 0;
    clear: both;
    font-size: 1em;
    padding: 0.2em;
    box-sizing: border-box;
}

.NavButton {
    border-style: solid;
    border-radius: 0.5em;
    padding: 0.5em;
    min-width: 3em;

    border-left-color: var(--strNavLightColor);
    border-top-color: var(--strNavLightColor);
    border-right-color: var(--strNavShadeColor);
    border-bottom-color: var(--strNavShadeColor);
    background-color: var(--strNavBarColor);
    color: var(--strNavTextColor);

    border-width: 1pt;
    cursor: pointer;
    box-shadow: 0.2em 0.3em 0.2em var(--strNavShadeColor);
}

.NavButton:active {
    box-shadow: none;
}

.NavButton:hover {
    color: var(--strNavBarColor);
    background-color: var(--strNavTextColor);
}

a {
    color: var(--strLinkColor);
}

a:visited {
    color: var(--strVLinkColor);
}

a:hover {
    color: var(--strLinkColor);
}

div.CardStyle {
    position: absolute;
    font-family: var(--strFontFace);
    font-size: 1em;
    border-style: solid;
    border-radius: 0.5em;
    padding: 0.5em;
    min-width: 2em;
    border-width: 1pt;
    color: var(--strTextColor);
    box-shadow: 0.2em 0.3em 0.2em var(--strTextColor);
    background-color: var(--strExBGColor);
    left: -50px;
    top: -50px;
    overflow: visible;
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}

div.CardStyleCentered {
    text-align: center;
}

.rtl {
    text-align: right;
    font-size: 140%;
}

.button-mel-hotpot{
    align-items: center;
}

.summary-mel{
    background-color: white;
    color: black;
    border-color: white;
    width: 20px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 0.3em;
    box-shadow: 0.1em 0.1em 0.1em darkgrey;
}

.summary-mel:hover{
    background-color: lightgray;
    color: grey;
    border-color: white;
    width: 20px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 0.3em;
    box-shadow: 0.1em 0.1em 0.1em darkgrey;
}

.summary-mel--selected{
    background-color: lightgray;
    color: grey;
    border-color: lightgray;
    width: 20px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 0.3em;
    box-shadow: 0.1em 0.1em 0.1em lightgray;
    cursor: none;
}

.summary-mel2{
    border-color: white;
    background-color: white;
    color: grey;
    width: 30px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 0.3em;
    box-shadow: 0.1em 0.1em 0.1em darkgrey;
}

.summary-mel2:hover{
    border-color: white;
    background-color: black;
    color: white;
}

.summary-mel3{
    border-color: white;
    background-color: white;
    color: grey;
    width: 40px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 0.3em;
    box-shadow: 0.1em 0.1em 0.1em darkgrey;
}

.summary-mel3:hover{
    border-color: white;
    background-color: black;
    color: white;
}

.number-mel{
    display: flex;
    align-content: center;
}

.span-mel
{
    border-bottom: 2px dotted #17a2b8;
    cursor: help;
}

.row-mel {
	justify-content: center;
	display: flex;
	flex-direction: row;
}