body{
    background-image: url("img/mobilebglong.png");
    background-size: cover;
    text-align: center;
}

#navigation{
    display: flex;
    position: sticky;
    justify-content: space-around;
    border-radius: 5%;
    padding: 2%;
    margin: 1%;
    width: 100%;
    top: 90%;

}

#timelineContainer {
    position: relative;
    width: 100%;
    min-height: 200vh; /* ensures scroll */
}

#visualLayer {
    position: absolute;
    width: 100%;
    top: 0;
}

#timeline {
    width: 30%;
    display: block;
    margin: auto;
}

#stickyLayer {
    position: sticky;
    top: 50%; /* where it sticks */
    z-index: 10;
}

#selectionDot {
    width: 30%;
    display: block;
    margin: auto;
}

.icons{
    width: 50%;
}
 .add{
    width: 15%; }

.icons:hover{
    cursor: pointer;
}

#timeline{
    width: 100%;
}

.chapter{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 90%;
    background-color: rgb(255, 235, 235);
    border-radius: 30px;
    padding: 2%;
    margin: 4%;
    border: 8px solid ;
    border-color: #ec768f;
}

.titles{
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.chaptersflex{
    margin-right: 2%;
}

#bottom{
    background-color: transparent;
    border: none;
    color: transparent;
}

/* PROFILE SECTION */
#profileSection {
    width: 60%;
    margin: 50px auto;
    padding: 30px;

    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    text-align: center;
}

/* PROFILE IMAGE */
#profilePicture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid #ec768f;
    margin-bottom: 15px;
}

/* USERNAME */
#username {
    margin: 10px 0 5px;
    font-size: 28px;
}

/* UID */
#profileSection h3 {
    margin: 0;
    color: gray;
    font-weight: normal;
}

/* BIO */
#bio {
    margin: 15px auto;
    width: 70%;
    color: #444;
}

/* EDIT BUTTON */
#editProfileBtn, #signOutBtn, .followBtn, #googleSignInBtn {
    margin-top: 15px;
    padding: 10px 20px;

    border: none;
    border-radius: 20px;
    background: #ec768f;
    color: white;
    font-size: 14px;

    cursor: pointer;
    transition: 0.3s;
}

#editProfileBtn:hover {
    background: #d95f78;
}

/* BADGES */
#badges {
    margin-top: 20px;
}

.badge {
    width: 60px;
    margin: 5px;
}

/* POSTS SECTION */
#postsSection {
    width: 100%;
    margin: 40px auto;
}

/* POSTS TITLE */
#postsSection h1 {
    margin-bottom: 20px;
}

/* POSTS GRID */
#postsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

/* INDIVIDUAL POST CARD (for future use) */
.post {
    background: white;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    margin: 3%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.postImage {
    width: 100%;   
    height: 150px; 
    margin-top: 10px;
    border-radius: 10px;
    object-fit: contain;
}

#userInfo {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
    padding: 2%;
    width: 100%;
}

#exploreBtn,
#followedsBtn,
#searchBtn,
#myPosts, 
#mySaves {
    padding: 10px 18px;
    margin: 10px 8px;

    border: none;
    border-radius: 20px;

    background: #ec768f;
    color: white;
    font-size: 14px;

    cursor: pointer;
    transition: 0.3s;
}

/* HOVER EFFECT */
#exploreBtn:hover,
#followedsBtn:hover,
#searchBtn:hover,
#myPosts:hover,
#mySaves:hover {
    background: #d95f78;
}

/* ACTIVE / SELECTED BUTTON (you can toggle this with JS later) */
.activeTab {
    background: white;
    color: #ec768f;
    border: 2px solid #ec768f;
}


#communityPageContainer {
    width: 80%;
    margin: 40px auto;
    padding: 30px;

    display: flex;
    flex-direction: column;
    border-radius: 25px;

    text-align: center;
}

#contentLayer {
    width: 100%;
    left: 50%;
    display: flex;

    text-align: center;
}

#continent {
    width: 20%;
    display: block;
    margin: auto; }

/* GENERAL SECTION STYLE (card look) */
#welcomeSection,
#achievementsSection,
#timeMachine {
    width: 70%;
    margin: 30px auto;
    padding: 30px;

    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    text-align: center;
}

/* HEADINGS */
#welcomeSection h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

#welcomeSection p {
    color: #555;
    margin-bottom: 20px;
}

/* COURSE LINK */
#welcomeSection a {
    display: inline-block;
    margin: 10px 0 20px;

    text-decoration: none;
    color: #ec768f;
    font-weight: bold;
    font-size: 16px;

    transition: 0.3s;
}

#welcomeSection a:hover {
    text-decoration: underline;
}

/* PROGRESS CIRCLE */
.progress-circle {
    width: 120px;
    height: 120px;
    margin: 20px auto;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 18px;
    color: #ec768f;

    background: conic-gradient(#ec768f 0% 50%, #eee 50% 100%);
    position: relative;
}

.progress-circle::before {
    content: "";
    position: absolute;

    width: 90px;
    height: 90px;

    background: white;
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    z-index: 2;
}

/* ACHIEVEMENTS */
#achievementsSection h2 {
    margin-bottom: 15px;
}

/* BADGES */
#badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    width: 70px;
    transition: 0.3s;
}

.badge:hover {
    transform: scale(1.1);
}

/* TIME MACHINE */
#timeMachine p {
    color: #555;
    width: 80%;
    margin: 10px auto 20px;
}

/* BUTTON */
#timeMachineBtn {
    padding: 12px 25px;

    border: none;
    border-radius: 25px;

    background: #ec768f;
    color: white;
    font-size: 15px;

    cursor: pointer;
    transition: 0.3s;
}

#timeMachineBtn:hover {
    background: #d95f78;
}

#savedSection {
    display: none; }

.userHeader {
    display: flex;
    gap: 15%;
    height: 15%;
    margin-bottom: 2%;
}

.followed{
    margin-top: 15px;
    padding: 10px 20px;

    border: none;
    border-radius: 20px;
    background: #88dd82;
    color: white;
    font-size: 14px;

    cursor: pointer;
    transition: 0.3s;
}

#signUpContainer {
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5%;
    top: 30%;
    position: absolute;
}