body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='250px' width='450px'><text x='50' y='200' font-size='30' fill='rgba(0,0,0,0.1)' transform='rotate(-30,50,200)'>TSKangetsu</text></svg>");
    background-repeat: repeat;
    height: 100vh; /* Ensure body takes full viewport height */
    margin: 0; /* Remove default body margin */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

h1 {
    color: #333;
}

#status {
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.detection-status {
    margin-bottom: 20px;
    font-size: 1.1em;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-style: italic;
}

.container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#current-serial-number {
    margin-left: 10px;
    font-weight: bold;
}

input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.output-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    gap: 20px;
}

.output-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#missed-keys-output, #repeated-keys-output, #all-keys {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
    margin-top: 5px;
    white-space: pre-wrap;
    overflow-y: scroll;
    box-sizing: border-box;
}

#footer-text {
    margin-top: auto; /* Push to the bottom */
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #888;
    padding-bottom: 10px; /* Add some padding at the bottom */
}