body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5f5f5; /* Lighter background for better contrast */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    overflow-x: hidden;
}

header {
    background-color: #2196f3; /* Blue header */
    color: #fff; /* White header text */
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-weight: 700;
}

#greeting {
    color: #fff;
    margin-top: 10px;
}

#auth-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}

#auth-links a:hover {
    color: #e0e0e0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    margin-top: 20px;
    position: relative;
}

.page-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-link-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-link {
    display: block;
    text-decoration: none;
    color: #2196f3;
    font-weight: 500;
    text-align: center;
    font-size: 18px;
}

.page-link:hover {
    color: #1976d2;
}

footer {
    background-color: #2196f3;
    padding: 10px;
    text-align: center;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-links {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust grid layout for smaller screens */
    }

    .page-link {
        font-size: 16px; /* Slightly smaller text */
    }

    header {
        padding: 15px;
    }

    footer {
        padding: 8px;
    }
}

/* Mobile Adjustments for smaller screens (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        padding: 8px;
    }

    main {
        padding: 15px;
    }

    .page-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    footer {
        padding: 8px;
    }
}
