@charset "UTF-8";

@font-face {
    font-family: 'LED';
    src: url('BoutiqueBitmap9x9_Square_Dot.ttf') format('truetype');
}

:root {
    --led-color: #ff0000;
    --led-brightness: 1;
    --led-glow: 0px 0px 0.1em var(--led-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    color: var(--led-color);
    background: #000;
    font-family: 'LED', monospace;
    overflow: hidden;
}

input,
button,
select {
    font-family: 'LED', monospace;
    font-size: 1em;
    color: var(--led-color);
    white-space: nowrap;
}

.led-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.led-text {
    font-family: 'LED', monospace;
    font-size: 100vmin;
    line-height: 1;
    color: var(--led-color);
    text-shadow: var(--led-glow);
    opacity: var(--led-brightness);
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: led-flicker 0.1s infinite;
}

.led-text.static, .led-text.flash {
    white-space: pre-wrap;
    width: 100%;
    text-align: center;
	line-height: 1.2;
}

.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 2;
    transition-duration: 0.3s;
    max-width: 100%;
}

.control-panel.hidden {
    bottom: -100%;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    min-width: 5em;
}

button {
    padding: 10px 20px;
    background: var(--led-color);
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item label {
    min-width: 5em;
}

input[type="range"] {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--led-color);
    border-radius: 50%;
    cursor: pointer;
}

select {
    flex: 1;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

@keyframes led-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 移动设备竖屏优化 */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .led-screen {
        transform: rotate(90deg);
        transform-origin: center center;
        width: 100vh;
        height: 100vw;
        position: fixed;
        top: 50%;
        left: 50%;
        margin-top: -50vw;
        margin-left: -50vh;
    }
}