body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;
}

#result {
    display: none;
}

#result2 {
    display: none;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

a.bonk {
    text-align: center;
    color: blue;
    text-decoration: none;
}

.bonk {
    text-align: center;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

input[type="file"] {
    display: block;
    margin: 20px auto;
    padding: 12px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    max-width: 320px;
    text-align: center;
    transition: border 0.3s;
}

input[type="file"]::file-selector-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
}

input[type="file"]::file-selector-button:hover {
    background-color: #2980b9;
}

input[type="file"]:hover {
    border-color: #3498db;
}

button {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f7f7f7;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

pre span.match, pre span.mismatch {
    display: inline-block;
    width: 100%;
    padding: 5px 0; /* 縦のパディングを追加 */
}

pre span.match {
    background-color: #e0f7e0; /* 行全体を緑に */
}

pre span.mismatch {
    background-color: #ffebee; /* 行全体を赤に */
}

pre span.line-number {
    font-weight: bold;
    color: #666;
}

label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 16px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    text-decoration: none;
    color: #3498db;
    font-size: 16px;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* スクロールボタンのスタイル */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* 初期状態では非表示 */
    background-color: #555;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#scrollToTopBtn:hover {
    background-color: #333;
    transform: scale(1.1);
}
