

body {

    margin: 0;

    padding: 40px;

    background: #0f1117;

    color: #f5f5f5;

    font-family: "Segoe UI", sans-serif;
}

.rack-header {

    text-align: center;

    font-size: 1.5rem;
    font-weight: bold;

    padding: 15px;

    margin-bottom: 25px;

    border-radius: 8px;

    background: linear-gradient(
        180deg,
        #404040,
        #1a1a1a
    );

    border: 1px solid #555;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 3px 10px rgba(0,0,0,0.4);
}

@font-face {
    font-family: 'DSEG7Bold';
    src: url('./fonts/DSEG7Modern-BoldItalic.woff2')
         format('woff2');
}

@font-face {
    font-family: 'DSEG7Italic';
    src: url('./fonts/DSEG7Modern-Italic.woff2')
         format('woff2');
}

.container {
    max-width: 700px;
    margin: auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    margin-top: 0;
    color: #dddddd;
}

.card {
    background: #1b1f2a;

    padding: 20px;

    border-radius: 12px;

    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.4);
}

label {
    display: block;

    margin-top: 15px;
    margin-bottom: 6px;

    color: #bbbbbb;
}

.radio {
    margin-bottom: 0px;
}

.reference-row {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 10px;
}


.reference-row label {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin: 0;
}


input[type="text"] {
    width: 100%;

    padding: 12px;

    font-size: 1rem;

    border-radius: 6px;
    border: 1px solid #444;

    background: #2b3040;
    color: white;

    box-sizing: border-box;
}

.custom-reference {

    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.reference-input {

    width: 55px;

    padding: 6px;

    text-align: center;
}

.inline-label {

    color: #aaa;

    font-size: 0.9rem;
}

input:disabled {
    background: #3a3a3a;
    color: #888888;
    cursor: not-allowed;
}

hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #333;
}

.result {
    margin-top: 15px;

    text-align: center;

    background: #252b38;

    padding: 10px;

    border-radius: 8px;
}

.result p {
    margin: 0;
    color: #aaaaaa;
}


.dolby-display {

    font-family: 'DSEG7Bold', monospace;

    font-size: 5rem;

    text-align: center;

    color: #ff3030;

    background: #050505;

    border: 3px solid #333;

    border-radius: 10px;

    padding: 20px;

    margin-top: 15px;

    letter-spacing: 8px;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000;

    box-shadow:
        inset 0 0 20px rgba(255,0,0,0.15),
        0 0 20px rgba(0,0,0,0.5);

    cursor: ns-resize;
    user-select: none;
}

.lcd-display {

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 6px;

    background:
        linear-gradient(
            180deg,
            #d8dcc8,
            #aeb39c
        );

    border: 2px solid #555;

    border-radius: 8px;

    padding: 15px;

    margin-top: 10px;

    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.25);
}

.lcd-unit {

    font-family:
        Arial,
        sans-serif;

    font-size: 1.0rem;

    font-weight: bold;

    color: #111;

    margin-top: 1px;
}

.oled-display {

    font-family:
        "Segoe UI",
        sans-serif;

    font-size: 2rem;

    font-weight: bold;

    text-align: center;

    color: #ffd200;

    background: #050505;

    border: 2px solid #222;

    border-radius: 8px;

    padding: 15px;

    margin-top: 10px;

    text-shadow:
        0 0 5px #ffcc00,
        0 0 10px #ffcc00;

    box-shadow:
        inset 0 0 15px rgba(
            255,
            210,
            0,
            0.15
        );
    
    cursor: ns-resize;
    user-select: none;

}

#cinemaSpl {

    font-family:
        'DSEG7Italic',
        monospace;

    font-size: 3rem;

    line-height: 1;

    color: #111;
}

.warning-display {

    display: none;

    margin-top: 5px;
    margin-bottom: 10px;

    text-align: center;

    color: #ffcc00;

    font-size: 0.9rem;

    font-weight: bold;

    letter-spacing: 2px;

    text-shadow:
        0 0 5px #ffcc00;

    animation:
        blink 1s infinite;
}

@keyframes blink {

    0%   { opacity: 1; }

    50%  { opacity: 0.3; }

    100% { opacity: 1; }
}

.dolby-display:active,
.oled-display:active {

    transform: scale(0.95);

    transition: transform 0.1s;
}

.dolby-display,
.oled-display {

    user-select: none;
    -webkit-user-select: none;

    touch-action: none;
}

.pressed {

    transform: scale(0.92);

    transition:
        transform
        0.08s ease;
}

.hidden-control {
    display: none;
}