/* Reset margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the body background and text color */
body {
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    /*
    display: flex;
    align-items: center;
    justify-content: center;
    */
    min-height: 100vh;
    position: relative; /* Added for positioning the sidebar */
}

/* Center the form and adjust the width */
form {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Set a light border */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Style the form labels */
label {
    font-family: "Arial", sans-serif; /* Use a modern font */
    font-size: 16px; /* Adjust the font size */
    font-weight: normal; /* Use normal font weight */
    color: #666; /* Set the text color to a muted gray */
    margin-bottom: 4px; /* Add some spacing below the label */
    display: block; /* Display label as block element */
}

/* Style the form inputs */
input[type="text"], textarea, input[type="password"], input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.file-input {
    margin: 0;
    display: inline-block;
}

/* Style the form buttons */
input[type="submit"] {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: black;
    color: white;
}

input[type="submit"], .button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #000; /* Black background color */
    color: #fff; /* White text color */
    border: none;
    border-radius: 5px; /* Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color transition */
}

input[type="submit"]:hover, .button:hover {
    background-color: #666; /* Gray background color on hover */
    color: #fff; /* White text color on hover */
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

nav a {
    color: #000; /* Black text color */
    text-decoration: none; /* Remove underline */
    position: relative; /* For pseudo-element positioning */
    transition: color 0.3s; /* Smooth color transition */
}

nav a:hover {
    color: #555; /* Gray text color on hover */
}

/* Add a subtle underline on hover using a pseudo-element */
nav a::after {
    content: "";
    position: absolute;
    bottom: -2px; /* Position underline under the text */
    left: 0;
    right: 0;
    height: 1px;
    background-color: #000; /* Black underline color */
    transform: scaleX(0); /* Set initial scale to 0 (not visible) */
    transform-origin: 100% 50%; /* Pivot from the right */
    transition: transform 0.3s; /* Smooth transform transition */
}

nav a:hover::after {
    transform: scaleX(1); /* Scale to full width on hover */
    background-color: #555; /* Gray underline color on hover */
}

nav a {
    position: relative;
}

nav a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    font-size: 0.9em;
    background-color: #000; /* Black background color */
    color: #fff; /* White text color */
    border-radius: 3px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

nav a:hover::after {
    opacity: 1;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
}

nav li {
    font-size: 1.5em;
    padding: 5px;
}

.table-of-contents {
    margin: 10px 0;
    /* Add more styles as needed */
}

/* Style the post titles and bodies */
.post-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.post-body {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Style the post images */
.post-image {
    max-width: 100%;
    height: auto;
}

/* Style the post links */
.post-link {
    display: block;
    text-align: right;
    margin: 10px 0;
}

.post-actions {
    text-align: right;
}

.post-actions .button {
    margin-left: 10px;
}

.post-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    text-align: left;
}

.post-body {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.post-block {
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.post-block:hover {
  transform: translateY(-5px);
}

.modal-overlay {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top of other elements */
}

.modal {
    position: fixed; /* Fixed position */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset for center alignment */
    padding: 20px;
    background-color: #ffffff; /* Background color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Box shadow for a floating effect */
    border-radius: 4px; /* Optional border-radius for rounded corners */
    z-index: 10000; /* Ensure it's on top of the overlay */
    overflow: auto;
    resize: both;
    width: auto;
    height: auto;
    max-height: 90vh;
    max-width: 90vh;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.container {
    max-width: 60%; /* Adjust to your desired width */
    width: 100%; /* Make it full width for small screens */
    padding: 20px;
    position: relative;
    z-index: 1; /* Ensure the container is on top of the sidebar */
}

.main-content {
    position:relative;
}

.button {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    font-size: 16px;
    border: none;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    z-index: 2;
}

.button:hover {
    background-color: #666;
}

.add-button {
    text-align: center;
    float: right;
    width: 20%;
    height: 50px;
    line-height: 25px;
    font-size: 25px;
    z-index: 10;
}

.login-button {
    text-align: center;
    display: block;
    margin-bottom: 30px;
    padding: 8px 20px; /* Slightly wider padding for the "Login" button */
}

.logout-button {
    text-align: center;
    position: fixed;
    top: 10px;
    right: 10px;
}

.back-to-top-button {
    text-align: center;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.black-background {
    background-color: black;
}

/* Style for the logo container */
.logo-container {
    text-align: center; /* Center the logo horizontally */
    margin-bottom: 30px; /* Add some spacing below the logo */
}

/* Style for the logo image */
.logo {
    width: 150px; /* Set a fixed width for the logo */
    height: 150px; /* Set a fixed height for the logo */
    border-radius: 50%; /* Make the image round */
    object-fit: cover; /* Resize the image to fit the dimensions of the container */
}

.attachments-list {
    list-style-type: none;
    padding: 0;
}

.attachments-list li {
    display: inline-block;
    margin-right: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.attachments-list li:hover {
    background-color: #d3d3d3;
}

.attachments-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.attachments-list a:hover {
    color: #555;
}

.attachments-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Style for the sidebar */
.sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 240px; /* Adjust the width */
    height: 75%;
    background-color: #000; /* Black background color */
    padding: 20px;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff; /* White text color */
}

.sidebar a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff; /* White text color */
    padding: 8px;
    border: 1px solid #fff; /* White border */
    border-radius: 3px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.sidebar a:hover {
    background-color: #fff; /* White background color on hover */
    color: #000; /* Black text color on hover */
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.content {
    margin-left: 220px; /* Adjust the margin to match the sidebar width */
}

.centered-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
