@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@200;500;700&family=Barlow:wght@200;500;700&display=swap');

.overlay-trigger button {
  position: absolute;
  top:0px;
  left:0px;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 200;
  background-color: var(--backcolor) !important;
}

.overlay-close {
  position: relative;
  z-index: 10;
  background-color: transparent;
  border: 0px;
  margin:0px;
  padding:0px;
}

.overlay-close svg {
  fill: var(--backcolor);
  width: 1.5vw;
  height: 1.5vw;
}

.overlay-close:hover svg {
  width: 1.5vw;
  height: 1.5vw;
}



.overlays {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;  /* Add this line */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  width: 0;
  height: 0;
  visibility: hidden;
  transition: 0s;
  transition-delay: .75;
  visibility: hidden;
}

.overlays::before {
  content: "";
  width:0px;
  height:0px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centering trick */
  background-color: var(--maincolor);
  border-radius: 50%;
  position: absolute;
  z-index: -10;
  transition: 1s;
}

.fillscreen {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center; /* center children horizontally */
  justify-content: center; /* center children vertically */
  width: 100vw; /* take full width of its container */
  height: 100vh; /* take full height of its container */
  position: relative; /* so we can position children absolutely if needed */
}

.vpsize {
  transition: transform 0.3s;
  position: absolute; /* it will position itself relative to .fillscreen */
  top: 0px;
  left: 0px;
  transform: translate(-50%, -50%); /* centering trick */
  width: 100vw; /* or whatever you prefer */
  height: 100vh; /*This ensures that if the iframe's content overflows, it won't spill outside.*/
}

.vpsize.is-visible {
  opacity: 1;
  transform: translateX(0);
  width: 100%;
  height: 100%;
}

.vpsize iframe {
  width: 100vw;
  height: 100vh;
  border: none;
}

.vpsize.active {
  left: 0; /* Bring the active frame to view */
}

.overlays iframe {
  visibility: hidden;
  border: 0;
}

.overlays.is-open {
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  visibility: visible;
}

.overlays.is-open .tabs {
  visibility: visible;
  opacity: 1;
  transition: 1s;
  transition-delay: .25s;
}


.overlays.is-open::before {
  width: 200vw;
  height: 200vw;
  opacity: 1;
  visibility: visible;
}

.overlays.is-open iframe {
  background-color: var(--maincolor);
  border: none;
  margin: 0;
  padding: 0;
  visibility: visible;
  transition-delay: 0.5s;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}



