/* General Styles */
* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
}

body {
  color: white;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden; /* Hide body overflow */
}

/* Video Container */
.app__videos {
  position: relative;
  height: 100%;
  max-height: 750px;
  background-color: white;
  overflow-y: scroll;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  background: #1c1f2b; /* Background color for the video container */
  border-radius: 10px; /* Rounded corners */
}

.app__videos::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Edge */
}

/* Video Player */
.video {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
}

.video__player {
  object-fit: contain; /* Changed to cover for better visual */
  width: 100%;
  height: 100%;
  cursor: pointer; /* Change cursor to pointer */
}

/* Pause Button */
.pause-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.pause-button svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.video.paused .pause-button {
  opacity: 1; /* Show when video is paused */
}

.video:not(.paused) .play-icon,
.video.paused .pause-icon {
  display: none; /* Toggle visibility */
}

/* Video Footer */
.videoFooter {
  position: relative;
  bottom: 150px;
  margin-left: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}
.videoFooter.expanded {
  animation: slideUp 0.5s forwards;
}

.videoFooter:not(.expanded) {
  animation: slideDown 0.5s forwards;
}


/* Add this to your existing CSS */
@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-120px); /* Adjust this value as needed */
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-120px); /* Adjust this value as needed */
  }
  to {
    transform: translateY(0);
  }
}

.videoFooter__channel {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.channel__image {
  width: 70px;
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
}

.channel__info {
  display: flex;
  align-items: center;
}

.channel__name {
  margin-right: 10px;
}

.videoFooter__text {
  position: relative;
  max-height: 65px; /* Limit the height */
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.videoFooter__text h3{
  margin-bottom: 5px;
}
.videoFooter__text.expanded {
  max-height: 500px; /* Expand to show full text */
}

.videoFooter__description {
  padding-bottom: 20px;
}

.see-more {
  color: #4834d4;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}
.videoFooter__description a{
  text-decoration: none;
  color: aliceblue;
}
.videoFooter__description a:hover{
  text-decoration: underline;
}
/*watch full video*/
.tooltip-container {
  --background: #7579e7;
  background: var(--background);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 17px;
  border-radius: 10px;
  width: 8em;

  display: flex;
  justify-content: center;
  align-items: center;
}

.tooltip {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3em 0.6em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  background: var(--background);
  border-radius: 5px;
  width: 7em;
  text-align: center;
}

.tooltip::before {
  position: absolute;
  content: "";
  height: 0.6em;
  width: 0.6em;
  top: -0.2em;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  background: var(--background);
}

.tooltip-container:hover .tooltip {
  bottom: -140%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: shake 500ms ease-in-out forwards;
}

@keyframes shake {
  0% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  70% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.text {
  position: relative;
  padding: 0.7em 1.8em;
  overflow: hidden;
}

.text::before {
  content: "(^_^)/";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: inherit;
  background-color: var(--background);
  transition: 0.3s;
}

.tooltip-container:hover .text::before {
  top: 0;
}

.watch-full-video-button {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Unmute Button */
.unmute-button {
  position: absolute;
  top: 5em;
  left: 1em;
  font-size: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  display: none; /* Initially hidden */
}

.video.muted .unmute-button {
  display: block; /* Show unmute button when video is muted */
}
/*Follow button*/
.button {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-inline: 1.2rem;
  background-color: rgb(0 107 179);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}

.button:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.button:hover .icon {
  transform: translate(4px);
}

.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}
.fa-facebook{
  margin-top: 10px;
}
.link{
  text-decoration: none;
  color: #fff;
}


/* Responsive Design */
@media (max-width: 425px) {
  .app__videos {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .videoFooter {
    bottom: 250px; /* Adjust footer position for tablets */
  }
}

@media (max-width: 1024px) {
  .videoFooter {
    bottom: 160px; /* Adjust footer position for larger screens */
  }
}

/* Remove blue outline on mobile devices */
button:focus {
  outline: none;
}
#character-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,  #1D1A39,#451952, #6B254A, #AE445A, #ca6f24, #c07971);
}