/* Basic reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f0f0f0; display: flex; align-items: center; justify-content: center; height: 100vh; } .container { width: 90%; max-width: 1200px; margin: 0 auto; } .app-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .app-item { background: #fff; border: 1px solid #ddd; overflow: hidden; width: 150px; height: 150px; /* Ensuring the item is square */ text-align: center; transition: transform 0.2s, box-shadow 0.2s; } .app-item a { text-decoration: none; color: #333; display: block; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; } .app-icon-wrapper { width: 100%; height: 70%; display: flex; align-items: center; justify-content: center; } .app-icon { max-height: 100%; max-width: 100%; } .app-name { margin-top: 10px; font-size: 16px; font-weight: bold; height: 20%; display: flex; align-items: center; justify-content: center; text-align: center; } .app-item:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .app-item:active { transform: scale(0.95); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } /* Responsive design */ @media (max-width: 768px) { .app-item { width: 120px; height: 120px; /* Ensuring the item is square */ } } @media (max-width: 480px) { .app-item { width: 100px; height: 100px; /* Ensuring the item is square */ } }