/* styles.css */

body {
  margin: 0;
  background-color: #fff;
  font-family: sans-serif;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .left,
.header .right {
  cursor: pointer;
}

#indexOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  color: #000;
  z-index: 100;
  padding: 1em;
  box-sizing: border-box;
}

#indexOverlay.active {
  display: block;
}

#indexOverlay .close {
  position: absolute;
  top: 1em;
  right: 1em;
  cursor: pointer;
}

#indexOverlay{
  max-width: 375px;
}

.vfeed{
  max-width: 375px;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-family: sans-serif;
  font-size: 1em;
  z-index: 1;
}

.video-container {
  scroll-margin-top: 50px;
  position: relative;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 20px;
  opacity: 0.5;
  transition: opacity 0.3s ease, margin-bottom 0.3s ease;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-style: solid;
  border-width: 1px;
}

.video-container p {
  margin-top: 10px;
  color: #000;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-container.active {
  opacity: 1;
  margin-bottom: 60px; /* larger gap when active */
}

.video-container.active p {
  opacity: 1;
  transform: translateY(0);
}

.index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.index-header p {
  margin: 0;
}

.index-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.index-button {
  display: block;
  width: 200px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  font-family: sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.index-button:hover {
  background-color: #f0f0f0;
}

@media (max-width: 500px) {
  #indexOverlay {
    max-width: 100%;
  }
  .vfeed {
    max-width: 100%;
  }
  .video-container {
    width: 90%;
  /*  margin: 20px 10px;*/
  }
}

@media (max-height: 700px) {
  .video-container video{
    height: 80%;
  }

  }















