:root {
    /* Design system */
    --border-radius: 8px;
    --text: #333;
    --text-secondary: #555;
    --gap-1: 8px;
    --gap-2: 16px;
    --gap-3: 24px;

    /* Font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2rem;
}

.font-xs {
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

.font-sm {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.font-md {
    font-size: var(--font-size-md);
    line-height: 1.5;
}

.font-lg {
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.font-xl {
    font-size: var(--font-size-xl);
    line-height: 1.6;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-md);
    color: var(--text);
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

code {
  background: #e0e0e0;
}

p {
  margin: 4px 0;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2);
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: var(--gap-2);
}

.gap-1 {
    gap: var(--gap-1);
}

.gap-2 {
    gap: var(--gap-2);
}

.gap-3 {
    gap: var(--gap-3);
}

.flex-align-center {
    align-items: center;
}

.flex-justify-center {
    justify-content: center;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

@keyframes collapse-out {
  0% {
    opacity: 1;
    transform: translateY(0) scaleX(1);
    transform-origin: bottom;/
  }
  50% {
    opacity: 1;
    transform: translateY(20px) scaleX(0.5); 
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) scaleX(0);
    height: 0;
    padding: 0;
    margin: 0;
  }
}

@keyframes appear-in {
  0% {
    opacity: 0;
    transform: translateY(100vh) scaleX(0);
    transform-origin: bottom;
    height: 0; 
    padding: 0;
    margin: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(40px) scaleX(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleX(1);
    height: 100%;
  }
}

.frosted {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scrollableY {
    overflow-y: scroll;
}
.scrollableX {
    overflow-x: scroll;
}
.scrollableY::-webkit-scrollbar {
    width: 8px;
}
.scrollableX::-webkit-scrollbar {
    height: 8px;
}
.scrollableY::-webkit-scrollbar-thumb, .scrollableX::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.scrollableY::-webkit-scrollbar-thumb:hover, .scrollableX::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}
.scrollableY::-webkit-scrollbar-track, .scrollableX::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.scrollableY::-webkit-scrollbar-corner, .scrollableX::-webkit-scrollbar-corner {
    background: transparent;
}