:root {
  --white: #ffffffff;
  --green: #004234ff;
  --green-lighter: #245c51ff;
  --green-superlight: #e6ecebff;
  --red: #e0492fff;
  --red-light: #f9dbd5ff;
  --yellow: #f8ef71ff;
  --grey: #41414a;
  --grey-light: #eee;
  --paper: #f8f8efff;

  --sans: 'Cera Pro', 'Helvetica Neue', helvetica, arial, sans-serif;
  --serif: 'Newsreader', serif;
}

* {
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--paper);
  font-family: var(--serif);
  line-height: 1.35;
  font-size: 14pt;
}

header,
footer,
section {
  width: auto;
  padding: 0 .5rem;
  overflow-y: clip;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: bold;
  margin-bottom: .4em;
  /*  padding-left: 1.5rem;
  text-indent: -1.5rem;*/
}

h1 {
  margin-top: 0;
  color: var(--white);
  font-size: 2em;
}

h1.pre {
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 1.5em;
  margin-top: 1em;
  margin-bottom: 0;
}

h2 {
  color: var(--green);
  font-size: 1.5em;
  margin-top: 2em;
  text-align: center;
  background-image: url(stroke.svg);
  background-repeat: no-repeat;
  background-size: 10em;
  padding-bottom: .5em;
  margin-bottom: 0;
  background-position: 50% .9em;
}

/* h2::after {
  display: block;
  content: "";
  background-image: url(stroke.svg);
  width: 5em;
  height: 2em;
} */

h3 {
  color: var(--green);
  font-size: 1.2em;
  margin-top: 1.5em;
}

h2+h3 {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
}

img.team {
  /* position: absolute; */
  width: 150%;
  margin: 0 auto;
  position: relative;
  left: -25%;

  max-width: 975px;

  /* margin-top: -1em; */
  margin-bottom: 1em;
}

.alert {
  background-color: var(--red);
  background-image: none;
  padding: .3em;
  color: var(--white);
  margin-bottom: .7em;
}

.block {
  width: 100%;
}

.block img {
  width: 100%;
}

.block.space {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.nobreak {
  white-space: nowrap;
}

ul {
  position: relative;
  list-style: none;
  padding-left: 1.8em;
}

ul li:before {
  content: "–";
  position: absolute;
  left: .7em;
}

ul li {
  margin-bottom: .3em;
}

.clear {
  clear: both;
}

.right {
  text-align: right;
}

p.indent {
  padding-left: 1rem;
}

p.note {
  font-size: .8em;
  font-style: italic;
}

p.quote {
  min-height: 3.5rem;
  padding: 1.4rem;
  text-align: center;
}

.quote.big {
  font-style: italic;
  font-size: 1.2em;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: var(--orange);
}

.btn {
  /* font-size: 1em;
  line-height: inherit;
  border: none; */
  /* box-sizing: content-box; */
  line-height: 1.5em;
  display: inline-block;
  padding: .3em 1em;
  height: 2em;
  vertical-align: middle;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-weight: bold;
  /* border-radius: .2rem; */
  margin: .2rem .3rem;

  transition: 0.3s background-color;
}

.btn.date {
  background-color: var(--yellow);
  color: var(--green);
  padding: .3em;
  width: 2em;
  text-align: center;
  margin-bottom: .55em;
}

.btn.taken {
  background-color: var(--green-superlight);
  color: var(--green);
}

/* input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus */
.btn.chosen {
  background-color: var(--red);
  color: var(--white);
}

.prayer {
  text-align: center;
}

.prayer .line {
  display: inline-block;
}

.choice {
  margin: .2rem .3rem;
  color: inherit;
}

a.choice::before {
  content: "\00a0";
  padding-top: .15em;
  display: inline-block;
  margin-right: .5em;
  width: 1.5em;
  height: 1.35em;
  text-align: center;
  background-color: var(--yellow);
  border: 1px solid var(--green);
  /* color: var(--grey); */
  background-color: var(--red-light);
  border: 1px solid var(--red);
}

a.choice.chosen::before {
  content: "✓";
  background-color: var(--red);
  color: var(--white);
  border-color: transparent;
}

a.block {
  display: block;
  background-size: cover;
}

form {
  /* position: relative; */
  display: block;
  /* border: 1px solid var(--grey); */
  /* box-shadow: 0 0 8px rgba(0, 0, 0, .2); */
  padding: 2rem 1rem 3rem 2rem;

  margin-left: -1rem;
  width: calc(100% + 2rem);
  background-image: url(box.svg);
  background-size: auto 100%;
}

input {
  /* box-sizing: border-box; */
  display: inline-block;
  vertical-align: middle;
  font-size: inherit;
  height: 1.8rem;
  padding: .2rem .8rem;
  background-color: var(--green-superlight);
  border: none;
  color: inherit;
  font-family: inherit;
  /* border-radius: .2rem; */
  margin: .2rem 0;
  margin-bottom: .4rem;
  width: 100%;
}

input+.btn {
  margin-left: 0;
}

/* .background {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
} */

.shadow-box {
  position: static;
}

.shadow-box::after {
  z-index: -2;
  display: block;
  content: "text";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: red;
}

.emoji {
  font-style: normal !important;
}

.hidden,
.toggle {
  display: none;
}

.hidden.reveal,
.toggle.reveal {
  display: block;
}

.toggler {
  cursor: pointer;
}

.toggler:before {
  content: "› ";
}

/* iframe {
  border: none;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  height: 60vmin;
} */

#barometer {
  position: relative;
  height: 2.5rem;
}

#barometer span {
  position: absolute;
}

.meter {
  transition: width 1.2s cubic-bezier(0, 0.2, 0.3, 1);
  width: 10%;
}

.inview .meter {
  width: 100%;
}

/* @media (min-width: 500px) {
  h1 {
    font-size: 2.7rem;
  }
} */

@media (min-width: 620px) {
  .wide {
    margin-top: 2rem;
  }
}

@media (min-width: 650px) {
  img.team {
    width: 100%;
    position: static;
    left: unset;
  }
}

@media (min-width: 780px) {
  form {
    margin-left: -3rem;
    padding-left: 3rem;
    padding-right: 0;
  }
}

/*
@media (min-width: 1450px) {
  main {
    background-image: url(background.svg);
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}
*/
@media (hover: hover) {
  a.choice:hover::before {
    content: "✓";
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
  }

  .btn:hover {
    background-color: var(--green);
    color: var(--yellow);
  }

  .btn.date:hover,
  .btn.chosen {
    background-color: var(--red);
    color: var(--white);
  }

  .toggler:hover {
    color: var(--pink);
  }

  footer a:hover {
    text-decoration: underline;
  }
}

.center {
  text-align: center;
}

header {
  background-color: var(--green);
  color: var(--white);
  clip-path: ellipse(200vmin 150% at 50% -50%);
  background-image: url(africa.svg);
  background-size: 600px;
  background-position: 60% 0%;
  background-repeat: no-repeat;
  /* padding-bottom: clamp(10em, 50vmin, 300px); */
  padding-bottom: clamp(14em, 60vmin, 300px);
}

/* header img.afrika {
  max-width: 1024px;
  margin: 0 auto;
} */

.content {
  max-width: 650px;
  margin: 0 auto;
  overflow-x: visible;
}

header .content {
  padding: 0 .5em;
}

#logo {
  display: inline-block;
  height: 2em;
  width: auto;
  margin: 1em auto;
}

.caption {
  font-family: var(--sans);
  font-size: .8em;
  margin-top: -.5em;
  margin-bottom: 1.5em;
  text-align: center;
}

.box {
  background-color: var(--yellow);
  color: #000;
  font-weight: bold;
  padding: .3em .8em;
  display: inline-block;
}

.box+h1 {
  margin-top: .25em;
}

footer {
  margin-top: 3em;
  background-color: var(--green);
  color: var(--white);
  padding: 2em .5em;
}

footer h3 {
  color: var(--yellow);
}

.smallcaps {
  font-variant: small-caps;
}

.verse {
  text-align: center;
  width: 70vw;
  margin-left: 15vw;
  margin-bottom: 1em;
}

.verse:nth-of-type(2n) {
  margin-left: 5vw;
}

.verse {
  padding: 1em auto;
}

.verse * {
  transition: all 2s cubic-bezier(0.6, 0, 1, 0.5);
}

.verse .line {
  user-select: none;
}

.verse .ref {
  padding-left: 1rem;
  white-space: pre;
}

.verse .ref::before {
  content: " —\A0";
  content: "— ";
}

.verse.inview .line {
  background-color: rgba(0, 0, 0, 0.1);
}

.verse.inview .blur {
  filter: blur(3em);
  color: transparent;
  /* transform: scale(1.3); */
}
