body, html {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    width: 100%;
    /* height: 100%; */
    margin: 0;
    background: #f5f5f5;
}

body {
    /* min-height: 100vh; */
    display:flex;
    flex-direction:column;
}

.white-bg {
    background: white;
}

* {
    min-width: 0;
    box-sizing: border-box;
    border-collapse: collapse;
}

header {
    background: white;
    width: 100%;
    /* margin-bottom: 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3vw;
}

header nav {
    justify-content: space-between;
    /* width: 300px; */
    display: flex;
    align-items: center;
    /* margin: 0 13px; */
}

header nav a {
    text-decoration: none;
    color: black;
    border-bottom: 2px solid transparent;
    margin: 0 12px;
}

header nav a:last-child {
    margin-right: 0;
}

header nav a:hover {
    border-bottom: 2px solid rgb(255, 156, 51);
}

.button-primary {
    background: linear-gradient(155deg, rgb(255, 156, 51) 30%, purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    border-bottom: none;
    text-decoration: none;
}

.button-secondary {
    background: rgb(255, 156, 51);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    border-bottom: none;
    text-decoration: none;
}

h1 {
    background: linear-gradient(155deg, rgb(255, 156, 51) 30%, purple);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 4px rgba(0,0,0,.1);
    width: 6ch;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
    align-content: flex-start;
    with: 1;
}
    
.paper-bg {
    border: 1px solid #d9d9d9;
    background: white;
    width: 94vw;
    margin: 20px auto;
}

textarea {
    width: 99%;
}

.editcontainer {
    position: relative;
    height: 100px;
}

.textlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1em;
}

    .masktext {
        color: rgba(0,0,0,.2);
    }

.textedit {
    background: transparent;
    font-family: inherit;
    font-size: 1em;
    padding: calc(1em - 1px);
    height: 200px;
}

    .keyword {
        background: rgba(0, 128, 0,.3);
    }

.editorlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-wrap {
    margin: 0px auto 0px 45px;
    width: calc(95% - 45px);
}

.vid-parent {
    margin: 0 auto;
    width: 95%;
    border-radius: 9px;
    box-shadow: rgba(0,0,0,.2) 0px 0px 10px;
}

.segment {
    position: relative;
}

.segment:last-child {
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

video, iframe {
    width: 100%;
    height: auto;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

video.marketing {
    max-width: 400px;
}

.plain {
    border-radius: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

.video-input {
    display: none;
}

.spot {
    position: absolute;
    top: -10px;
    background: white;
    min-width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 3px solid #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    left: -1%;
    box-sizing: border-box;
}

.vid-controls {
    padding: 9px;
}

.swap-control {
    padding: 9px;
    display: flex;
    justify-content: space-evenly; 
    align-items: center;
}

  .checkbox-wrapper-1 *,
  .checkbox-wrapper-1 ::after,
  .checkbox-wrapper-1 ::before {
    box-sizing: border-box;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted {
    margin: 0;
    width: 0;
    height: 0;
    display: inline;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted + label:before {
    content: "";
    display: inline-block;
    vertical-align: top;
    height: 1.15em;
    width: 1.15em;
    margin-right: 0.6em;
    color: rgba(0, 0, 0, 0.275);
    border: solid 0.06em;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em inset, 0 0 0 0.07em transparent inset;
    border-radius: 0.2em;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="white" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>') no-repeat center, white;
    background-size: 0;
    will-change: color, border, background, background-size, box-shadow;
    transform: translate3d(0, 0, 0);
    transition: color 0.1s, border 0.1s, background 0.15s, box-shadow 0.1s;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:enabled + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset;
    background-color: #f0f0f0;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:checked + label:before {
    background-color: #3B99FC;
    background-size: 0.75em;
    color: rgba(0, 0, 0, 0.075);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled + label:active:before {
    background-color: #0a7ffb;
    color: rgba(0, 0, 0, 0.275);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:focus + label:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:focus:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:focus + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:disabled + label:before {
    opacity: 0.5;
  }

  .checkbox-wrapper-1 [type=checkbox].substituted.dark + label:before {
    color: rgba(255, 255, 255, 0.275);
    background-color: #222;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="rgba(34, 34, 34, 0.999)" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>');
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled + label:active:before {
    background-color: #444;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(255, 255, 255, 0.1) inset;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked + label:before {
    background-color: #a97035;
    color: rgba(255, 255, 255, 0.075);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled + label:active:before {
    background-color: #c68035;
    color: rgba(0, 0, 0, 0.275);
  }


.extra-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timestamp-field {
    width: 11ch;
}

.timestamp-control {
    margin-top: 5px;
    margin-bottom: 9px;
}

hr {
    width: 90%;
    border:1px solid #d9d9d9;
    margin: 20px auto;
}

.float-menu {
    position: fixed;
    bottom: 0;
    top: 0;
    right: 4px;
    width: auto;
    display: flex;
    align-self: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    border-radius: 20px;
    height: 100%;
}

.float-menu-nest {
    background: rgb(255, 156, 51);
    box-shadow: rgba(0,0,0,.2) 0px 0px 10px;
    border-radius: 20px;
    pointer-events: all;
    text-align: center;
}

.scene-jump {
    max-width: 6ch;
    width: auto;
    word-wrap: break-word;
    line-break: normal;
    overflow: hidden;
    display: block;
    font-size: .7em;
    margin: 10px auto;
    color: white;
}

.float-menu-nest a {
    display: block;
    margin: 0 auto;
    padding: 3px 0 6px;
    line-height: 1em;
    color: white;
    width: 100%;
    text-decoration:none;
    overflow: hidden;
}

    .float-menu-nest a:hover {
        background: rgba(0,0,0,.1);
    }

.accordion-button {    
    background: transparent;
    border: none;
    color:  white;
    height: 25px;
    line-height: 25px;
}

.accordion-button:hover {
    background: rgba(0,0,0,.1);
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.blurred {
    position: relative;
    height: 500px;
}

.blurred .authwrap {
    position: absolute;
    margin: 0 auto;
    width: 100%;
    top: -10px;
    height: 250px;
    backdrop-filter: blur(10px);
}

.blurred .authwrap .form {
    margin: 12px auto 0;
    width: 100%;
    max-width: 700px;
    background: white;
    border: 8px solid orange;
    border-radius: 16px;
    padding: 16px;
}

.copyright-alert {
    border: 1px solid rgb(243, 121, 77);
    background: rgb(243, 226, 220);
    width: 94vw;
    margin: 20px auto;
    padding: 20px;
}

.submit-vid {
    background:rgb(255, 156, 51);
    color: white;
    width: 94vw;
    border: none;
    padding: 10px 0;
    margin: 20px auto;
    display: block;
    cursor: pointer;
}

.submit-vid[disabled] {
    background: grey;
    cursor: not-allowed;
}

footer {
    background: #eee;
    border-top: 1px solid #dbdbdb;
    width: 100%;
    text-align: center;
    padding: 40px 0;
    margin-top: 20px;
}

.video-type {
    padding: 20px;
}

h2 {
    margin-top: 0px;
}

.soon {
    text-align: center;
    width: 100%;
    display: inline-block;
    margin: 20px auto;
}

.center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.right {
    text-align: right;
    display: block;
}

.download-wrap {
    margin: 20px auto;
    width: 100%;
    text-align: center;
}

.vid-title-entry {
    width: 100%;
    padding: 4px;
    font-size: 1.2em;
}

.project-snippet {
    width: 100%;
    margin: 12px auto;
}

a.basic {
    text-decoration: none;
    color: black;
    border-bottom: 1px solid rgb(255, 156, 51);
}

a.basic:hover {
    border-bottom: 2px solid rgb(255, 156, 51);
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* padding-bottom: 56.25%; 16:9 */
    height: 100vh;
    max-height: 400px;
    background: grey;
}

.hero__placeholder,
.hero__video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, 0);
    max-width: 1280px;
}

.hero__video {
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(1px);
}

.hero__video.blurred {
    max-width: none;
    filter: blur(10px);
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    padding: 16px;
}

.text-roller {
    font-size: 2rem;
    font-weight: bold;
    line-height: 48px;
}
.word-container {
    display: inline-block;
    width: 140px;
    height: 48px;
    overflow: hidden;
    vertical-align: top;
    text-align: left;
}
.word-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}
.word {
    height: 48px;
    line-height: 48px;
}

.hero-demo-input {
    background: white;
    position: relative;
    max-width: 1248px;
    top: -53px;
    border: 8px solid orange;
    border-radius: 16px;
    padding: 16px;
    margin: 0 auto;
}

.marketing-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    columns: auto;
}

.marketing-h2 {
    margin: 20px auto;
}

.feature {
    padding: 0 20px;
    width: 100%
}

.center-text {
    text-align: center;
}

.auth-form {
    padding: 20px; 
}

label {
    display: block; 
    margin-bottom: 8px;
}

.text-entry {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.video-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* From https://codepen.io/stoepke/pen/QOOqGW */
.loader { 
  width:500px; 
  margin:0 auto;
  border-radius:10px;
  border:4px solid transparent;
  position:relative;
  padding:1px;
}
.loader:before {
  content:'';
  border:1px solid orange; 
  border-radius:10px;
  position:absolute;
  top:-4px; 
  right:-4px; 
  bottom:-4px; 
  left:-4px;
}
.loader .loaderBar { 
  position:absolute;
  border-radius:10px;
  top:0;
  right:100%;
  bottom:0;
  left:0;
  background:orange; 
  width:0;
  animation:borealisBar 2s linear infinite;
}
.loader-wrap {
    display: none;
}
.creation-status {
    text-align: center;
    display: block;
    margin: 8px 0;
    font-weight: 500;
}

@keyframes borealisBar {
  0% {
    left:0%;
    right:100%;
    width:0%;
  }
  10% {
    left:0%;
    right:75%;
    width:25%;
  }
  90% {
    right:0%;
    left:75%;
    width:25%;
  }
  100% {
    left:100%;
    right:0%;
    width:0%;
  }
}

/* media query for screens wider than 1024px */
@media (min-width: 500px) {
    .video-elem {
        max-width: 400px;
    }
}
@media (min-width: 1024px) {
    .segment {
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    .content-wrap {
        margin-right: 20px;
    }

    .vid-parent {
        margin-top: 16px;
        margin-right: 16px;
        max-width: 32%;
    }

    .spot {
        top: 20px;
    }
}