* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit.ttf");
}

body {
  font-family: "Outfit", sans-serif !important;
  font-style: normal;
  background: linear-gradient(180deg, #060b32 0%, #24053d 100%);
  background-attachment: fixed;
  height: 100%;
  color: #ffffff;
  padding: 0 16px;
}

footer {
  margin: 0 -16px;
  background-color: #f2f0f4;
  padding: 4rem 1rem;
  padding-bottom: 6rem 0;
}

footer p, footer .eu p {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c2c2c;
  font-size: 18px;
}

footer .content {
  display: flex;
  max-width: 1024px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  display: block;
  height: 100%;
}

footer .content .sponsor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: calc(25% - 12px);
  background-color: rgba(51, 32, 80, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  height: 8rem;
}

footer .content .sponsor:hover {
  background-color: rgba(51, 32, 80, 0.07);
}

footer .eu {
  justify-content: center;
  background-color: rgba(51, 32, 80, 0.05);
  border-radius: 12px;
  padding: 1.5rem 0;
  gap: 12px;
  margin-bottom: 3rem;
}

footer .eu p {
  text-align: center;
  display: block;
  width: 100%;
  line-height: 1.3em;
  margin-bottom: 1rem;
}

footer .content .sponsor img, footer .eu img {
  width: 100%;
  height: 100%;
  max-width: 600px;
  object-fit: contain;
  transform: scale(0.8);
}

#app {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  margin-top: 42px;
  gap: 42px;
}

.column {
  flex-basis: calc(50% - 21px);
}

.header {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2rem;
}

.event {
  flex-basis: 100%;
  background-color: #2f174d;
  border-radius: 12px;
  border: 1px solid #6c2b94;
}

.event .details {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.event .content .details p {
  margin: 0;
  opacity: 1;
}

.event {
  position: relative;
}

.event .heading {
  padding: 20px 28px;
  position: relative;
  cursor: pointer;
}

.event .heading:hover .title {
  text-decoration: underline;
}

.event .heading .title {
  font-size: 20px;
  display: inline-block;
  padding-right: 2em;
}

.event .button {
  display: inline-block;
  background-color: #7b34a8;
  margin: 0;
  padding: 12px 20px;
  height: 42px;
}

.event .button p {
  margin: 0 !important;
}

.event .content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 12px 28px;
  margin-top: 0;
  padding-top: 12px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  line-height: 1.5em;
}

.event ul {
  padding-left: 20px;
  position: relative;
}

.event ul ul {
  margin: 12px 0;
}

.event ul li {
  margin-bottom: 0.3em;
}

.event .content ul li:before {
  content: "●";
  position: absolute;
  left: 0;
}

.event .content ul ul li:before {
  content: "○";
}

.event .content p {
  margin: 1em 0;
  opacity: 0.8;
}

.event .content ul {
  opacity: 0.8;
}

.event .content ul ul {
  opacity: 1;
}

.event .heading:after {
  content: "";
  display: inline-block;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 14px;
  transition: all 300ms;
  background: url("./arrow.svg");
}

.event.is-expanded .heading:after {
  transform: translateY(-50%) rotate(180deg);
}

.event .label {
  text-transform: uppercase;
  color: #c975ff;
  line-height: 1.3em;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 4px;
}

.logo-group {
  display: flex;
}

.languages {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.languages a {
  transition: all 300ms;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5em 1em;
  text-decoration: none;
  border: 1px solid #60627d;
  max-height: 36px;
}

.languages a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.languages a.current:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.languages a:first-child {
  border-radius: 8px 0 0 8px;
  margin-right: -1px;
}

.languages a:last-child {
  border-radius: 0 8px 8px 0;
}

.languages a p {
  margin: 0;
}

.languages a.current {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.2);
}

.logo {
  margin-right: 1.75rem;
  display: block;
  width: 100%;
  max-width: 85px;
}
h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 48px;
  font-weight: 599;
  line-height: 60px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 21px;
  opacity: 0.8;
  line-height: 35px;
  font-weight: 300;
}

h3 {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.cta-group {
  display: flex;
  column-gap: 16px;
  flex-wrap: wrap;
}

.cta-group .button {
  flex-basis: calc(50% - 8px);
}

.button.secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-group h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin: 1em 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.button,
.button:visited {
  display: block;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-top: 32px;
  padding: 12px 20px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.button.primary {
  background-color: #7b34a8;
}

.button:hover .title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.button p {
  line-height: 1;
  margin: 0.25em;
}

.button .title {
  font-size: 16px;
}

.button p.smaller {
  color: #fff;
  opacity: 0.8;
  font-weight: 400;
}

.button.newsletter,
.button.secondary {
  position: relative;
  padding-left: 52px;
  transition: all 300ms;
}

.button.contact:before {
  position: absolute;
  content: "";
  background-image: url("./letter-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  left: 22px;
  width: 16px;
  height: 16px;
  display: block;
  top: 50%;
  transform: translate(0, -50%);
  transform-origin: 34% -39%;
}

.button.secondary.download {
  padding-left: 64px;
  margin-bottom: 42px;
}

.button.download:before {
  position: absolute;
  content: "";
  background-image: url("./pdf-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  left: 22px;
  width: 32px;
  height: 32px;
  display: block;
  top: 50%;
  transform: translate(0, -50%);
  transform-origin: 34% -39%;
}

.button .smaller {
  text-align: left;
}

.button .smaller {
  text-align: left;
}

@keyframes swing {
  0% {
    transform: rotate(0) translate(0, -50%);
  }
  25% {
    transform: rotate(25deg) translate(0, -50%);
  }
  50% {
    transform: rotate(-25deg) translate(0, -50%);
  }
  100% {
    transform: rotate(0) translate(0, -50%);
  }
}

.button.newsletter:hover {
  background-color: #7605b8;
}

.button.newsletter:hover:before {
  animation: swing 500ms 200ms linear 3;
}

.button.newsletter:before {
  position: absolute;
  content: "";
  background-image: url("./bell-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  left: 22px;
  width: 20px;
  height: 20px;
  display: block;
  top: 50%;
  transform: translate(0, -50%);
  transform-origin: 34% -39%;
}

.section > p {
  line-height: 1.45em;
  font-size: 18px;
}

.section p {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 350;
  margin-bottom: 1.2em;
}

.section p:last-child {
  margin-bottom: 0;
}

table.agenda th {
  text-align: left;
}

table.agenda td {
  min-width: 180px;
  padding: 5px 0;
}

.smaller {
  text-align: center;
  font-size: 14px;
  color: #a79bb1;
  margin: 42px 0;
  letter-spacing: 0.02em;
}

a {
  text-decoration: underline;
  color: inherit;
}

.accent {
  color: #fff;
  font-weight: 599;
}

.smaller .accent {
  font-weight: 300;
}

.smaller.sender {
  text-align: left;
  line-height: 1.4em;
}

@media screen and (max-width: 1024px) {
  .cta-group {
    margin-top: 24px;
  }
  .column .button {
    flex-basis: 100%;
    margin-top: 16px;
  }
  .column {
    flex-basis: 100%;
  }

  .event .content {
    gap: 0;
  }
}

@media screen and (max-width: 640px) {
  .event .content {
    padding: 0;
    margin: 12px;
  }

  footer .content .sponsor {
    flex-basis: 100%;
    height: 100px;
  }

  footer .content {
    flex-wrap: wrap;
  }

  footer .content {
    padding: 0 16px;
  }

  .event .heading {
    padding: 16px 14px;
  }

  #app {
    margin-top: 20px;
    gap: 32px;
  }
  .languages {
    margin: 0.2rem 0;
  }
  .languages a {
    padding: 0.5em 0.75em;
    font-size: 15px;
  }
  .text-content {
    flex-grow: 0;
  }
  .header {
    padding-bottom: 20px;
    .logo {
      margin-right: 16px;
      max-width: 42px;
    }
    h1 {
      font-size: 24px;
    }
    h2 {
      display: none;
    }
  }

  .section {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .button {
    width: 100%;
  }
  iframe {
    height: 190px;
  }
}

.modal::backdrop {
  background: #000;
}

#button-close {
  font-family: inherit;
  font-size: 14px;
  display: inline-block;
  height: 32px;
}

/* ----- Mobile adapations ------ */

.lang-wrapper {
  display: flex;
  align-items: center;
}

.language-button {
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 13px 16px;
  border-radius: 12px;
  display: flex;
}

.language-button:hover {
  text-decoration: underline;
}

.language-button:before {
  display: block;
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("/lang-icon.svg");
  margin-right: 8px;
}

.language-button:after {
  display: block;
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: center center;
  margin-left: 8px;
  opacity: 0.5;
}

.language-dropdown {
  position: absolute;
  bottom: -16px;
  right: 0;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 99;
  width: 200px;
  transform: translateY(75%);
  max-width: calc(100vw - 32px);
  flex-direction: column;
  border-radius: 8px;
  border: none;
  box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: all 200ms;
}

.language-dropdown.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(100%);
}

.language-dropdown a {
  max-height: none;
  display: block;
  height: 52px;
  flex-grow: 1;
  line-height: 3.1;
  width: 100%;
  margin-bottom: -1px;
  text-decoration: none;
  padding-left: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.language-dropdown a.current {
  color: rgba(255, 255, 255, 0.5);
  cursor: default !important;
}

.language-dropdown a.current:hover {
  text-decoration: none;
}

.language-dropdown a:hover {
  text-decoration: underline;
}

.language-dropdown a:last-child {
  border: none;
}

.mobile-open {
  position: absolute;
  display: block;
  right: 0;
  width: 24px;
  height: 24px;
  background-color: pink;
}

.languages a:first-child {
  border-radius: 8px 8px 0 0;
  margin: 0;
  margin-bottom: -1px;
}

.languages a:last-child {
  border-radius: 0 0 8px 8px;
}
