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

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

  --tt-color-1: #89b833;
  --tt-color-2: #3b3b3b;
  --tt-color-3: #ffffff;
  --tt-color-4: #404040;
  --tt-color-5: #ffffff;
  --tt-color-6: #f2f2f2;
  --tt-color-7: #ffffff;
  --tt-color-8: #648725;
  --tt-color-9: #efefef;
  --tt-color-10: #3b3b3b;
  --tt-color-11: #3b3b3b;

  --tt-color-error: #dd0000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tt-color-2: #ffffff;
    --tt-color-3: #3b3b3b;
    --tt-color-4: #282828;
    --tt-color-5: #686868;
    --tt-color-6: #464646;
    --tt-color-8: #648725;
    --tt-color-9: #868686;
    --tt-color-10: #aeaeae;
    --tt-color-11: #ffffff;

    --tt-color-error: #ff7a7a;
  }
}

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

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

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

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

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

input,
select,
textarea {
  background-color: rgba(255, 255, 255, .5); /* Need to work on this more */
  color: #000000;
}

legend + .d-flex {
  margin-top: 4px;
}

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

[type="radio"],
[type="checkbox"]:not(.background):checked + label::before {
  background-color: var(--tt-color-1);
}

label.invalid {
  color: var(--tt-color-error);
}

label.invalid svg {
  fill: var(--tt-color-error);
}

input.invalid,
textarea.invalid,
select.invalid,
[type="radio"].invalid + label:before,
[type="checkbox"].invalid + label:before,
input[type="file"].invalid + button {
  outline: 1px solid var(--tt-color-error);
}

a {
  align-items: center;
  color: var(--tt-color-2);
  font-weight: 600;
}

a:hover {
  color: var(--tt-color-1);
  text-decoration: none;
}

a svg {
  margin: 0 .5rem 0 0;
  width: 25px;
  height: 25px;
}

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

.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;
}

h1 + p,
h2 + h3,
h2 + .d-grid,
img + p,
.card + .card,
.card + .d-grid,
.d-grid + .card {
  margin-top: 2rem;
}

h2 + p,
h2 + .d-flex,
h3 + p,
h3 + ul,
p + a,
p + ul,
p + .d-flex,
.d-flex + a,
.d-flex + p {
  margin-top: 1rem;
}

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

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

.small {
  font-size: 14px;
}

/****************************************
* Common
****************************************/

body,
header,
nav {
  background-color: var(--tt-color-3);
}

.sticky {
  position: sticky;
  top: -1px;
  z-index: 998;
}

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

.btn {
  font: normal normal 16px/1em var(--tt-font-1);
}

.btn.btn-primary {
  background-color: var(--tt-color-1);
  color: #ffffff;
  transition: .4s all ease;
}

.btn.btn-primary:focus,
.btn.btn-primary:hover {
  background-color: var(--tt-color-8);
  color: #ffffff;
}

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

.btn.donate-primary {
  margin-top: 1rem;
  background-color: var(--tt-color-1);
  color: #ffffff;
  transition: .4s all ease;
}

.btn.donate-primary:focus,
.btn.donate-primary:hover {
  background-color: #ffd140;
  color: #003087;
}

.event-btn img {
  border-radius: 10px;
  box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
}

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

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

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

.accent-1 h1 {
  color: #ffffff;
  text-align: center;
}

.accent-3 p {
  color: var(--tt-color-1);
}

.accent-4 {
  padding: 1rem;
  background-color: var(--tt-color-6);
}

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

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

header.sticky {
  position: relative;
  z-index: 999;
  border-bottom: 5px solid var(--tt-color-1);
  box-shadow: 3px 4px 10px rgba(0, 0, 0, .2);
}

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: #ffffff;
  color: var(--tt-color-1);
}

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

header .logo {
  background-image: url('/images/svg/logo.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 100px;
  height: 74px;
}

@media (prefers-color-scheme: dark) {
  header .logo {
    background-image: url('/images/layout/dark-logo.jpg');
  }
}

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);
  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;
  border-top: 1px solid #efefef;
  padding: 1rem;
}

nav li {
  margin: 0;
}

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

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: var(--tt-color-2);
  transition: all .4s ease;
}

nav button.active svg,
nav .menu:hover button svg {
  fill: var(--tt-color-1);
}

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

nav a:hover,
nav a.active,
nav button.active,
nav .menu:hover button {
  color: var(--tt-color-1);
}

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

nav .dropdown-menu {
  display: none;
  flex-direction: column;
  position: relative;
  border-radius: 15px;
  background-color: #686868;
  padding: 1rem;
  text-align: left;
}

nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #686868 transparent;
  margin-top: .5rem;
}

nav .dropdown-menu a {
  display: flex;
  align-items: center;
  margin: 0;
  padding: .25rem .5rem;
  color: #ffffff;
  white-space: nowrap;
}

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

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

nav .dropdown-menu svg {
  margin-right: .5rem;
  margin-left: 0;
  width: 18px;
  height: 18px;
  fill: var(--tt-color-1);
}

nav .menu.on .dropdown-menu {
  display: flex;
}

/****************************************
* 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;
}

/****************************************
* Banner
****************************************/

.banner {
  position: relative;
  background: #e5eef3;
  background-size: cover;
  background-position: center;
  height: calc(200px + (500 - 300) * (100vw - 320px) / (768 - 320));
  max-height: 500px;
  overflow: hidden;
}

.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-weight: 900;
  font-size: calc(35px + (75 - 35) * ((100vw - 320px) / (1140 - 320)));
}

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

/****************************************
* Inside banner
****************************************/

.inside-banner {
  background-size: cover;
  background-position: center;
  min-height: 300px;
  padding: 2rem;
}

.inside-banner.d-flex {
  position: relative;
}

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

.inside-banner img {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
}

/****************************************
* Page titles
****************************************/

.accent-1.pinned .container {
  padding: 1rem;
}

/****************************************
* Academy
****************************************/

.happening h2{
  margin-bottom: 2rem;
  text-align: center;
}

/****************************************
* Photos
****************************************/

.photo-bubble {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 150px;
}

.photo-bubble img {
  margin-bottom: 0;
  margin-right: .5rem;
  border-radius: 50%;
  width: 120px;
  max-width: 120px;
}

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

.card {
  border-radius: 10px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, .1);
  background-color: var(--tt-color-5);
  width: 100%;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.card p + p {
  margin-top: 1rem;
}

.card h2,
.card p {
  color: var(--tt-color-2);
}

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

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

.hope-svg svg {
  fill: var(--tt-color-2);
}

.card a svg {
  margin: 0 .5rem 0 0;
}

.card.border .d-grid > div + div {
  position: relative;
}

.card.border .d-grid > div + div::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  background-color: #efefef;
  width: 100%;
  height: 2px;
}

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

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

.icon-small svg,
.icon-small img {
  width: 25px;
  height: 25px;
  fill: var(--tt-color-11);
}

/****************************************
* Latest Sermon
****************************************/

.latest-sermon.card {
  background-image: url('/images/content/latest-sermon.jpg');
  text-align: center;
}

.latest-sermon.card h2,
.latest-sermon.card p {
  color: var(--tt-color-3);
}

/****************************************
* Ministry card
****************************************/

.ministry.card h2,
.ministry.card p {
  text-align: left;
}

.ministry.card img {
  margin-bottom: 1rem;
}

.ministries.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.ministries.card > * {
  position: relative;
  z-index: 2;
}

.ministries.card img {
  margin-bottom: 1rem;
  width: 80px;
  height: auto;
}

.ministries.card h2 + p {
  margin-top: 0;
}

.ministries.card svg {
  margin-bottom: 1rem;
  width: 30px;
  height: 30px;
}

/****************************************
* Home Page Quick Links
****************************************/

.quick-links .d-grid > div:nth-of-type(1) .card {
  background-image: url('/images/content/i-am-new.jpg');
}

.quick-links .d-grid > div:nth-of-type(2) .card {
  background-image: url('/images/content/good-news.jpg');
}

.quick-links .d-grid > div:nth-of-type(3) .card {
  background-image: url('/images/content/missionaries.jpg');
}

.quick-links .d-grid > div:nth-of-type(4) .card {
  background-image: url('/images/content/sermon.jpg');
}

.quick-links .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  background-color: rgba(255, 255, 255, .8);
}

@media (prefers-color-scheme: dark) {
  .quick-links .card::before {
    background-color: rgba(112, 112, 112, .8);
  }
}

/****************************************
* Mission card
****************************************/

.mission.card h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.card.mission h2 svg {
  margin: 0;
  fill: var(--tt-color-1);
}

.mission.card .subtitle p {
  margin-bottom: 2rem;
} 

.mission.card svg {
  width: 30px;
  height: 30px;
}

.mission.card .searchWrapper svg {
  width: 20px;
  height: 20px;
}

.missionary,
.searchWrapper input {
  border-color: var(--tt-color-9) !important;
  background-color: var(--tt-color-3) !important;
  box-shadow: none !important;
  color: var(--tt-color-2);
}

.missionary p {
  color: var(--tt-color-10) !important;
}

/****************************************
* Belief card
****************************************/

.belief.card {
  padding: 0;
}

.belief.card + .belief.card {
  margin: 0;
}

.belief.card .title {
  background-color: var(--tt-color-1);
  padding: 1rem 2rem;
}

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

.belief.card .details {
  padding: 2rem;
}

/****************************************
* Times card
****************************************/

.times.card {
  margin-top: 2rem;
  background-color: rgba(0, 0, 0, .1);
}

/****************************************
* Salvation
****************************************/

.plain.card {
  margin-bottom: 2rem;
  text-align: center;
}

.salvation {
  counter-reset: section;
}

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

.salvation.card img {
  margin-bottom: 1rem;
  width: 70px;
  height: auto;
}

/****************************************
* Give card
****************************************/

.give.card {
  position: relative;
}

.give.card::before {
  display: none;
}

.give.card .d-grid {
  margin: 0 auto;
  max-width: 1005px;
}

.give.card input[type="image"] {
  margin: 0;
  border: none;
  background-color: transparent;
  width: auto;
  height: auto;
  padding: 0;
}

.give.card svg {
  width: 40px;
  height: 40px;
}

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

.give.card p {
  margin-top: 0;
}

.give-cashapp,
.give-paypal {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 50px;
  white-space: nowrap;
}

.give-cashapp img,
.give-paypal img {
  width: auto;
  height: 30px;
}

.give-cashapp {
  background-color: #00c853;
  color: #ffffff;
}

.give-cashapp:focus,
.give-cashapp:hover {
  color: #ffffff;
}

.give-paypal {
  background-color: #ffd140;
  color: #003087;
}

/****************************************
* Academy
****************************************/

.card.fca svg {
  width: 35px;
  height: auto;
}

.academy {
  text-align: center;
}

.academy h2 {
  margin: 2rem;
  text-align: center;
}

.academy p {
  margin-bottom: 2rem;
}

.card .icon {
  display: inline-block;
  position: relative;
  margin: 0 auto 1rem;
  text-align: left;
}

.card .icon svg {
  width: 70px;
}

.card.steps span {
  font-size: 70px;
  font-weight: 700;
  line-height: .7em;
  color: #d2d2d2;
}

.card .icon h2 {
  position: absolute;
  bottom: 1rem;
  left: 10%;
  margin: 0;
}

/****************************************
* School card
****************************************/

.card.school img {
  display: block;
  margin: 0 auto;
}

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

/****************************************
* Action card
****************************************/

.card.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: perspective(600px) translate3d(0, 0, 0);
  position: relative;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 6px;
  height: auto;
  padding: 0;
  overflow: hidden;
}

.card.action,
figcaption {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card.action:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card.action figure {
  position: relative;
  width: 100%;
  padding: 0;
}

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

.card.action figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.card.action h2 {
  transform: translate3d(0, 0, 50px);
  margin: 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
  font: normal 900 20px/1.2em var(--tt-font-1);
  color: #ffffff;
}

/****************************************
* Form
****************************************/

.icon svg {
  display: inline-flex;
  top: .3rem;
  position: relative;
  margin-right: .5rem;
  width: 30px;
  fill: var(--tt-color-1);
}

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

form .d-flex {
  margin-bottom: 4px;
}

form .d-flex > label {
  margin: 0;
}

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

.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 .searchWrapper {
  position: relative;
  border-radius: 3px;
  border: 1px solid #efefef;
  background-color: #ffffff;
  width: 100%;
  max-width: 250px;
  overflow: hidden;
}

.filters .styled-select svg,
.filters .searchWrapper 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 .arrow-down {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%) rotate(45deg);
  border: solid var(--tt-color-1);
  border-width: 0 3px 3px 0;
  padding: 3px;
  pointer-events: none;
}

.filters .styled-select select,
.filters .searchWrapper input {
  margin: 0;
  border: none;
  width: 100%;
  height: 40px;
  padding: .5rem 24px .5rem 32px;
  font-weight: normal;
  font-size: 16px;
  color: #000000;
  appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.filters .searchWrapper input:focus {
  outline: 1px solid #0070ce;
}

.sermon.card {
  margin: 0;
}

.sermon.card .speakerIcon {
  position: relative;
  margin: -50px auto 0 auto;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.sermon.card .imageWrapper {
  aspect-ratio: 2;
}

.sermon.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sermon.card .details {
  padding: 1rem;
}

.sermon.card h3,
.sermon.card p {
  color: var(--tt-color-2);
  text-align: center;
}

.sermon.card h3 {
  text-align: center;
  color: var(--tt-color-1);
  font-size: 22px;
}

.sermon.card h3 + p {
  margin-top: .25rem;
}

.sermon.card .date {
  font-weight: 200;
  font-size: 14px;
}

.sermon.card .icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.sermon.card svg {
  margin: 0;
  width: 20px;
  height: 20px;
  fill: var(--tt-color-2);
}

.sermonVideo {
  position: relative;
  margin-top: -100px;
}

.sermonInfo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.sermonInfo .speaker {
  font-size: 20px;
  font-weight: 200;
}

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

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

.pagination:empty {
  margin: 0;
}

.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-8);
	color: #ffffff;
	font-weight: bold;
}

.pagination button:hover:not(.active) {
	background-color: var(--tt-color-8);
	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-8);
  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: #3b3b3b;
}

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

/****************************************
* Form
****************************************/

.contact-form hr {
  margin: 1.5rem 0;
}

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

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

.contact-form svg {
  margin-right: .25rem;
  width: 15px;
  height: 15px;
}

.contact-form h2 svg {
  display: inline-flex;
  top: .3rem;
  position: relative;
  margin-right: .5rem;
  width: 30px;
  height: 30px;
  fill: var(--tt-color-1);
}

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

form [type="submit"] {
  margin: 0;
  width: auto;
}

@media (prefers-color-scheme: dark) {
  .contact-form input,
  .contact-form textarea {
    border: none;
  }
}

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

#map {
  min-height: 400px;
}

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

#map .mapboxgl-popup-content {
  background-color: var(--tt-color-5);
  padding: 1rem;
}

#map .mapboxgl-popup-tip {
  border-top-color: var(--tt-color-5);
}

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

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

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

/****************************************
* Overlays
****************************************/

html.overlay-effect,
html.overlay-effect body {
  position: relative;
  height: inherit;
  overflow: hidden;
}

.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  background-color: rgba(0, 0, 0, .8);
  width: 100%;
  height: 100%;
  padding: 1rem;
  overflow: auto;
}

.overlay > .wrapper {
  position: relative;
  margin: auto;
  background-color: var(--tt-color-3);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  padding: 1rem;.
}

.overlay .close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  width: 16px;
  fill: var(--tt-color-2);
}

.overlay .close:hover {
  fill: #b82424;
}

.overlay iframe {
  width: 100%;
  min-height: calc(100vh - 8rem);
}

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

footer {
  background: var(--tt-color-4) url('/images/layout/slash-it.png');
  text-align: center;
}

footer .icon {
  width: 40px;
}

footer h2,
footer p,
footer a {
  color: var(--tt-color-7);
}

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: var(--tt-color-1);
}

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

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

.attribution {
  background-color: rgba(0, 0, 0, 0.2);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

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

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