*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

/* button reset */
button {
  border: none;
  background-color: transparent;
}

body {
  font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", 
  "Segoe UI Symbol";
  font-size: 16px;
  box-sizing: border-box;
}

section {
  padding: 32px;
}


/*  | ESSENCE |  */
/*  |         |  */
/*  V         V  */

/* color variables */
:root {
  --annotation-color-main: #4d88fe;
  --annotation-color-text: #fff;
}

/* button */
.annotation-btn {
  position: relative;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  margin-right: 1ch; /* adjust considering the font */
  border-bottom: .1em dotted #4d88fe; /* fallback */
  border-bottom: .1em dotted var(--annotation-color-main);
  vertical-align: baseline;
  cursor: pointer;
  transition: all .2s;
}

.annotation-btn:hover {
  border-bottom: .1em solid #4d88fe; /* fallback */
  border-bottom: .1em solid var(--annotation-color-main);
}

.annotation-btn:hover::after {
  color: #4d88fe; /* fallback */
  color: var(--annotation-color-main);
}

.annotation-btn--active {
  color: #4d88fe; /* fallback */
  color: var(--annotation-color-main);
}

.annotation-btn::after {
  content: "**";
  display: inline;
  position: absolute;
  top: -.3em;
  left: 100%;
  font-size: 70%; /* adjust considering the font */
  color: inherit;
}


/* annotation */
.annotation-wrapper {
  position: relative;
  display: block;
  position: fixed;
  bottom: -300px; 
  left: 0;
  width: 100%;
  font-size: 14px;
  text-align: left;
  padding: 1.5em 8ch;
  background-color: #4d88fe; /* fallback */
  background-color: var(--annotation-color-main);
  z-index: 9999;
  transition: all .3s ease-in-out;
  opacity: 0;
}

.annotation-text {
  position: relative;
  font-size: inherit;
  color: #fff; /* fallback */
  color: var(--annotation-color-text);
}

.annotation-text::before {
  content: "**";
  display: inline;
  position: absolute;
  top: -.6em;
  left: -2.4ch;
  font-size: inherit;
  color: #fff; /* fallback */
  color: var(--annotation-color-text);
}

.annotation-close-btn {
  display: block;
  position: absolute;
  top: -52px;
  right: 24px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, .7);
  border: 3px solid #4d88fe; /* fallback */
  border: 3px solid var(--annotation-color-main);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}

.annotation-close-btn::before,
.annotation-close-btn::after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 70%;
  height: 2px;
  background-color: #4d88fe; /* fallback */
  background-color: var(--annotation-color-main);
  transition: all .15s;
}

.annotation-close-btn::before {
  transform: rotate(45deg);
}

.annotation-close-btn::after {
  transform: rotate(-45deg);
}

.annotation-close-btn:hover::before,
.annotation-close-btn:hover::after {
  transform: rotate(0);
}

.annotation-close-btn:focus {
  background-color: #4d88fe; /* fallback */
  background-color: var(--annotation-color-main);
  outline: none;
}

.annotation-close-btn:focus::before,
.annotation-close-btn:focus::after {
  background-color: #fff;
}


/* js classes for annotations */
.show-annotation {
  bottom: 0 !important;
  opacity: 1 !important;
}