/* 1. Define local font face */
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/Source_Sans_3/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --color-1: #e6007d;
  --color-2: #074ea1;
  --color-3: #00a0e2;
  --font-family: "Jost", sans-serif;
  --font-family-text: "Source Sans 3", sans-serif;
}

.richText p, .richText ul, .richText ol {
  font-family: var(--font-family-text);
}

.text-element-1:not(:has(.text-changer)) h1{
  font-size: 70px;
  background-color: transparent;
  background-image: linear-gradient(var(--color-3), var(--color-3));
  background-repeat: no-repeat;
  background-size: 100% 0.85em;
  background-position: center 0.32em;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0));
  display: inline;
  margin-bottom: 20px;
  display: inline;
  line-height: 1;
}

.text-changer span {
  min-width: 0;
  background-color: transparent;
  background-image: linear-gradient(var(--color-2), var(--color-2));
  background-repeat: no-repeat;
  background-size: 100% 0.85em;
  background-position: center 0.32em;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0));
  width: fit-content;
  padding: 0px;
  font-size: 45px;
  font-weight: 900;
  color: white;
  font-style: italic;
  line-height: 1;
}

.text-changer > div {
  padding:0 5px;
  width: auto;
}

.secondary-text {
  background-color: transparent;
  background-image: linear-gradient(var(--color-1), var(--color-1));
  background-repeat: no-repeat;
  background-size: 100% 0.85em;
  background-position: center 0.32em;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0));
  display: inline;
  padding: 0;
  font-size: 40px;
  line-height: 1;
}

.text-element-1:not(:has(.text-changer)) .secondary-text{
  margin-top: 25px;
}

.text-element-1 {
  text-align: center;
}

.text-element-1 h1 {
  padding: 0;
  font-size: 40px;
  margin-bottom: 5px;
  line-height: 1;
  background-color: transparent;
  background-image: linear-gradient(var(--color-1), var(--color-1));
  background-repeat: no-repeat;
  background-size: 100% 0.85em;
  background-position: center 0.32em;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0));
  display: inline;
}

.title-wrapper {
  font-style: italic;
  text-align: left;
  margin-left: 20px;
  transform: rotate(-3deg);
}

header {
  background: #00a0e2ed;
}

.nav-primary a {
  color:white;
  /*transform: rotate(-3deg);
  font-style: italic;*/
}

ul.nav-primary a.active,
.nav-primary a:hover {
  color:white;
}

.nav-primary a::before {
  content:'';
  width:calc(100% - 40px);
  height:calc(100% - 80px);
  position: absolute;
  z-index: -1;
}

.nav-primary:has(:nth-child(7)) a::before {
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  top: 15px;
}

.nav-primary a:hover::before,ul.nav-primary a.active::before {
  background: var(--color-2);
}

header .logo img {
  filter: brightness(0) invert(1);
}

.articleMainInfo>h1>span {
  background-color: transparent;
  background-image: linear-gradient(var(--color-2), var(--color-2));
  background-repeat: no-repeat;
  background-size: 100% 0.85em;
  background-position: center 0.32em;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0));
  display: inline;
}

.articleMainInfo>h1 {
  line-height: 1;
}

@media screen and (max-width: 800px) {
  ul.nav-primary {
    background: var(--color-1);
  }


  .nav-primary a::before {
    width: calc(100% - 75px);
    height: calc(100% - 30px);
    top:15px;
  }

  .nav-primary:has(:nth-child(7)) a::before {
    width: calc(100% - 35px);
  }

  .text-element-1 h1, .secondary-text {
    font-size: 22px;
  }

  .text-changer span {
    font-size: 23px;
  }

  .text-element-1:not(:has(.text-changer)) h1 {
    font-size: 40px;
  }

  .text-element-1:not(:has(.text-changer)) .secondary-text {
    margin-top: 10px;
  }

  .text-element-1 {
    text-align: left;
  }

  .title-wrapper {
    margin-left: 10px;
  }
}
