/* we'll be using roots so i dont have to repeat the same color 200 times and can change the theme on a whim */
:root {
    --border: #07023b;
    --background: #d1cef5;
    --header: #0a081c;
}
body {
    margin: 0;
    padding-top: 60px; /* height of header */
    background-image: url(assets_needed/azure.gif); /*change bg if needed */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    color: #000;
}

header {
    position: fixed;
    top: 0;
    left: 0; /* ensure it starts at the very left */
    width: 100%;
    margin: 0; /* remove default margin */
    padding: 10px 20px;
    background-color: var(--header);
    color: #fff;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box; /* ensure padding doesn't cause overflow */
}
header h1 {
    margin: 0;
    font-size: 24px;
}

.profile-info {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
}

.profile-info .name {
    font-weight: bold;
    font-size: 16px;
}

/* posts container */
.posts {
    max-width: 700px;
    margin: 0 auto;
}

/* post header (user and date) */
.post-header {
    font-size: 12px;
    margin-bottom: 8px;
}

.post-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.post-content {
    font-size: 13px;
    line-height: 1.4;
}

.name {
    font-weight: 600;
    text-align: center;
}
.bracketed {
    display: inline-block;
    width: 200px; /* fixed width */
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    position: relative;
    padding: 2px 10px;
}

/* add the brackets with pseudo-elements */
.bracketed::before,
.bracketed::after {
    content: "[";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 13px;
}
.bracketed::after {
    content: "]";
    right: 5px;
}
.bracketed::before {
    left: 5px;
}

/* make the main container a vertical stack */
.flexy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-box {
    position: relative;
    width: 600px;
    margin: 20px auto;
    border: 2px solid var(--border);
    background-color: var(--background);
    overflow: hidden;
    padding-top: 0;
}

.top-bar {
    width: 100%;
    background-color: var(--border);
    color: #fff;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between; /* changed from flex-start to space-between */
    font-size: 14px;
    box-sizing: border-box;
}
.pfp {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border);
    margin: 10px;
    background-image: url("assets_needed/one_pfp.jpg");
    background-size: cover;
    background-position: center;
}

.profile-info-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

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

.post {
    border: 2px solid var(--border);
    background-color: var(--background);
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden; /* to contain the header bar */
}

/* the colored top bar inside each post */
.post-topbar {
    display: flex;
    justify-content: space-between; /* push items to opposite ends */
    align-items: left; /* vertically align items */
    background-color: var(--border);
    color: #fff;
    padding: 4px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

/* style for the header (user and date) */
.post-header {
    font-size: 12px;
    margin-bottom: 8px;
    padding: 0 10px;
    color: white;
}

/* style for the post title */
.post-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    padding: 0 10px;
    margin-top: 7px;
    text-align: left; /* explicitly align to the left */
}

/* style for the post content */
.post-content {
    font-size: 13px;
    line-height: 1.4;
    padding: 0 10px;
}

.post-footer {
    display: flex;
    justify-content: space-between; /* push children to opposite ends */
    align-items: center; /* vertically align */
    padding: 6px 10px;
    background-color: var(--border); /* optional, for visual clarity */
    color: white;
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.top-right a {
    color: white;
}

/* Custom scrollbar styles for WebKit browsers */
::-webkit-scrollbar {
    width: 12px; /* width of the scrollbar */
}

::-webkit-scrollbar-track {
    background-color: #2c1a57; /* same as background for seamless look */
}

/* Scrollbar thumb - the draggable part */
::-webkit-scrollbar-thumb {
    background-color: #463d94; /* bluish-purple, between blue and purple */
    border-radius: 6px;
    border: 3px solid transparent; /* optional for spacing */
    background-clip: padding-box;
}

/* Hover state for thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #6a4dcf; /* lighter bluish-purple on hover */
}
