html, body {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
   }
   
   body {
    margin: 0;
    height: 100vh;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
 
  }

/*box two right*/
.boxx {
  width: 100%;
  padding: 10px;
  height:100%;
  background-color: rgb(17, 17, 17);
  margin-left: auto;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.boxx::-webkit-scrollbar {
  display: none;
}

.pp {
  position: absolute;
  color: white;
  top: 100%;
}
.pp2 {
  position: absolute;
  color: white;
  top: 200%;
}
.boxx h1{
  position: absolute;
  top: 10%;
color: white;
     text-shadow: 5px 0px 10px rgb(255, 0, 0), -5px 0px 10px blue, 5px -2px 10px cyan;
     font-family: Arial, Helvetica, sans-serif;
}

.boxx p {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}
.boxx h2 {
   color: white;
  font-family: Arial, Helvetica, sans-serif;
}

 hr {
  border: 1px solid rgb(83, 83, 83);
}
/*img na nag sa slide*/
/* Wrapper to place carousels side by side */

.nissin-wrapper {
display: flex;
  margin-top: 100px;
  justify-content: center;   /* center horizontally */
  gap: 20px;                 /* space between carousels */
  flex-wrap: wrap;           /* wrap on smaller screens */
}

/* Individual carousel */
.carousel {
  position: relative;
  width: 400px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 0px 10px #2e2d2d;
}

/* Track container for slides */
.carousel-track {
  position: relative;
  height: 200px;  /* same as image height */
}

/* Slides stacked on top of each other */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 5.8s ease-in-out;  /* fade speed */
  z-index: 0;
  
}

/* Active slide visible */
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Images inside slides */
.carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 10;  /* keep buttons on top */
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots container */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* Dots */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #333;
}

/* Text inside slides */
.carousel-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 2px 2px 5px black;
  z-index: 5;
   text-shadow: 5px 0px 10px rgb(255, 0, 0), -5px 0px 10px blue, 5px -2px 10px cyan;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nissin-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .carousel {
    width: 90%;
  }
  
  .carousel-text {
    font-size: 12px;
  }
}
.login-btn{
  background: rgb(20, 20, 20);
border: solid rgba(0, 0, 0, 0.479);
 transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  font-family: Arial, Helvetica, sans-serif;
   position: absolute;
  bottom: 280px;
  width: 4%;
  color: white;
  text-decoration: none;
}
.login-btn:hover{
           background: white;
  color: #4e54c8;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

  
 /*post layout*/

 :root {
            --fb-blue: #1877f2;
            --fb-gray: #65676b;
            --fb-bg: #363636;
            --divider: #ced0d4;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--fb-bg);
            margin: 0;
            display: flex;
            justify-content: center;
        }

        .fb-post {
            background-color: #2c2c2c;
            width: 100%; /* Fluid for mobile */
            max-width: 500px; /* Standard desktop width */
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            margin-top: 12px;
            /* Remove margins and radius on small screens via media query below */
            border-radius: 8px; 
            overflow: hidden;
        }

        /* Header Section */
        .post-header {
            padding: 12px 16px;
            display: flex;
            align-items: center;
        }

        .profile-pic {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 12px;
            object-fit: cover;
        }

        .header-info {
            display: flex;
            flex-direction: column;
        }

        .profile-name {
            font-size: 15px;
            font-weight: 600;
            color: #ffffff;
            text-decoration: none;
        }

        .post-date {
            font-size: 13px;
            color: var(--fb-gray);
        }

        /* Content Section */
        .post-content {
            padding: 4px 16px 12px 16px;
        }

        .content-text {
            font-size: 15px;
            line-height: 1.4;
            margin: 0;
            word-wrap: break-word;       /* Pinipilit ang mahabang words na mag-wrap */
    overflow-wrap: break-word;  /* Standard way para hindi lumampas sa box */
    white-space: pre-wrap;
        }

        .content-image-container {
            width: 100%;
            background-color: #000;
        }

        .content-image {
            width: 100%;
            display: block;
            height: auto;
        }

        /* Interactions */
        .stats-bar {
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--divider);
            margin: 0 12px;
        }

        .like-count {
            color: var(--fb-gray);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

       .heart-checkbox {
    display: none;
}

.heart-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    color: var(--fb-gray);
    font-weight: 600;
}

.heart-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.heart-svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.outline { fill: var(--fb-gray); }
.filled { fill: #ed4956; display: none; transform: scale(0); }

/* Interaction States */
.heart-checkbox:checked + .heart-label .outline {
    display: none;
}

.heart-checkbox:checked + .heart-label .filled {
    display: block;
    transform: scale(1.1);
}

.heart-checkbox:checked + .heart-label {
    color: #ed4956;
    animation: heartPulse 0.4s ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
        /* Responsive Tweaks */
        @media (max-width: 500px) {
            body { background-color: #fff; }
            .fb-post { 
                margin-top: 0; 
                border-radius: 0; 
                box-shadow: none;
                border-bottom: 8px solid var(--fb-bg); /* Post separator */
            }
        }
/* NEW: Grid Layout for Multiple Posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dalawang column (side-by-side) */
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    justify-items: center;
}

/* Siguraduhing pantay ang posts sa loob ng grid */
.post-grid .fb-post {
    margin-top: 0;
    width: 100%; 
    max-width: 500px;
}

/* Mobile View: Magiging isang column pababa */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}
        /* for admin*/
.admin-text {  
    font-weight: bold;
    margin-left: 8px;
    color: white;
    animation: rgbShadow 3s infinite;
}

@keyframes rgbShadow {
    0% {
        text-shadow: 0 0 5px red, 0 0 10px red;
    }
    33% {
        text-shadow: 0 0 5px green, 0 0 10px green;
    }
    66% {
        text-shadow: 0 0 5px blue, 0 0 10px blue;
    }
    100% {
        text-shadow: 0 0 5px red, 0 0 10px red;
    }
}
/* The "Box" that holds the video */
.content-video-container {
    width: 100%;
    background-color: #000; /* Black background for a cinematic look */
    margin-top: 10px;        /* Space between text and video */
    overflow: hidden;       /* Keeps the video inside the rounded corners */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The actual video element */
.content-video {
    width: 100%;            /* Makes it fill the container width */
    max-height: 500px;      /* Prevents the video from being too tall on desktop */
    display: block;         /* Removes weird spacing at the bottom */
    border-radius: 4px;     /* Optional: matches your image's rounded look */
    outline: none;          /* Removes the blue border when clicked */
}
.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
#loader {
  position: fixed; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background: #0a0a0a; z-index: 9999;
 
  ;
}
.text {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0;
  text-align: center;
  top: auto;
  animation: fadeText .5s ease .3s forwards;
}
.spinner {
  background-image: linear-gradient(rgb(175, 174, 174) 35%,rgb(255, 255, 255));
  width: 100px;
  height: 100px;
  animation: spinning82341 1.7s linear infinite;
  text-align: center;
  border-radius: 50px;
  filter: blur(1px);
  box-shadow: 0px -5px 20px 0px rgb(192, 190, 190), 0px 5px 20px 0px rgb(255, 255, 255);
}

.spinner1 {
  background-color: rgb(36, 36, 36);
  width: 100px;
  height: 100px;
  border-radius: 50px;
  filter: blur(10px);
}

@keyframes spinning82341 {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn { from{opacity:0}to{opacity:1}}
@keyframes fadeText { to {opacity: 1 }}
@keyframes popUp {to {transform:scale(1)}}
@keyframes fadeOut { to {opacity:0;visibility:hidden;} }