@import url("./main.css");

:root {
    --button-width: 80px;
    --button-height: 70px;

    --shortcut-border-size: 0.2mm;
}

main {
    position: relative;

    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(7, var(--button-width));
    grid-template-rows: repeat(6, var(--button-height));
    gap: 5px;
    align-content: start;
    justify-content: start;
    
    height: 100%;
    padding: 0.2mm;
}

.shortcut {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;

    width: 80px;
    height: var(--button-height);
    position: relative;

    background-color: rgba(0, 0, 0, 0);
    color: white;

    font-size: 8.2pt;
    font-weight: normal;
    text-overflow: ellipsis;

    img {
        width: 32px;
        height: auto;
    }

    p {
        border: var(--shortcut-border-size) solid rgba(0, 0, 0, 0);
        margin-left: 3px;
        margin-right: 3px;
        background-color: var(--background);
    }

    &:active,
    &:focus {
        img {
            background-color: rgb(0, 0, 128);
        }

        p {
            background-color: rgb(0, 0, 128);
            border: var(--shortcut-border-size) dotted rgb(255, 255, 0);
        }
    }
}