.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 0;
    height: fit-content;
    padding: 10px;
    width: 20%;
}

.header h2 {
    margin-bottom: 0px;
}



.post-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: underline;
    font-size: 1.1rem;
    color: #333;
    margin-top: 25px;
}

.post-category ul {
    list-style-type: none;
    padding: 0;
}

.post-category ul li {
    margin-bottom: 1.5rem;
}

.post-category ul li a {
    color: black;
}

.post-category ul li:hover {
    cursor: pointer;
}


.sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 20%;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 60%;
    padding-top: 4%;
    padding-bottom: 50px;
}

span {
    font-size: 0.7rem;
    color: #333;
}

span.time {
    font-size: 0.5rem;
    color: #333;
}

.post-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    height: fit-content;
    margin-bottom: 10px;
}

.post-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.17em;
}

span.date {
    font-size: 0.9rem;
    color: #333;
}

span.time {
    font-size: 0.7rem;
    color: #333;
    margin-left: 2px;
}

.footer {
    z-index: 1000;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.footer:hover {
    cursor: pointer;
}

.newPost {
    font-size: larger;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    background-color: #333;
    margin-top: 20px;
    position: fixed;
    top: 25px;
    right: 50px;
}

.newPost:hover {
    cursor: pointer;
}

.popup-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: relative;
    background-color: white;
    padding: auto 0px;
    border-radius: 10px;
    width: 40%;
    height: 55%;
    margin: 0 auto;
    margin-top: 5%;
}

.popup-content .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.popup-content .close-btn:hover,
.submit-btn:hover {
    cursor: pointer;
}

.popup-content h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-top: 30px; 
}

.popup-content form {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    gap: 20px;
}

.popup-content form .form-group {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    padding: 0px 75px;
    gap: 5px;
}

.popup-content form .form-group input,
.popup-content form .form-group textarea {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    width: 100%;
}

.submit-btn {
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    background-color: #333;
    width: 10%;
}

#addPostPopup {
    display: none;
}

.post {
    width: 500px;
    border-bottom: 1px solid #333;
}

.post-category a {
    text-decoration: none;
    color: #333;
}

.post-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Lightbox (Pop-up) Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 10px 0;
}