// Set your brand colors
$purple: #8a4d76;
$pink: #7c95fa;
$brown: #757763;
$beige-light: #d0d1cd;
$beige-lighter: #eff0eb;

// Path to Bulma's sass folder
@use "bulma/sass" with (
  $family-primary: '"Nunito", sans-serif',
  $control-border-width: 2px,
  $input-shadow: none
);

#tab-content > div {
  display: none;
}

#tab-content > div.is-active {
  display: block;
}

body {
  padding: 5px;
}

.result-card {
  width: 100%;
}

.inline-icon {
  height: 1.5rem;
}

.footer-logo {
  height: 5rem;
}

// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");

.tooltip {
  position: relative;
  cursor: help;

  &::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5em;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
  }

  &:hover::after {
    opacity: 1;
  }
}

/*
TOOLTIP
Reused from Notfellchen
 */

.tooltip {
  display: inline-flex;
  justify-content: center;
  position: relative;
}

.tooltip:hover .tooltiptext {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.tooltip .tooltiptext {
  border-radius: 4px;
  bottom: calc(100% + 0.6em + 2px);
  box-shadow: 0px 2px 4px #07172258;
  background-color: var(--primary-dark-one);
  color: var(--secondary-light-one);
  font-size: 0.68rem;
  justify-content: center;
  line-height: 1.35em;
  padding: 0.5em 0.7em;
  position: absolute;
  text-align: center;
  width: 7rem;
  z-index: 1;
  display: flex;
  opacity: 0;
  transition: all 0.3s ease-in;
  visibility: hidden;
}

.tooltip .tooltiptext::before {
  border-width: 0.6em 0.8em 0;
  border-color: transparent;
  border-top-color: var(--primary-dark-one);
  content: "";
  display: block;
  border-style: solid;
  position: absolute;
  top: 100%;
}

/* Makes the tooltip fly from above */
.tooltip.top .tooltiptext {
  margin-bottom: 8px;
}

.tooltip.top:hover .tooltiptext {
  margin-bottom: 0;
}

/* Make adjustments for bottom */
.tooltip.bottom .tooltiptext {
  top: calc(100% + 0.6em + 2px);
  margin-top: 8px;
}

.tooltip.bottom:hover .tooltiptext {
  margin-top: 0;
}

.tooltip.bottom .tooltiptext::before {
  transform: rotate(180deg);
  /* 100% of the height of .tooltip */
  bottom: 100%;
}

.tooltip:not(.top) .tooltiptext {
  bottom: auto;

}

.tooltip:not(.top) .tooltiptext::before {
  top: auto;
}


// SUS Slider

.sus-slider {
  width: 100%;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

// FLOATING BUTTON

.floating {
  position: fixed;
  border-radius: 0.3rem;
  bottom: 4.5rem;
  right: 1rem;
}