/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: aquamarine;
}

/* Container for centered layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

/* Section styles */
.section {
    margin-bottom: 40px;
}

/* Heading styles */
h1 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    text-align: center;
}

h2 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: black;
    text-align: left;
    margin-bottom: 10px;
}

/* Flexbox layout for all post sections */
#permanent-posts-container, #reflection-entries, #tech-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Post entry styles */
.post-entry {
    width: calc(28%); /* Ensures three cards per row */
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 13px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover effects */
.post-entry:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
}

button:hover {
    background-color: darkblue;
    transform: translateY(-2px);
}

/* Post content styling */
.post-entry h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: black;
}

.post-entry p {
    font-size: 1em;
    color: dimgray;
}

/* Button container for horizontal alignment */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Button styles */
.post-entry button {
    flex: 1;
    padding: 10px 20px;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.post-entry a.read-more-link, button {
    margin-top: 5px;
    padding: 12px 20px;
    background-color: dodgerblue;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover, .read-more-link:hover {
    background-color: darkblue;
    transform: translateY(-2px);
}

/* Like and Dislike button styling */
.like-button, .dislike-button {
    background-color: whitesmoke;
    color: black;
    border: 1px solid lightgray;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 5px;
}

.like-button:hover, .dislike-button:hover {
    background-color: lightgray;
    color: black;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Main content and post detail view */
#main-content {
    display: block;
}

#post-detail-view {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Center Add Reflection button */
#add-new-reflection {
    display: flex;
    margin-right: 92%;
    margin-left: auto;
    margin-top: 0px;
    background-color: dodgerblue;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

#add-new-reflection:hover {
    background-color: darkblue;
}

/* Footer styling */
#footer-container {
    background-color: whitesmoke;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid gray;
}

#footer-container a {
    color: dodgerblue;
    text-decoration: none;
}

#footer-container a:hover {
    text-decoration: underline;
}
