* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

/* Top Header Styling */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.header-logo {
    height: 30px;
}

.greeting {
    font-size: 16px;
    color: #333;
}

.directory-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
	margin-top: 50px;
	margin-bottom: 60px;
}

.family-card {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.family-card img {
    width: 100%;
    max-width: 150px;   /* Ensures the image doesn’t exceed this size */
    height: auto;       /* Keeps the aspect ratio */
    border-radius: 50%;
    margin-bottom: 10px;
}

.family-card .name {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    word-wrap: break-word;       /* Allows wrapping within the card */
    text-align: center;
}

.family-card .address, .family-card .phone {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

/* Bottom Menu Bar Styling */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.bottom-menu .menu-item {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    padding: 10px;
}

.bottom-menu .menu-item:hover {
    background-color: #f0f0f0;
}
