/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    overflow-y: auto; /* Ensure vertical scroll for the page */
}

/* Header styling */
header {
    text-align: center;
    background-color: #4caf50;
    color: white;
    padding: 20px 0;
}

/* Main content styling */
main {
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* App grid styling */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ensure exactly 4 blocks per row */
    gap: 20px; /* Space between blocks */
    width: 100%;
    max-width: 1200px;
    height: 80vh; /* Limit height for scrollability */
    overflow-y: auto; /* Add vertical scroll bar if content overflows */
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Individual app block styling */
.app-block {
    text-align: center;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; /* Remove underline */
    color: black;
    height: 200px; /* Fixed block height for uniformity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.app-block:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.app-block img {
    width: 80px; /* Fixed size for icons */
    height: 80px; /* Fixed size for icons */
    border-radius: 10px;
    margin-bottom: 10px;
}

.app-block h3 {
    margin: 5px 0;
    font-size: 1rem;
    text-align: center;
}

.app-block p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 blocks per row on tablets */
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: 1fr; /* 1 block per row on mobile devices */
    }
}
