* {
  margin: 0;
  padding: 0;
}

:root {
  --placeholder-color: #999999;
}

*, *::before, *::after {
  box-sizing: border-box;
}


body {
  font-family: sans-serif;
  font-weight: 200;
}

/* Media query for screens smaller than 768px */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

/* Media query for screens smaller than 480px */
@media (max-width: 480px) {
  body {
    font-size: 12px;
  }
}

/* HEADER START */


nav {
  background-color: white;
}


/* HEADER END */
/* MAIN START */

.mockup {
  display: flex;
  margin-top: 0;
  justify-content: center;
}

@media screen and (max-width: 1700px) {
  .mockup {
    flex-direction: column;
    align-items: center;
  }

}

.mockup-inputs {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  width: 100%;
}

.mockup-result {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  background-color: white;
  max-width: 800px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 4em;
  position: relative;
}

.preview-picker {
  position: absolute;
  height: 3em;
  top: 0;
  display: flex;
  justify-content: space-around;
  width: 100%;
  align-items: center;
}

.preview-picker p {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* INPUT */


.mockup-data {
  padding: 0 0.4em;
  position: relative;
  font-size: 14px;
  border-top: 5px solid transparent;
  margin-bottom: 5px;
  display: inline-block;
  --field-padding: 12px;
  width: 100%;
  min-width: 250px;
  position: relative;
  margin-left: 16px;
  width: calc(100% - 15px * 2);
}

.input-length {
  position: absolute;
  right: 1em;
  top: 50%;
  translate: 0 -50%;
}

.input-title {
  margin: .5em 0 0 .5em;
}

.input-center {
  text-align: center;
  margin: 0.7em;
}

.mockup-data textarea {
  resize: vertical;
  min-height: 60px;
}

.mockup-data input,
.mockup-data textarea {
  border: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #f2f2f2;
  padding: var(--field-padding);
  border-radius: 3px;
  outline: none;
  font-size: 14px;
  width: 100%;
  overflow-y: hidden;
}


.input-length {
  transition: color 1s ease-in-out;
}

.input-length.invalid {
  color: red;
}

.mockup-data input:has(~ .input-length),
.mockup-data textarea:has(~ .input-length) {
  padding-right: 30px;
}

.mockup-data .placeholder {
  position: absolute;
  left: var(--field-padding);
  width: calc(100% - (var(--field-padding) * 2));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  top: 22px;
  line-height: 100%;
  transform: translateY(-50%);
  color: #aaa;
  transition:
    top 0.3s ease,
    color 0.3s ease,
    font-size 0.3s ease;
  cursor: text;
}

.mockup-data input.dirty+.placeholder,
.mockup-data input:focus+.placeholder,
.mockup-data input:not(:placeholder-shown)+.placeholder,
.mockup-data textarea.dirty+.placeholder,
.mockup-data textarea:focus+.placeholder,
.mockup-data textarea:not(:placeholder-shown)+.placeholder {
  top: -10px;
  font-size: 10px;
  color: #222;
}

.mockup-data .error-message {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  background: #d30909;
  color: #fff;
  height: 24px;
}

.mockup-data .error-message:empty {
  opacity: 0;
}

.mockup-data input,
.mockup-data textarea {
  background: none;
  border: 2px solid #ddd;
  transition: border-color 0.3s ease;
}

.mockup-data input+.placeholder,
.mockup-data textarea+.placeholder {
  left: 15px;
  padding: 0 5px;
}

.mockup-data input.dirty,
.mockup-data input:not(:placeholder-shown),
.mockup-data input:focus,
.mockup-data textarea.dirty,
.mockup-data textarea:not(:placeholder-shown),
.mockup-data textarea:focus {
  border-color: #222;
  transition-delay: 0.1s
}

.mockup-data input.dirty+.placeholder,
.mockup-data input:not(:placeholder-shown)+.placeholder,
.mockup-data input:focus+.placeholder,
.mockup-data textarea.dirty+.placeholder,
.mockup-data textarea:not(:placeholder-shown)+.placeholder,
.mockup-data textarea:focus+.placeholder {
  top: 0;
  font-size: 10px;
  color: #222;
  background: #fff;
  width: auto
}

/* Inputs */
.title {
  margin: 1em;
  margin-left: 16px;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 1em;
  margin-left: 16px;
  position: relative
}

.format-option {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  width: fit-content;
  padding: 0.5em 1em;
  cursor: pointer;
  margin: 3px;
}

.format-option.active-format {
  background-color: #2c93bf;
  color: white;
}


.file-picker {
  margin-left: 16px;
}


.file-picker input {
  display: none;
}

.file-picker label {
  display: flex;
  background-color: white;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.file-picker label:hover {
  border: 1px solid rgba(0, 0, 0, 0.121);
}

.profile-pic {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.input-inline {
  display: flex;
  align-items: center;
  gap: .5em;
  margin-right: 1em;
}

.mockup-select {
  position: relative;
  margin-top: 10px;
}

.mockup-select label {
  position: absolute;
  z-index: 20;
  background-color: white;
  top: 0;
  translate: 0 -50%;
  left: 30px;
  font-size: 10px;
  padding: 0 .5em;
}

select {
  width: 100%;
  margin-left: 16px;
  margin-bottom: 5px;
  padding: 0.8em 1em;
  position: relative;
}

.upload-files-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.drag-file-area {
  border: 2px dashed #2c93bf;
  border-radius: 40px;
  margin: 10px 0 15px;
  padding: 30px 50px;
  text-align: center;
  width: 90%;
}

.drag-file-area .upload-icon {
  width: 50px;
}

.drag-file-area h3 {
  font-size: 26px;
  margin: 15px 0;
}


.drag-file-area label {
  font-size: 19px;
}

.drag-file-area label .browse-files-text {
  color: #2c93bf;
  font-weight: bolder;
  cursor: pointer;
}

.browse-files span {
  position: relative;
}

.default-file-input {
  display: none;
}


.desktop-view {
  width: 100%;
  padding: 0.3em;

  .header {
    width: 100%;
    height: 2em;
    display: flex;

    margin: 4px;
    margin-bottom: 10px;
    margin-top: 0;

    align-items: center;

    & input {
      height: 30px;
      width: 50%;
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
      border: 1px solid #F2F2F2;

      &:focus {
        outline: none;
      }
    }

    .submit {
      height: 30px;
      width: 10%;
      background-color: #F2F2F2;
      box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .logo {
      width: 100px;
    }

    .burger {
      width: 25px;
      height: 25px;
    }
  }

  .content {
    height: calc(100% - 3em);
    display: flex;
    padding: 1em;

    .video {
      position: relative;

      /* Tweak the width and margin to find the layout you like  */
      /* 450px - 500px Are optimalS*/
      margin: 0 10px;

      .thumbnail-upload{
        width: 475px;
      }

    }

    .info {
      --placeholder-color: #999999;
      background-color: white;
      position: relative;

      min-height: 200px;
      height: 50%;

      .titlebox,
      .picbox,
      .box-1,
      .box-2 {
        position: absolute;
        background-color: var(--placeholder-color);
      }

      .titlebox {
        left: 5%;
        top: 10px;
        width: 80%;
        height: 30px;
      }

      .picbox {
        top: 50px;
        left: 5%;
        height: 42px;
        width: 42px;
      }

      .box-1 {
        left: calc(5% + 42px + 10px);
        top: 50px;
        height: 18px;
        width: 100px;
      }

      .box-2 {
        left: calc(5% + 42px + 10px);
        top: 72px;
        height: 18px;
        width: 100px;
      }


    }

    .video .controls {
      background-color: black;
      color: white;
    }

    .video .overlay {
      position: absolute;
      bottom: 2.5em;
      background: white;
      margin: 1em;
      display: flex;
      align-items: center;
      z-index: 10;
    }

    .call-to-action {
      display: flex;
      border-radius: 15px;
      justify-content: center;
      align-items: center;
      padding: .5em 1em;
      background-color: #2B5ECE;
      color: white;
      border: none;
      margin: .5em;
      height: fit-content;
      margin-left: auto;
    }

    .pause {
      width: 30px;
      margin: 5px;
    }

    .banner {
      aspect-ratio: 1/1;
      object-fit: cover;
      width: 52px;
      height: 52px;
      margin: .2em;
    }

    .item {
      align-items: center;
      margin-right: 10px;
    }


    .headline {
      word-break: break-word;
      font-weight: 600;
      color: black;
    }

  }

  .suggestions {
    background-color: white;
    height: 100%;

    margin: 5px;
    width: calc(100%);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    .side-banner {
      width: 100%;
      aspect-ratio: 300 / 60;
      max-width: 300px;
    }

    .overlay {
      font-size: .8em;
      bottom: 2em;
      background: white;
      margin: 1em;
      display: flex;
      align-items: center;
      margin: 0;
      width: 100%;
      margin-top: 5px;
    }

    .videos {
      width: 100%;
      max-height: 300px;
      overflow: hidden;
    }

    .next-video {
      position: relative;

      width: 100%;
      margin: 1em 0;
      height: 80px;

      .thumbnail {
        position: absolute;
        background-color: var(--placeholder-color);
        height: 80px;
        width: 140px;
        top: 0;
        left: 0;
      }


      .box-1,
      .box-2,
      .box-3,
      .box-4 {
        position: absolute;
        background-color: var(--placeholder-color);
        height: 15px;
        width: 150px;
        left: 150px;
      }

      .box-2 {
        top: 21px;
        width: 180px;
      }

      .box-3 {
        top: 43px;
        width: 145px;
      }

      .box-4 {
        top: 65px;
        width: 130px;
      }

    }
  }

  .video-skip{
    position: absolute;
    font-size: 1em;
    right: 0;
    bottom: 80px;
    background-color: rgba(0, 0, 0, 0.685);
    color: white;
    padding: .5em 1em;
    margin-right: 2px;
    display: flex;
    align-items: center;
    box-shadow: -3px -1px 12px 4px white;
    gap: 5px;
    z-index: 0;
  }

  .time{
    position: absolute;
    font-size: 1.3em;
    right: 0;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.685);
    color: white;
    padding: 5px 10px;
    margin-right: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    bottom: 40px;
  }


  .progress{
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 10px;
    background-color: #E7C755;
    width: 200px;
    bottom: 40px;
  }


}



.mobile-view {
  background: url("Assets/phone.png");
  aspect-ratio: 9/16;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 2em;
  padding: 7.6em 2.5em 0 2.8em;
  max-height: 800px;


  .video {
    width: 100%;
    position: relative;

    & img {
      aspect-ratio: 16/9;
      border-radius: 1em 1em 0 0;
      width: 100%;
    }
  }


  .overlay {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    font-size: 1.2em;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 1em;
    margin: 0 1px;
  }

  .info {
    height: 200px;
    position: relative;
  }

  .call-to-action {
    display: flex;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    padding: .5em 1em;
    background-color: #2B5ECE;
    color: white;
    border: none;
    margin: .5em;
    height: fit-content;
    margin-left: auto;
  }

  .banner {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 64;
    height: 64px;
    margin: .2em;
  }

  .title {
    background-color: var(--placeholder-color);
    width: 300px;
    height: 30px;
    position: absolute;
  }

  .box-1 {
    background-color: var(--placeholder-color);
    width: 100px;
    height: 30px;
    position: absolute;
    top: 50px;
    left: 1em;
  }

  .icons {
    position: absolute;
    top: 85px;
    left: 1em;
    display: flex;
  }

  .icon {
    display: flex;
    align-items: center;
  }

  .icon:not(:last-child)::after {
    content: "";
    display: block;
    background-color: #99999980;
    width: 40px;
    height: 15px;
    position: relative;
  }

  .video-skip{
    position: absolute;
    font-size: 1.3em;
    right: 0;
    bottom: 60px;
    background-color: rgba(0, 0, 0, 0.685);
    color: white;
    padding: .5em 1em;
    margin-right: 2px;
    display: flex;
    align-items: center;
    box-shadow: -3px -1px 12px 4px white;
    gap: 5px;
  }

  .time{
    position: absolute;
    font-size: 1.3em;
    right: 0;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.685);
    color: white;
    padding: 5px 10px;
    margin-right: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
  }


  .progress{
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 10px;
    background-color: #E7C755;
    width: 200px;
  }


}