:root {
  --color-primary: #3aa57c;
  --color-success: var(--color-primary);
  --color-info: #4697c9;
  --color-warning: #f9a557;
  --color-danger: #b23e65;

  --color-gray: color-mix(in hsl, #8590a4, var(--color-primary) 10%);
  --color-gray-100: color-mix(in hsl, #f8f9fa, var(--color-primary) 5%);
}

body {
  overflow-y: auto;
}

h2 {
  font-family: Cairo;
  color: #404040;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.52;
}
h3 {
  font-family: Titillium Web;
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary);
}
h4 {
  color: var(--color-primary);
  font-size: 21px;
  font-family: Titillium Web;
  font-weight: bold;
}
h6 {
  font-family: Titillium Web;
  font-weight: bold;
  font-size: 16px;
}
p,
label,
small,
ul {
  font-family: Muli;
  font-size: 16px;
  color: #404040;
}
label {
  font-weight: bold;
}
#wrapper.pretalx-com {
  br {
    margin-bottom: 16px;
  }

  a {
    color: var(--color-primary);
    &.btn-success {
      color: white;
    }
  }
  nav.navbar {
    width: 100%;
    height: 60px;
    background: var(--color-primary);
    border-bottom: none;
    position: fixed;
    display: flex;
    box-shadow: none;
    top: 0;
    z-index: 500;

    #blog {
      width: auto;
    }

    .navbar-brand {
      position: absolute;
      left: 60px;
      padding: 0;
      top: 8px;
      z-index: 300;
      img {
        height: 42px;
      }
    }

    ul.nav-part {
      list-style: none;
      height: 60px;
      display: flex;
      position: absolute;
      align-items: center;
      margin: 0;
      padding: 0;
      top: 0;
      .nav-item {
        margin: 0 6px;
      }
      .nav-item .nav-link {
        padding: 8px 16px;
        font-family: Titillium Web;
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        text-transform: uppercase;
        position: relative;
        display: flex;
        align-items: center;
        white-space: nowrap;
        &.active:after {
          content: " ";
          border-bottom: 4px solid white;
          width: 100%;
          position: absolute;
          left: 0;
          bottom: -8px;
        }
      }
      .nav-item img {
        width: 16px;
        height: 24px;
        margin-bottom: 3px;
        margin-top: -3px;
        margin-right: 8px;
        object-fit: contain;
      }
    }
    .navbar-center {
      justify-content: center;
      width: 100%;
    }
    .navbar-right {
      align-self: flex-end;
      margin-left: auto;
      padding-right: 60px !important;
      justify-content: right;
      right: 0;
    }
  }
  #pricing-table {
    max-width: 900px;
    display: table;
    margin: auto;
    text-align: center;
    td:first-child {
      text-align: left;
    }
    tr.separator {
      background: var(--color-gray-100);
      font-weight: bold;
    }
    tr.pricing {
      font-weight: bold;
    }
  }
  #faq {
    display: flex;
    justify-content: space-between;
    .column {
      width: 45%;
      text-align: justify;
    }
    .question {
      font-size: 14px;
      h4 {
        font-size: 18px;
      }
    }
  }
  code {
    background: #ededed;
    color: var(--color-primary);
    &.key {
      display: block;
      margin-top: 8px;
      margin-bottom: 16px;
      margin-left: auto;
      margin-right: auto;
      max-width: 32rem;
    }
  }
}
input[type="text"],
input[type="email"],
textarea {
  border-radius: 3px;
  font-family: Muli;
  font-size: 14px;
  border: 1px solid var(--color-primary);
}
input[type="text"],
input[type="email"] {
  height: 40px;
  text-indent: 8px;
  font-weight: bold !important;
  color: #6c757d !important;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #afafaf !important;
}
textarea {
  padding: 18px 0;
}
input[type="email"] {
  background-image: url("/static/pretalx_com/img/mail.590104466dff.svg");
  background-repeat: no-repeat;
  background-position: 8px 8px;
  text-indent: 40px;
}
#header-logo {
  position: fixed;
  top: 0;
  width: 184px;
  margin-left: 8%;
  margin-top: 110px;
  z-index: 800;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  &.stuck {
    height: 42px;
    top: 8px;
    left: 60px;
    margin: 0;
    width: auto;
  }
}
.header-image {
  &#main {
    background-image: url("/static/pretalx_com/img/conference.c421949c5ff2.jpg");
    .tagline {
      font-weight: normal;
      position: absolute;
      right: 6%;
      bottom: 115px;
      margin: 0;
      text-align: right;
    }
  }
  &#blog {
    background-image: url("/static/pretalx_com/img/blog.7f0e281115f2.jpg");
  }
  &#pricing-header {
    background-image: url("/static/pretalx_com/img/pricing.0aabca4a0a63.jpg");
    background-position: 10% 100%;
  }
  &#try-header {
    background-image: url("/static/pretalx_com/img/try.775a94008dbf.jpg");
    .tagline {
      font-weight: normal;
      position: absolute;
      right: 4%;
      text-align: right;
    }
    .subtitle {
      position: absolute;
      right: 4%;
      top: 100px;
      text-align: right;
      width: 320px;
    }
  }
  &#features {
    background-image: url("/static/pretalx_com/img/features.87f89a909776.jpg");
    .subtitle {
      width: 80%;
    }
  }
  background-position: 0% 40%;
  height: 680px;
  position: relative;
  background-size: cover;
  .tagline {
    font-weight: normal;
    margin-top: 60px;
    margin-left: 80px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: Cairo;
    font-size: 64px !important;
    line-height: 0.89 !important;
    color: white;
  }
  .subtitle {
    width: 513px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-left: 80px;
    margin-top: 36px;
  }
}

#support-text {
  maxwidth: 844px;
  line-height: 1.52;
  text-align: center;
  align-self: center;
  margin-top: 50px;
  margin-left: 50px;
  margin-right: 50px;
}

#block-features {
  display: flex;
  align-items: space-around;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    padding: 60px 0;
    margin-left: 20px;
    margin-right: 20px;

    &:hover {
      text-decoration: none;
    }

    img {
      width: 108px;
    }
    h4 {
      margin-top: 12px;
    }
    p {
      color: #525353;
    }
  }
}
#block-buttons {
  display: flex;
  align-self: center;
}
.btn.trynow,
.btn.readmore,
button {
  margin: 0 18px;
  width: 184px;
  height: 40px;
  font-family: Titillium Web;
  text-transform: uppercase;
  border-radius: 4px !important;
  font-weight: bold !important;
  &.btn-info,
  &.btn-outline-success:hover {
    color: white !important;
  }
}
.block-green {
  display: flex;
  width: 100%;
  background-color: #f2f7f6;
}
#block-conferences {
  flex-direction: column;
  align-items: center;
  margin-top: 70px;
  position: relative;
  .glide__arrows .btn-next,
  .glide__arrows .btn-before {
    position: absolute;
    height: 100%;
    cursor: pointer;
    z-index: 100;
    top: 0;
    width: 200px;
    img {
      height: 74px;
      width: 36px;
      margin-top: 180px;
    }
  }
  .btn-before {
    left: 0;
    background: linear-gradient(
      to right,
      rgb(242, 247, 246),
      rgba(242, 247, 246, 1) 50%,
      rgba(242, 247, 246, 0)
    );
    img {
      margin-left: 50px;
      margin-right: auto;
    }
  }
  .btn-next {
    right: 0;
    background: linear-gradient(
      to left,
      rgb(242, 247, 246),
      rgba(242, 247, 246, 1) 50%,
      rgba(242, 247, 246, 0)
    );
    img {
      transform: rotate(180deg);
      position: absolute;
      right: 50px;
    }
  }
  h2 {
    color: var(--color-primary);
    font-family: Titillium Web;
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    margin-top: 61px;
  }
  .conferences,
  .glide__slides {
    width: 100%;
    list-display: none;
    margin-top: 30px;
    margin-bottom: 45px;
    margin-left: 171px;
    margin-right: 171px;
    overflow: hidden;
    img {
      height: 90px;
      filter: grayscale(100%) opacity(66%);
      margin: auto 60px;
    }
  }
}
.glide {
  position: relative;
  box-sizing: border-box;
  .glide__slides {
    position: relative;
    list-style: none;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    touch-action: pan-Y;
    will-change: transform;
    .glide__slide {
      flex-shrink: 1;
      white-space: initial;
      display: flex;
      justify-content: center;
    }
  }
}
#block-advantages {
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  align-self: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 72px;
  & > * {
    margin: 19px;
    width: 40%;
  }
  h2 {
    margin-bottom: 40px;
  }
  h3 {
    margin-bottom: 17px;
  }
  p {
    color: #7b7b7b;
    line-height: 1.38;
    text-align: center;
    margin: 0 20px;
  }
  a,
  a:hover {
    text-decoration: none;
    position: absolute;
    bottom: 50px;
  }
  .advantage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.14);
    padding: 23px;
    p {
      margin-bottom: 70px;
    }
    > img {
      margin-top: 48px;
      margin-bottom: 28px;
      height: 146px;
    }
  }
}
#block-call {
  height: 200px;
  display: flex;
  align-items: center;
  padding-left: 188px;
  padding-right: 188px;
  justify-content: space-between;
  margin-top: 60px;

  div:first-child {
    display: flex;
    flex-direction: column;
    width: 55%;
    h4 {
      font-family: Titillium Web;
      color: var(--color-primary);
      font-size: 28px;
      font-weight: bold;
    }
  }
  div:last-child {
    display: flex;
    flex-direction: row;
    width: 40%;
  }
}

#block-testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 526px;
  h2 {
    color: var(--color-primary);
    margin-top: 72px;
  }
  #bird {
    position: absolute;
    left: 120px;
    top: 100px;
  }
  #quotemark {
    position: absolute;
    left: calc(40% + 10px);
    top: 270px;
    width: 101px;
  }
  #quote-navigator {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    gap: 20px;
    align-items: center;
    img {
      width: 30px;
      height: 30px;
      cursor: pointer;
      &:first-child {
        transform: rotate(180deg);
      }
    }
  }
  #quote-container {
    width: 510px;
    position: relative;
    overflow: hidden;
    margin-left: 40%;
    margin-top: 120px;
    margin-right: 188px;
    font-family: Muli;
    font-size: 16px;
    color: #404040;
    li.quote {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      & > * {
        width: 510px;
      }
    }
    .author {
      margin-top: 30px;
      .source {
        font-size: 14px;
        color: #afafaf;
        &:hover {
          text-decoration: none;
        }
      }
    }
  }
}

/* Responsive fixes for testimonials on medium screens */
@media (max-width: 1600px) {
  #block-testimonials {
    #quotemark {
      display: none; /* Hide quotemark to prevent overlap */
    }
  }
}

@media (max-width: 1200px) {
  #block-testimonials {
    #bird {
      display: none; /* Hide bird to prevent overlap on smaller screens */
    }
    #quote-container {
      margin-left: 20%; /* Reduce left margin for better centering */
      margin-right: 20%;
    }
  }
}

@media (max-width: 900px) {
  #block-testimonials {
    #quote-container {
      margin-left: 10%; /* Further reduce margin for smaller screens */
      margin-right: 10%;
    }
  }
}

#block-subscribe {
  height: 200px;
  display: flex;
  align-items: center;
  padding-left: 188px;
  padding-right: 188px;
  justify-content: space-between;
  margin-top: 60px;

  div:last-child {
    display: flex;
    flex-direction: column;
    width: 55%;
    h4 {
      font-family: Titillium Web;
      color: var(--color-primary);
      font-size: 28px;
      font-weight: bold;
    }
  }
  div:first-child {
    display: flex;
    flex-direction: row;
    width: 40%;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
}

#block-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 45px;
  h2 {
    margin-top: 72px;
  }
  h4 {
    font-family: Titillium Web;
    font-size: 21px;
    font-weight: bold;
    margin-top: 24px;
    color: var(--color-primary);
    margin-bottom: 72px;
  }
  .contact {
    display: flex;
    .contact-method {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 220px;
      &:hover {
        text-decoration: none;
      }

      span {
        box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.14);
        border-radius: 50%;
        padding: 24px;
        margin-bottom: 22px;
      }
      img {
        width: 46px;
        height: 46px;
        display: inline-block;
      }
    }
    h6 {
      margin-bottom: 18px;
    }
    p {
      color: #525353;
      text-align: center;
      line-height: 1.3;
    }
  }
}

#pretalx-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 60px;
}
#pretalx-content #blog table {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  th,
  td {
    padding: 0 18px;
  }
}
footer {
  width: 100%;
  display: flex;
  position: relative;
  justify-content: space-around;
  margin-top: 0;

  &:before {
    position: absolute;
    top: 0;
    width: 100%;
    height: 20px;
    background-image: linear-gradient(to bottom, #f2f2f2, #ffffff);
    content: " ";
  }

  #footer-logo {
    width: 126px;
    margin-left: 40px;
  }
  .footer-block {
    display: flex;
    flex-direction: column;
    width: 184px;
    text-align: left;
    padding-bottom: 20px;
    &:last-child {
      margin-right: 50px;
    }
    h4 {
      font-family: Titillium Web;
      font-size: 14px;
      font-weight: 600;
      color: #404040;
      text-transform: uppercase;
      padding-top: 14px;
      margin-top: 24px;
    }
    .footer-link {
      font-size: 14px;
      line-height: 1.5;
      color: #afafaf;
      padding: 4px 0;
    }
  }
}
#blog {
  width: 100%;
  display: flex;
  flex-direction: column;
  .blog-post {
    display: flex;
    border-bottom: #dfeae6 2px solid;
    margin: 0 80px;
    position: relative;

    & > div {
      width: 50%;
    }
    &:nth-child(2n) {
      flex-direction: row-reverse;
    }
    &.special {
      border-bottom: none;
      padding: 0;
      .blog-teaser {
        width: 60%;
        z-index: 100;
      }
      .blog-image {
        position: absolute;
        width: 100%;
      }
    }

    .blog-teaser {
      margin: 36px 0;
      padding: 24px;
      display: flex;
      flex-direction: column;

      h2 {
        margin-bottom: 24px;
        color: var(--color-primary);
        background-color: rgba(255, 255, 255, 0.8);
      }
      a:hover {
        text-decoration: none !important;
      }
      small {
        font-family: Muli;
        font-size: 14px;
        color: #afafaf;
      }
      > p {
        margin-top: 8px;
      }
      .learnmore {
        padding-right: 50px;
        margin-left: auto;
      }
    }
    .blog-image {
      margin: 36px 0;
      img {
        width: 100%;
        box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
      }
    }
  }
}
.blog-image {
  width: 100%;
  height: 380px;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
#blogpost {
  margin-top: 42px;
  width: 600px;
  margin-left: auto;
  margin-right: auto;
  h2 {
    color: var(--color-primary);
  }
  img {
    width: 100%;
    box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
  }
}
a.learnmore {
  span {
    font-family: Muli;
    font-size: 16px;
    color: #404040 !important;
    text-decoration: underline;
  }
  img {
    width: 16px;
    height: 16px;
    display: inline-block;
  }
}
#privacy {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 42px;
}
#pricing,
#security,
#imprint,
#tos {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 42px;
}
#imprint {
  address {
    line-height: 1;
    width: auto;
  }
}
#block-features-large {
  width: 100%;
  height: 630px;
  margin-top: 72px;
  overflow: hidden;
  #features-arrows > * {
    position: absolute;
    z-index: 100;
    height: 100%;
    cursor: pointer;
    top: 0;
    width: 75px;
    background: white;
    img {
      height: 74px;
      width: 36px;
      margin-top: 200px;
    }
  }
  .btn-before {
    left: 0;
    img {
      margin-left: 20px;
    }
  }
  .btn-next {
    right: 0;
    img {
      transform: rotate(180deg);
      position: absolute;
      right: 20px;
    }
  }
  #features-bullets {
    position: absolute;
    background-color: white;
    z-index: 100;
    display: flex;
    width: 300px;
    bottom: 32px;
    left: 75px;
    align-items: baseline;
    img {
      width: 48px;
      height: 48px;
      margin-right: 18px;
      cursor: pointer;
      filter: grayscale(100%);
    }
    .glide__bullet--active img {
      width: 96px;
      height: 96px;
      filter: none;
    }
  }
  li {
    .feature-text {
      width: 300px;
      margin-left: 84px;
      margin-right: 74px;
    }
    .feature-image {
      height: 630px;
      min-width: 950px;
      margin-right: 84px;
      overflow-y: scroll;
      box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.14);
      img {
        width: 100%;
      }
    }
  }
}
#auth-form label {
  text-align: left;
}
#feature-testimonials {
  width: 100%;
  max-width: 1310px;
  overflow: hidden;
  margin: 60px auto;
  h2 {
    color: var(--color-primary);
    margin-left: 12px;
  }
  li.quote {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.14);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    margin: 36px;
    max-width: 404px;
    justify-content: space-between;
    .author {
      font-family: Muli;
      font-size: 16px;
      color: #a1aeb7;
      padding-left: 45px;
      position: relative;
      &:before {
        background-image: url("/static/pretalx_com/img/twitter.0312d5349be7.svg");
        content: " ";
        width: 27px;
        height: 27px;
        background-size: contain;
        display: inline-block;
        position: absolute;
        left: 0px;
        top: 8px;
      }
    }
  }
  li.quote,
  li.quote p {
    font-family: Cairo;
    font-size: 26px;
    color: #868686;
    font-weight: 300;
  }
  #quote-navigator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
    img {
      width: 30px;
      height: 30px;
      &:first-child {
        transform: rotate(180deg);
      }
    }
  }
}
nav.paginator {
  display: flex;
  justify-content: center;
  a.page-link {
    border: none;
  }
}
