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

.background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #3E1E68;
  filter: blur(20px);
  overflow: hidden;
  z-index: -1;
}

.background span {
  position: absolute;
  display: block;
  width: 20vmin;
  height: 20vmin;
  border-radius: 50%;
  opacity: 0.6;
  animation: move 0.0002s linear infinite;
}

.background span:nth-child(1) { background: #583C87; top: 10%; left: 20%; animation-duration: 8s; }
.background span:nth-child(2) { background: #E45A84; top: 40%; left: 70%; animation-duration: 6s; }
.background span:nth-child(3) { background: #FFACAC; top: 80%; left: 30%; animation-duration: 7s; }
.background span:nth-child(4) { background: #583C87; top: 60%; left: 50%; animation-duration: 9s; }
.background span:nth-child(5) { background: #E45A84; top: 20%; left: 80%; animation-duration: 10s; }
.background span:nth-child(6) { background: #FFACAC; top: 70%; left: 10%; animation-duration: 7s; }
.background span:nth-child(7) { background: #583C87; top: 50%; left: 90%; animation-duration: 6s; }
.background span:nth-child(8) { background: #E45A84; top: 30%; left: 40%; animation-duration: 8s; }
.background span:nth-child(9) { background: #FFACAC; top: 60%; left: 60%; animation-duration: 9s; }
.background span:nth-child(10){ background: #583C87; top: 15%; left: 55%; animation-duration: 7s; }

@keyframes move {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-200px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

body {
    margin: 0;
    padding: 0;
    font-family: "Cookie", cursive;
    background-color: #000000;
    overflow-x: hidden;
    text-shadow: 2px 2px 8px rgb(0, 0, 0);
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}
  
.link-container a {
    text-decoration: none;
    color: white;
    background: #333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 30px;
    margin-top: 10px;
}

.section {
    display: none;
}

/* FIXED: Desktop layout by default */
.section.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 20px;
    margin: 20px;
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
  
.link-container a {
    text-decoration: none;
    padding: 10px 20px;
    background: #ea00ff65;
    color: white;
    border-radius: 8px;
    transition: background 0.3s;
}
  
.link-container a:hover {
    background: #c300ff25;
    color: black;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 30px;
  color: white;
  position: relative; /* Normal position for desktop */
  left: 0; /* Ensure it's visible */
  width: auto; /* Normal width */
  height: auto; /* Normal height */
  background: transparent; /* No background on desktop */
}




/* Hamburger button */
.hamburger {
  display: none; /* hidden on desktop */
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #333;
  border-radius: 2px;
}


.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 40px;
}

.btn-menu {
  display: none; /* Hidden on desktop */
}

.menu a:hover {
  color: #d400ffde;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* For mobile */
@media (max-width: 500px) {
  .menu {
      flex-direction: column;
      align-items: center;
  }
}
.footer {
  --footer-background: #d400ff18;
  position: relative;
  z-index: 1;
  min-height: 12rem;
  background: var(--footer-background);
  display: grid;
  margin-top: 300px;
}

.content {
    z-index: 2;
    display:grid;
    grid-template-columns: 1fr auto;
    grid-gap: 4rem;
    padding:2rem;
    background:var(--footer-background);
    margin-left: 20px;
    font-size: 30px;
}

.content a, .content p {
    color:rgb(255, 255, 255);
    text-decoration:none;
}

.content b {
    color: rgb(255, 255, 255);
}

.content p {
    margin:0;
    font-size:.75rem;
}

.content > div {
    display:flex;
    flex-direction:column;
    justify-content: center;
}

.content > div > div {
    margin:0.25rem 0;
}

.content > div > div > * {
    margin-right:.5rem;
}

.content .image {
    align-self: center;
    width:4rem;
    height:4rem;
    margin:0.25rem 0;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

main {
    flex: 1;
}

@keyframes bubble-size {
0%, 75% {
  width:var(--size, 4rem);
  height:var(--size, 4rem);
}
100% {
  width:0rem;
  height:0rem;
}
}

@keyframes bubble-move {
0% {
  bottom:-4rem;
}
100% {
  bottom:var(--distance, 10rem);
}
}

/* FIXED: Desktop layout by default for feed */
.feed {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  justify-content: center;
  gap: 40px;
  padding: 20px;
}

.feed iframe {
  width: 100% ;   /* TikTok-style width */
  height: 500px;  /* TikTok-style height */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-left: 80%;
  
}


.video-container {
  position: relative;
  width: 400px;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  /* REMOVED: margin-left: 60% - this was causing the issue */
  margin-left: 65%;
}
  
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    
}
  
.actions {
    position: absolute;
    right: 15px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.like-btn {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}
  
.like-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.15);
}
  
.like-btn.liked {
    color: #E4405F;
}
  
.like-count {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* FIXED: Mobile layout only for small screens */
@media (max-width: 768px) {
    .section.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 20px;
    }
    
    .feed {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
        width: 100%;
    }
    .feed iframe {
      width: 100%; /* Slightly less than full width for better centering */
      height: 100%;
      max-width: none;
      margin: 0 auto; 
      object-fit: cover;/* Center each iframe individually */
  }
    
 
    
    .menu {
      position: fixed;
      top: 0;
      left: -250px;           /* hidden off-screen */
      width: 250px;
      height: 100vh;
      background: rgba(0,0,0,0.9);
      display: flex;
      flex-direction: column;
      padding-top: 80px;
      transition: left 0.3s ease;
      z-index: 1000;
  }
  
  .menu a {
      color: white;
      text-align: left;
      padding: 15px 20px;
      font-size: 1.5rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .menu a:hover {
      background: rgba(255, 255, 255, 0.1);
  }
  
  
  body.menu-open .menu {
      left: 0;  /* slide in */
  }
  
  /* Show hamburger on mobile */
  .btn-menu {
      display: block;
      position: fixed;
      top: 20px;
      left: 20px;
      width: 32px;
      height: 21px;
      border: none;
      background: transparent;
      cursor: pointer;
      z-index: 1001;
      margin-left: -20px;
  }
    
    .btn-menu__bars,
    .btn-menu__bars::before,
    .btn-menu__bars::after {
      content: "";
      display: block;
      width: 32px;
      height: 3px;
      background-color: #ae00ff93;
      position: absolute;
      transition: 0.3s ease;
    }
    
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 900;
    }
    
    body.menu-open .overlay {
      opacity: 1;
      pointer-events: auto;
    }
    
    .btn-menu__bars {
      top: 9px;
    }
    
    .btn-menu__bars::before {
      top: -9px;
    }
    
    .btn-menu__bars::after {
      top: 9px;
    }
    
    /* Animate into X when open */
    body.menu-open .btn-menu__bars {
      background-color: transparent;
    }
    
    body.menu-open .btn-menu__bars::before {
      transform: rotate(45deg);
      top: 0;
    }
    
    body.menu-open .btn-menu__bars::after {
      transform: rotate(-45deg);
      top: 0;
    }
    
    /* Remove any hover effects */
    .btn-menu:hover {
      background: transparent;
      transform: none;
    }
    
    .btn-menu:hover .btn-menu__bars,
    .btn-menu:hover .btn-menu__bars::before,
    .btn-menu:hover .btn-menu__bars::after {
      background-color: #ae00ff93; /* Keep original color on hover */
      transform: none; /* Remove any transform on hover */
    }

}

/* Remove all the duplicate and conflicting media queries below this line */
