/*
 * Globals
 */

/* Custom colors */
:root {
  --purple-100: #e2d9f3;
  --blurple-500: #5865f2;
  --blurple-300: #7b85ee;
  --blue-100: #cfe2ff;
}

/* Custom default button */
.btn {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, .20);
}

.btn-light,
.btn-light:hover,
.btn-light:focus {
  color: #333;
  text-shadow: none;
}

.btn-blurple {
  background-color: var(--blurple-500);
  color: var(--bs-white);
  text-shadow: none;
}

.btn-blurple:hover,
.btn-blurple:focus {
  background-color: var(--blurple-300);
}

.btn-blurple-inv {
  background-color: var(--blurple-300);
  color: var(--bs-white);
  text-shadow: none;
}

.btn-blurple-inv:hover,
.btn-blurple-inv:focus {
  background-color: var(--blurple-500);
}


/*
 * Base structure
 */

body {
  text-shadow: 0 .05rem .3rem rgba(0, 0, 0);
  box-shadow: inset 0 0 10rem rgba(0, 0, 0, .5);
  transition: all 500ms ease-in-out;
}

::selection {
  color: #000;
  background-color: rgba(255, 255, 255, .8);
}

.backdrop-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  z-index: -1;

  filter: brightness(.7) grayscale(.4) contrast(1.1);
}

.backdrop-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-position: 38% center;
  background-repeat: no-repeat;
  background-size: cover;
}

.backdrop-image video {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
}

.main-content {
  max-width: 56rem;
}

.lead {
  width: 100%;
  font-weight: unset;
}


/*
 * Header
 */

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, .5);
  border-bottom: .15rem solid transparent;
  border-radius: 0;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link+.nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}


/*
 * Customizations
 */

.copied-popover {
  --bs-popover-border-color: var(--bs-teal);
  --bs-popover-header-bg: var(--bs-teal);
  --bs-popover-header-color: var(--bs-white);
  --bs-popover-bg: var(--bs-teal);
  --bs-popover-body-color: var(--bs-white);
}

.tf-purple-100 {
  color: var(--purple-100);
}

.tf-blue-100 {
  color: var(--blue-100);
}

.tfh-purple-100:hover,
.tfh-purple-100:focus {
  color: var(--purple-100);
}

.tfh-blue-100:hover,
.tfh-blue-100:focus {
  color: var(--blue-100);
}

.page-blur {
  background-color: #0001;
  backdrop-filter: blur(8px);
  border-radius: 16px;
}


/*
 * List
 */

.list-group-flush>.list-group-item,
.list-group-flush>.list-group-item.active {
  border-width: 0 0 .18rem;
}

.list-group-flush>.list-group-item:last-child {
  border-bottom-width: unset !important;
}

.list-group-item {
  background-color: transparent;
  color: var(--bs-gray-200);

  text-shadow: none;
  border-color: transparent;
}

.list-group-item:focus,
.list-group-item:active {
  background-color: transparent;
  color: var(--bs-gray-200);
}

.list-group-item:hover {
  background-color: transparent;
  color: var(--bs-white);

  border-color: var(--bs-gray-200);
}

.list-group-item.active {
  background-color: transparent;
  color: #fff;

  font-weight: 600;
  border-color: #fff;
}

.list-group-item.disabled {
  background-color: transparent;
  color: var(--bs-gray-300);
  font-style: italic;
}


/*
 * Sematic web - <rule> component
 */

.ruleset {
  margin: 1.5rem 0;
}

rule {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

rule>number {
  display: inline-block;
  flex: 1 0;
  font-weight: 600;
  letter-spacing: 0.1rem;
}

rule>number::after {
  content: "》";
}

rule>wording {
  display: inline-block;
  flex: 1 0 95%;
}

rule>wording>ol,
ul {
  margin: 0 !important;
  padding-left: 1rem;
}

rule>notes {
  align-self: flex-end;
  padding: 0.3rem 0 0.3rem 3.2rem;
}

note {
  display: block;

  margin-top: 0.5rem;
  padding-left: 0.6rem;
  border-left: 3px dotted var(--bs-white);
}

rule>notes>note:first-child {
  margin-top: unset;
}
