/* ------------------- Base Styles ------------------- */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    background-size: cover;
    font-family: "Roboto", sans-serif;
    color: white;
    overflow-y: auto;
    /* allow scrolling */
}

.title {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    font-family: "Indie Flower", cursive;
}

/* ------------------- Feed Container ------------------- */
.container {
    width: 90%;
    max-width: 80vh;
    height: 95vh;
    margin: 3vh auto;
    padding: 20px;
    background: #5a5e56;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* ------------------- Post Feed ------------------- */
#feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: auto;
    scrollbar-width: none;
    scrollbar-color: #5a5e56 transparent;
}

/* ------------------- Individual Post ------------------- */
.post {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 87vh;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    background: rgba(71, 70, 70, 0.9);
    transition: margin 0.4s ease;
    margin-top: 10px;
}


/* Optional post header */
#feed {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.post {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* ------------------- Video Wrapper ------------------- */
.video-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* ------------------- Like & Comment ------------------- */
.likebutton,
.commentbutton {
    position: absolute;
    left: 20px;
    transform: translateY(-50%);
    transition: opacity 0.1s ease, color 0.1s ease;
    color: white;
}

.likebutton {
    bottom: 140px;
}

.commentbutton {
    bottom: 110px;
}

.likebutton.active {
    color: red;
}

.commentsection {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #333;
    border-radius: 10px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.commentsection.active {
    display: block;
}

.commentsection .textarea {
    color: white;
    background-color: #222;
    border: 1px solid #555;
    caret-color: white;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

.commentsection .textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

.comment-close {
    background: #555;
    color: white;
    font-weight: bold;
    line-height: 1;
}

.hide-on-scroll {
    opacity: 0;
    pointer-events: none;
}

/* ------------------- Loading ------------------- */


#loading {
    position: fixed;
    bottom: 60px;
    left: 30px;
    width: 100%;
    text-align: center;
    font-size: 1 rem;
    color: rgb(0, 0, 0);
    z-index: 10;


}



