@media (max-width: 899px) {

  .preview::before {
    position: absolute;
    display: block;
    content: '';
    z-index: 1;
    top: -20vw;
    right: 0vw;
    width: 0px;
    height: 0px;
    border-top: 20vw solid transparent;
    border-bottom: 25vw solid transparent;
    border-right: 25vw solid #96969680;
  }

  .preview::after {
    position: absolute;
    display: block;
    content: 'preview';
    color: #fff;
    font-size: 5vw;
    letter-spacing: normal;
    transform: rotate(45deg);
    height: 4vw;
    top: 5.5vw;
    right: -1vw;
  }
}

@media (min-width: 900px) {
  .preview::before {
    position: absolute;
    display: block;
    content: '';
    z-index: 1;
    top: -20vw;
    right: 0vw;
    width: 0px;
    height: 0px;
    border-top: 14vw solid transparent;
    border-bottom: 17vw solid transparent;
    border-right: 17vw solid #96969680;
  }

  .preview::after {
    position: absolute;
    display: block;
    content: 'preview';
    color: #fff;
    font-size: 2vw;
    letter-spacing: normal;
    transform: rotate(45deg);
    top: 2.5vw;
    right: 0vw;
  }
}

@media (min-width: 1300px) {
  .preview::before {
    position: absolute;
    display: block;
    content: '';
    z-index: 1;
    top: -110px;
    right: 0px;
    width: 0px;
    height: 0px;
    border-top: 110px solid transparent;
    border-bottom: 110px solid transparent;
    border-right: 110px solid #96969680;
 }

  .preview::after {
    position: absolute;
    display: block;
    content: 'preview';
    color: #fff;
    font-size: 22px;
    letter-spacing: normal;
    transform: rotate(45deg);
    top: 22px;
    right: 0px;
  }
}

.videoposter {
  position: absolute;
  width: 320px;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
}

.playarrow {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  opacity: .45;
}

#playarrowbig {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .45;
  z-index: 25;
  width: 150px;
  height: 150px;
  transition: opacity .5s;
}

#playarrowbig:hover, .playarrow:hover {
  cursor: pointer;
}

.hidden {
  display: none;
}

#progi {
  width: 0%;
  height: 10px;
  background-color: green;
  display: block;
  position: relative;
}

#progidiv {
  max-width: 80%;
  min-width: 60%;
  position: relative;
  display: block;
  left: 50%;
  transform: translateX(-50%);
}

.videowrapper {
  display: flex;
  width: 80%;
  position: relative;
  margin: 30px auto;
  max-width: 1100px;
  /* overflow: hidden; */
  flex-wrap: wrap;
}

.videobox {
  margin: 0 auto;
  height: 300px;
  width: 320px;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

.videobox h3 {
  font-size: 16px;
  color: #333;
  padding-top: 10px;
  margin-bottom: 5px;
  padding-bottom: 5px;
  letter-spacing: 1px;
}

.videobox p {
  padding: 0 10px 10px;
  font-size: 13px;
  letter-spacing: normal;
}

.description {
  padding-bottom: 0px;
  overflow: hidden !important;
  transition: all .4s ease-in-out;
  position: relative;
  display: block;
  color: #333;
  z-index: 10;
  background-color: #fff;
  bottom: 0;
  width: 100%;
}


.videooverlay {
  display: block;
  position: absolute;
  width: 320px;
  width: 100%;
  background: linear-gradient(0deg, #ffffffff, #ffffff00);
  bottom: 0px;
  height: 40px;
  transition: all .35s;
  z-index: 20;
}

.videobox video {
  outline: none;
  padding: 10px;
}

#pboxoverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  height: 100%;
  z-index: 15;
}

#playerbox {
  outline: none;
  position: fixed;
  height: auto;
  max-width: 80%;
  min-width: 60%;
  max-height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

@media (max-width: 1300px) {
  .videowrapper{
      width: 90%;
  }

  .videobox {
      width: 40vw;
      height: calc( 22.5vw + 100px);

  }
  .videoposter {
      width: 40vw;
      height: auto;
  }

  .playarrow {
      height: 22.5vw;
  }

  hr {
      width: 90%;
      left: 0;
      margin: 0 auto;
  }
}

@media (max-width: 900px) {
  form {
    width: 100%;
  }
  
  .videobox, .videoposter {
      width: 100%;
      height: calc( 50vw + 100px);
  }

  .videoposter {
      width: 90vw;
      height: auto;
  }

  .playarrow {
      height: 50vw;
  }
}

#videoform input[type=file]::-webkit-file-upload-button {
  visibility: visible;
  font-size: 22px;
}

#videoform {
  display: flex;
}

#videoform input[type=file]::before {
  content: 'Pick a file';
  font-size: 14px;
  display: inline-block;
  padding: 4px 8px;
  top: 0px;
  position: relative;
  background-color: #c0c0c0;
  z-index: -1;
  width: 60px;
  border-radius: 4px;
}

#errorwrapper {
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  background-color: #a1c6da;
  margin: 0;
  padding: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

body {
  margin: 0;
  padding: 0;
}

#innerwrapper {
  margin: 0;
  padding: 0;
  background-color: green;
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

#errormessage, #errorbutton {
  color: #fff;
  background-color: #41677b;
  text-align: center;
  position: relative;
}

#errormessage p {
  line-height: 1;
}

#errorbutton {
  color: #41677b;
  font-weight: 600;
  padding: 10px 20px;
  margin: 30px auto;
  background-color: #a1c6da;
  border: none;
  border-radius: 5px;
}

#errorbutton:hover {
  cursor: pointer;
}

textarea {
  resize: none;
  width: 60%;
  border-radius: 4px;
  border: none;
  margin-bottom: 25px;
  padding: 10px 15px;
}

.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.inputfile + label {
  /* max-width: 80%; */
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  padding: 0.625rem 1.25rem;
  margin: 5px auto;
  background-color: #41677b;
  border: 1px solid #41677b;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}

/* .field:nth-of-type(3) {
  margin-bottom: 30px;
} */

label, label span {
    letter-spacing: 0px;
    font-weight: 600;
}

label span {
  line-height: 18px;
  color: #a1c6da;
  vertical-align: middle;
}

.field label {
  color: #41677b;
  line-height: 18px;
  color: #a6c3d3;
}

.clapper {
  line-height: 32px;
  height: 32px;
  position: relative;
  transform: translateX(-50%);
  vertical-align: middle;
}