* {
    box-sizing: border-box; /* This forces padding to stay INSIDE the width */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* This stops the screen from sliding left/right */
}

.mobile-container {
    width: 100%;
    max-width: 500px;
    padding: 15px; /* Padding now stays inside the 100% width */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    background: #007bff;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
}

.mobile-container {
    width: 100%;
    max-width: 500px; /* Limits width on desktop, full width on mobile */
    padding: 20px;
    box-sizing: border-box;
}

input, textarea, button {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    background: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#posts-list {
    margin-top: 20px;
}

.post-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.post-card p { margin: 0; font-size: 16px; }
.post-card small { color: #888; font-size: 11px; }