/* latin 400 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/fonts/fredoka/latin400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin 500 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  src: url(/fonts/fredoka/latin500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  
}

* {
  font-family: inherit;
}

/* make a without href look like (unvisited) links */
a:not([href]) {
  color: rgb(0, 0, 238);
  cursor: pointer;
  text-decoration: underline;
}

html, body {
  overscroll-behavior: none;
}

body {
  font-family: 'Fredoka', sans-serif;
}

strong, h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

.invisible {
  visibility: hidden;
}

.overlay {
  position: absolute;
  color: var(--txt-color);
  background: var(--bg-color);
  font-family: Fredoka;
  width: 100%;
  max-width: var(--max-width);
  max-height: calc(100% - 50px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--popup-animation-duration), opacity var(--popup-animation-duration);
  overflow-y: auto;
  z-index: 200020;
  border-radius: 12px;
}

.overlay.overlay-small {
	max-width: 80%;
	width: 360px;
  max-height: 100%;
}

.overlay:is(.invisible, .fade-out) {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
}

.overlay.angry {
  animation: 70ms alternate 2 overlay-angry;
}

@keyframes overlay-angry {
  from {
    transform: translate(-50%, -50%);
  }

  to {
    transform: translate(-50%, -50%) scale(1.05);
  }
}


@media (max-width: 600px) {
    .overlay:not(.overlay-small) {
      height: 100%;
      max-height: initial;
      border-radius: initial;
    }
}

.popup-background {
    background: grey;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity var(--popup-animation-duration);
    z-index: 200019;
}

.popup-background:not(.invisible) {
    opacity: 0.5;
}

.popup-background.fade-out {
    opacity: 0;
}

.snigel-bar-ad, .snigel-between-paragraphs-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* fix snigel CMP logo size  with hack for specificity */
.snigel-cmp-framework.sn-bm .sn-logo.sn-logo .sn-inner-logo {
  display: flex;
}
.sn-logo.sn-logo .sn-inner-logo img {
  height: 100%;
  max-height: 80px;
}