@font-face {
  font-family: "Erika Blur";
  font-weight: normal;
  src: url("../fonts/240412_erika-blur.otf") format("opentype"),
    url("../fonts/240412_erika-blur.woff2") format("woff2");
}

@font-face {
  font-family: "Nimbus";
  font-weight: normal;
  src: url("../fonts/nimbus-sans-extd-black.otf") format("opentype"),
    url("../fonts/nimbus-sans-extd-black.woff2") format("woff2");
}

:root {
  --background: #6633ff;
  --foreground: #f3f3f3;
  --darkpurple: #232323;
  --lightblue: #aac8ff;
  --yellow: #f4ff53;
}

* {
  box-sizing: border-box;
}

html {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Erika Blur", sans-serif;
  font-size: 20px;
  line-height: 24px;
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.template-legal {
  background-color: var(--darkpurple);
}

button {
  background: none;
  margin: 0;
  padding: 0;
  border: 0;
}

a {
  color: inherit;
}

h4 {
  font-family: "Nimbus", sans-serif;
}

/* background */

.background {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* header */

header {
  padding: 0 0.25vw;
  z-index: 2;
  color: var(--foreground);
  mix-blend-mode: difference;
  position: sticky;
  top: 0;
  font-size: 4.25vw;
  line-height: 4.25vw;
}

header h1 a {
  text-decoration: none;
}

header ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.25em;
}

header ul li {
  white-space: nowrap;
}

header h1 {
  font-size: inherit;
  /* line-height: inherit; */
  line-height: 0;
  margin: 0;
  text-transform: uppercase;
  font-family: "Nimbus", sans-serif;
  display: inline;
}

.subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 auto;
}

.languages {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.25rem;
  border-radius: 1rem;
  /* transform: translateY(-15%); */
}

.languages > div {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.languages > div.active {
  background-color: var(--foreground);
}

.languages a {
  mix-blend-mode: difference;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1rem;
  display: inline-block;
}

/* cover */

.cover video {
  width: 100%;
  height: auto;
  mix-blend-mode: difference;
}

/* accordion */

.accordion {
  background-color: var(--darkpurple);
  padding: 1rem;
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-summary:hover {
  color: var(--lightblue);
}

.accordion-summary h3 {
  margin: 0;
  gap: 1rem;
  font-family: "Nimbus", sans-serif;
}

.accordion .expand-symbol {
  text-align: right;
}

.accordion .expand-symbol img {
  display: inline-block;
  transition: transform 0.5s;
}

.accordion details[open] > summary .expand-symbol img {
  transform: rotate(-135deg);
}

.accordion-content h4,
.accordion-content p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* grid */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.column {
  grid-column: span var(--span);
}

/* tixforgigs */

#tfg-templateConainer > div {
  height: auto !important;
}

/* legal */

.legal {
  max-width: 960px;
  margin: 4rem auto;
}

/* footer */

footer {
  background-color: var(--foreground);
  color: var(--darkpurple);
  padding: 1rem;
}

.footer-grid {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

footer a {
  text-decoration: none;
}

/* cookies */

.cookies {
  background-color: var(--yellow);
  padding: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.cookies-text {
  font-family: "Nimbus", sans-serif;
  font-size: 15px;
  line-height: 18px;
  color: var(--darkpurple);
  margin-bottom: 1rem;
}

.cookies-button {
  text-align: center;
}

.cookies-button button {
  background-color: var(--foreground);
  border-radius: 1rem;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 840px) {
  .grid {
    gap: 0;
  }

  .column {
    grid-column: span 12;
  }

  /* header */

  header {
    font-size: 6.3vw;
    line-height: 6.3vw;
    padding: 1vw;
  }

  header ul {
    flex-direction: column;
    gap: 0;
  }

  .languages {
    display: flex;
    flex-direction: row;
  }

  /* accordion */

  .accordion-summary {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .accordion-summary h3 {
    margin-bottom: 1rem;
  }

  .accordion .expand-symbol {
    position: absolute;
    top: 0;
    right: 0;
  }

  /* footer */

  .footer-grid {
    flex-direction: column;
  }
}
