
/* button */
.button
{
    background-color: dimgray;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 16px 2px;
    font-family:verdana;
    font-size: 18px;
    -webkit-transition-duration: 0.5s; /* Safari */
    transition-duration: 0.5s;
    cursor: pointer;

    width: 180px;
    margin: 2px 2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.button_g
{
    border-radius: 4px;
    background-color: darkgray;
    color: white;
    border: 2px solid darkgray;
}

.button_hidden {
    visibility: hidden;   /* keeps the space, hides the button */
}

html, body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Horizontal tabs */
.tab-container {
    display: flex;
    width: 280px;
    max-width: calc(100% - 4px);
    box-sizing: border-box;
    margin: 6px 2px 8px 2px;
    gap: 4px;
}

.tab-button {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    height: 34px;
    line-height: 18px;
    margin: 0;
    padding: 6px 2px;
    background-color: #555555;
    border: 2px solid #555555;
    border-radius: 4px;
    color: #d8d8d8;
    text-align: center;
    font-family: verdana;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.tab-button.active {
    background-color: darkgray;
    border: 2px solid white;
    color: white;
}

/* Hover effects only for pointer/mouse devices */
@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background-color: black;
        color: white;
    }

    .tab-button {
        transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    }

    .tab-button:hover {
        background-color: black;
        border-color: black;
        color: white;
    }

    .tab-button.active:hover {
        background-color: darkgray;
        border: 2px solid white;
        color: white;
    }
}

/* Active feedback on tap/click */
.button:active {
    background-color: black;
    color: white;
}

.tab-button:active {
    background-color: #333333;
    border-color: #333333;
}

.tab-button.active:active {
    background-color: #666666;
}
