/* Use Inter font */
body {
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Hide scrollbars */
}

/* Position canvas as a fixed background */
#string-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #030712; /* bg-gray-950 */
    cursor: default;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Position UI elements on top */
.ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem; /* p-10 */
}

/* Make links clickable */
.ui-container a, .ui-container h1 {
    pointer-events: all; /* Re-enable pointer events for links/logo */
}

/* Terminal wrapper for positioning */
.terminal-wrapper {
    position: relative;
}

/* Gradient overlay for terminal output */
#terminal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, #030712, transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}

#terminal-gradient.show {
    opacity: 1;
}

/* Range slider styling for Safari/WebKit */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    margin-top: -4px;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Terminal hybrid styling */
.terminal-cmd {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Readable content styling */
.terminal-content {
    font-family: 'Source Serif 4', serif;
    line-height: 1.6;
    max-width: 800px;
}

/* Display headings */
.terminal-content .display-heading {
    font-family: 'Instrument Serif', serif;
}

.terminal-content a {
    text-decoration: none;
}

/* Link card styling */
.link-card {
    display: block;
    padding: 1rem;
    margin: 0 -1rem;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.link-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.link-card:hover .link-title {
    color: rgb(103, 232, 249);
}

.link-card .link-title {
    display: inline-block;
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
}

.link-card .link-desc {
    color: rgba(209, 213, 219, 0.85);
    font-size: 1.0625rem;
    line-height: 1.55;
}

.link-card .link-author {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Custom scrollbar */
#terminal-output {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
