body {
  background: #eaf0f8;
  margin: 0.3em;
  font-family:
    "Arial Unicode MS", "Lucida Sans Unicode", Tahoma, Verdana,
    "Palatino Linotype", sans-serif;
  line-height: 120%;
}

a {
  text-decoration: none;
  color: #18a3fa;
}

a:hover {
  text-decoration: underline;
}

.gdarticle {
  background: #fffef2;
  margin-top: 0.1em;
  margin-bottom: 0.35em;
  padding: 5px;
  padding-top: -10px;
  border: 1px solid #c7d4dc;
  border-radius: 8px;
}

.gdactivearticle {
  background: #fffef2;
  border: 1px solid #92b0dd;
}

.gdarticleseparator + script + .gdactivearticle .gddictname {
  border-top: 1px solid #92b0dd;
  border-right: 1px solid #92b0dd;
}

.gddictname {
  display: flex; /* needed to be able to reorder elements, e.g. icon, dictionary name, collapse icon */
  font-size: 12px;
  font-weight: normal;
  float: right;
  border: 0px;
  border-top: 1px solid #c7d4dc;
  border-right: 1px solid #c7d4dc;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 6px;
  margin: -6px;
  margin-bottom: 5px;
  margin-left: 2px;
  padding-right: 0.4em;
  color: #34517d;
  background: #dde6f5;
  user-select: none;
  cursor: default;
}

/* Actual text with the dictionary title */
.gddicttitle {
  display: block;
  order: 1;
}

.gdactivearticle .gddictname {
  border-top: 1px solid #92b0dd;
  border-right: 1px solid #92b0dd;
  color: darkblue;
  background: #cfddf0;
}

.gdcollapsedarticle .gddictname {
  opacity: 0.7;
}

/* Nice diagonal pattern for the collapsed article */
.gdcollapsedarticle {
  background-image: -webkit-linear-gradient(
    left top,
    #ccc 0%,
    #ccc 25%,
    #bbb 25%,
    #bbb 50%,
    #ccc 50%,
    #ccc 75%,
    #bbb 75%
  );
  background-size: 50px 50px;
}

/* Move the collapse/expand buttons to the last, 3rd position */
.collapse_expand_area {
  display: block;
  order: 3;
}

.gddicticon {
  display: block;
  vertical-align: text-bottom;
  padding-right: -1em;
  padding-left: 0.3em;
  order: 2;
}

.gdexpandicon,
.gdexpandicon:hover,
.gdcollapseicon,
.gdcollapseicon:hover {
  width: auto; /* Maintain aspect ratio */
  height: 100%; /* Set height to 100% of the container */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain; /* Ensure the image scales proportionally */
  vertical-align: text-bottom;
}

.gdexpandicon {
  content: url("qrc:///icons/expand_article.svg");
}

.gdexpandicon:hover {
  content: url("qrc:///icons/expand_article_hovered.svg");
}

.gdcollapseicon {
  content: url("qrc:///icons/collapse_article.svg");
}

.gdcollapseicon:hover {
  content: url("qrc:///icons/collapse_article_hovered.svg");
}

.gdarticleseparator {
  display: none;
  clear: both;
}

/* The 'From ' string which preceeds dictionary name in the heading */
.gdfromprefix {
  display: none;
}

/* Headers */
h3 {
  color: inherit;
  font-family: Arial, sans-serif;
}

/* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > div:first-child .dsl_headwords {
  margin-top: -3px;
  display: inline-block;
}

.mwiki .toc,
.mwiki .metadata,
.mwiki .mbox-small,
.mwiki .plainlinks {
  display: none;
}

.gddicticon img {
  border: 0;
  height: 15px;
  vertical-align: text-top;
}

/* Text selection */
::selection {
  background: #839ec7;
  color: #fff;
}

code::selection {
  background: #839ec7;
}

/******** DSL Dictionaries ****************/

/* DSL headwords */
.dsl_headwords {
  color: inherit;
  font-family: Arial, sans-serif;
}

/* Formatting */
.dsl_b {
  font-family: Arial, sans-serif;
}

.dsl_ex,
.dsl_ex .dsl_opt {
  color: slategray;
}

.dsl_ref {
  color: #0000dd;
}

.dsl_url {
  color: #0000dd;
}

/* Stress settings */
.dsl_stress_without_accent,
.dsl_opt .dsl_ex .dsl_stress_without_accent {
  display: none;
  color: green;
}

.dsl_stress_with_accent,
.dsl_opt .dsl_ex .dsl_stress_with_accent {
  display: inline;
  color: #dd0000;
}
.dsl_stress,
.dsl_opt .dsl_ex .dsl_stress {
  display: inline;
  color: blue;
}

/* Sound icon */
.dsl_s_wav img {
  display: none;
}

.dsl_s_wav a {
  text-decoration: none;
  user-select: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  -webkit-border-radius: 100px;
  text-align: center;
  vertical-align: text-bottom;
  color: #fff;
  border: 1px solid #798415;
  -webkit-box-shadow:
    1px 1px #ccc,
    inset -1px -1px #4e7500;

  background: -webkit-gradient(
    linear,
    left top,
    right bottom,
    color-stop(0%, rgba(191, 210, 85, 1)),
    color-stop(50%, rgba(142, 185, 42, 1)),
    color-stop(51%, rgba(114, 170, 0, 1)),
    color-stop(100%, rgba(158, 203, 45, 1))
  );
}

.dsl_s_wav a:hover {
  background: -webkit-gradient(
    linear,
    left top,
    right bottom,
    color-stop(0%, #e6f0a3),
    color-stop(50%, #d2e638),
    color-stop(51%, #c3d825),
    color-stop(100%, #dbf043)
  );

  border: 1px solid #a2b01c;
  -webkit-box-shadow:
    1px 1px #ccc,
    inset -1px -1px #8a991a;
}

.dsl_s_wav a:active {
  -webkit-box-shadow:
    1px 1px #ccc,
    inset 1px 1px #b1c421;
}

.dsl_s_wav a:after {
  display: inline-block;
  font-family: "Webdings", sans-serif;
  content: "X";
  width: 18px;
  height: 18px;
  font-size: 16px;
  text-align: center;
  vertical-align: center;
  -webkit-background-clip: text;
  color: #e6ef8f;
  -webkit-text-stroke: 1px #51580e;
}

.dsl_s_wav a:hover:after {
  -webkit-text-stroke: 1px #656e11;
}

/******** Verbix Dictionaries ****************/

.sdct_h .normal {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #000000;
  font-weight: normal;
  text-decoration: none;
}

.sdct_h .irregular {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #ff0000;
  font-weight: bold;
  text-decoration: none;
}

.sdct_h .orto {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #0000ff;
  font-weight: normal;
  text-decoration: none;
}

.sdct_h .archaic {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #800080;
  font-weight: normal;
  text-decoration: none;
}

.sdct_h .notused {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #808080;
  font-weight: normal;
  text-decoration: none;
}

.sdct_h .pronoun {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  color: #008000;
  font-weight: normal;
  text-decoration: none;
}

.sdct_h > table {
  border: 1px solid #444444;
  border-collapse: collapse;
}

.sdct_h td.verbtable {
  border: 1px solid #444444;
}

.sdct_h th {
  background-color: #a6c9ef;
  font-weight: bold;
}

.sdct_h .mini {
  font-size: 8pt;
  font-weight: normal;
  color: #808080;
}

.sdct_h div.spacerline {
  clear: both;
  margin-left: 8px;
  width: 100%;
  border-top: 1px solid #ccc;
}

.sdct_h div.spacer {
  clear: both;
}

.sdct_h div.float {
  margin-left: 8px;
  float: left;
}

.sdct_h div.float400 {
  margin-left: 8px;
  float: left;
  width: 400px;
}

.sdct_h div.float250color {
  margin-left: 8px;
  float: left;
  width: 250px;
  border-style: dashed;
  border-color: #0033cc;
  border-collapse: collapse;
  border-width: 1px;
  background-color: #eeeeee;
  padding: 8px 8px 8px 8px;
}
