.header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgb(31, 27, 27);
    padding: 10px;
    background-color: black;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.dlogo {
    display: flex; 
    justify-content: left; 
    align-items: center;
}

.logo-button {
    text-decoration: none;
    background-color: transparent;
    border: transparent;
    padding-left: 30px;
    display: flex;
    align-items: center;
    justify-content: center ;
    gap: 10px;
    border-radius: 50px;
}

.logo {
    width: 60px; 
    height: 60px; 
}

.headermenu {
    gap: 15px; 
    display: flex; 
    justify-content: left; 
    align-items: center;
    overflow: visible;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 500px;
}

.search-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background-color: white;
}

.login-signup {
    display: flex;
    gap: 15px;
    align-items: center;
}

.createbut {
    border-radius: 20px; 
    width: 80px; 
    height: 50px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
}

.chatbut {
    border-radius: 20px;
    background-color: transparent;
    border: none;
}

.chatimg {
    width: 35px; 
    height: 35px; 
}

.logsigbut {
    border-radius: 20px; 
    width: 150px; 
    height: 50px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;

    top: 100%;
    right: 0;

    background: #222;
    min-width: 150px;

    z-index: 99999;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #444;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.profile-select {
    border-radius: 20px;
    width: 100px;
    height: 50px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    appearance: none;
}

.leftmenu {
    gap: 60px; 
    list-style: none;  
    display: flex; 
    flex-direction: column; 
    align-items: left ; 
    padding: 10px; 
    margin: 40px;
    font-weight: bold;
}

.leftmenu a {
    display: flex;
    justify-content: left;
    align-items: center; 
    gap: 10px;
}

.leftmenu img {
    width: 25px; 
    height: 25px; 
    border-radius: 30px;
}

body {
    background-color: rgb(31, 27, 27);
    padding: 0px;
    margin: 0px;
}

.sbback {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
}

.sidebar {
    width: 200px;
    background-color: black;
    color: white;
    padding: 20px;
    min-height: 100%;
    overflow-y: auto;
    position: fixed;
    margin-top: 90px;
}

.sidebarmenu {
    border-bottom: 1px solid rgb(31, 27, 27);
}

.rposts {
    display: flex; 
    flex-direction: column;
    gap: 10px; 
    margin: 30px 10px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.recent-list a:hover {
    color: white;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 15px;
    margin-top: 100px;
    flex: 1;
}

.post {
    display: flex;
    justify-content: left;
    flex-direction: column;
    padding: 12px;
    border-radius: 8px;
    background-color: rgb(53, 51, 51);
    color: white;
    width: 700px;
    max-height: 100%;
    max-width: 100%;
}

.post-link {
    text-decoration: none;
    color: #888;
    display: block;
}

.page-title {
    color: white;
    width: 700px;
    max-width: 100%;
    margin: 0;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    overflow-wrap: anywhere;
}

.post-description {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    padding-bottom: 20px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    overflow-wrap: anywhere;
}

#content_preview {
    white-space: pre-wrap;
}

.subheader {
    font-size: 14px;
    color: #888;
}

.subheader a {
    color: #aaa;
}

.time {
    font-size: 10px;
    color: #888;
}

.post-footer {
    display: flex;
    justify-content: left;
    align-items: center;
    font-size: 12px;
    color: #888;
    font-weight: bold;
    gap: 12px;
    margin-top: 5px;
}

.post-list {
    margin-top: 10px;
    padding-left: 20px;
}

.post-list li {
    margin-bottom: 8px;
}

.source {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
}

.share {
    background-color: transparent;
    color: yellow;
    border: none;
    border-radius: 30px;
    padding: 10px;
}

.thumbnail {
    max-width: 700px;
    max-height: 700px;
    border-radius: 8px;
}

.post-image {
    max-width: 100%;
    max-height: 650px;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: contain;
}

.voting {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 30px;
    background-color: rgb(53, 51, 51);
    border: none;
    margin: 0;
    padding: 0;
    color: white;
}

.upvote {
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 30px;
    width: 30px;
    height: 30px;
}

.downvote {
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 30px;
    width: 30px;
    height: 30px;
}

.comment {
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px;
    text-decoration: none;
}

.views {
    color: white;
    padding: 10px;
}

.rmenu {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.rmenudoc{
    width: 300px;
    background-color: transparent;
    color: #888;
    padding: 20px;
    min-height: 100%;
    position: fixed;
    margin-top: 780px;
}

.rmenudoc ul{
    gap: 10px;
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.rmenudoc ul a{
    text-decoration: none;
    color: #888;
}

.voting:hover {
    background-color: rgb(68, 65, 65);
    transform: scale(1.05);
    cursor: pointer;
    transition: transform 0.4s ease-in-out 0.1s;
}

.upvote:hover {
    background-color: rgb(68, 128, 81);
    transform: scale(1.05);
    cursor: pointer;
    transition: transform 0.3s ease-in-out 0.1s;
}
.downvote:hover {
    background-color: rgb(202, 66, 66);
    transform: scale(1.05);
    cursor: pointer;
    transition: transform 0.3s ease-in-out 0.1s;
}

.post:hover {
    background-color: rgb(29, 29, 29);
    transition: background-color 0.2s ease-in-out 0.05s;
}

.share:hover {
    background-color: rgb(202, 66, 66);
    cursor: pointer;
    transform: scale(1.05);
    transition: background-color 0.3s ease-in-out 0.05s;
    transition: transform 0.3s ease-in-out 0.05s;
}

.comment:hover {
    background-color: rgb(92, 91, 91);
    cursor: pointer;
    transition: background-color 0.3s ease-in-out 0.05s;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.createbut:hover {
    cursor: pointer;
    font-weight: bold;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.logsigbut:hover {
    cursor: pointer;
    font-weight: bold;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.chatbut:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out 0.05s;
}

.profile-select:hover {
    cursor: pointer;
    font-weight: bold;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.search-btn:hover {
    background-color: rgb(62, 65, 62);
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.leftmenu li:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out 0.05s;
}

.dlogo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.rmenudoc ul a:hover{
    text-decoration: underline;
    color: white;
}

.createbut a{   
    text-decoration: none;
    color: white;
}

.pagelayout {
display: flex;
color: white;
padding-top: 100px;
}

.profilemain {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    margin-top: 100px;
    max-width: 900px;
}

.profilebanner {
    height: 120px;
    background: #1d1c1c;
    border-radius: 10px;
}

.profileinfo {
    display: flex;
    align-items: center;
    margin-top: -30px;
    gap: 15px;
}

.profileavatar {
    width: 80px;
    height: 80px;
    background-size: cover;
    border-radius: 50%;
}

.profileavatar:hover {
    border-color: rgb(139, 128, 128);
    transform: scale(0.92);
    cursor: pointer;
    background-image: url(../img/addIconPlus.webp);
    transition: background-image 0.3s ease;
    opacity: 50%;
    transition: opacity 0.7s ease;
}

.profilestats {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 14px;
    color: #aaa;
}

.profiletabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tab {
    background: #383737;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.tab:hover {
    background: #2f2e2e;
}

.profilecontent {
    margin-top: 20px;
}

.postcard {
    background: #282727;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.postcard a {
    color: white;
    text-decoration: none;
}

.postcard a:hover {
    text-decoration: underline;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.profile-page {
    display: flex;
    margin-top: 70px;
    color: white;
}

.profile-left {
    width: 200px;
    padding: 20px;
    background: #111;
    min-height: 100vh;
}

.profile-left a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
}

.profile-left a:hover {
    background: #333;
}

.profile-center {
    flex: 1;
    padding: 20px;
}

.profile-header {
    margin-bottom: 20px;
}


.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 15px;
    background: #222;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
}

.tab:hover {
    background: #444;
}

.tab.active {
    background: #555;
}

.profile-right {
    width: 250px;
    padding: 20px;
    background: #111;
    min-height: 100vh;
}

.chatglobal{
    padding: 10px;
}

.chatlayout {
    display: flex;
    height: 80vh;
    padding: 20px;
    margin-left: 250px;
    margin-top: 100px;
    max-width: 1000px;
}

.chatcenter {
    width: 300px;
    border-right: 1px solid #333;
    background: #0f0f0f;
    overflow-y: auto;
}

.chat-item {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #312f2f;
    cursor: pointer;
    color: #918686;
    text-decoration: none;
}

.chat-item span {
    float: right;
    color: white;
    font-size: 12px;
}

.chat-item:hover, .active-chat {
    background: #1a1a1a;
}


.chatright {
    flex: 1;
    background: #121212;
    padding: 20px;
    color: white;
    min-width: 500px;
}

.chatbox {
    height: 60vh;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    background: #0d0d0d;
}

.message {
    max-width: 70%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow-wrap: anywhere;
}

.message p {
    margin: 0 0 5px;
}

.message span {
    color: #888;
    font-size: 11px;
}

.my-message {
    margin-left: auto;
    background: #383737;
}

.their-message {
    margin-right: auto;
}

.chatinput {
    display: flex;
    margin-top: 10px;
}

.chatinput input {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
}

.chatinput button {
    padding: 10px;
    background: #d7400a;
    border: none;
    color: white;
    cursor: pointer;
}

.create-post-box {
    color: rgb(198, 193, 193);
    background: none;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin-left: 250px;
    margin-top: 120px;
    width: 700px;
}

.create-post-box select {
    background-color: rgb(86, 76, 76);
    border-color: transparent;
    color: rgb(198, 193, 193);
    font-size: 14px;
    appearance: none;
    text-align: center;
    border-radius: 5px;
}

.create-post-box input, .create-post-box textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background: #060606;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;
}

.create-post-box textarea {
    height: 200px;
    resize: vertical;
}

.post-btn {
    background:red;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.post-btn:hover {
    background: rgb(180, 2, 2);
    transition: background 0.3s ease-in-out;
}

.comments-box {
    margin-top: 8px;
    color: #aaa;
    font-size: 13px;
}

.open-comments h3 {
    color: white;
}

.comments-box summary {
    width: fit-content;
    padding: 8px 10px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}

.comments-box summary:hover {
    background-color: rgb(92, 91, 91);
}

.single-comment {
    border-left: 2px solid #555;
    margin-top: 10px;
    padding-left: 10px;
    color: rgb(220, 216, 216);
    overflow-wrap: anywhere;
}

.single-comment b {
    color: white;
}

.single-comment a {
    color: white;
    text-decoration: none;
}

.single-comment a:hover {
    text-decoration: underline;
}

.single-comment span {
    color: #888;
    font-size: 11px;
    margin-left: 8px;
}

.single-comment p {
    margin: 5px 0;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-form textarea {
    flex: 1;
    height: 38px;
    resize: vertical;
    background: #060606;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;
    padding: 8px;
}

.comment-form button {
    background: red;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.comment-form button:hover {
    background: rgb(180, 2, 2);
}

.login-to-comment {
    color: #aaa;
}

.login-to-comment a {
    color: white;
}

.postcr-main {
    padding: 50px;
}
