* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #1d1d1d;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #fff;
}

header {
    position: relative;
    width: 100%;
    min-height: 80px;
    padding: 10px 30px;
    background-color: #fff;
    color: #1d1d1d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header-left {
    margin-right: auto;
    font-size: 16px;
}

#header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

#header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.header-details {
    width: 35px;
    height: 35px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-details:hover {
    transform: scale(1.1);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 25px;
}

.post {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    color: black;
    border: 1px solid #3b3b3b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, transform 0.2s;
}

.post:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #3b3b3b;
}

.post-header h4 {
    margin: 0;
    font-size: 15px;
    color: black;
}

.post-profil {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.post-content {
    padding: 15px;
    background-color: #ffffff;
}

.post-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    color: black;
}

.post-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border-radius: 10px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #ffffff;
}

.post-details {
    width: 25px;
    height: 25px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.post-details:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

footer {
    padding: 25px 15px;
    text-align: center;
}

footer a {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

footer h2 {
    font-size: 14px;
}

@media (max-width: 600px) {
    header {
        padding: 10px 15px;
        gap: 10px;
    }

    #header-left h2 {
        font-size: 16px;
    }

    .header-details {
        width: 25px;
        height: 25px;
    }

    #header-center,
    #header-right {
        gap: 8px;
    }

    main {
        padding: 25px 12px;
    }

    .post-header,
    .post-content {
        padding: 12px;
    }
}