html {
  background: #fff;
  color: #333;
}

html, button, input, select, textarea {
  font: 16px/1.5 'Trebuchet MS', sans-serif;
  text-align: justify;
}

body {
  margin: 0 auto;
  padding: 0;
}

a { color: #0000ff; }

code, pre {
  color: #444;
  font-family: 'Courier New', 'Courier', monospace;
}

code {
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  padding: 0 4px 1px;
}

pre { overflow-x: auto; }

pre > code { display: block; }

.offscreen {
  left: -9999px;
  position: absolute;
}

/* -- Header ---------------------------------------------------------------- */
.hd {
  background: #fff;
  border-bottom: 1px solid #efefef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
}

.hd .logo {
  margin: 0 0.2em 0 0.4em;
  width: 56px;
  position: relative;
  top: 15px;
}

.hd .nav ul {
  margin: 0;
  padding: 0;
}

.hd .nav li {
  display: inline-block;
  line-height: 48px;
  margin: 0 0.6em;
}

.hd .nav a, .hd .nav {
  border: 0;
  color: #555;
  padding: 5px 8px;
  text-decoration: none;
  background: transparent;
}

.hd .nav a:hover {
  background: #efefef;
}

.hd .title {
  color: #333;
  font-size: 2em;
  line-height: 48px;
  margin: 0;
  white-space: nowrap;
}

.hd .title a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hd {
    flex-direction: column;
  }

  .hd .logo {
    height: 24px;
    width: auto;
    top: 5px;
  }

  .hd .nav,
  .hd .title {
    text-align: center;
  }

  .hd .nav li {
    margin-right: 0.3em;
  }

  .hd .nav a {
    padding: 0;
  }

  .hd .title {
    font-size: 1.4em;
  }
}

/* -- Content --------------------------------------------------------------- */
.bd,
.ft {
  padding: 0 30px;
}

.bd {
  margin: 0 auto;
  max-width: 1140px;
  hyphens: auto;
}

.hero {
  font-size: 3em;
  line-height: 1.5;
  padding: 0 3em;
  text-align: center;
}

.hero .desc {
  font-size: 1rem;
  display: block;
}

.url {
  background: #fbfbfb;
  border: 1px solid #dfdfdf;
  cursor: text;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
  width: 100%;
}

.url-container {
  display: flex;
}

.url-copy-button {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: none;
}

.url-copy-button:hover {
  background: #f5f5f5;
  border-color: #efefef;
}

.url-copy-button:active {
  background: #badeff;
  border-color: #8cc3f6;
}

.url-copy-button:disabled {
  background: none;
  border-color: transparent;
  cursor: not-allowed
}

.url-copy-button:disabled img {
  opacity: 0.3;
}

.url-copy-button img {
  display: block;
}

.url-helper {
  display: flex;
  flex-wrap: wrap;
  padding: 0 3em;
}

.url-helper .column {
  flex: 1;
  padding: 0 1.5em;
}

.url-helper h2 { text-align: center; }

.url-paste {
  flex: 2 100%;
}

#url-form {
  text-align: center;
}

#url {
  font-size: 1.3em;
  width: 80%;
}

@media (max-width: 975px) {
  .bd,
  .ft,
  .url-helper .column {
    padding: 0 1em;
  }

  .hero { font-size: 1.6em; }
  .url-helper { padding: 0 1em; }
  .url-helper h2 { font-size: 1.4em; }
  #url { font-size: 1em; }
}

@media (max-width: 767px) {
  .hero { font-size: 1.4em; }

  .hero,
  .url,
  .url-helper,
  .url-helper .column,
  #url-form { padding: 0; }

  .url,
  #url { font-size: 0.9em; }

  #url { width: 100%; }

  .url-helper {
    display: block;
  }

  .url-helper h2 {
    font-size: 1.2em;
    margin: 1.5em 0 0.8em;
    text-align: left;
  }

  .url-helper ul {
    padding-left: 1.5em;
  }
}

/* -- Purge------------------------------------------------------------------ */

.purge textarea {
  width: 100%;
  overflow: hidden;
  height: 150px;
  border-width: 1px;
  border-color: #888;
}

.purge input[name=patron] {
  display: inline-block;
  border-width: 1px;
  border-color: #888;
  margin: 0;
}

.purge input[type=submit] {
  display: block;
  margin: 0 auto;
}

.purge .report {
  text-align: left;
}

.purge .wait:before {
  content: "👆";
  margin-right: 5px;
}

.purge .success:before {
  content: "👍";
  margin-right: 5px;
}

.purge .success {
  color: green;
}

.purge .error:before {
  content: "👎";
  margin-right: 5px;
}

.purge .error {
  color: red;
}

/* -- Misc ------------------------------------------------------------------ */
.invalid {
  background: #FFF7F7;
  border-color: #FFCCCC;
}

.valid {
  background: #F2FFEB;
  border-color: #98f9a0;
}

.hidden {
  display: none;
}

/* -- Footer ---------------------------------------------------------------- */
.ft {
  border-top: 1px solid #efefef;
  color: #888;
  font-size: 0.8em;
  margin: 3em 0 0;
}

.ft a {
  color: inherit;
  text-decoration: underline;
}

.question {
  border: 1px solid transparent;
  margin: 1em -1em;
  padding: 0.5em 1em;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.question h2 {
  font-size: 1.3em;
  line-height: 1.3;
  margin: 0 0 0.7em;
}

.question h2 a {
  color: inherit;
  text-decoration: none;
}

.question h2 a:hover {
  text-decoration: underline;
}

.question > p:last-child {
  margin-bottom: 0;
}

.question:target {
  background: rgba(255, 255, 0, 0.1);
  border-color: rgba(255, 255, 0, 0.5);
}


/* -- Carbon styles from https://codepen.io/team/buysellads/pen/oNgqYgL ----- */

#carbonads * {
  margin: initial;
  padding: initial;
}

#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
}

#carbonads {
  display: flex;
  z-index: 100;
  position: fixed;
  right: 30px;
  bottom: 30px;

  max-width: 330px;
  background-color: #efefef;
  border: 1px solid #efefef;
}

#carbonads a {
  text-decoration: none;
  color: inherit;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  display: block;
  position: relative;

  overflow: hidden;
}

#carbonads .carbon-wrap {
  display: flex;
}

#carbonads .carbon-img {
  display: block;
  margin: 0;

  line-height: 1;
}

#carbonads .carbon-img img {
  display: block;
}

#carbonads .carbon-text {
  margin-bottom: 16px;
  padding: 10px;

  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

#carbonads .carbon-poweredby {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 8px;

  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-top-left-radius: 3px;
  background: #f1f1f2;
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
  div:has(#_carbonads_js) {
    min-height: 102px;
  }

  #carbonads {
    float: initial;
    position: relative;
    right: initial;
    bottom: initial;
    margin: 0 auto;

    max-width: 330px;
  }

  #carbonads .carbon-wrap {
    display: flex;

    flex-direction: row;
  }

  #carbonads .carbon-img {
    margin: 0;
  }

  #carbonads .carbon-text {
    padding: 10px 10px 0 10px;

    font-size: 12px;
  }

  #carbonads .carbon-poweredby {
    position: absolute;
    right: 0;
    bottom: 0;

    text-align: center;
    border-radius: 0;
    border-top-left-radius: 3px;
  }
}
