.bubble {
    transition: background-color 0.125s, border-color 0.125s, filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--background-2);
    border-radius: 0.25rem;
    border-color: var(--background-2);
    border-style: solid;
    border-width: 2px;
}

.icon {
    display: inline-block;
    height: 1.5rem;
    aspect-ratio: 1;
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
}

.icon.small {
    height: 1rem;
}

.icon.smallish {
    height: 1.25rem;
}

.icon.large {
    height: calc(2rem + 4px); /* two lines of text + line-gap */
}

.hidden-button, .hidden-icon-button {
    background: transparent;
    border-color: transparent;
}

.hidden-icon-button {
    aspect-ratio: 1;
    padding: 0.25rem;
}

.icon-button {
    aspect-ratio: 1;
    padding: 0.25rem;
}

.tile-button {
    padding: 1rem;
    align-items: center;
    flex-direction: column;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    filter: brightness(1.25);
}

.as-annotation, .as-annotation-bottom {
    justify-self: end;
    z-index: 1;
    margin-right: -0.75rem;
}


.as-annotation {
    align-self: start;
    margin-top: -0.75rem;
}

.as-annotation-bottom {
    align-self: end;
    margin-bottom: -0.75rem;
}

.icon.as-annotation.smallish {
    margin-right: -0.625rem;
    margin-top: -0.625rem;
}

.icon.as-annotation-bottom.smallish {
    margin-right: -0.625rem;
    margin-bottom: -0.625rem;
}

.flex-col-line-height-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
}

.flex-col-two-pixel-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2px;
}

.one-block-height {
    min-height: calc(2rem + 4px); /* two lines of text + line-gap */
}

.two-block-height {
    min-height: 5rem; /* height of 2 buttons, input, etc with gaps */
}

.three-block-height {
    min-height: 7.75rem; /* height of 3 buttons, input, etc with gaps */
}

.hidden {
    visibility: hidden;
}

.opacity-zero {
    opacity: 0;
}

.active {
    background: var(--background-3);
    border-color: var(--background-3);
}

.accent-border {
    border-color: var(--accent);
}
.accent-border:hover {
    border-color: var(--accent);
}

.active-selection-highlight {
    background-color: var(--foreground);
    border-color: var(--foreground);
    color: var(--background-1);
    font-weight: bold;
}

.active-selection-highlight:hover {
    background-color: var(--foreground);
    border-color: var(--foreground);
    filter: brightness(1.25);
}

.warning {
    color: var(--yellow);
}

.error {
    color: var(--red);
}

.sticky-top {
    position: sticky;
    top: 0;
    background: var(--background-1);
    z-index: 1;
}


/*animation*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.fade-in-scale {
    animation: fadeInScale 1.5s both;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s;
}

.fade-in-from-left {
    animation: fadeInFromLeft 0.5s;
}

.fade-in-from-right {
    animation: fadeInFromRight 0.5s;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

.delayed {
    animation-delay: 30s;
}

.fade-in-slow {
    animation: fadeIn 1.3s;
}

@media print {
    .no-print {
        display: none !important;
        visibility: hidden !important;
    }
}

