:root {
  --primary-color-base: white;
  --text-color-base: black;

  --primary-color: rgb(245, 245, 245);
  --primary-color-rgb: 245, 245, 445;

  --accent-color: rgb(118, 68, 255);
  --accent-color-rgb: 118, 68, 255;

  --text-color: rgb(45, 45, 45);
  --text-color-rgb: 45, 45, 45;
  --heading-color: var(--text-color-base);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-serif: filson-pro, sculpin, Proxima Nova, -apple-system,
    ivypresto-display, Georgia, "Times New Roman", Times, serif;

  --nav-height: 60px;
}

*,
::before,
::after {
  box-sizing: border-box;
  accent-color: var(--accent-color, rgb(69, 64, 131));
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  font-family: inherit;
  color: var(--text-color);
  color: inherit;
}

*::selection {
  background: rgba(var(--accent-color-rgb), 0.1);
}

html,
body {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-sans);
}

body {
  background: var(--primary-color);
  /* background: linear-gradient(to bottom right, var(--primary-color-base), var(--primary-color)); */
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* @supports (scroll-behavior: smooth) {
  html, body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch
  }
} */

section {
  scroll-margin-top: var(--nav-height);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--accent-color);
}

strong {
  font-weight: 600;
  color: var(--text-color-base);
}

em {
  font-style: italic;
  color: var(--text-color-base);
}

/* PROSE CSS */
.prose {
  max-width: 768px;
  margin: 0 auto;
  /* padding: 1rem; */
}

.section-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  /* So that there is room for each emoji to show */
  max-width: 95%;
  margin: 0 auto 1.5rem auto;
}

.body-text {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(var(--text-color-rgb), 0.95);
}

.with-tooltip {
  position: relative;
  border-bottom: 1px dotted var(--accent-color);
  display: inline-block;
}

.with-tooltip .tooltip {
  position: absolute;
  left: 0;
  top: -6px;
  width: max-content;
  max-width: 300px;
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 200ms ease-in-out, transform 400ms ease;
  transform: translateX(calc(0% - 20px)) translateY(-110%) rotate(-10deg);
  -webkit-transform: translateX(calc(0% - 20px)) translateY(-110%) rotate(-10deg);
  -moz-transform: translateX(calc(0% - 20px)) translateY(-110%) rotate(-10deg);
  -ms-transform: translateX(calc(0% - 20px)) translateY(-110%) rotate(-10deg);
  -o-transform: translateX(calc(0% - 20px)) translateY(-110%) rotate(-10deg);
  -webkit-transition: opacity 200ms ease-in-out, transform 400ms ease;
  -moz-transition: opacity 200ms ease-in-out, transform 400ms ease;
  -ms-transition: opacity 200ms ease-in-out, transform 400ms ease;
  -o-transition: opacity 200ms ease-in-out, transform 400ms ease;
}

.with-tooltip .tooltip.text {
  text-align: left;
  background: white;
  outline: 3px solid var(--accent-color);
  line-height: 1.3;
  font-weight: 400;
  color: rgba(0,0,0,.75);
  letter-spacing: -.25px;
  box-shadow: 1px 1px 15px var(--accent-color);
}

.with-tooltip:hover .tooltip {
  opacity: 1;
  transform: translateX(calc(0% - 10px)) translateY(-105%) rotate(-5deg);
  -webkit-transform: translateX(calc(0% - 10px)) translateY(-105%) rotate(-5deg);
  -moz-transform: translateX(calc(0% - 10px)) translateY(-105%) rotate(-5deg);
  -ms-transform: translateX(calc(0% - 10px)) translateY(-105%) rotate(-5deg);
  -o-transform: translateX(calc(0% - 10px)) translateY(-105%) rotate(-5deg);
}

/* Make tooltip fixed to bottom of screen and mobile */
@media screen and (max-width: 568px) {
  .with-tooltip {
    display: inline; /* Prevents taking up block */
  }

  .with-tooltip .tooltip {
    position: fixed;
    bottom: 4rem;
    top: unset;
    left: 50%;
    width: 100%;
    max-width: 90vw;
    margin: auto;
    display: flex;
    justify-content: center;
    place-items: center;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}
  
  .with-tooltip:hover .tooltip {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
  }
}

ul.body-list {
  /* list-style-type: decimal-leading-zero; */
  list-style-type: disc;
  font-size: 1.15rem;
  line-height: 1.15rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  margin-left: 2rem;
}

ul.body-list li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0;
  position: relative;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: rgba(var(--accent-color-rgb), 0.8);
  font-weight: 400;
}

.direction-text {
  border: 2px solid var(--accent-color);
  border-left-width: 10px;
  padding: 1rem 0.5rem 1rem 0.75rem;
  margin: 2rem 0;
  position: relative;
  font-family: var(--font-serif);
  background: var(--primary-color-base);
  line-height: 1.35;
  font-size: 1.1rem;
  user-select: none;
}

.direction-text::before {
  background-image: url("images/emojis/point-down.png");
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: 50px;
  content: "";
}

.direction-text:hover::before {
  animation: wave 0.7s linear forwards;
}

/* Noise on direction text */
/* .direction-text::after {
  width: 100%;
  height: 100%;
  z-index: 1;
  content: "";
  position: absolute;
  pointer-events: none;
  background-position: 50%;
  background-image: url("/images/noise.png");
  opacity: 0.5;
  top: 0;
  left: 0;
} */

@media screen and (max-width: 568px) {
  .section-title {
    font-size: 2.75rem;
  }
  .body-text {
    font-size: 1.1rem;
  }
}

.accent-text,
.accent-text * {
  font-weight: 900;
  color: var(--accent-color);
}

.centered {
  text-align: center;
}

/* SECTION BACKGROUNDS ALTERNATING */
section:nth-of-type(even) {
  /* background: rgba(var(--primary-color-rgb), 1); */
  background: rgba(118, 68, 255, 0.05);
}

section:nth-of-type(odd) {
  /* background: var(--primary-color); */
  background: transparent;
}

/* EMOJI STUFF! */
.emoji-follows {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.emoji-follows img {
  z-index: -1;
}

@media screen and (max-width: 568px) {
  .emoji-follows::before {
    opacity: 0;
  }
}

h1:hover .emoji-follows img {
  animation: wave 0.7s linear forwards;
  -webkit-animation: wave 0.7s linear forwards;
}

@keyframes wave {
  0% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(7.5deg);
  }

  40% {
    transform: rotate(-7.5deg);
  }

  60% {
    transform: rotate(7.5deg);
  }

  80% {
    transform: rotate(-7.5deg);
  }

  100% {
    transform: rotate(0);
  }
}

/* CARDS */

.shareable-card {
  width: 100%;
  height: 100%;
  position: relative;

  background: var(--accent-color);
  background: linear-gradient(
    to bottom right,
    var(--text-color) -50%,
    var(--accent-color) 100%
  );

  /* Lighter cards */
  /* background: linear-gradient(
      to bottom right,
      var(--accent-color) 25%,
      var(--primary-color) 250%
    ); */
}

.shareable-card * {
  color: var(--primary-color);
}

.shareable-card-footer {
  position: absolute;
  bottom: 1vw;
  right: 1vw;
  font-weight: 200;
  text-transform: uppercase;
  font-size: 1.75vw;
}

/* BUTTONS */
/* .button {
  background: rgba(var(--primary-color-rgb), 1);
  font-family: var(--font-sans);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 700ms ease;
  display: block;
  font-weight: 300;
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  -webkit-transition: all 700ms ease;
  -moz-transition: all 700ms ease;
  -ms-transition: all 700ms ease;
  -o-transition: all 700ms ease;
  box-shadow: 1px 1px 3px rgba(var(--accent-color-rgb), 0.95);
  background: rgba(var(--accent-color-rgb), 0.2);
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-serif);
  color: rgba(var(--text-color-rgb), 0.8);
  letter-spacing: -0.025rem;
} */

/* .button:not(.disabled):hover {
  box-shadow: 1px 1px 3px rgba(var(--accent-color-rgb), 0.5);
} */

button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  transition: all 300ms ease;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
}

button.disabled,
button:disabled {
  cursor: not-allowed;
}

/* SCROLLBAR */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none; /* Firefox */
}

/* WEGLOT */
.wg-default, .wg-default .country-selector {
  /* right: 75px !important; */
  bottom: .5rem !important;
  left: .5rem !important;
  right: unset !important;
}

.weglot-container {
  z-index: 1000 !important;
}

@media screen and (max-width: 568px) {
  :root {
    --nav-height: 1px;
  }

  .direction-text { 
    max-width: 85vw;
    margin: 2rem auto;
  }
}

/* ACCESSIBILITY */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px dashed var(--accent-color);
}