.controls {
    display: flex;
    justify-content: space-between;
}

.visualization {
    background-color: var(--background-50);
    margin-bottom: 1rem;
    padding: 1rem;
    min-height: 400px;
}

textarea {
    resize: none;
}

#user-warning {
    color: red;
    min-height: 1.5em;
}

#stepDescription {
    margin-bottom: 1rem;
    font-size: 18px;
}

#animationInstructionText {
    color: grey;
}

#input-data {
    color: var(--text);
    background-color: var(--background-50);
    border: 1px solid #ddd;
    border-radius: 4px;
}

#input-data::placeholder {
    color: grey;
}

#compressedSoFar {
    background-color: var(--highlight);
}

/* scrollbar color for dark and light mode */
:root {
    --scrollbar-color-fg: #888;
    --scrollbar-color-bg: var(--accent-100);
}

.dark-mode {
    --scrollbar-color-fg: #999;
    --scrollbar-color-bg: var(--accent-200);
}

/* Compressed Content Container */
#compressedContainer {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
    color: var(--text);
    background-color: var(--background-50);
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 60px;
    scrollbar-width: auto;  /* For Firefox */
    scrollbar-color: var(--scrollbar-color-fg) var(--scrollbar-color-bg); /* For Firefox */
}

/* Webkit scrollbar styles (Chrome, Safari, Edge) */
#compressedContainer::-webkit-scrollbar {
    height: 12px;
}

#compressedContainer::-webkit-scrollbar-track {
    background: var(--scrollbar-color-bg);
    border-radius: 6px;
}

#compressedContainer::-webkit-scrollbar-thumb {
    background: var(--scrollbar-color-fg);
    border-radius: 6px;
}

#compressedContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#animationCanvas {
    width: 100%;
    height: 300px;
}

/* Resize canvas for mobile */
@media (min-width: 410px) and (max-width: 767.98px) {
    #animationCanvas {
        max-height: 200px;
        min-height: 200px;
        max-width: 400px;
    }
    .visualization {
        min-height: 300px;
    }
}

@media (max-width: 410px) {
    #animationCanvas {
        max-height: 150px;
        min-height: 150px;
        max-width: 300px;
    }
    .visualization {
        min-height: 250px;
    }
}

