/* Keeps the official stylesheet, and corrects the download box.
   Upstream CSS targets #download, but the page uses class="download". */

.download {
  position: relative;
  float: right;
  width: calc(100% - 1.2em);
  max-width: 760px;
  box-sizing: border-box;
  padding-right: 200px;
  overflow: hidden;
}

.download > div {
  float: none !important;
  width: auto !important;
}

.downloadimage {
  position: absolute;
  right: 6px;
  top: 52px;
  width: 188px;
  float: none;
  text-align: center;
}

.downloadimage img {
  max-width: 180px;
  height: auto;
}

.download h2 {
  margin-top: 0;
  color: #fff;
}

.download ul {
  list-style-type: none;
  margin: 0;
  padding-left: 8px;
}

.download li {
  padding-bottom: 8px;
}

#content .download a,
#content .download a:visited {
  color: #e3e3e3;
  font-weight: bold;
  text-decoration: none;
}

#content .download a:hover,
#content .download a:active {
  background-color: transparent;
  text-decoration: underline;
  color: #fff;
  text-shadow: 0 0 9px #fff;
}

#content .download a.win-btn,
#content .download a.win-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin: 6px 0 4px;
  padding: 10px 16px;
  background: #fff;
  color: #1a1a6e;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 3px 0 #3d3d78, 0 6px 14px rgba(0, 0, 0, 0.28);
}

#content .download a.win-btn img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

#content .download a.win-btn:hover,
#content .download a.win-btn:active {
  background: #ffe14a;
  color: #1a1a6e;
  text-decoration: none;
  text-shadow: none;
  border-color: #ffe14a;
}

.intro-wrap::after,
#content::after,
#head::after,
.head-inner::after {
  content: "";
  display: block;
  clear: both;
}

#head {
  overflow: hidden;
  min-height: 118px;
  padding-left: 0;
  padding-right: 0;
}

.head-inner,
#frame {
  width: min(1120px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

#frame {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

#maincol {
  float: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#news {
  float: none;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
}

.menu1 {
  float: none;
  width: 100%;
  box-sizing: border-box;
}

#content {
  float: none;
  width: auto;
  max-width: none;
  margin-left: 0;
  box-sizing: border-box;
  min-width: 0;
}

#mainfeature {
  clear: both;
  min-height: 280px;
  background-size: contain;
  background-position: right center;
}

#html5-badge {
  padding-top: 12px;
}

#tail p {
  margin: 0.4em 0;
}

#language a.on {
  font-weight: bold;
  text-decoration: underline;
}

.guide {
  clear: both;
  margin-top: 0.4em;
}

.guide h2 {
  margin-top: 1.15em;
  margin-bottom: 0.35em;
  color: #2a2a6a;
  border-bottom: solid thin #7f7faa;
  font-size: 1.2em;
}

.guide ul,
.guide ol {
  line-height: 1.55;
  margin-top: 0.4em;
}

.faq dt {
  font-weight: bold;
  margin-top: 0.85em;
}

.faq dd {
  margin: 0.2em 0 0.35em;
}

html[dir="rtl"] #language {
  float: left;
  margin-left: 1em;
  margin-right: 0;
}

html[dir="rtl"] #news ul {
  padding-left: 8px;
  padding-right: 25px;
}
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
  font-size: 90%;
}

html[dir="rtl"] #content {
  border-radius: 25px 0 25px 25px;
}

html[dir="rtl"] .menu1 {
  border-radius: 0 10px 10px 0;
}

html[dir="rtl"] .download {
  padding-right: 0.4em;
  padding-left: 200px;
}

html[dir="rtl"] .downloadimage {
  right: auto;
  left: 6px;
}

html[dir="rtl"] #mainfeature {
  background-position: left center;
}

html[dir="rtl"] #mainfeature ul {
  margin: 0 0 0 53%;
  border-right: none;
  border-left: thin solid silver;
}

@media (max-width: 760px) {
  #frame {
    grid-template-columns: 1fr;
  }

  .download {
    float: none;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
