/* Tooltip */

.bb-tooltip {
  border-bottom: 1px dotted #000;
  text-decoration: none;
  cursor: help;
}
span[data-tooltip] {
  position: relative;
}
span[data-tooltip]::before,
span[data-tooltip]::after {
  position: absolute;
  display: none;
  opacity: 0.85;
}
span[data-tooltip]::before {
  content: attr(data-tooltip);
  background: #000;
  color: #fff;
  font-size: 13px;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  text-decoration: none;
  z-index: 999;
}
span[data-tooltip]::after {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  content: '';
}

span[data-tooltip]:hover::before,
span[data-tooltip]:hover::after {
  display: block;
}

/** Tooltip positioning **/

/* left tooltip */
span[data-tooltip][data-placement="left"]::before {
  top: -25%;
  right: 100%;
  margin-right: 10px;
}
span[data-tooltip][data-placement="left"]::after {
  border-left-color: #000;
  border-right: none;
  top: 50%;
  right: 100%;
  margin-top: -6px;
  margin-right: 4px;
}

/* right tooltip */
span[data-tooltip][data-placement="right"]::before {
  top: -25%;
  left: 100%;
  margin-left: 10px;
}
span[data-tooltip][data-placement="right"]::after {
  border-right-color: #000;
  border-left: none;
  top: 50%;
  left: 100%;
  margin-top: -6px;
  margin-left: 4px;
}

/* top tooltip */
span[data-tooltip][data-placement="top"]::before {
  bottom: 100%;
  left: 0;
  margin-bottom: 10px;
}
span[data-tooltip][data-placement="top"]::after {
  border-top-color: #000;
  border-bottom: none;
  bottom: 100%;
  left: 10px;
  margin-bottom: 4px;
}

/* bottom tooltip */
span[data-tooltip][data-placement="bottom"]::before {
  top: 100%;
  left: 0;
  margin-top: 10px;
}
span[data-tooltip][data-placement="bottom"]::after {
  border-bottom-color: #000;
  border-top: none;
  top: 100%;
  left: 10px;
  margin-top: 4px;
}

/* accordion */

.accordion { 
   width: 100%;
   position: relative;
}
.accordion-content {
  width: 100%;
  display: block !important;
}
.accordion-header:focus {
  border: 0;
  outline: none;
}
.accordion-header {
  border-radius: 4px;
}
.accordion-chk { 
  width: 100%;
  position: absolute; 
  left: 0px;
  top: 0px;
  height: 40px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -o-appearance: none !important;
  -khtml-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 20px;
  z-index: 2;
  margin: 0px;
  border: 0;
  outline: none;
}

input.accordion-chk:checked {
    background-color: transparent;
}

input.accordion-chk:focus {
  border: 0;
  outline: none;
}

.accordion h3 { 
  border: none;
  position: relative; 
  padding: 10px;
  margin: 0;
  z-index: 1;
}

.acc-icon {
    float: right;
}

.accordion .accordion-chk:checked + h3 + div.accordion-content { 
    opacity: 1;
   -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    max-height: 1000px;
    overflow: hidden;
    padding: 15px;
}

.accordion-content { 
    opacity: 0;
    padding: 15px;
    overflow: hidden !important;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    -moz-transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    margin-bottom: 2px;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left !important;
}
.accordion.Button--primary {
    border-radius: 5px;
}

/* action */

.asterisk {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  animation: spin 5s infinite linear;
  zoom: 10%;
  vertical-align: top;
}
.asterisk-line {
  position: absolute;
  top: calc(50% - 10px);
  display: inline-bock;
  width: 100px;
  height: 20px;
  background: #FF8000;
}
.asterisk-line {
    background: #FF8000; 
}
    .asterisk-line:nth-child(2) {
      transform: rotate(60deg);
    }
    .asterisk-line:nth-child(3) {
      transform: rotate(120deg);
    }
@keyframes spin {
  from {transform:rotate(0deg);}
  to {transform:rotate(360deg);}
}
.action-text {
  font-style: italic;
  color: #FF8000;
}

/* popup */

div[id^="popmodal-"] {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  opacity: 0;
  z-index: -1;
  transition: all 300ms ease;
}

.popcontainer {
  width: 70%;
  margin: auto;
  background: #fff;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 4px;
  color: #222 !important;
}

.popcontainer h2 {
  text-align: center;
  margin-top:0;
}

.popcontainer .poplink {
  text-align: center;
}

div[id^="popmodal-"]:target {
  opacity: 1;
  z-index: 100;
}

a.popbtn.Button.Button--primary {
    border-bottom: none !important;
}

/* Chat */
.chat-a {
  display: block;
  padding: 15px;
  border-radius: 5px;
  width: 45%;
  text-align: left;
  clear: both;
  cursor: default;
  overflow-wrap: break-word;
  white-space:inherit;
}
.chat-b {
  display: block;
  padding: 15px;
  border-radius: 5px;
  float: right;
  width: 45%;
  text-align: left;
  clear: both;
  cursor: default;
  overflow-wrap: break-word;
  white-space:inherit;
}
.chat-b-normal {
  font-weight: normal !important;
}
.space {
  clear: both;
  display: block;
  margin-bottom: 10px;
}

/* Spoiler */

summary:focus {
  outline: none;
}

details {
  cursor: pointer;
}

/* Blur */

.bbspoiler-blur {
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 0, 0, 0.75);
  transition: all 2s ease-in-out;
  color: #000;
  color: rgba(0, 0, 0, 0);
  padding-left: 5px;
}

.bbspoiler-blur:hover {
  text-shadow: none;
  color: #000;
  cursor: help;
  padding-left: 0;
}

/* Quick font colors */

.bbred {
    color: #eb7070;
}
.bborange {
    color: #ff8c00;
}
.bbyellow {
    color: #ffdf00;
}
.bbgreen {
    color: #64e291;
}
.bbblue {
    color: #3c70a4;
}
.bbpurple {
    color: #512c96;
}
.bbhighlight {
    border-radius: 1em 0 1em 0;
    text-shadow: 1px 1px 1px #fff;
    background-image: 
    linear-gradient(-100deg, 
      rgba(255,250,150,0.15),
      rgba(255,250,150,0.8) 100%, 
      rgba(255,250,150,0.25)
    );
}

/* Responsive audio */

audio {
  width: 100%;
  outline: none;
}  
