.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;
}

.with-backdrop{
    backdrop-filter: blur(4px); 
    background-color: color-mix(in srgb, var(--background-1) 80%, transparent);
}

.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.extra-small {
    height: 0.75rem;
}

.icon.smallish {
    height: 1.25rem;
}

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

@media print {
    .icon {
        height: 1.25rem;
    }

    .icon.small {
        height: 0.75rem;
    }

    .icon.extra-small {
        height: 0.5rem;
    }

    .icon.smallish {
        height: 1rem;
    }

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

.compressible-icon {
    height: 1.5rem;
}

.compressible-icon.small {
    height: 1rem;
}

.diminished {
    color: var(--foreground-diminished);
}

.diminished-background {
    background: var(--background-4);
    border-color: var(--background-2);
}

span.diminished {
    text-align: start;
    font-size: small;
}

@media (max-width: 1024px) {

    .compressible-icon {
        height: 1.25rem;
    }

    .compressible-icon.small {
        height: 0.75rem;
    }
}

@media (max-width: 768px) {
    .compressible-icon {
        height: 1rem;
    }

    .compressible-icon.small {
        height: 0.5rem;
    }

}


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

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

.hidden-icon-button:disabled {
    opacity: 0;
}

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

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

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

.tile-button {
    padding-top: calc(0.5rem - 1px);
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: calc(0.5rem - 1px);
    align-items: center;
    flex-direction: column;
    min-width: 10rem;
}

@media (max-width: 420px) {
    .tile-button {
        min-width: 5rem;
    }
}

.strap {
    z-index: 3;
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    display: grid;
    background-color: var(--background-1);
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.clickable {
    cursor: pointer;
}

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

.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 */
}

.one-block-width {
    min-width: calc(2rem + 4px);
}

.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 */
}

.four-block-height {
    min-height: 10.5rem; /* height of 4 buttons, input, etc with gaps */
}

.min-width-large {
    min-width: 10rem;
}

.min-width-medium {
    min-width: 8rem;
}

@media (max-width: 420px) {
    .min-width-large {
        min-width: 5rem;
    }
    .min-width-medium {
        min-width: 4rem;
    }
}

.fix-six-block-height {
    height: 12.5rem; /* height of 6 buttons, input, etc with gaps */
}

.hidden {
    visibility: hidden;
}

.opacity-zero {
    opacity: 0 !important;
}

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

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

.active-selection-highlight:hover {
    filter: brightness(1.25);
}

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

.accent-border, .active-selection-highlight.accent-border, .accent-border:hover {
    border-color: var(--accent);
}

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

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

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

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

.pop-up-header {
    position: sticky;
    top: 0;
    background: var(--background-1);
    z-index: 3;
    padding-bottom: var(--pop-up-padding);
    padding-top: var(--pop-up-padding);
}

/*animation*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-scale {
    animation: fadeInScale 0.4s both;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-out-scale {
    animation: fadeOutScale 0.4s both;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
        clip-path: inset(20% 2% 20% 2% round 0.25rem);
    }

    to {
        opacity: 1;
        transform: scale(1);
        clip-path: inset(0% 0% 0% 0% round 0.25rem);
    }
}

@keyframes fadeOutScale {
    0% {
        opacity: 1;
        clip-path: inset(0% 0% 0% 0% round 0.25rem);
    }

    100% {
        opacity: 0;
        clip-path: inset(4rem 4rem 4rem 4rem round 0.5rem);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

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

.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;
}


.display-none-on-mobile {

}

@media (hover: none) {
    .display-none-on-mobile {
        display: none;
    }
}

.no-pointer-events {
    pointer-events: none;
}

.disabled-looking {
    opacity: 0.5;
    pointer-events: none;
}

.thick-shadow {
    text-shadow: 1px 1px 0 var(--contour),
    -1px 1px 0 var(--contour),
    1px -1px 0 var(--contour),
    -1px -1px 0 var(--contour),
    0px 1px 0 var(--contour),
    0px -1px 0 var(--contour),
    -1px 0px 0 var(--contour),
    1px 0px 0 var(--contour),
    2px 2px 0 var(--contour),
    -2px 2px 0 var(--contour),
    2px -2px 0 var(--contour),
    -2px -2px 0 var(--contour),
    0px 2px 0 var(--contour),
    0px -2px 0 var(--contour),
    -2px 0px 0 var(--contour),
    2px 0px 0 var(--contour),
    1px 2px 0 var(--contour),
    -1px 2px 0 var(--contour),
    1px -2px 0 var(--contour),
    -1px -2px 0 var(--contour),
    2px 1px 0 var(--contour),
    -2px 1px 0 var(--contour),
    2px -1px 0 var(--contour),
    -2px -1px 0 var(--contour);
    padding: 0 2px;
}

.thick-shadow-background {
    text-shadow: 1px 1px 0 var(--background-1),
    -1px 1px 0 var(--background-1),
    1px -1px 0 var(--background-1),
    -1px -1px 0 var(--background-1),
    0px 1px 0 var(--background-1),
    0px -1px 0 var(--background-1),
    -1px 0px 0 var(--background-1),
    1px 0px 0 var(--background-1),
    2px 2px 0 var(--background-1),
    -2px 2px 0 var(--background-1),
    2px -2px 0 var(--background-1),
    -2px -2px 0 var(--background-1),
    0px 2px 0 var(--background-1),
    0px -2px 0 var(--background-1),
    -2px 0px 0 var(--background-1),
    2px 0px 0 var(--background-1),
    1px 2px 0 var(--background-1),
    -1px 2px 0 var(--background-1),
    1px -2px 0 var(--background-1),
    -1px -2px 0 var(--background-1),
    2px 1px 0 var(--background-1),
    -2px 1px 0 var(--background-1),
    2px -1px 0 var(--background-1),
    -2px -1px 0 var(--background-1);
    padding: 0 2px;
}
.thick-shadow-background2 {
    text-shadow: 1px 1px 0 var(--background-2),
    -1px 1px 0 var(--background-2),
    1px -1px 0 var(--background-2),
    -1px -1px 0 var(--background-2),
    0px 1px 0 var(--background-2),
    0px -1px 0 var(--background-2),
    -1px 0px 0 var(--background-2),
    1px 0px 0 var(--background-2),
    2px 2px 0 var(--background-2),
    -2px 2px 0 var(--background-2),
    2px -2px 0 var(--background-2),
    -2px -2px 0 var(--background-2),
    0px 2px 0 var(--background-2),
    0px -2px 0 var(--background-2),
    -2px 0px 0 var(--background-2),
    2px 0px 0 var(--background-2),
    1px 2px 0 var(--background-2),
    -1px 2px 0 var(--background-2),
    1px -2px 0 var(--background-2),
    -1px -2px 0 var(--background-2),
    2px 1px 0 var(--background-2),
    -2px 1px 0 var(--background-2),
    2px -1px 0 var(--background-2),
    -2px -1px 0 var(--background-2);
    padding: 0 2px;
}

.compressible-span {
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .compressible-span {
        font-size: 1rem;
    }
}



@media (max-width: 768px) {
    .compressible-span {
        font-size: 0.85rem;
    }
}

.full-width {
    width: 100%;
}

.code-editor {
    width: 100%;
    height: 300px;
    font-family: monospace;
    font-size: 14px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: none;
    padding: 1rem;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    tab-size: 2; /* helps make indentation cleaner */
    white-space: pre; /* respects whitespace formatting */
}

.horizontal-accordion {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    overflow-x: hidden;
}

.horizontal-accordion  > * {
    transition: flex-grow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-code{
    mix-blend-mode: var(--qr-code-blend-mode);
    filter: var(--qr-code-filter);
}



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



}