.category{
    text-align: center;
    margin-bottom: 0rem;
    margin-top:0.3rem;
}

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.category-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    min-height: 5rem;
    box-sizing: border-box;
    padding: 0.5rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 0.25rem;
    padding: 0.5rem;
    width: 100%;
    justify-content: center;
    justify-items: center;
}

.tool-button {
    font-size: 0.8rem;
    display: flex; /* allows centering inside */
    align-items: center;
    justify-content: center;
    background-color: #f6c667;
    color: #005689;
    padding: 0.2rem 0;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(105, 104, 104, 0.26);
    transition: background-color 0.2s ease;
    width: 100%;
    min-height: 2rem;
    max-width: 6rem;
    /* max-height: 3rem; */
    box-sizing: border-box;
    border-radius: 0.2rem;
    hyphens: auto;
    word-break: normal;
}

.tool-button:hover,
.tool-button:active{
    background-color: #005689;
    color: #f1f8fd;
}

@media screen and (min-width: 601px) {
  #content {
    grid-template-columns: repeat(auto-fit, minmax(6rem, auto));
    max-width: 80%;
  }
  .tool-button {
    min-height: 2rem;
  }

  .categories-wrapper {
    width:80%;
    max-width: 80rem;
    margin: 0 auto;
  }
}