/* mobile nav */
*{
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: 0;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
}

body{
    padding-bottom: 60px; /* enough space for bottom nav */
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    user-select: none;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
}


html{
    font-size: 13px;
    margin: 0; /* Remove default margin */
}

html, body {
    height: 100%;
    margin: 0;
    scrollbar-width: none; /* Firefox: Hide scrollbar */
    -ms-overflow-style: none; /* IE 10+ */
}



 .mobile-nav {
    display: none; /* hide by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    justify-content: space-around;
    padding: 1rem 1rem;
    padding-bottom: 2rem;
    z-index: 1000;
    border-top: 1px solid #444;
}

.icon-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #555;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s;

}

.icon-button:hover {
  background-color: #f0f0f0;
}

.icon-button .material-icons-sharp {
  font-size: 24px;
}

.icon-title {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}




/* only show on small screens */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    height: 68px;
    background-color: white;
    z-index: 1000;
  }
}

.icon-container {
    padding-bottom: 60px
}


.icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 25px;
padding: 28px;
max-width: 400px;
margin: auto;
margin-bottom: 40px;  /* Space for the fixed nav */
}


.icon-grid a {
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0f0;
width: 50px;
height: 50px;
border-radius: 50%;
text-decoration: none;
color: #333;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: background-color 0.3s, color 0.3s;
position: relative;
}
.icon-grid a:hover {
background-color: #ddd;
color: #000;
}
.icon-grid span.material-icons-sharp {
font-size: 32px;
}
.icon-grid a[title]::after {
content: attr(title);
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
font-size: 12px;
color: #666;
pointer-events: none;
}