/* Font Face Declarations */
@font-face {
    font-family: 'Diodrum';
    src: url('./fonts/Diodrum-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Diodrum';
    src: url('./fonts/Diodrum-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Diodrum';
    src: url('./fonts/Diodrum-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Diodrum';
    src: url('./fonts/Diodrum-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Base Styles */
body {
    margin: 0;
    padding: 40px;
    background: #000;
    font-family: 'Courier New', monospace;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Departure Board Styles */
.departure-board {
    background: #000;
    border: none;
    padding: 40px;
    min-width: 600px;
}

.destination-line {
    display: flex;
    margin: 8px 0;
    min-height: 50px;
    align-items: center;
}

.character {
    display: inline-block;
    width: 32px;
    height: 45px;
    background: #000;
    border: none;
    text-align: center;
    line-height: 45px;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    font-family: 'Diodrum', monospace;
    transition: all 0.2s ease;
}

.character.flipping {
    color: #ccc;
    animation: flicker 0.1s ease-in-out;
}

.character.settled {
    color: #fff;
}

.character.space {
    background: transparent;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Control Styles */
.controls {
    margin-top: 30px;
    text-align: center;
}

.btn {
    background: #333;
    border: 2px solid #666;
    color: #fff;
    padding: 12px 24px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.btn:hover {
    background: #555;
}

.custom-input {
    background: #000;
    border: 2px solid #666;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    width: 300px;
    margin: 5px;
}

.custom-input::placeholder {
    color: #999;
}

/* Font Picker Styles */
.font-picker-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.font-label {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
}

.font-picker {
    background: #000;
    border: 2px solid #666;
    color: #fff;
    padding: 8px 12px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    min-width: 180px;
}

.font-picker:hover {
    border-color: #999;
}

.font-picker:focus {
    outline: none;
    border-color: #ccc;
}

.font-picker option {
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
}

/* Font Size Slider Styles */
.font-size-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.font-size-slider {
    width: 120px;
    height: 6px;
    background: #333;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

.font-size-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: 2px solid #999;
}

.font-size-slider::-webkit-slider-thumb:hover {
    background: #888;
    border-color: #ccc;
}

.font-size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: 2px solid #999;
}

.font-size-value {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Character Width Slider Styles */
.char-width-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.char-width-slider {
    width: 120px;
    height: 6px;
    background: #333;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
}

.char-width-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: 2px solid #999;
}

.char-width-slider::-webkit-slider-thumb:hover {
    background: #888;
    border-color: #ccc;
}

.char-width-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: 2px solid #999;
}

.char-width-value {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Shadcn Design Tokens */
:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
}

/* Custom Slider Styles */
.custom-slider {
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

.custom-slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: hsl(var(--secondary));
    border-radius: 4px;
}

.custom-slider::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 0 0 1px hsl(var(--border));
}

.custom-slider::-webkit-slider-thumb:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.custom-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: hsl(var(--secondary));
    border-radius: 4px;
    border: none;
}

.custom-slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 0 0 1px hsl(var(--border));
}

.custom-slider::-moz-range-thumb:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 0 0 2px hsl(var(--ring));
}