// sass --watch style.scss style.css
@use "sass:math";

@font-face {
    font-family: regular;
    src: url(../font/regular.woff);
}
@font-face {
    font-family: semibold;
    src: url(../font/semibold.woff);
}
@font-face {
    font-family: bold;
    src: url(../font/bold.woff);
}

* {
  box-sizing: border-box;
}

@import "variable";

html {
  font-family: 'regular', sans-serif;
  letter-spacing: 0.4px;
}

body {
  background-color: #F7F7F8;
  width: 100%;
  margin: 0;
}

@import "grid";
@import "typography";
@import "form";
@import "button";
@import "modal";

video {
  width: 100%;
  height: 100vh;
  background: black;
}

.ctp {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  background: #000000bf;
  cursor: pointer;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid $black-10;
  z-index: 1;
  background: $white;
  padding: 16px 0;

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

  h4 {
    font-size: 20px;
  }

  h6 {
    font-size: 16px;
  }

  p {
    font-size: 12px;
    line-height: normal;
  }

  &__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;

    &__info {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: flex-end;
      gap: 2px;
    }
  }
}

section {

  .bg {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .landing {
    padding: 56px 0;

    p {
      text-align: center;
    }

    &__form {
      display: flex;
      flex-direction: column;
      gap: 8px;

      input {
        text-align: center;
      }
    }
  }

  .videos {

    &__done, &__info {
      padding: 24px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    &__done {
      background: #E7F8ED;
      position: relative;

      &__title {
        width: 100%;

        h3 {
          font-size: 22px;
        }

        h6 {
          font-size: 16px;
          color: $black-75;
          text-wrap: nowrap;
        }
      }

      p {
        position: absolute;
        bottom: 10px;
        right: 24px;
        font-size: 10px;
        line-height: normal;

        span {
          font-family: 'bold', serif;
        }
      }
    }

    &__info {
      background: $primary-10;

      img {
        width: 80px;
      }

      h3 {
        font-size: 22px;
      }

      h6 {
        font-size: 16px;
        color: $black-75;
        text-wrap: nowrap;
      }

      &__content {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 4px;

        &__progress {
          display: flex;
          align-items: center;
          gap: 8px;

          &__graphic {
            height: 12px;
            width: 100%;
            background: $white;
            border-radius: 20px;

            &__value {
              height: 12px;
              background: $primary;
              border-radius: 20px;
            }
          }
        }
      }
    }

    &__list {
      display: flex;
      flex-direction: column;
      gap: 16px;

      &__item {
        background: $white;
        padding: 16px 40px 16px 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        border: 1px solid $black-10;
        gap: 16px;
        transition: 0.2s;

        &:hover {
          border: 1px solid $primary;
        }

        img {
          width: 180px;
          height: 100px;
          object-fit: cover;
          border-radius: 8px;
          flex-shrink: 0;
        }

        &__info {
          display: flex;
          flex-direction: column;
          gap: 4px;
          width: 100%;

          &__title {
            display: flex;
            align-items: center;
            gap: 8px;

            h3 {
              font-size: 24px;
              font-family: "bold", serif;
            }

            span {
              font-family: "semibold", serif;
              font-size: 14px;
              padding: 4px 12px;
              background: #DEF3E4;
              color: #3B834F;
              border-radius: 8px;
            }
          }

          p {
            font-size: 14px;
            color: $black-75;
          }
        }
      }
    }
  }
}


.desktop {
  display: block;
}

.mobile {
  display: none !important;
}


//media query for mobile view
@media only screen and (max-width: 926px) {

  .header {
    padding: 8px 0;

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

    h4 {
      font-size: 14px;
    }

    h6 {
      font-size: 12px;
      white-space: nowrap;
      width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    p {
      font-size: 10px;
    }

    &__action {
      gap: 8px;
    }
  }

  section {

    .bg {
      width: 100%;
      height: 100vh;
      position: fixed;
      z-index: -1;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }

    .landing {

      p {
        font-size: 14px;
      }
    }

    .videos {

      &__done, &__info {
        padding: 16px;
        gap: 16px;
      }

      &__done {
        flex-direction: column;

        &__title {
          width: 100%;
          text-align: center;


          h3 {
            font-size: 16px;
            line-height: normal;
            margin-bottom: 8px;
          }

          h6 {
            font-size: 12px;
            color: $black-75;
            text-wrap: wrap;
          }
        }

        a {
          width: 100%;
        }

        p {
          position: unset;
          font-size: 10px;
          text-align: center;

          span {
            font-family: 'bold', serif;
          }
        }
      }

      &__info {

        img {
          width: 48px;
        }

        h3 {
          font-size: 14px;
          line-height: normal;
        }

        h6 {
          font-size: 10px;
        }

        &__content {
          gap: 8px;

          &__progress {
            display: flex;
            align-items: center;
            gap: 8px;

            &__graphic {
              height: 8px;

              &__value {
                height: 8px;
              }
            }
          }
        }
      }

      &__list {
        gap: 8px;

        &__item {
          padding: 12px;
          flex-direction: column;
          gap: 8px;

          &:hover {
            border: 1px solid $primary;
          }

          img {
            width: 100%;
            height: 150px;
          }

          &__info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;

            &__title {

              h3 {
                font-size: 16px;
                line-height: normal;
                margin-top: 4px;
              }

              span {
                font-size: 10px;
                padding: 2px 8px;
                border-radius: 8px;
              }
            }

            p {
              font-size: 12px;
              line-height: normal;
            }
          }

          a {
            width: 100%;
          }
        }
      }
    }
  }

  .mobile {
    display: block !important;
  }
  .desktop {
    display: none !important;
  }


}
