@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");

/* @font-face {
  font-family: "New Press Eroded";
  src: url("fonts/New Press Eroded.woff") format('woff');
}

@font-face {
  font-family: "New Press Eroded Bold";
  src: url("fonts/New Press Eroded Bold.woff") format('woff');
  font-weight: bold;
}

@font-face {
  font-family: "New Press Eroded Bold Italic";
  src: url("fonts/New Press Eroded Bold Italic.woff") format('woff');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "New Press Eroded Italic";
  src: url("fonts/New Press Eroded Italic.woff") format('woff');
  font-style: italic;
} */

@font-face {
    font-family: 'Lemon Milk';
    src: url('fonts/LEMONMILK-Regular.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Italic';
    src: url('fonts/LEMONMILK-RegularItalic.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Medium';
    src: url('fonts/LEMONMILK-Medium.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Medium Italic';
    src: url('fonts/LEMONMILK-MediumItalic.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Bold';
    src: url('fonts/LEMONMILK-Bold.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Bold Italic';
    src: url('fonts/LEMONMILK-BoldItalic.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Light';
    src: url('fonts/LEMONMILK-Light.otf') format('opentype');
}
@font-face {
    font-family: 'Lemon Milk Light Italic';
    src: url('fonts/LEMONMILK-LightItalic.otf') format('opentype');
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(rgba(50, 117, 130, 1) 11%, rgba(0, 0, 0, 1)100%);
  background-repeat: no-repeat;
  background-size: 130% 130%;
  background-position: -40px -40px;
}

.logo {
  text-align: center;
}

.logo img {
  min-width: 300px;
  max-width: 67%;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input[type=radio] {
  display: none;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  /* aspect-ratio: 9 / 16; */
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
  opacity: 0;
  z-index: 0;
  transform: scale(0.8);
}

#item-1:checked ~ .cards #video-1::after,
#item-2:checked ~ .cards #video-2::after,
#item-3:checked ~ .cards #video-3::after,
#item-4:checked ~ .cards #video-4::after,
#item-5:checked ~ .cards #video-5::after {
  content: "\fc1a";
  font-family: "boxicons";
  font-size: 5rem;
  color: rgba(255, 255, 255, .25);
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  cursor: pointer;
  transition: color 0.2s ease;
}

#item-1:checked ~ .cards #video-1:hover::after,
#item-2:checked ~ .cards #video-2:hover::after,
#item-3:checked ~ .cards #video-3:hover::after,
#item-4:checked ~ .cards #video-4:hover::after,
#item-5:checked ~ .cards #video-5:hover::after {
  color: rgba(255, 255, 255, .75);
}

.container {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  /* Keep it inside the viewport */
  max-width: min(90vw, 50vh * 9 / 16);
  max-height: min(75vh, 90vw * 16 / 9);
  z-index: 1;
}

.cards {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16; /* main aspect ratio container */
  background:#fff;
  border-radius: 10px 10px 0 0;
  margin-top: 10px;
  /* touch-action: pan-y; allow vertical scroll, but block horizontal scroll */
  touch-action: none; /* no browser scrolling at all while swiping */
}

.card img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Active Card (center) */
#item-1:checked ~ .cards #video-1,
#item-2:checked ~ .cards #video-2,
#item-3:checked ~ .cards #video-3,
#item-4:checked ~ .cards #video-4,
#item-5:checked ~ .cards #video-5 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

/* Left Side Card (previous card) */
#item-1:checked ~ .cards #video-5,
#item-2:checked ~ .cards #video-1,
#item-3:checked ~ .cards #video-2,
#item-4:checked ~ .cards #video-3,
#item-5:checked ~ .cards #video-4 {
  transform: translateX(-40%) scale(0.8);
  opacity: 0.4;
  z-index: 2;
}

/* Right Side Card (next card) */
#item-1:checked ~ .cards #video-2,
#item-2:checked ~ .cards #video-3,
#item-3:checked ~ .cards #video-4,
#item-4:checked ~ .cards #video-5,
#item-5:checked ~ .cards #video-1 {
  transform: translateX(40%) scale(0.8);
  opacity: 0.4;
  z-index: 2;
}

.card,
.card img {
  transition: ease all .25s;
}

.card:hover {
  opacity: 0.7;
}

.card:hover img {
  filter: brightness(1.1);
}

#item-1:checked ~ .cards #video-1 img,
#item-2:checked ~ .cards #video-2 img,
#item-3:checked ~ .cards #video-3 img,
#item-4:checked ~ .cards #video-4 img,
#item-5:checked ~ .cards #video-5 img {
  box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
}


@media (min-width: 1024px) {
  /* Make all cards partially visible */
  .card {
    opacity: 0.4;
    transform: scale(0.7);
    z-index: 0;
  }

  /* Active card in the center */
  #item-1:checked ~ .cards #video-1,
  #item-2:checked ~ .cards #video-2,
  #item-3:checked ~ .cards #video-3,
  #item-4:checked ~ .cards #video-4,
  #item-5:checked ~ .cards #video-5 {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
  }

  /* Previous card */
  #item-1:checked ~ .cards #video-5,
  #item-2:checked ~ .cards #video-1,
  #item-3:checked ~ .cards #video-2,
  #item-4:checked ~ .cards #video-3,
  #item-5:checked ~ .cards #video-4 {
    transform: translateX(-40%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
  }

  /* Next card */
  #item-1:checked ~ .cards #video-2,
  #item-2:checked ~ .cards #video-3,
  #item-3:checked ~ .cards #video-4,
  #item-4:checked ~ .cards #video-5,
  #item-5:checked ~ .cards #video-1 {
    transform: translateX(40%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
  }

  /* Far-left (two away) */
  #item-1:checked ~ .cards #video-4,
  #item-2:checked ~ .cards #video-5,
  #item-3:checked ~ .cards #video-1,
  #item-4:checked ~ .cards #video-2,
  #item-5:checked ~ .cards #video-3 {
    transform: translateX(-75%) scale(0.6);
    z-index: 1;
    opacity: 0.5;
  }

  /* Far-right (two away) */
  #item-1:checked ~ .cards #video-3,
  #item-2:checked ~ .cards #video-4,
  #item-3:checked ~ .cards #video-5,
  #item-4:checked ~ .cards #video-1,
  #item-5:checked ~ .cards #video-2 {
    transform: translateX(75%) scale(0.6);
    z-index: 1;
    opacity: 0.5;
  }
}



.infoblock {
  background-color: #f7f7f7;
  border-radius: 0 0 8px 8px;
  width: 100%;
  aspect-ratio: 9;
  padding: 10px;
}

.upper-part {
  position: relative;
  display: flex;
  align-items: center;
  height: 80px;
  overflow: hidden;
}

.btn-vote {
  width: 100%;
}

.btn-comment,
.btn-share {
  width: auto;
}

.controls {
  display: flex;
  width: 100%;
  margin-top: 10px;
  height: 35px;
}

.vote {
  flex: 1;
}

.comment, .share {
  flex: 0 0 auto;
}

/* .comment, .share {
  flex: auto;
} */

.btn-vote,
.btn-comment,
.btn-share {
  padding: .4rem .8rem;
  box-shadow: 0 0 0 2px #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* center icon/text horizontally */
  gap: .2rem;
  font-size: 1rem;
  line-height: 1;
  transition: ease all .2s
}

.btn-vote:hover,
.btn-comment:hover,
.btn-share:hover {
  box-shadow: 0 0 0 2px #fff;
  background: #81bae3;
  color: #fff;
}

.btn-vote {
  border-radius: 8px 0 0 8px;
}

.btn-share {
  border-radius: 0 8px 8px 0;
}

/* .btn-share {
  border-radius: 8px;
  width: 100%;
} */

.active,
.btn-vote:active,
.btn-share:active,
.btn-comment:active {
  background-color: #2992dc !important;
  color: #fff !important;
}

.video-info {
  width: calc(100% - 16px - 1em);
  display: block;
  margin-left: 1em;
}

.video-info .title {
  color: #403d40;
  font-size: 14px;
  line-height: 24px;
}

.sub-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.subtitle, .time {
  font-size: 12px;
  line-height: 12px;
  color: #9a9a9a;
}

.time {
  font-size: 12px;
  line-height: 16px;
  color: #a5a5a5;
  font-weight: 500;
  margin-left: auto;
}

.progress-bar {
  height: 3px;
  width: 100%;
  background-color: #e9efff;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  display: block;
  position: relative;
  width: 60%;
  height: 100%;
  background-color: #2992dc;
  border-radius: 6px;
}

.info-area {
  width: 100%;
  position: absolute;
  top: 0;
  transition: transform 0.4s ease-in;
}

#item-2:checked ~ .infoblock #test {
  transform: translateY(0);
}

#item-2:checked ~ .infoblock #test {
  transform: translateY(-80px);
}

#item-3:checked ~ .infoblock #test {
  transform: translateY(-160px);
}

#item-4:checked ~ .infoblock #test {
  transform: translateY(-240px);
}

#item-5:checked ~ .infoblock #test {
  transform: translateY(-320px);
}

/* Fullscreen overlay of Video - Other images are just a preview - maybe use image for this / screenshot / Manual process for now
As the site grows for these things we would maybe want to give the user the option to select a frame from the video as a screenshot
then use it in this case, if they don't select a frame, default to middle of video */
.image-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Show the expanded video */
.image-overlay.activated {
  visibility: visible;
  opacity: 1;
}

.image-overlay iframe {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
  display: block;
}

/* Play zoom-in each time overlay is opened */
.image-overlay.activated iframe {
  animation: zoomIn 220ms ease-out both;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Prevent background scroll while open */
body.modal-open {
  overflow: hidden;
}

/* Animate in */
.image-overlay.activated iframe {
  animation: zoomIn 220ms ease-out forwards;
}

/* Animate out */
.image-overlay.closing iframe {
  animation: zoomOut 200ms ease-in forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes zoomOut {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(0.85); opacity: 0; }
}

.slogan {
  font-size: clamp(.9rem, 7vw, .9rem);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  perspective: 1000px;
  display: inline-block;
  position: relative;
  width: 100%;
  margin-bottom: 1.8rem;
  height: 1em;
  opacity: 1;
}

.slogan .text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  font-family: "Lemon Milk Bold", "Montserrat", serif;
  color: rgb(138,232,168);
  text-shadow: 0px 2px 17px rgba(0, 0, 0, .6);
}

.slogan .alt {
  transform: rotateX(-180deg);
  opacity: 0;
}

.slogan.flipped .current {
  transform: rotateX(180deg);
  opacity: 0;
}

.slogan.flipped .alt {
  transform: rotateX(0);
  opacity: 1;
}

/* Top Nav for Signup and Login */
.top-nav {
  position: fixed;
  right: 0;
  top: 0;
  margin: 1rem;
  z-index: 2;
}

/* Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Icon button */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: #d8d8d8;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: #ffffff;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  min-width: 175px;
  border-radius: 8px;
  box-shadow: 0 0px 8px 3px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 99;
}

/* Links */
.dropdown-content a {
  display: inline-flex;
  width: 100%;
  padding: 8px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  align-items: center;
  transition: background 0.2s ease;
  /* border-radius: 0 0 8px 8px; */
}

.dropdown-content a:not(:last-child) {
  border-bottom: 1px solid #dbdbdb;
  /* border-radius: 8px 8px 0 0; */
}

.dropdown-content a:hover {
  background: #39b9b3;
  color: #fff;
}

.dropdown-content a i {
  margin-right: .3rem;
  font-size: 1rem;
}

/* Show when active */
.dropdown-content.show {
  display: block;
}

.signup-overlay,
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,.7);
  transition: opacity 0.35s ease;
}

/* Show the expanded video */
.signup-overlay.activated,
.login-overlay.activated {
  visibility: visible;
  opacity: 1;
  animation: zoomIn 220ms ease-out both;
}

.signup-overlay .form-content,
.login-overlay .form-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
  display: block;
  background-color: rgba(50, 117, 130, 1);
  /* min-height: calc(500px + 1rem); */
  min-width: 400px;
  padding: 1.5rem 2rem 0 2rem;
  border: 1px solid rgba(52, 134, 150, 1);
}

.login-overlay .form-content .header,
.signup-overlay .form-content .header {
  width: 100%;
  color: rgb(255, 255, 255);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  padding-bottom: .5rem;
  font-family: "DM Sans", sans-serif;
  text-shadow: 0px 2px 17px rgba(0, 0, 0, .6);
  font-size: clamp(1.2rem, 7vw, 1rem);
  font-weight: bold;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Prevent background scroll while open */
body.modal-open {
  overflow: hidden;
}

/* Animate out */
.signup-overlay.closing .form-content,
.login-overlay.closing .form-content {
  animation: zoomOut 200ms ease-in forwards;
}

.register {
  padding: 1rem 0;
}

/* .sign-in {
  padding: 1rem;
} */

.form-input {
  width: 100%;
  border: 0;
  /* margin-top:.25rem;
  margin-bottom: .5rem; */
  padding: .75rem;
  background: #296471;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
}
.form-input::placeholder {
  color: #c7c7c7;
}
.form-input:hover {
  background: #265661;
}

input.form-input,
button.btnSubmit {
  transition: all ease .25s;
}

input.form-input:focus,
button.btnSubmit:focus {
    outline: none;
    box-shadow: inset 0px 0px 0px 2px #00eaff5c;
    background: #265661;
}

.label-input {
  color: #fff;
}

.btnSubmit {
  width: 100%;
  border: 0;
  margin-top: .15rem;
  margin-bottom: .6rem;
  padding: .6rem;
  background: #296471;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  transition: all ease .25s;
}

a .btnSubmit {
  margin-bottom: .2rem;
}

.login-overlay .form-content .footer,
.signup-overlay .form-content .footer {
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .2);
  padding-top: .5rem;
}

.btnSubmit:hover {
  background: #265661;
}

.continue-text {
  width: 100%;
  margin-bottom: .6rem;
  padding: .6rem;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.text-input {
  position: relative;
  margin-bottom: .5rem;
}

.form-input {
  width: 100%;
  border: 0;
  padding: 1.3rem .75rem .5rem 1.2rem; /* extra top padding so label fits */
  background: #296471;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
}

/* label sits INSIDE the box */
.text-input .label-input {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c7c7c7;
  font-size: 15px;
  pointer-events: none;
  transition: .2s ease;
  z-index: 1;
}

/* float label when focused OR when there's content */
.text-input:has(input:focus) .label-input,
.text-input:has(input:not(:placeholder-shown)) .label-input {
  top: 8px;
  transform: none;
  font-size: 12px;
  color: #00eaff;
}

iframe {
  height: 90vh;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 8px;
}

.error-message {
    color: #ff9393;
    font-size: 0.85em;
    margin: -.2rem 0 .5rem .5rem;
    display: none; /* hidden until error */
}

.success-message {
    color: #ffffff;
    font-size: 0.85em;
    margin: -.2rem 0 .5rem .5rem;
    display: none; /* hidden until error */
}

.login-popup {
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  position: absolute;
  z-index: 1000;
  white-space: nowrap;
}
.wrapper-input {
  font-size: .8rem;
  text-align:center;
  color: #fff;
}

.wrapper-input a {
  color: #7cc6ca;
  text-decoration: none;
  transition: ease all .25s;
}

.wrapper-input a:hover {
  color: #90d7db;
}