body{
    background-image: url("img/landscapebglong.png");
    background-size: cover;
    width: 100% ;
    text-align: center;
}

#navigation{
    display: flex;
    justify-content: space-around;
    padding: 10px;
}
.icons{
    width: 80%;
    margin-top: 20%;
}

.chapter{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 50%;
    margin: 2%;
    border-radius: 30px;
    padding: 2%;
    border: 13px solid ;
    border-color: #ec768f;
    background-color: rgb(255, 235, 235);

}
.chaptersflex{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5%;
}

.titles{
    width: 40%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}

#bottom{
    display: none;
}

/* 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: 70%;
    margin: 40px auto;
}

/* POSTS TITLE */
#postsSection h1 {
    margin-bottom: 20px;
}

/* POSTS GRID */
#postsContainer {
    width: 80%;
    margin: 20px auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 👈 3 per row */
    gap: 20px;
}

/* INDIVIDUAL POST CARD (for future use) */
.post {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin: 3%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#userInfo {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
    padding: 2%;
    width: 50%;
}

#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;
    text-align: center;
}

/* 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; }

.postProfilePicture {
    width: 5%;
    height: 5%;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.postImage {
    width: 100%;   
    height: 150px; 
    margin-top: 10px;
    border-radius: 10px;
    object-fit: contain;
}

/* 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: 0%;
    display: flex;
    position: absolute;
}