html, body{
    margin: 0;
    padding: 0;
}

.navbar{
    background-color: darkcyan;
    height: 60px;
    margin-top: 0%;
    padding-top:0% ;
}

.add{
    margin-top: 10px;
    margin-left: 10px;
    height: 40px;
    border: none;
    border-radius:5px ;
    background-color: darkcyan;
    font-weight: bold ;
    font-size: large;
}

.title{
    color: black;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    height: 40px;
    margin: 0;
    padding-top: 5px;
    padding-left: 6px;
}

.post-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    padding: 16px;
}

.post-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1 1 calc(25% - 16px); /* 4 cards per row */
    max-width: calc(25% - 16px);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.post-list h2{
    align-self: center;
}
.post-list img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Responsive: stack cards on smaller screens */
@media (max-width: 1024px) {
    .post {
        flex: 1 1 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}
@media (max-width: 600px) {
    .post {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.details-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.details-content img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}
.details-content button {
    margin-top: 20px;
    padding: 8px 20px;
    border: none;
    background: darkcyan;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.details-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}
.details-buttons button {
    margin-top: 0;
}

.add-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.add-form-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 90vw;
    gap: 18px;
    align-items: stretch;
}

.add-form-content input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.add-form-content button {
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    background: darkcyan;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
    margin-top: 8px;
    transition: background 0.2s;
}
.add-form-content button:hover {
    background: #007c7c;
}

.add-form-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: #222;
}

.delete-btn{
    width: 70px;
    align-self: center;
}
