/****************************************
* Variables
****************************************/

:root {
  --tt-font-1: 'Poppins';

  --tt-color-1: #732121;
  --tt-color-2: #641818;
  --tt-color-3: #b79a5d;
  --tt-color-4: #3d4444;
  --tt-color-5: #272525;
  --tt-color-6: #f4f1ea;

  --tt-nav-toggle-color: #ffffff;

  --swiper-navigation-size: 16px;
  --swiper-theme-color: #000000;
}

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

h1 {
  font: normal bold 40px/1em var(--tt-font-1);
  color: var(--tt-color-1);
}

h2 {
  font: normal bold 26px/1.2em var(--tt-font-1);
}

h3 {
  font: normal bold 20px/1.5em var(--tt-font-1);
}

h3 span {
  letter-spacing: 1px;
}

h4 {
  font: normal bold 18px/1.5em var(--tt-font-1);
}

h2 svg {
  display: inline-flex;
  top: .3rem;
  position: relative;
  margin-right: .5rem;
  width: 30px;
  height: 30px;
}

p,
a, 
li,
label,
input,
select,
legend,
textarea {
  font: normal normal 16px/1.5em var(--tt-font-1);
}

a {
  color: var(--tt-color-3);
  font-weight: 600;
}

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

hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.line {
  position: relative;
  margin: 1rem auto;
  background-color: #000000;
  width: 100%;
  max-width: 300px;
  height: 1px;
}

.line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  width: 100px;
  height: 3px;
}

.line.alt,
.line.alt::before {
  background-color: #ffffff;
}

.d-grid + h2,
.accent-3 + .d-grid,
.donate-form .card + .card {
  margin-top: 2rem;
}

h1 + p,
h2 + p,
h2 + .d-flex,
h3 + p,
p + h2,
p + p,
p + ul,
p + a,
#map + .btn,
.d-grid + .amountWrapper,
.input-group + .input-group {
  margin-top: 1rem;
}

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

.max-width {
  margin: 0 auto;
  max-width: 1000px;
}

/****************************************
* Body
****************************************/

/* body {
  background-color: var(--tt-color-3);
  color: #ffffff;
}

main {
  background-color: var(--tt-color-1);
} */

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

.btn {
  display: inline-block;
  width: auto;
}

.btn.btn-primary {
  background-color: var(--tt-color-1);
  color: #ffffff;
  transition: background-color .5s ease-out, transform .5s ease-out;
}

.btn.btn-primary:hover {
  background-color: var(--tt-color-3);
  transition: all .5s ease-in;
}

.btn.btn-secondary {
  border: 2px solid var(--tt-color-3);
  border-radius: 5px;
  background-color: transparent;
  padding: 10px 20px;
  color: var(--tt-color-3);
  fill: var(--tt-color-3);
  transition: background-color .5s ease-out, transform .5s ease-out;
}

.btn.btn-secondary.d-flex {
  display: flex;
}

.btn.btn-secondary:hover {
  background-color: var(--tt-color-3);
  color: #ffffff;
  fill: #ffffff;
  transition: all .5s ease-in;
}

.btn.btn-secondary svg {
  fill: var(--tt-color-3);
  transition: all .5s ease-in;
}

.btn.btn-secondary:hover svg {
  fill: #ffffff;
}

.btn.btn-third {
  border: 2px solid #ffffff;
  border-radius: 5px;
  background-color: transparent;
  padding: 10px 20px;
  color: #ffffff;
  transition: background-color .5s ease-out, transform .5s ease-out;
}

.btn.btn-third:hover {
  background-color: #ffffff;
  color: var(--tt-color-1);
  transition: all .5s ease-in;
}

input.btn {
  margin: 1rem 0 0 0;
}

/****************************************
* Icons
****************************************/

.icon-medium svg,
.icon-medium img {
  width: 50px;
  height: 50px;
  fill: #ffffff;
}

.icon-small svg,
.icon-small img {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

.icon-small a {
  color: var(--tt-color-1);
}

.church-icon-small svg,
.church-icon-small img {
  width: 70px;
  fill: var(--tt-color-1);
}

.contact-icon svg {
  margin-right: .5rem;
  top: 5px;
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

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

section {
  background-color: #ffffff;
}

.accent-1 {
  background-color: var(--tt-color-1) !important;
  color: #ffffff;
}

.accent-1a {
  --s: 30px; /* control the size*/
  --c1: #6c1f20;
  --c2: #702021;
  
  --_l: #0000 46%,var(--c1) 47% 53%,#0000 54%;
  background:
    radial-gradient(100% 100% at 100% 100%,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100% at 0    0   ,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100%,#0000 22%,var(--c1) 23% 29%, #0000 30% 34%,var(--c1) 35% 41%,#0000 42%),
    var(--c2);
  background-size: calc(var(--s)*2) calc(var(--s)*2);
}

.accent-1 h2,
.accent-1a h2,
.accent-1 svg,
.accent-1a svg {
  color: #ffffff;
  fill: #ffffff;
}

.accent-2 {
  background-color: var(--tt-color-2);
  color: #ffffff;
}

.accent-2 h2 + p {
  margin-top: .25rem;
}

.accent-2 h2,
.accent-2 p,
.accent-2 a {
  color: #ffffff;
}

.accent-3 {
  background-color: var(--tt-color-5);
  color: var(--tt-color-3);
}

.accent-4 {
  position: relative;
  background-color: #efefef;
}

.accent-4a {
  --s: 30px; /* control the size*/
  --c1: #ececec;
  --c2: #efefef;
  
  --_l: #0000 46%,var(--c1) 47% 53%,#0000 54%;
  background:
    radial-gradient(100% 100% at 100% 100%,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100% at 0    0   ,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100%,#0000 22%,var(--c1) 23% 29%, #0000 30% 34%,var(--c1) 35% 41%,#0000 42%),
    var(--c2);
  background-size: calc(var(--s)*2) calc(var(--s)*2);
}

/* .accent-4a .d-grid {
  margin: 0 auto;
  max-width: 980px;
} */

.accent-5 {
  --s: 26px; /* control the size*/
  --c1: #fcfcfc;
  --c2: #ffffff;
  
  --_l: #0000 46%,var(--c1) 47% 53%,#0000 54%;
  background:
    radial-gradient(100% 100% at 100% 100%,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100% at 0    0   ,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100%,#0000 22%,var(--c1) 23% 29%, #0000 30% 34%,var(--c1) 35% 41%,#0000 42%),
    var(--c2);
  background-size: calc(var(--s)*2) calc(var(--s)*2);
}

.accent-6 {
  background-color: var(--tt-color-6);
}

/****************************************
* Missing
****************************************/

.missing {
  padding: 5rem 0;
}

.missing h1 {
  margin-bottom: 1rem;
  font-size: 120px;
}

.missing h2 {
  margin-bottom: 3rem;
}

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

header {
  background-color: var(--tt-color-1);
}

header .logo img {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 200px;
}

header .logo a {
  display: block;
  width: 100%;
  height: 100%;
  padding: .25rem 0;
}

header .logo a:focus,
header .logo a:hover {
  background-color: transparent;
}

header .top-bar {
  padding: .5rem;
}

header .top-bar p {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

header .top-bar p,
header .top-bar a {
  color: #ffffff;
}

header .top-bar a {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, .2);
  padding: .5rem .75rem;
  transition: all .4s ease;
}

header .top-bar a:focus,
header .top-bar a:hover {
  background-color: var(--tt-color-2);
  color: var(--tt-color-1);
}

header > .d-flex {
  position: relative;
  padding: 1rem;
}

header .nav-toggler {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

header .nav-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

header .nav-toggle,
header .nav-toggle svg {
  width: 30px;
  height: 30px;
  fill:var(--tt-color-1);
}

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

nav {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, .1);
  background-color: var(--tt-color-1);
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease-in-out;
}

nav.on {
  max-height: calc(100vh - 100px);
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

nav li {
  margin: 0;
}

nav a,
nav button {
  position: relative;
  border-radius: 20px;
  padding: .5rem 1rem;
  font: normal 600 22px/1.5em var(--tt-font-1);
  color: #ffffff;
}

nav button {
  display: flex;
  align-items: center;
  margin: 0 auto;
  line-height: .8em;
}

nav button:focus {
  outline: none;
}

nav button svg {
  margin-left: .5rem;
  width: 10px;
  fill: #ffffff;
  transition: all .4s ease;
}

nav button.active svg,
nav .menu:hover button svg {
  fill: #ffffff;
  transform: rotate(180deg);
  transition: all .4s ease;
}

nav .on button svg {
  transform: rotate(180deg);
}

nav a:hover,
nav a.active,
nav button.active,
nav .menu:hover button {
  color: #ffffff;
  background-color: var(--tt-color-2);
}

nav a.active::before {
  width: 20px;
}

nav .dropdown {
  max-height: 0;
  overflow: hidden;
  transition: all .5s ease;
}

nav .menu.on .dropdown {
  max-height: 300px;
}

nav .dropdown .wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 1rem;
  background-color: var(--tt-color-2);
  border-top: 2px;
  border-bottom: 2px;
  border-style: solid;
  border-color: var(--tt-color-1);
  padding: 1rem 4rem;
  text-align: left;
}

nav .dropdown .wrapper::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent var(--tt-color-1) transparent;
  margin-top: .5rem;
}

nav .dropdown a {
  display: flex;
  align-items: center;
  margin: 0;
  padding: .25rem .5rem;
  white-space: nowrap;
  justify-content: center;
}

nav .dropdown a + a {
  margin-top: .25rem;
}

nav .dropdown a.active {
  background-color: var(--tt-color-1);
  color: #ffffff;
}

/****************************************
* Sub navigation
****************************************/

.sub-nav {
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(241, 241, 241, .86);
  padding: 1rem;
}

/****************************************
* Inside navigation
****************************************/

.inside-nav {
  background-color: #293850;
  padding-top: 20px;
  padding-bottom: 20px;
}

.inside-nav .nav-item {
  color: #ffffff;
}

@media(min-width: 768px) {
  .inside-nav .nav-item {
    margin: 0 10px;
  }
}

/****************************************
* Banners
****************************************/

.banner {
  position: relative;
  background: #efefef;
  background-size: cover;
  background-position: center;
  height: calc(300px + (600 - 300) * (100vw - 320px) / (1140 - 320));
  max-height: calc(100vh - 98px);
  overflow: hidden;
  /* border-bottom-left-radius: 70% 30%;
  border-bottom-right-radius: 70% 30%; */
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, .4);
}

.banner video {
  width: 101%;
  height: 101%;
  object-fit: cover;
}

.banner .wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
}

.banner h1,
.banner h2 {
  color: #ffffff;
  text-align: center;
  text-shadow: 0px 0px 5px rgb(64, 64, 64);
}

.banner h1 {
  font-size: calc(42px + (65 - 42) * ((100vw - 320px) / (1140 - 320)));
}

.banner h2 {
  font-size: calc(18px + (35 - 18) * ((100vw - 320px) / (1140 - 320)));
}

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

.inside-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: calc(200px + 2rem);
  overflow: hidden;
}

.inside-banner picture,
.inside-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inside-banner .container {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff; /* Adjust based on your design */
}

.inside-banner ~ section {
  position: relative;
}

.inside-banner + section {
  margin-top: -2rem;
  margin-bottom: -1px;
  border-radius: 40px 40px 0 0;
}

/****************************************
* Banner curve
****************************************/

.curve {
  position: absolute;
  top: calc(-34px + (-82 - -34) * (100vw - 320px) / (768 - 320));
  left: 0;
  z-index: 2;
  width: 100%;
  /* height: 200px; */
}

.curve svg {
  position: relative;
  width: 210%;
  height: 100%;
  fill: #efefef;
}

/* .curve svg:nth-of-type(2) {
  width: 50%;
  fill: var(--tt-color-1);
  clip-path: inset(47% 0 0 0);
}

.curve svg:nth-of-type(1) {
  width: 50%;
  fill: #efefef;
  clip-path: inset(0 0 53% 0);
} */

.video-container {
  position: relative;
  z-index: 2;
}

/****************************************
* History
****************************************/

.history span,
.ministry span {
  font-size: 14px;
}

/****************************************
* Cards
****************************************/

.card {
  display: block;
  border-radius: 20px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, .1);
  border: 1px solid rgba(220, 225, 228, .5);
  background-color: #ffffff;
  width: 100%;
  padding: 2rem;
  /* text-align: center; */
  /* overflow: hidden; */
}

.card h2 {
  color: var(--tt-color-1);
}

.card svg {
  margin-right: .5rem;
  position: relative;
  top: -.15rem;
  width: 30px;
  height: 30px;
  fill: var(--tt-color-1);
  vertical-align: middle;
}

.about.card {
  border: none;
  box-shadow: none;
  background-color: var(--tt-color-2);
  color: #ffffff;
}

.about.card h2 {
  color: #ffffff;
}

.about.card h3 {
  margin-bottom: 1rem;
}

.about.card svg {
  fill: #ffffff;
}

.about a {
  margin-top: 1rem;
}

.about p {
  margin-top: 0;
  margin-bottom: .25rem;
}

.contact.card p,
.contact.card a {
  margin-top: 0;
  color: #000000;
}

textarea {
  min-height: 170px;
}

/****************************************
* Plan your visit card
****************************************/

.card.accent-1 h2 {
  color: #ffffff;
}

/****************************************
* What to expect cards
****************************************/

.question.card {
  margin: 0;
}

/****************************************
* Mission cards
****************************************/

.mission svg {
  fill: var(--tt-color-1);
}

.mission.card span {
  font-size: 40px;
  color: var(--tt-color-1);
}

.drop-cap-paragraph::first-letter {
  font-size: 40px;
  float: left;
  line-height: 1;
  margin-right: 0.1em; 
  font-weight: bold;
  color: var(--tt-color-1);
}

/****************************************
* Ministry cards
****************************************/

.ministry.card img {
  border-radius: 20px;
}

/****************************************
* Belief cards
****************************************/

.belief + .belief {
  margin-top: 2rem;
}

.belief h2 {
  margin-bottom: 1rem;
  color: var(--tt-color-1);
}

.belief .details {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  transition: all .4s ease;
}

.belief .details::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, #ffffff);
  height: 100px;
  transition: all .4s ease;
}

.belief.open .details::before {
  display: none;
  opacity: 0;
}

.belief button {
  display: block;
  margin: 0 auto;
  background-color: transparent;
  padding: 1rem;
  font-size: 18px;
  font-weight: bold;
  color: var(--tt-color-5);
}

.belief button:focus,
.belief button:hover {
  outline: none;
  color: var(--tt-color-1);
}

/****************************************
* Scroll slider
****************************************/

.scroll-container {
  overflow-y: hidden;
}

.scroll-container .item-container {
  align-items: center;
  height: calc(100% + 2rem);
}

.scroll-container .scroll-item {
  position: relative;
  transition: all .5s ease;
}

.scroll-container .scroll-item.on + .scroll-item {
  position: relative;
  z-index: 1;
  flex: 0 0 calc(33.33% + 4rem);
  margin: 0 -2rem;
}

.scroll-container .scroll-item h3 {
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-size: 35px;
  text-align: center;
}

/****************************************
* Swiper
****************************************/

.swiper-slide {
  position: relative;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  transition: all 0.45s ease;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  display: flex;
  border-radius: 50%;
  background-color: #efefef;
  width: 40px;
  height: 40px;
}

.swiper-button-prev::before {
  margin-right: 3px;
}

.swiper-button-next::before {
  margin-left: 3px;
}

/****************************************
* Ministry swiper (home page)
****************************************/

.ministries .swper-slide {
  filter: brightness(0.75);
  opacity: 0.65;
}

.ministries .swiper-slide-active {
  z-index: 2;
  opacity: 1;
  filter: brightness(1);
}

.ministries .swiper-slide h3 {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  font-size: 29px;
  line-height: 1em;
  text-align: center;
}

/****************************************
* Sunday School swiper (visit us page)
****************************************/

.ss-classes .swiper-slide .wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: .5rem;
  line-height: 1em;
  text-align: center;
}

.ss-classes h3 {
  line-height: 1em;
}

.ss-classes h3,
.ss-classes p {
  text-shadow: 2px 3px 10px rgba(0, 0, 0, .7);
}

.ss-classes h3 + p {
  margin: 0;
}

/****************************************
* Contact Form
****************************************/

.contact-form svg,
.contact-form .d-flex {
  margin-bottom: 0;
}

.contact-form svg {
  margin-right: .25rem;
  width: 15px;
  height: 15px;
  fill: var(--tt-color-2);
}

.contact-form h2 svg {
  display: inline-flex;
  position: relative;
  margin-right: .5rem;
  width: 30px;
  height: 30px;
}

.contact-form label.d-flex {
  margin-bottom: 4px;
  color: #000000;
}

.contact h2 {
  color: var(--tt-color-1);
}

.contact a {
  color: #000000;
  font-weight: 400;
}

.contact svg {
  fill: var(--tt-color-1);
}

/****************************************
* Pagination
****************************************/

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 3rem auto 0 auto;
}

.pagination button {
  border: none;
  background-color: #ffffff;
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.pagination button.active {
  background-color: var(--tt-color-3);
	color: #ffffff;
	font-weight: bold;
}

.pagination button:hover:not(.active) {
	background-color: var(--tt-color-3);
	fill: var(--tt-color-1);
}

.pagination .arrow:first-of-type {
  border-radius: 10px 0 0 10px;
}

.pagination .arrow:last-of-type {
  border-radius: 0 10px 10px 0;
}

.pagination .arrow {
  background-color: var(--tt-color-1);
  width: 45px;
}

.pagination button.arrow:focus,
.pagination button.arrow:hover {
  background-color: var(--tt-color-3);
  color: #ffffff;
}

.pagination .arrow > i {
  display: inline-block;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  padding: 3px;
  pointer-events: none;
}

.pagination .arrow .left {
  transform: rotate(135deg);
}

.pagination .arrow .right {
  transform: rotate(-40deg);
}

.pagination .page {
  color: var(--tt-color-2);
}

.pagination .page:hover {
  color: #ffffff;
}

/****************************************
* Details (accordion)
****************************************/

.accordion {
  color: var(--tt-color-1);
  border: 2px solid;
  border-radius: 0.5rem;
  width: 100%;
  overflow: hidden;
}

.accordion svg {
  position: relative;
  margin-right: 1rem;
  top: .3rem;
}

details + details {
  border-top: 1px solid #5c1a1a;
}

details summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--tt-color-1);
  padding: 1rem;
  text-align: left;
  color: #ffffff;
}

details summary p {
  flex-grow: 1;
}

details summary::before {
  display: none;
}

details summary::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
}

details[open] summary::after {
  transform: rotate(270deg);
}

details:not([open]) summary:hover::after {
  animation: bounce .5s infinite;
}

@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}

details {
  overflow: hidden;                    /* essential */
  display: grid;
  grid-template-rows: 0fr;             /* closed state */
  transition: grid-template-rows 0.35s ease;
}

details[open] {
  grid-template-rows: 1fr;
}

details > div {
  min-height: 0;                       /* allows the grid row to shrink to 0 */
  padding: 0 1rem;                     /* closed padding */
  overflow: hidden;
}

details > div p {
  color: #000000;
}

details[open] > div {
  padding: 1rem;
}

/* Distinctives details */

/* .distinctives h2,
.distinctives h3 {
  color: var(--tt-color-1);
} */

.distinctives details:first-of-type {
  border-radius: 20px 20px 0 0;
}

.distinctives details:last-of-type {
  border-radius: 0 0 20px 20px;
}

.distinctives summary {
  background-color: var(--tt-color-1);
  padding: 1rem 2rem;
}

.distinctives summary:after {
  margin: 0 0 0 auto;
}

.distinctives summary h3 {
  color: #ffffff;
}

.distinctives details > div {
  background-color: rgba(255, 255, 255, .2);
  padding: 2rem;
}

/****************************************
* Give form
****************************************/

.script {
  background-color: #f0f1f3;
  background-color: #f0f1f3;
  padding: 40px;
  text-align: center;
}

.donate {
  border: 1px solid #e4ebf1;
  padding: 1rem;
}

.donate svg {
  display: inline-flex;
  position: relative;
  margin-right: .5rem;
  width: 15px;
  height: 15px;
  fill: #000000;
  vertical-align: middle;
}

.donate-instruction svg {
  display: inline-flex;
  position: relative;
  margin-right: .5rem;
  width: 15px;
  height: 15px;
  fill: #000000;
  vertical-align: middle;
}

.donate-instruction p {
  margin-bottom: 1rem;
}

.donate-type {
  display: flex;
  gap: 5px;
  margin-top: 1rem;
}

.donate-type label {
  margin: 0;
}

.donate-amount {
  display: grid;
  grid-template-columns: repeat(4, 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: var(--tt-color-1);
}

.amountWrapper {
  position: relative;
}

.amountWrapper.d-grid {
  gap: 0 1rem;
}

.amountWrapper .d-flex {
  margin: 0;
}

.amountWrapper .d-flex::before {
  content: '$';
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 30px;
  border-radius: 5px 0 0 5px;
  background-color: var(--tt-color-1);
  width: 30px;
  height: 42px;
  font: normal 700 16px/1em var(--tt-font-1);
  color: #ffffff;
}

.amountWrapper input {
  margin: 0;
  border-radius: 0 5px 5px 0;
}

.amountWrapper input:focus {
  outline: none;
}

.amountWrapper .popup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  position: absolute;
  top: 100%;
  left: 30px;
  z-index: 1;
  border: 1px solid #efefef;
  border-radius: 0 0 5px 5px;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, .1);
  background-color: #ffffff;
  padding: 5px;
}

.amountWrapper .popup button {
  border-radius: 4px;
  background-color: #efefef;
  height: 40px;
  padding: .5rem .75rem;
  font-size: 15px;
  font-weight: 600;
  color: #6c6c6c;
  transition: all 300ms linear;
}

.amountWrapper .popup button:hover {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
}

.otherAmount .d-flex + input {
  margin-top: 1rem;
}

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

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

.donate-form [type="radio"]:checked + label,
.donate-form [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;
}

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

.donate-form [type="radio"]:checked + label {
  background-color: var(--tt-color-1);
  color: #ffffff;
}

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

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

.donate-form [type="checkbox"] + label {
  margin-bottom: 1rem;
  padding-left: 32px;
  line-height: 25px;
}

.donate-form [type="checkbox"] + label::before {
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--tt-color-2);
}

.donate-form [type="checkbox"]:not(.background):checked + label::before {
  background: var(--tt-color-2);
}

#creditCard {
  margin-top: 4px;
  margin-bottom: 1rem;
  background-color: transparent;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  padding: .5em;
  overflow: hidden;
}

/****************************************
* Dollar amount
****************************************/

.amountStyle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.amountStyle .symbol {
  font-size: 25px;
  color: #C6C6C6;
}

.amountStyle .amount {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 35px;
  font-weight: 600;
  line-height: 1.2em;
  color: var(--tt-color-3);
}

.amountStyle .amount span {
  font-size: 25px;
}

/****************************************
* Events Page
****************************************/

.events svg {
  position: relative;
  margin-right: .5rem;
  top: 2px;
}

.event.card + .event.card {
  margin-top: 0;
}

.event.card .details {
  padding: 0;
}

.event.card .date {
  display: inline-block;
  position: relative;
  margin-bottom: 1.75rem;
}

.event.card .day {
  display: inline-block;
  font-size: 70px;
  font-weight: 700;
  line-height: .7em;
  color: #d2d2d2;
}

.event.card .month {
  position: absolute;
  bottom: -.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 25px;
  font-weight: 200;
  line-height: .8em;
}

.event.card button {
  border-radius: 20px;
  background-color: var(--tt-color-4);
  color: #ffffff;
}

.event.card .d-flex + .d-flex {
  margin-top: .5rem;
}

.event.card svg {
  flex: 0 0 20px;
  margin-right: .5rem;
  top: 0;
  width: 20px;
  height: 20px;
  fill: var(--tt-color-2);
}

.event.card .time svg {
  width: 18px;
  height: 18px;
}

.event.card hr {
  margin: 1rem 0;
  border-top: 1px solid var(--tt-color-1);
}


/****************************************
* Filters
****************************************/

.filters {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.filters .styled-select,
.filters .search-wrapper {
  width: 100%;
  max-width: 250px;
}

.filters .styled-select svg,
.filters .search-wrapper svg {
  position: absolute;
  top: 50%;
  left: .5rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--tt-color-1);
  pointer-events: none;
}

.filters .styled-select select,
.filters .search-wrapper input {
  height: 40px;
  padding: .5rem 24px .5rem 28px;
  color: #000000;
}

.filters .search-wrapper input:focus {
  outline: 1px solid var(--tt-color-1);
}

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

footer {
  background: var(--tt-color-5);
}

footer .icon {
  width: 80px;
  fill: #000000;
}

footer .icon {
  position: relative;
  box-sizing: border-box;
  outline: 0;
  overflow: hidden;
  width: 80px;
  fill: #000000;

  &::before {
    content: "CSS";
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -50%;
    height: 200%;
    width: 200%;
    box-sizing: border-box;
    background-color: var(--tt-color-3);
    border-radius: 40%;
    animation: spin 6s linear infinite;
  }
}

@keyframes spin {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100%) rotate(360deg);
  }
}

footer svg {
  margin-right: 1rem;
  top: -1px;
  width: 15px;
  height: 15px;
  fill: #ffffff;
}

footer svg:hover {
  fill: var(--tt-color-6);
}

footer h2,
footer p,
footer a {
  color: #ffffff;
}

footer a:hover {
  color: var(--tt-color-3);
}

footer h2 + p {
  margin-top: 1rem;
}

footer h2 + a {
  margin-left: 1rem;
}

footer .d-flex {
  justify-content: center;
}

footer .socials {
  margin-top: 2rem;
}

footer .socials a,
footer .socials svg {
  width: 30px;
  height: 30px;
}

footer .socials svg {
  margin: 0;
  fill: #ffffff;
}

footer .socials svg:focus,
footer .socials svg:hover {
  fill: var(--tt-color-3);
}

footer #hhbt-icon {
  fill: #ffffff;
}

/****************************************
* Attribution
****************************************/

.attribution {
  margin-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1rem .5rem env(safe-area-inset-bottom) .5rem;
}

.attribution p,
.attribution a {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}

.attribution a {
  font-weight: normal;
  text-transform: none;
}

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

#map {
  position: relative;
  border-radius: 20px;
  min-height: 230px;
  text-align: left;
}

#map.tall {
  min-height: 430px;
}

#map.full {
  height: 100%;
}

#map.border {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
}

#map p,
#map a {
  font-size: 12px;
}

#map .mapboxgl-popup-content {
  background-color: #ffffff;
  padding: 1rem;
}

#map .mapboxgl-popup-tip {
  border-top-color: #ffffff;
}

#map .mapboxgl-popup-close-button {
  right: 5px;
  color: var(--tt-color-2);
}

#map h3,
#map p {
  color: var(--tt-color-2);
  text-align: center;
}

#map h3 + p {
  margin-top: 0;
  font-size: 16px;
}

#map .btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}