body {

    margin: 0;

    background: #fafafa;

    font-family: Arial;
}


/* NAVBAR */

.navbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 30px;

    background: white;

    border-bottom: 1px solid #ddd;

    position: sticky;

    top: 0;
}

.logo {

    font-size: 30px;

    font-weight: bold;

    color: #e1306c;
}

.nav-icons i {

    font-size: 24px;

    margin-left: 20px;

    cursor: pointer;
}


/* STORIES */

.stories {

    display: flex;

    overflow-x: auto;

    background: white;

    padding: 15px;

    border-bottom: 1px solid #ddd;
}

.story {

    text-align: center;

    margin-right: 20px;
}

.story img {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    border: 3px solid #e1306c;

    padding: 2px;

    object-fit: cover;
}

.story p {

    margin-top: 5px;

    font-size: 14px;
}


/* CREATE POST */

.create-post {

    width: 50%;

    background: white;

    margin: 20px auto;

    padding: 20px;

    border-radius: 12px;

    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

textarea {

    width: 100%;

    height: 80px;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 10px;

    font-size: 16px;

    resize: none;
}

button {

    background: #e1306c;

    color: white;

    border: none;

    padding: 10px 20px;

    margin-top: 10px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 16px;
}


/* POSTS */

#postsContainer {

    width: 50%;

    margin: auto;
}

.post {

    background: white;

    border-radius: 12px;

    margin-bottom: 20px;

    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);

    overflow: hidden;
}

.post-header {

    display: flex;

    align-items: center;

    padding: 15px;
}

.post-header img {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    margin-right: 10px;
}

.post-content {

    padding: 0 15px 15px;
}

.post-actions {

    padding: 10px 15px;

    border-top: 1px solid #eee;
}

.post-actions i {

    font-size: 22px;

    margin-right: 15px;

    cursor: pointer;
}


/* MOBILE */

@media(max-width: 768px) {

    .create-post,
    #postsContainer {

        width: 90%;
    }

    .navbar {

        padding: 15px;
    }
}
input {

    width: 100%;

    padding: 12px;

    margin-bottom: 10px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 16px;
}
.post-image {

    width: 100%;

    max-height: 500px;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 10px;
}
.logout-btn {

    padding: 8px 14px;

    border: none;

    background: crimson;

    color: white;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;
}
.profile-container {

    width: 50%;

    margin: 40px auto;

    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: center;

    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.profile-pic {

    width: 120px;

    height: 120px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 15px;
}

.stats {

    display: flex;

    justify-content: space-around;

    margin: 20px 0;
}

.stats h2 {

    margin: 0;
}

#followBtn {

    background: #0095f6;

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 16px;
}
.login-body {

    margin: 0;

    padding: 0;

    font-family: Arial, sans-serif;

    background: linear-gradient(
        to right,
        #833ab4,
        #fd1d1d,
        #fcb045
    );

    height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;
}

.auth-container {

    width: 350px;
}

.auth-form {

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0px 0px 20px rgba(0,0,0,0.2);

    display: flex;

    flex-direction: column;

    gap: 15px;

    text-align: center;
}

.auth-form h1 {

    margin-bottom: 5px;

    color: #333;
}

.subtitle {

    color: gray;

    margin-bottom: 20px;
}

.auth-form input {

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 10px;

    font-size: 15px;
}

.auth-form button {

    padding: 12px;

    border: none;

    background: #0095f6;

    color: white;

    border-radius: 10px;

    font-size: 16px;

    cursor: pointer;

    font-weight: bold;
}

.auth-form button:hover {

    background: #0077cc;
}

.switch-text {

    font-size: 14px;
}

.switch-text a {

    text-decoration: none;

    color: #0095f6;

    font-weight: bold;
}
.like-btn {

    cursor: pointer;

    margin-right: 15px;

    transition: 0.3s;
}

.like-btn:hover {

    transform: scale(1.2);
}

.comment-btn {

    cursor: pointer;
}

.comment-box {

    margin-top: 10px;
}

.comment-box input {

    padding: 8px;

    width: 70%;

    border-radius: 8px;

    border: 1px solid #ccc;
}

.comment-box button {

    padding: 8px 12px;

    border: none;

    background: #0095f6;

    color: white;

    border-radius: 8px;

    cursor: pointer;
}

.comments {

    margin-top: 10px;
}