 /* 
  Octarule Project
  Author: Keith (Arc.Keith)
  Created: July 2025
  License: Creative Commons Attribution 4.0 International (CC BY 4.0)
  https://creativecommons.org/licenses/by/4.0/
*/

body {
  background-color: #111;
  color: #e0e0e0;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

main.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  justify-items: center;
}

main.app-grid > * {
  width: 100%;
  max-width: 140px;
}

.app-icon {
  background: var(--card, #222);
  color: var(--text, #fff);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px #000;
  transition: background 0.2s;
}

.app-icon a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}

.app-icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.app-icon:hover {
  background: var(--hover, #333);
}

.row-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  grid-column: 1 / -1; /* spans all grid columns if inside grid */
}

.row-center .app-icon {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
}

