* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0f0f1a;
    color: #fff;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 2rem;
}

h1 {
    margin-bottom: 2rem;
    text-align: center;
    color: #f5f5f5;
    font-size: 2.5rem;
    opacity: 0.8;
}

.input-container {
    display: flex;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
}

#text-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 0 15px rgba(74, 74, 233, 0.2);
}

#text-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(74, 74, 233, 0.4);
}

#text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#generate-btn {
    padding: 12px 25px;
    background-color: #4a4ae9;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#generate-btn:hover {
    background-color: #3a3ad9;
    transform: scale(1.05);
}

.slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.slider-container label {
    margin-right: 10px;
    font-size: 16px;
}

#speed-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 0 15px;
    -webkit-appearance: none;
    appearance: none;
}

#speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a4ae9;
    cursor: pointer;
    transition: all 0.2s ease;
}

#speed-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #5a5af9;
}

#speed-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a4ae9;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

#speed-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #5a5af9;
}

canvas {
    display: block;
    width: 100%;
    height: 70vh;
    background-color: #0f0f1a;
}

#debug-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #0f0;
    padding: 5px 10px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
    display: none; /* Hidden by default */
    max-height: 100px;
    overflow-y: auto;
    box-sizing: border-box;
}

#debug-footer p {
    margin: 2px 0;
    white-space: pre-wrap;
} 