/* § BUTTON CONTAINERS */
.button-grid {
    display: flex;
    flex-flow: row wrap;
    gap: 3rem;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 90%;
}

.button-stack .header {
    background-color: #181818;
    background-image:
        url("../img/header-dots-top.svg"),
        url("../img/header-dots-bottom.svg")
    ;
    background-position: top 5px right 5px, bottom 5px right 5px;
    background-repeat: no-repeat, no-repeat;
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    border-style: solid;
    border-width: thin;
    color: var(--text-color);
    padding: 1rem;
}

.button-stack .header h2 {
    font-size: var(--base-font-size);
    font-weight: normal;
    margin: unset;
}

/* § BUTTONS */
.button:link,
.button:visited {
    background-color: var(--background-color);
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    border-style: solid;
    border-width: thin;
    color: var(--text-color);
    padding: 1rem;
}

.button:active,
.button:focus,
.button:hover {
    background-image:
        linear-gradient(black, black),
        var(--chromatic-gradient)
    ;
    background-clip: padding-box, border-box;
    border-color: transparent var(--cyan) transparent var(--purple);
}

.button > .label {
    flex: initial;
    color: var(--dim-color);
}

.button:link > .value {
    flex: auto;
    text-align: right;
}

/* § LANGUAGE BALLOONS */
.balloon:link,
.balloon:visited {
    background-color: var(--background-color);
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    border-style: solid;
    border-width: 1px;
    color: var(--text-color);
    display: inline-block;
    font-size: 0.9rem;
    padding: 8px;
    position: absolute;
    width: 5rem;
}

.balloon:active,
.balloon:focus,
.balloon:hover {
    background-image:
        linear-gradient(black, black),
        var(--chromatic-gradient)
    ;
    background-clip: padding-box, border-box;
    border-color: transparent var(--cyan) transparent var(--purple);
}

.diamond {
    background-image: url("../img/balloon-triangle.svg");
    background-position: bottom left;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    width: 13px;
    height: 13px;
}

.balloon[lang="en"] .diamond {
    bottom: -4.3px;
    left: -4.3px;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

.balloon[lang="en"]:active .diamond,
.balloon[lang="en"]:focus .diamond,
.balloon[lang="en"]:hover .diamond {
    background-position: top left;
}

.balloon[lang="es"] .diamond {
    bottom: -4.3px;
    right: -4.3px;
}

.balloon[lang="es"]:active .diamond,
.balloon[lang="es"]:focus .diamond,
.balloon[lang="es"]:hover .diamond {
    background-position: bottom right;
}


@media screen and (min-width: 920px) {
    .button-stack {
        max-width: 400px;
    }
}
