body {
  height: 100%;
}

/****************************************
* Typography
****************************************/

h1 {
  font: normal bold 36px/1em 'Noto Sans JP';
  color: #212529;
}

h2 {
  font: normal bold 26px/1.2em 'Noto Sans JP';
  color: #212529;
}

h3 {
  font: normal bold 16px/1.5em 'Noto Sans JP';
  color: #212529;
}

p, li, a {
  font: normal normal 14px/1.5em 'Noto Sans JP';
}

a {
  color: #354656;
  font-weight: 600;
}

a:hover {
  color: #51687e;
  text-decoration: none;
}

hr {
  margin: 1rem 0;
  border-top: 4px dotted rgba(220, 225, 228, .5);
}

hr + *,
hr + [type="submit"] {
  margin-top: 0;
}

.beliefs hr {
  margin: 2rem 0;
}

/****************************************
* Images and SVGs
****************************************/

img {
  width: 100%;
}

svg,
.accent3 a svg {
  width: 20px;
  height: 20px;
  fill: #354656;
}

svg:hover {
  fill: #354656;
}

/****************************************
* Form elements
****************************************/

label {
  margin: 1rem 0 4px;
  font-size: 14px;
  font-weight: 300;
}

.errorMessage,
label.invalid {
  color: #be1010;
}

input {
  height: 34px;
}

input.invalid,
textarea.invalid {
  border: 1px solid #be1010;
}

input.invalid,
input:focus {
  outline: none;
}

textarea {
  display: block;
  height: 84px;
}

input,
textarea {
  background-color: transparent;
  border: 1px solid #efefef;
  border-radius: 3px;
  width: 100%;
  padding-left: 10px;
  font-size: 14px;
  -webkit-appearance: none;
}

[type="submit"] {
  background-color: #354656;
  color: #ffffff;
}

[type="submit"]:hover {
  background-color: #5c7893;
}

/****************************************
* Header
****************************************/

header {
  background-color: #ffffff;
  /* box-shadow: 2px 4px 10px rgba(83, 83, 83, .5); */
}

header .logo {
  width: 100%;
  max-width: 200px;
}

/****************************************
* Top bar
****************************************/

.top-nav .mini-menu {
  display: none;
}

/****************************************
* Navigation
****************************************/

.navigation {
  background-color: #354656;
}

.navbar {
  position: static;
  width: 100%;
  padding: 0;
}

.navbar-brand {
  margin: 0 auto;
}

.navbar-toggler {
  position: absolute;
  top: 2.25rem;
  right: 1rem;
}

.navbar-toggler svg {
  width: 40px;
  height: 40px;
  fill: #354656;
}

.navbar-nav {
  padding: .5rem 1rem;
}

.navbar-nav .nav-item:hover {
  background-color: #51687e;
}

.navbar-nav .nav-item.active {
  background-color: rgba(237, 243, 247, .2);
}

.navbar-nav .nav-item a {
  color: #ffffff;
  font-size: 17px;
}

.navbar-nav .nav-link {
  text-align: center;
}

.navbar-nav .dropdown-menu {
  margin: 0;
  background-color: #51687e;
  border: none;
  border-radius: 0;
}

.navbar-nav .dropdown-menu a.dropdown-item {
  margin-left: -0px;
  border-bottom: 1px solid rgba(220, 225, 228, .1);
  padding: .5rem 1rem;
  text-align: center;
}

.navbar-nav .dropdown-menu a.dropdown-item:last-of-type {
  border: none;
}

.navbar-nav .dropdown-menu a.dropdown-item:hover {
  background-color: #354656;
}

@media (min-width: 979px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
      margin-top: -1px;
  }
}

/****************************************
* Page banners
****************************************/

.homeBanner,
.pageBanner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.homeBanner {
  height: calc(200px + (600 - 200) * (100vw - 320px) / (1140 - 320));
  max-height: 600px;
}

.pageBanner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(200px + (400 - 200) * (100vw - 320px) / (1140 - 320));
  max-height: 400px;
}

.pageBanner h1 {
  color: #ffffff;
  font-size: 55px;
  text-shadow: 1px 3px 10px rgba(0, 0, 0, .5);
  text-align: center;
}

/****************************************
* Accents
****************************************/

.accent1 {
  background-color: #ebebeb;
}

.accent2 {
  background-color: #4d667d;
}

.accent2 h1,
.accent2 h2 {
  color: #ffffff;
}

.accent2 a,
.accent2 p {
  color: #DCE1E4;
}

.accent3 {
  background-color: #f9f9f9;
}

.accent3 svg {
  width: 60px;
  height: 60px;
}

.accent4 {
  background-color: #354656;
}

.accent5 {
  background-color: #edf3f7;
}

/****************************************
* Color
****************************************/

.reference-color {
  color: #5c7893;
  font-weight: bold;
}

.color-1 {
  color: #5c7893;
}

.color-2 {
  color: #d6dee0;
}

.color-3 {
  color: #be1010;
}

/****************************************
* Styles
****************************************/

.style-1 {
  margin-bottom: 1rem;
  border-bottom: 4px dotted #354656;
  padding-bottom: 1rem;
  font-size: 18px;
  color: #354656;
}

/****************************************
* Buttons
****************************************/

.button {
  margin-top: 1rem;
  border-radius: 20px;
  border: 2px solid #5c7893;
  padding: .5rem 1rem;
  color: #5c7893;
}

.button:hover {
  background-color: #5c7893;
  color: #d6dee0;
}

.button-1 {
  margin-top: 1rem;
  border-radius: 20px;
  border: 2px solid #d6dee0;
  padding: .5rem 2rem;
  color: #d6dee0;
}

.button-1:hover {
  background-color: #d6dee0;
  color: #5c7893;
}

[type="submit"] {
  display: inline-block;
  margin-top: 2rem;
  border-radius: 5px;
  padding: .75rem 1rem;
  width: auto;
  height: auto;
}

/****************************************
* Call to action section
****************************************/

.action .col-md-4 {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.action svg {
  margin-right: 10px;
  width: 150px;
  height: 60px;
  fill: #713211;
}

.action p {
  margin-bottom: 0;
}

/****************************************
* Beliefs
****************************************/

.flex-row {
  display: flex;
}

.flex-row > div:last-of-type {
  width: 100%;
  padding-left: 1rem;
}

.num {
  background-color: #354656;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #ffffff;
  font-size: 25px;
  line-height: 50px;
  text-align: center;
}

.beliefs h2 {
  color: #354656;
}

/****************************************
* FAQs
****************************************/

.faqs hr {
  margin: 2rem 0;
}

.faqs .photo-bubble {
  position: relative;
  margin: 0 auto 3rem;
  width: 150px;
  height: 150px;
}

.faqs .photo-bubble img {
  border-radius: 50%;
  width: 150px;
}

.faqs .photo-bubble::before {
  content: '';
  position: absolute;
  bottom: -1.24rem;
  right: -1rem;
  background-color: #5c7893;
  border-radius: 50px;
  width: 100px;
  height: 100px;
  z-index: -1;
}

/****************************************
* Directions
****************************************/

.directions svg {
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
}

/****************************************
* Ministries
****************************************/

.ministries .col-md-12 {
  margin-bottom: 1.5rem;
}

.ministries .accent5 {
  padding:  1.5rem;
  height: 100%;
}

.ministries svg {
  width: 100px;
  height: 100px;
}

.ministries .grid > div {
  padding: .5rem;
}

.ministries hr {
  border: 1px solid #dce1e4;
}

.ministries p {
  margin-bottom: 0;
}

.ministries a {
  display: block;
  margin: 0 auto;
  text-align: center;
}

/****************************************
* Card
****************************************/

.card {
  margin-bottom: 2rem;
  border: none;
  padding: 1rem;
  text-align: center;
}

.card > div {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card img {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.card p {
  margin-bottom: 0;
}

/****************************************
* Contact page
****************************************/

.personal-information svg {
  width: 60px;
  height: 60px;
}

.personal-information > div {
  padding: 1.5rem;
}

.personal-information a {
  color: #000000;
  font-weight: normal;
}

/****************************************
* Cross 
****************************************/

.crossTopBorder div,
.crossBottomBorder div {
  border-bottom: .5px solid #a5b2be;
}

.crossBottomBorder div:last-of-type {
  border: none;
}

/****************************************
* Live stream page
****************************************/

.live-stream-schedule svg {
  width: 80px;
  height: 80px;
}

.live-stream-schedule h2 {
  margin-bottom: 2rem;
}

.previous-videos h1 {
  text-align: center;
}

.previous-videos .button {
  display: block;
  margin: 0 auto;
  width: 200px;
  text-align: center;
}

.previous-videos h2 {
  margin: .5rem 0 .25rem;
  font-size: 18px;
}

.previous-video {
  border-bottom: 4px dotted #a5b2be;
}

.previous-video p:last-of-type {
  margin-bottom: 0;
}

/****************************************
* Video
****************************************/

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/****************************************
* Grid
****************************************/

.grid,
.grid-y {
  padding: 2rem 0;
}

.grid-y > div {
  height: 100%;
  padding: 2rem 1rem;
}

.grid > div {
  padding: 1.5rem;
}

footer .grid > div {
  padding: 2rem 2rem 0;
}

/****************************************
* Footer
****************************************/

footer {
  background-color: #354656;
  color: #ffffff;
}

footer .grid > div:first-of-type h3 {
  border: none;
  padding-bottom: 0;
}

footer h3 {
  margin-bottom: 1rem;
  border-bottom: 4px dotted rgba(220, 225, 228, .5);
  padding-bottom: 1rem;
  color: #ffffff;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer ul li {
  margin-bottom: 1rem;
}

footer ul li:last-of-type {
  margin-bottom: 0;
}

footer p,
footer ul li > a {
  color: #d6dee0;
}

footer ul li > a:hover {
  color: #ffffff;
}

/****************************************
* Affiliation
****************************************/

.affiliation {
  border-top: 1px solid rgba(220, 225, 228, .5);
  padding: 1rem;
}

.affiliation p {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
}

.affiliation p,
.affiliation a {
  font-size: 12px;
}

.affiliation a {
  color: #d6dee0;
}

.affiliation a:hover {
  color: #ffffff;
}

/****************************************
* Misc
****************************************/

.x-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.honey,
.hidden {
  display: none !important;
}

/****************************************
* Checkmark
****************************************/

.checkmarkCircle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #27B376;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: auto;
  box-shadow: inset 0px 0px 0px #27B376;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmarkCheck {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 60px #27B376;
  }
}

/****************************************
* Extra classes
****************************************/

@media(max-width: 767px) {
  .crossTopBorder {
    padding: 2rem 1rem 0;
  }

  .crossBottomBorder {
    padding: 0 1rem 2rem;
  }

  .faqs .flex-row,
  .beliefs .flex-row,
  .salvation .flex-row {
    flex-direction: column !important;
    align-items: center;
  }

  .faqs .flex-row,
  .beliefs .num,
  .salvation .num {
    margin-bottom: 1rem;
  }
}

/****************************************
* Donate
****************************************/

#creditCard {
  margin-top: 1rem;
  background-color: transparent;
  border: 1px solid #efefef;
  border-radius: 3px;
  padding: 6px;
  overflow: hidden;
}

/****************************************
* Donate checkbox
****************************************/

.donate-type {
  margin-top: 1rem;
}

.donate-amount {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 3rem;
}

.donate-type label,
.donate-amount label {
  margin: 0;
}

.donate-type label {
  margin-bottom: 5px;
}

.donate-type [type="radio"]:checked + label {
  background-color: #354656;
}

[type="radio"] {
  width: auto;
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
  left: -9999px;
}

[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label {
  position: relative;
  display: inline-block;
  border-radius: 4px;
  width: 100%;
  height: 40px;
  padding: .5rem;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 300ms linear;
}

[type="radio"]:not(:checked) + label {
  background-color: #efefef;
  color: #6c6c6c;
}

[type="radio"]:checked + label {
  background-color: #5c7893;
  color: #ffffff;
}

[type="radio"]:not(:checked) + label:hover {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
}

[type="radio"]:checked + label::before,
[type="radio"]:not(:checked) + label::before {
  z-index: -1;
}

.other-amount.dollar {
  position: relative;
  margin-bottom: 4px;
  height: 42.5px
}

.other-amount.dollar:before {
  position: absolute;
  content: '$';
  top: 0;
  left: 0;
  background-color: #5c7893;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  padding-left: .5rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 42.5px;
  z-index: -1;
}

.other-amount input[type="text"] {
  margin-left: 1.5rem;
  margin-bottom: 0;
  background-color: #ffffff;
  border-radius: 0px 4px 4px 0;
  width: calc(100% - 1.5rem);
  height: 42.5px;
}

.other-amount input[type="text"] + label {
  display: none;
}

.payment {
  margin-top: 2rem;
}

.totalAmount {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 5px;
  background-color: #f6f8fa;
  border-left: 5px solid #5c7893;
}

.totalAmount h3 {
  margin: 0;
  color: #39393a;
}

.totalAmount span {
  font-size: 14px;
}

.donate-form [type="submit"] {
  display: block;
  margin-left: auto;
  margin-right: 0;
  border-radius: 5px;
  padding: .75rem 1rem;
  width: 115px;
  height: auto;
}

/****************************************
* Overlay
****************************************/

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, .9);
  z-index: 100;
}

.overlay .wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 20px;
  width: calc(100% - 2rem);
  max-width: 750px;
  padding: 2rem;
}

.overlay .close {
  position: absolute;
  top: 7px;
  right: 13px;
  font-size: 30px;
}

.overlay .close:hover {
  color: #e62323;
  cursor: pointer;
}

.overlay img {
  display: block;
  margin: 0 auto 1rem;
  max-width: 250px;
}

.overlay h2 {
  margin-bottom: 2rem;
  font-size: 25px;
}

.overlay h3 {
  font-size: 20px;
}

.overlay p {
  margin-bottom: 0;
}

.overlay h2,
.overlay h3,
.overlay p {
  text-align: center;
  color: #454545;
}

/****************************************
* Map
****************************************/

#map {
  height: 300px;
}

#map .mapboxgl-popup-content .flex-row {
  align-items: center;
}

#map .mapboxgl-popup-content h3,
#map .mapboxgl-popup-content p {
  margin: 0;
}

#map .mapboxgl-popup-content img {
  width: 30px;
}

#map .mapboxgl-ctrl-attrib a {
  font-size: 12px;
}