/* The simple pages of quranful.com: About, Contact, and Thank you. (The reader itself uses reader.css.) */

html {
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

/* The blue bar at the top, like the reader's: the same height and shadow, and it stays at the top when scrolling.
   "< QuranFul" goes back to the reader. */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 59px;                    /* the same as the reader's bar (reader.css #header) */
  padding: 0 12px;
  background-color: #005172;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.page-header a {
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
}
.page-header svg {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;          /* the same rounded strokes as the reader's menu icon */
}
.page-header a:hover {
  opacity: 0.85;
}
@media only screen and (min-width: 480px) {
  .page-header {
    height: 63px;                  /* the reader's bar is a little taller from this width on */
  }
}
/* In the installed app: the same thin line under the window's title bar as in the reader */
@media (display-mode: standalone) {
  .page-header {
    border-top: 1px solid #888888;
  }
}

/* The page text: one readable column */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}
h1 {
  font-size: 28px;
  font-weight: 500;
  color: #005172;
  margin: 24px 0 8px;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  color: #005172;
  margin: 32px 0 4px;
}
p {
  margin: 10px 0;
}
a {
  color: #00759A;
}
.page-note {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #dde4ea;
  color: #6b7c88;
}

/* The contact form */
.contact-form label {
  display: block;
  margin: 18px 0 4px;
  font-weight: 500;
}
.contact-form .optional {
  font-weight: 400;
  color: #6b7c88;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
  font-size: 16px;               /* 16px or more: iPhones don't zoom in when it is tapped */
  padding: 9px 10px;
  border: 1px solid #c8d3dc;
  border-radius: 6px;
  background-color: #f7f9fb;
  color: #222;
}
.contact-form textarea {
  min-height: 200px;
  resize: vertical;
}
.contact-form input,
.contact-form textarea {
  display: block;                  /* each box on its own line (so Send stays underneath) */
  max-width: 520px;               /* all four boxes the same width on computers: one tidy block (phones: the full width) */
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #7fd3f0;
  border-color: #00759A;
}
.contact-form button {
  margin-top: 22px;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 17px;
  color: #ffffff;
  background-color: #00759A;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #005172;
}
.trap {
  display: none;                 /* the spam trap: people never see it, robots fill it in */
}

/* Night mode (chosen in the reader's Settings) */
html.night {
  color-scheme: dark;
}
html.night body {
  background-color: #15191d;
  color: #d6dbe0;
}
html.night .page-header {
  background-color: #0d3546;
}
html.night h1,
html.night h2 {
  color: #7fc3dc;
}
html.night a {
  color: #7fc3dc;
}
html.night .page-header a {
  color: #ffffff;               /* the top bar's link stays white */
}
html.night .page-note,
html.night .contact-form .optional {
  color: #94a3ae;
}
html.night .page-note {
  border-top-color: #3a434b;
}
html.night .contact-form input,
html.night .contact-form select,
html.night .contact-form textarea {
  background-color: #2a3138;
  border-color: #3a434b;
  color: #d6dbe0;
}
