:root {
  --swiper-navigation-size: 40px;
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-sides-offset: 16px;
  --swiper-navigation-color: rgb(var(--dark-orange-rgb));

  --swiper-pagination-color: rgb(var(--dark-orange-rgb));
  --swiper-pagination-progressbar-bg-color: rgba(0, 0, 0, 0.25);
}

body {
  color: rgb(var(--white-rgb));
  background: rgb(var(--medium-blue-rgb));
  background-image: url(/assets/glow-27be313bd7c08c97c91ca6f56b011dbf73448122ea8ea027df5a7573bfbf58cb.png);
  background-position: 50% -250px;
  background-repeat: no-repeat;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  svg {
    display: block;
    width: 190px;
    height: 48px;
    fill: white;
  }
  .signin {
    cursor: pointer;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background-color: rgb(var(--medium-blue-rgb));
    color: rgb(var(--white-rgb));
    border: 1px solid rgba(var(--dark-blue-rgb), 0.2);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    &:hover,
    &:focus,
    &:active {
      background: rgba(var(--dark-blue-rgb), 0.2);
    }
  }
}
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: var(--max-width)) {
  .content {
    width: 80%;
  }
}
.content--waiting {
  margin-top: 128px;
  margin-bottom: 128px;
}
.content--static {
  .markdown {
    h1 {
      padding: 40px 0 8px 0;
      font-family: var(--stack-barlow-cond);
      font-size: 48px;
      font-weight: 700;
      line-height: 1.16;
    }
    h1 + p {
      padding: 0 0 40px 0;
    }
  }
}
.title {
  max-width: calc(var(--max-width) / 2);
  margin: 0 auto;
  padding: 40px 0 40px 0;
  text-align: center;
  h1 {
    font-family: var(--stack-barlow-cond);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.16;
  }
  p {
    font-size: 20px;
    margin-top: 8px;
  }
}
.action {
  margin: 32px 0;
  text-align: center;
}
.cta {
  cursor: pointer;
  display: block;
  width: 80%;
  max-width: calc(var(--max-width) / 2);
  margin: 0 auto;
  padding: 16px;

  font-size: 20px;
  font-weight: 800;
  text-decoration: none;

  color: rgb(var(--white-rgb));
  background: rgb(var(--dark-orange-rgb));
  border: 1px solid rgb(var(--light-orange-rgb));
  border-radius: var(--border-radius);
  box-shadow: 0 0 40px rgba(var(--black-rgb), 0.1);
  background-position: 0 0;
  transition: box-shadow 0.3s ease, background-image 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  &:hover,
  &:active,
  &:focus {
    box-shadow: 0 0 60px rgba(var(--black-rgb), 0.3), 0 10px 20px rgba(var(--black-rgb), 0.2);
    background-image: none;
    transform: scale(1.01);
  }
  &.cta--disabled {
    background: rgb(var(--dark-blue-rgb));
    border: 1px solid rgb(var(--dark-blue-rgb));
  }
}
.overview {
  max-width: calc(var(--max-width) / 2);
  margin: 0 auto;
  padding: 40px 0 40px 0;
  text-align: center;
  h2 {
    margin: 0 0 16px 0;
    font-family: var(--stack-barlow-cond);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.16;
  }
  em {
    font-style: normal;
    font-weight: 700;
  }
  label {
    display: block;
    margin-bottom: 16px;
  }
  input[type=text] {
    width: 80%;
    padding: 16px;
    font-size: 20px;
    font-family: inherit;
    text-align: center;
    background: rgba(var(--white-rgb), 0.2);
    color: rgb(var(--white-rgb));
    border: 1px solid rgb(var(--light-blue-rgb));
    border-radius: var(--border-radius);
    transition: border 0.3s ease;
    &:hover,
    &:focus,
    &:active {
      outline: 0;
      border: 1px solid rgb(var(--white-rgb));
    }
    &::placeholder {
      color: rgba(var(--white-rgb), 0.5);
      transition: color 0.3s ease;
    }
    &:focus {
      outline: 1px solid rgba(var(--white-rgb), 1);
      &::placeholder {
        color: rgba(var(--white-rgb), 0);
      }
    }
  }
  a,
  a:link,
  a:visited {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4.5px;
  }
  a:active,
  a:hover,
  a:focus {
    text-decoration-color: rgb(var(--light-orange-rgb));
  }
}


.swiper {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 40px rgba(var(--black-rgb), 0.1);
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  p {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding: 16px 16px 20px 16px;
    font-size: 20px;

    color: rgb(var(--white-rgb));
    background: rgb(var(--dark-blue-rgb));
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
  }
  &.before p {
    position: relative;
    text-align: left;
    &::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(to right, rgb(var(--dark-orange-rgb)), rgb(var(--light-orange-rgb)));
    }
  }
  &.after p {
    position: relative;
    text-align: right;
    &::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(to right, rgb(var(--light-blue-rgb)), rgb(var(--medium-blue-rgb)));
    }
  }
  img {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
  }
}
.footer {
  width: 80%;
  max-width: var(--max-width);
  margin: 64px auto;
  padding: 0 16px;
  text-align: center;
  a,
  a:link,
  a:visited {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4.5px;
  }
  a:active,
  a:hover,
  a:focus {
    text-decoration-color: rgb(var(--light-orange-rgb));
  }
}

.markdown {
  h1 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
  }
  h2 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
  }
  h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
  }
  p {
    margin-bottom: 16px;
  }
  ul {
    list-style-type: disc;
    list-style-position: outside;
    margin-bottom: 16px;
  }
  ol {
    list-style-type: decimal;
    list-style-position: outside;
    margin-bottom: 16px;
  }
  li {
    margin-bottom: 8px;
    margin-left: 16px;
  }
  code {
    padding: 2px 4px;
    font-size: 0.9em;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    white-space: nowrap;
    color: rgb(var(--white-rgb));
    background: rgba(var(--white-rgb), 0.2);
    border-radius: var(--border-radius);
  }
  pre code {
    padding: 16px;
    display: block;
    overflow-x: auto;
    white-space: pre;
    color: rgb(var(--white-rgb));
    background: rgb(var(--medium-blue-rgb));
    border-radius: var(--border-radius);
  }
  a,
  a:link,
  a:visited {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4.5px;
  }
  a:active,
  a:hover,
  a:focus {
    text-decoration-color: rgb(var(--light-orange-rgb));
  }
}

.files-scanning {
  line-height: 400px;
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
  svg {
    fill: white;
    width: 72px;
    height: 72px;
  }
}

.files-progress {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  min-height: 300px;
  max-width: 320px;
  margin: 0 auto;

  & > li {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 8px 8px 0;
    background-color: rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;

    .part {
      z-index: 2;
      display: none;
      position: absolute;
      width: 16px;
      height: 16px;
      /* background: rgba(255, 255, 255, 0.75); */
      background: #C5E3EA;
    }
    .part--1 {
      right: 0;
      top: 0;
      border-top-right-radius: 4px;
    }
    .part--2 {
      right: 0;
      bottom: 0;
      border-bottom-right-radius: 4px;
    }
    .part--3 {
      left: 0;
      bottom: 0;
      border-bottom-left-radius: 4px;
    }
    .part--4 {
      left: 0;
      top: 0;
      border-top-left-radius: 4px;
    }
    .progress {
      z-index: 0;
      display: none;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 32px;
      height: 0;
      background: rgba(255, 255, 255, 0.5);
    }
    svg {
      z-index: 1;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      fill: rgba(255, 255, 255, 0.5);
    }
    
    &.status--extracting {
      svg {
        fill: rgba(255, 255, 255, 0.75);
      }
      .progress {
        display: block;
        height: 9px;
      }
      .part--1 {
        display: block;
      }
    }
    &.status--extraction_succeeded {
      svg {
        fill: rgba(255, 255, 255, 0.75);
      }
      .progress {
        display: block;
        height: 18px;
      }
      .part--1 {
        display: block;
      }
      .part--2 {
        display: block;
      }
    }
    &.status--analyzing {
      svg {
        fill: rgba(255, 255, 255, 0.75);
        
      }
      .progress {
        display: block;
        height: 25px;
      }
      .part--1 {
        display: block;
      }
      .part--2 {
        display: block;
      }
      .part--3 {
        display: block;
      }
    }
    &.status--analysis_succeeded {
      svg {
        fill: rgba(255, 255, 255, 1);
      }
    }
    &.status--extraction_failed {
      background: red;
    }
    
  }
}

.auth-options {
  margin: 64px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  .auth-method {
    flex: 0 0 auto;
    margin: 0 32px;
    .auth-logo {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
      background: transparent;
      border: 0;
      img {
        display: block;
        width: 80px;
        height: 80px;
        margin: 0 auto;
        background: white;
        border: 8px solid white;
        border-radius: 8px;
        outline: 4px solid rgba(var(--light-orange-rgb), 0);
        transition: outline 0.3s ease;
      }
      span {
        display: block;
        margin: 16px 0 0 0;
        text-align: center;
      }
    }
    button.auth-logo:hover,
    button.auth-logo:active,
    button.auth-logo:focus {
      cursor: pointer;
      img {
        outline: 4px solid rgba(var(--light-orange-rgb), 1);
      }
    }
    &.auth-method--disabled {
      opacity: 0.5;
    }
  }
}
