@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/webfonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-display: swap;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    min-height: 100vh;

    background-color: #180083;

    font-family: "JetBrains Mono", monospace;
    color: white;

    display: flex;
    justify-content: center;
}


.app {
    width: 800px;
    padding: 40px 20px;
}


h1 {
    text-align: center;

    color: #ffee00;

    letter-spacing: 4px;

    text-shadow:
        4px 4px 0 black;
}


h2 {
    margin-top: 0;

    font-size: 16px;

    color: #ffee00;

    letter-spacing: 2px;
}



/* STATUS */

.statusBar {

    margin: 30px auto;

    width: 100%;

    padding: 15px;

    background: #111;

    border: 4px solid black;

    box-shadow:
        6px 6px 0 black;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    font-weight: bold;

}


.statusDot {

    width: 18px;
    height: 18px;

    background: red;

    border: 3px solid black;

    display: inline-block;

}



/* BUTTONS */

.buttonBox {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin: 30px 0;

}


button {

    width: 220px;

    padding: 18px;

    font-family: inherit;

    font-size: 20px;

    font-weight: bold;

    text-transform: uppercase;

    cursor: pointer;

    border: 4px solid black;


    box-shadow:

        6px 6px 0 black;

}


button:active {

    transform: translate(6px,6px);

    box-shadow:

        0 0 0 black;

}



#sendBtn {

    background: #ffee00;

}


#receiveBtn {

    background: #00ff66;

}



/* PANELS */

.panel {

    background: #111;

    border: 4px solid black;

    padding: 25px;

    margin: 30px 0;

    box-shadow:

        8px 8px 0 black;

}



/* TEXT AREAS */


textarea {

    width: 100%;

    height: 220px;

    resize: vertical;

    padding: 20px;


    background: #000;

    color: #00ff66;


    border: 4px solid #ffee00;


    font-family: inherit;

    font-size: 16px;

    line-height: 1.5;

}


textarea::placeholder {

    color: #555;

}



/* SETTINGS */


.settingRow {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 15px 0;

}


.settingRow label {

    width: 180px;

}


input,
select {

    background: black;

    color: #00ff66;

    border: 3px solid #ffee00;

    padding: 8px;

    font-family: inherit;

}


input[type="number"] {

    width: 120px;

}


input[type="range"] {

    flex: 1;

}



/* SCANLINE EFFECT */

.app::after {

    content: "";

    pointer-events: none;

    position: fixed;

    inset: 0;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 3px
        );

}