body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 禁止页面滚动 */
}
#title {
    display: flex;
    justify-content: center;
}
#output {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: #fff;
    margin: 20px;
    padding: 20px;
    /* border-radius: 8px; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    /* width: 600px; */
    height: 300px;
    overflow-y: auto;
    z-index: 1000; /* 确保在所有内容上面 */
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 1001; /* 确保在 output 之上 */
}
.miss {
    color: gray;
}
.hit {
    color: blue;
}
.crit {
    color: red;
    font-weight: bold;
}
.destroyed {
    color: orange;
    font-weight: bold;
}
h2 {
    color: green;
}
.fleet-panel {
    display: flex;
    justify-content: space-around;
    margin-bottom: 80px; /* 保持与底部输出区域的距离 */
}
.fleet-table {
    border-collapse: collapse;
    width: 45%;
    position: relative;
    user-select: none; /* 禁用表格内容选择 */
}
.fleet-table th, .fleet-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    user-select: none; /* 禁用单元格内容选择 */
}
.fleet-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.fleet-table td {
    background-color: #fff;
}
.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    z-index: 1003;
    max-width: 300px; /* Set the maximum width */
    width: 250px; /* Set a fixed width for the tooltip */
    box-sizing: border-box; /* Ensure padding is included in the width */
    overflow-wrap: break-word; /* Wrap long words to prevent overflow */
}
.tooltip.visible {
    display: block;
}
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}
