* {
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: "Quicksand", sans-serif;
  --red: #e4002b;
  --white: #ffffff;
  --black: #101820;
}

p {
  font-family: "DM Sans";
  font-weight: 400;
  font-size: 1rem;
}

.video,
#video-overlays,
#video-content {
  width: 100%;
  height: 100svh;
  position: absolute;
  top: 0;
}

#video-overlays {
  transition: opacity 0.25s ease-in;
}

.video-overlay-border {
  position: absolute;
  border: 0.5px solid var(--white);
  width: 15px;
  height: 15px;
  border-radius: 3rem;
  padding: 0.15rem;
  transform: translate(-4.5px, -4.5px);
  animation: pulsarAnimation 2s ease-out infinite;
}

.video-overlay-button-container {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
}

.video-overlay-span {
  position: relative;
}
.video-overlay-span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}

.video-overlay:hover .video-overlay-span::after {
  width: 100%;
}

.video-overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  animation: pulsarAnimationButton 2s ease-out infinite;
}

@keyframes pulsarAnimationButton {
  0% {
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-50%) scale(1.3);
  }
  100% {
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
}

.video-overlay-buttontext {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.img-polygon {
  height: 2svh;
}

.video-overlay {
  position: absolute;
  left: 5svh;
  z-index: 2;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.video-interaction {
  position: absolute;
}

.video-overlay-button-interaction {
  background-color: var(--white);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.video-overlay-button-interaction > span {
  position: relative;
  color: var(--black);
}

.video-overlay-button-interaction > span::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background-color: var(--red);
}

.video-overlay-button-interaction > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background-color: var(--black);
  transition: width 0.3s ease;
}

.video-overlay:hover .video-overlay-button-interaction > span::after {
  width: 100%;
}

.video-content {
  width: 100%;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

iframe {
  flex: 1;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.content {
  width: 100%;
  height: 100%;
  background-color: grey;
  display: flex;
  justify-content: center;
  align-items: center;
}

.interaction-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  animation: pulsarAnimationButton 2s ease-out infinite;
}

.buttons-back-container {
  position: absolute;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  top: 0;
  height: 100svh;
  width: 100%;
  gap: 0.5rem;
}

.home-btn {
  display: none;
  margin: 1rem 0 1rem 0;
  z-index: 3;
  background: #ffffff33;
  padding: 0.5rem 0.75rem;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: 0.25s ease-in-out;
  font-size: 1.25rem;
  transition: opacity 0.25s ease-in;
  height: 40px;
}

.home-btn img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.back-btn {
  display: none;
  margin-left: 1rem;
  margin-bottom: 1rem;
  z-index: 3;
  background: #ffffff33;
  padding: 0.5rem 0.75rem;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease-in;
  font-size: 1.25rem;
  height: 40px;
}
.back-btn:hover {
  background: #ffffff66;
}

.home-btn:hover {
  background: #ffffff66;
}

#dialog {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  z-index: 20;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  max-height: 90svh;
}

.bg-dialog {
  background-color: black;
  opacity: 0;
  z-index: -1;
  height: 100svh;
  width: 100%;
  position: absolute;
  top: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

#dialog > h2 {
  position: relative;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1.5rem;
  padding-left: 0.5rem;
  color: var(--white);
}
#dialog > h2::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background-color: var(--white);
}

#dialog-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  pointer-events: auto;
  /* Enable clicks on the content inside the dialog */
  background-color: var(--white);
  box-shadow: 6px 6px 0px 0 #e4002b80;
}

#close-btn {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem;
  align-self: flex-end;
  width: fit-content;
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
}

.footer {
  height: 100svh;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-container {
  display: none;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s ease-in;
}
.footer-container > span {
  font-size: 1.5rem;
  color: var(--white);
}
.footer-container > img {
  height: 3svh;
}

.dialog-side-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
}

.dialog-left-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 66%;
}

.dialog-left-side > img {
  width: 100%;
  object-fit: cover;
}

.dialog-right-side {
  display: flex;
  justify-content: center;
  width: 34%;
}

#lupa-btn {
  position: absolute;
  cursor: pointer;
  border: none;
  transition: opacity 0.25s ease-in;
}

#lupa-btn > img {
  height: 2.5svh;
  padding: 0.5rem;
}

#modal-certification {
  display: none;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100svh;
  transition: opacity 0.25s ease-in;
  align-self: center;
  justify-content: center;
  z-index: 20;
}

#modal-certification-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-self: center;
  background-color: var(--white);
  padding: 0.5rem;
  width: 80%;
  height: 80%;
  position: relative;
}
#modal-certification-close {
  padding: 0 0 0.5rem 0.5rem;
  color: var(--red);
  align-self: flex-end;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}


@media (max-width: 990px) {
  .video-overlay, .video-overlay-span, .footer-container > span{
    font-size: .75rem;
  }
  .video-overlay-button-interaction {
    padding: .25rem .5rem;
  }

  #back-btn{
    height: 30px;
    font-size: .75rem;
  }

  #home-btn {
    height: 30px; 
  }

  .video-overlay-buttontext{
    padding: .25rem .5rem;
    text-wrap: wrap;
  }

  .video-overlay-button-interaction{
    text-wrap: wrap;
  }
}

.block {
  display: none;
  background-color: var(--white);
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  height: 100svh;
  width: 100%;
  z-index: 999999999;
}

.block > span {
  color: var(--red);
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
}