@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html,body {
    background-color: black;
    height: 100%;
    font-family: "Archivo Black", sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.contenu {
    display: flex;
    min-height: 100%;
    width: 100%;
}

.navbar {
    flex: 0 0 25%;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(8, 8, 8);
    border-radius: 0 36px 36px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
}

.navbar ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    cursor: pointer;
}

.navbar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.feed {
    flex: 3;
    margin: 0;
    display:flex;
    flex-direction: column;
}

.no-posts {
    color: rgb(145, 145, 145);
    background-color: rgb(27, 27, 27);
    border-radius: 12px;
    padding: 12px;
    margin: 25% 25%;
    border: 2px dashed rgb(54, 54, 54);
}

.no-posts h3 {
    font-size: 24px;
}

#searchbar {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#searchbar input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: rgb(8, 8, 8);
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

#branding {
    display:flex;
    flex-direction: row;
    gap: 32px;
    font-family: "Archivo Black", sans-serif;
    font-weight: 600;
    font-size: 36px;
    border: none;
    border-radius: 90px;
    padding: 6px 36px;
    width: 95%;
    box-sizing: border-box;
    margin-bottom: 32px;
}

#post-button {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
    background-color: white;
    border: none;
    border-radius: 90px;
    padding: 6px 36px;
    width: 90%;
    box-sizing: border-box;
    margin-top: auto;
    margin-bottom: 12px;
    text-decoration: none;
    color:black;
    text-align: center;
}

#post-button:hover {
    background-color: rgb(209, 209, 209);
    transition: all 200ms;
}

#profile {
    width: 100%;
    box-sizing: border-box;
    height: 10%;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
    background-color: rgb(0,0,0,0.25);
    border-top: 1px solid rgb(40, 40, 40);
    border-radius: 0 0 36px 0;
    padding: 6px 36px;
}

#profile a {
    display: flex;
    align-items:center;
    gap: 14px;
    width: 100%;
    height: 100%;
    color:black;
    text-decoration: none;
}

.profile-pfp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid black;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.profile-username {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    font-size: 14px;
}

.post {
    font-family: 'Poppins', sans-serif;
    color: white;
    margin: auto;
    width: 60%;
    padding: 10px;
    background-color: rgb(5, 5, 5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.post-author {
    margin-left:16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-pfp {
    height: 32px;
    border: 1px solid white;
    border-radius: 90px;
}

.post-author h4 {
    font-weight: 700;
    font-size: 20px;
}

.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: black;
    margin-bottom: 12px;
}

.post-image-full {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.post-image-full img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.post-description{
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.follow-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    margin-right: 16px;
    align-items: center;
}

.follow-icon {
    flex:1;
    border: 0;
    align-self: center;
}

.follow-button {
    flex: 9;
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 12px;
    background-color: white;
    border: 1px solid rgb(187, 187, 187);
    border-radius: 90px;
    padding: 1px 20px;
    height: 20%;
}

.follow-button:hover {
    background-color: rgb(210, 210, 210);
    border-color: rgb(221, 221, 221);
    transition: all 200ms;
}

#like-button, #favorite-button, #delete-button {
    display: inline-flex;
    background-color: rgb(0,0,0,0);
    border: none;
    color: white;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor:pointer;
}

#delete-button {
    color: rgb(175, 21, 21);
}

#delete-button .hover {
    display: none;
}

#delete-button:hover .normal {
    display: none;
}

#delete-button:hover .hover {
    display: inline-block;
}